| /f-stack/tools/compat/ |
| H A D | stringlist.c | 52 StringList *sl; in sl_init() local 55 if (sl == NULL) in sl_init() 58 sl->sl_cur = 0; in sl_init() 60 sl->sl_str = malloc(sl->sl_max * sizeof(char *)); in sl_init() 63 return sl; in sl_init() 73 if (sl->sl_cur == sl->sl_max - 1) { in sl_add() 75 sl->sl_str = reallocf(sl->sl_str, sl->sl_max * sizeof(char *)); in sl_add() 79 sl->sl_str[sl->sl_cur++] = name; in sl_add() 92 if (sl == NULL) in sl_free() 94 if (sl->sl_str) { in sl_free() [all …]
|
| /f-stack/dpdk/lib/librte_eal/include/generic/ |
| H A D | rte_spinlock.h | 46 rte_spinlock_init(rte_spinlock_t *sl) in rte_spinlock_init() argument 48 sl->locked = 0; in rte_spinlock_init() 58 rte_spinlock_lock(rte_spinlock_t *sl); 62 rte_spinlock_lock(rte_spinlock_t *sl) in rte_spinlock_lock() argument 82 rte_spinlock_unlock (rte_spinlock_t *sl); 86 rte_spinlock_unlock (rte_spinlock_t *sl) in rte_spinlock_unlock() argument 101 rte_spinlock_trylock (rte_spinlock_t *sl); 105 rte_spinlock_trylock (rte_spinlock_t *sl) in rte_spinlock_trylock() argument 202 rte_spinlock_init(&slr->sl); in rte_spinlock_recursive_init() 218 rte_spinlock_lock(&slr->sl); in rte_spinlock_recursive_lock() [all …]
|
| /f-stack/dpdk/lib/librte_eal/x86/include/ |
| H A D | rte_spinlock.h | 25 rte_spinlock_lock(rte_spinlock_t *sl) in rte_spinlock_lock() argument 45 rte_spinlock_unlock (rte_spinlock_t *sl) in rte_spinlock_unlock() argument 56 rte_spinlock_trylock (rte_spinlock_t *sl) in rte_spinlock_trylock() argument 123 rte_spinlock_lock_tm(rte_spinlock_t *sl) in rte_spinlock_lock_tm() argument 125 if (likely(rte_try_tm(&sl->locked))) in rte_spinlock_lock_tm() 128 rte_spinlock_lock(sl); /* fall-back */ in rte_spinlock_lock_tm() 134 if (likely(rte_try_tm(&sl->locked))) in rte_spinlock_trylock_tm() 137 return rte_spinlock_trylock(sl); in rte_spinlock_trylock_tm() 143 if (unlikely(sl->locked)) in rte_spinlock_unlock_tm() 144 rte_spinlock_unlock(sl); in rte_spinlock_unlock_tm() [all …]
|
| /f-stack/dpdk/lib/librte_eal/ppc/include/ |
| H A D | rte_spinlock.h | 22 rte_spinlock_lock(rte_spinlock_t *sl) in rte_spinlock_lock() argument 25 while (sl->locked) in rte_spinlock_lock() 30 rte_spinlock_unlock(rte_spinlock_t *sl) in rte_spinlock_unlock() argument 32 __sync_lock_release(&sl->locked); in rte_spinlock_unlock() 36 rte_spinlock_trylock(rte_spinlock_t *sl) in rte_spinlock_trylock() argument 49 rte_spinlock_lock_tm(rte_spinlock_t *sl) in rte_spinlock_lock_tm() argument 51 rte_spinlock_lock(sl); /* fall-back */ in rte_spinlock_lock_tm() 55 rte_spinlock_trylock_tm(rte_spinlock_t *sl) in rte_spinlock_trylock_tm() argument 57 return rte_spinlock_trylock(sl); in rte_spinlock_trylock_tm() 61 rte_spinlock_unlock_tm(rte_spinlock_t *sl) in rte_spinlock_unlock_tm() argument [all …]
|
| /f-stack/freebsd/contrib/ipfilter/netinet/ |
| H A D | ip_sync.c | 618 err = UIOMOVE(sl, sizeof(*sl), UIO_READ, uio); 752 for (sl = softs->syncstatetab[hv]; (sl != NULL); 753 sl = sl->sl_next) 770 sp->sm_num, sl->sl_hdr.sm_v, sl->sl_hdr.sm_p, 771 sl->sl_hdr.sm_cmd, sl->sl_hdr.sm_table, 833 *sl->sl_pnext = sl->sl_next; 835 sl->sl_next->sl_pnext = sl->sl_pnext; 858 KFREE(sl); 953 for (sl = softs->syncnattab[hv]; (sl != NULL); 954 sl = sl->sl_next) [all …]
|
| H A D | ip_scan.c | 328 ipf_scan_matchisc(isc, is, cl, sl, maxm) in ipf_scan_matchisc() argument 331 int cl, sl, maxm[2]; 373 sl && isc->ipsc_slen) { 399 int i, j, k, n, cl, sl, maxm[2]; local 405 for (sl = 0, n = is->is_smsk[1]; n & 1; n >>= 1) 406 sl++; 414 i = ipf_scan_matchisc(isc, is, cl, sl, NULL); 423 } else if (sl >= isc->ipsc_slen) 431 i = ipf_scan_matchisc(isc, is, cl, sl, maxm);
|
| /f-stack/dpdk/lib/librte_eal/arm/include/ |
| H A D | rte_spinlock.h | 25 rte_spinlock_lock_tm(rte_spinlock_t *sl) in rte_spinlock_lock_tm() argument 27 rte_spinlock_lock(sl); /* fall-back */ in rte_spinlock_lock_tm() 31 rte_spinlock_trylock_tm(rte_spinlock_t *sl) in rte_spinlock_trylock_tm() argument 33 return rte_spinlock_trylock(sl); in rte_spinlock_trylock_tm() 37 rte_spinlock_unlock_tm(rte_spinlock_t *sl) in rte_spinlock_unlock_tm() argument 39 rte_spinlock_unlock(sl); in rte_spinlock_unlock_tm()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_spinlock.c | 47 static rte_spinlock_t sl, sl_try; variable 57 rte_spinlock_lock(&sl); in test_spinlock_per_core() 59 rte_spinlock_unlock(&sl); in test_spinlock_per_core() 184 rte_spinlock_lock(&sl); in test_spinlock_try() 186 rte_spinlock_unlock(&sl); in test_spinlock_try() 209 rte_spinlock_init(&sl); in test_spinlock() 215 rte_spinlock_lock(&sl); in test_spinlock() 227 rte_spinlock_unlock(&sl); in test_spinlock() 274 if (rte_spinlock_is_locked(&sl)) { in test_spinlock() 278 rte_spinlock_lock(&sl); in test_spinlock() [all …]
|
| H A D | test_rwlock.c | 37 static rte_rwlock_t sl; variable 70 rte_rwlock_write_lock(&sl); in test_rwlock_per_core() 72 rte_rwlock_write_unlock(&sl); in test_rwlock_per_core() 78 rte_rwlock_read_lock(&sl); in test_rwlock_per_core() 82 rte_rwlock_read_unlock(&sl); in test_rwlock_per_core() 184 rte_rwlock_init(&sl); in rwlock_test1() 188 rte_rwlock_write_lock(&sl); in rwlock_test1() 195 rte_rwlock_write_unlock(&sl); in rwlock_test1() 202 rte_rwlock_write_lock(&sl); in rwlock_test1() 205 rte_rwlock_write_unlock(&sl); in rwlock_test1()
|
| /f-stack/freebsd/libkern/ |
| H A D | cmpdi2.c | 53 return (aa.sl[H] < bb.sl[H] ? 0 : aa.sl[H] > bb.sl[H] ? 2 : in __cmpdi2()
|
| H A D | ashrdi3.c | 60 s = (aa.sl[H] >> (LONG_BITS - 1)) >> 1; in __ashrdi3() 62 aa.sl[H] >> (shift - LONG_BITS); in __ashrdi3() 67 aa.sl[H] >>= shift; in __ashrdi3()
|
| H A D | quad.h | 70 long sl[2]; /* as two signed longs */ member
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | busdma_bounce.c | 813 struct sync_list *sl; in bounce_bus_dmamap_load_phys() local 853 sl_end = sl->paddr + sl->datacount; in bounce_bus_dmamap_load_phys() 858 sl++; in bounce_bus_dmamap_load_phys() 859 sl->vaddr = 0; in bounce_bus_dmamap_load_phys() 961 sl_pend = sl->paddr + sl->datacount; in bounce_bus_dmamap_load_buffer() 962 sl_vend = sl->vaddr + sl->datacount; in bounce_bus_dmamap_load_buffer() 970 sl++; in bounce_bus_dmamap_load_buffer() 1067 m = sl->pages; in dma_dcache_sync() 1069 pa = sl->paddr; in dma_dcache_sync() 1082 va = sl->vaddr; in dma_dcache_sync() [all …]
|
| /f-stack/freebsd/arm/arm/ |
| H A D | busdma_machdep.c | 1055 struct sync_list *sl; in _bus_dmamap_load_phys() local 1086 sl_end = sl->paddr + sl->datacount; in _bus_dmamap_load_phys() 1091 sl++; in _bus_dmamap_load_phys() 1092 sl->vaddr = 0; in _bus_dmamap_load_phys() 1200 sl_pend = sl->paddr + sl->datacount; in _bus_dmamap_load_buffer() 1201 sl_vend = sl->vaddr + sl->datacount; in _bus_dmamap_load_buffer() 1209 sl++; in _bus_dmamap_load_buffer() 1318 m = sl->pages; in dma_dcache_sync() 1320 pa = sl->paddr; in dma_dcache_sync() 1333 va = sl->vaddr; in dma_dcache_sync() [all …]
|
| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-npi.h | 117 uint64_t sl : 7; /**< Skip length */ member 121 uint64_t sl : 7; 132 uint64_t sl : 7; /**< Skip length */ member 136 uint64_t sl : 7;
|
| H A D | cvmx-srio.h | 198 uint64_t sl : 7; /**< WORD1[SL]/PKT_INST_HDR[SL] selects the member 296 uint64_t sl : 7;
|
| /f-stack/dpdk/drivers/net/mlx5/linux/ |
| H A D | mlx5_vlan_os.c | 47 rte_spinlock_lock(&vmwa->sl); in mlx5_vlan_vmwa_release() 54 rte_spinlock_unlock(&vmwa->sl); in mlx5_vlan_vmwa_release() 77 rte_spinlock_lock(&vmwa->sl); in mlx5_vlan_vmwa_acquire() 88 rte_spinlock_unlock(&vmwa->sl); in mlx5_vlan_vmwa_acquire() 138 rte_spinlock_init(&vmwa->sl); in mlx5_vlan_vmwa_init()
|
| /f-stack/dpdk/lib/librte_mempool/ |
| H A D | rte_mempool_ops.c | 18 .sl = RTE_SPINLOCK_INITIALIZER, 29 rte_spinlock_lock(&rte_mempool_ops_table.sl); in rte_mempool_register_ops() 33 rte_spinlock_unlock(&rte_mempool_ops_table.sl); in rte_mempool_register_ops() 41 rte_spinlock_unlock(&rte_mempool_ops_table.sl); in rte_mempool_register_ops() 48 rte_spinlock_unlock(&rte_mempool_ops_table.sl); in rte_mempool_register_ops() 68 rte_spinlock_unlock(&rte_mempool_ops_table.sl); in rte_mempool_register_ops()
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_vjc.c | 340 struct slcompress *sl; in ng_vjc_rcvmsg() local 345 NG_MKRESPONSE(resp, msg, sizeof(*sl), M_NOWAIT); in ng_vjc_rcvmsg() 348 sl = (struct slcompress *)resp->data; in ng_vjc_rcvmsg() 349 *sl = *sl0; in ng_vjc_rcvmsg() 352 if (sl->last_cs != NULL) { in ng_vjc_rcvmsg() 354 bzero(&sl->last_cs, sizeof(sl->last_cs)); in ng_vjc_rcvmsg() 355 *((u_int16_t *)&sl->last_cs) = index; in ng_vjc_rcvmsg() 358 struct cstate *const cs = &sl->tstate[i]; in ng_vjc_rcvmsg()
|
| /f-stack/freebsd/mips/mips/ |
| H A D | busdma_machdep.c | 985 struct sync_list *sl; in _bus_dmamap_load_buffer() local 1029 sl = &map->slist[map->sync_count - 1]; in _bus_dmamap_load_buffer() 1031 vaddr != sl->vaddr + sl->datacount) { in _bus_dmamap_load_buffer() 1034 sl++; in _bus_dmamap_load_buffer() 1035 sl->vaddr = vaddr; in _bus_dmamap_load_buffer() 1036 sl->datacount = sgsize; in _bus_dmamap_load_buffer() 1037 sl->busaddr = curaddr; in _bus_dmamap_load_buffer() 1039 sl->datacount += sgsize; in _bus_dmamap_load_buffer() 1261 struct sync_list *sl, *end; in bus_dmamap_sync() local 1281 for (sl = &map->slist[0]; sl != end; sl++) in bus_dmamap_sync() [all …]
|
| /f-stack/dpdk/drivers/bus/fslmc/qbman/include/ |
| H A D | fsl_qbman_base.h | 151 uint32_t sl:1; member 193 uint32_t sl:1; member
|
| /f-stack/dpdk/drivers/net/mlx5/ |
| H A D | mlx5_utils.c | 795 rte_spinlock_init(&tbl->sl); in mlx5_l3t_create() 902 rte_spinlock_lock(&tbl->sl); in mlx5_l3t_get_entry() 904 rte_spinlock_unlock(&tbl->sl); in mlx5_l3t_get_entry() 921 rte_spinlock_lock(&tbl->sl); in mlx5_l3t_clear_entry() 986 rte_spinlock_unlock(&tbl->sl); in mlx5_l3t_clear_entry() 1109 rte_spinlock_lock(&tbl->sl); in mlx5_l3t_set_entry() 1111 rte_spinlock_unlock(&tbl->sl); in mlx5_l3t_set_entry() 1122 rte_spinlock_lock(&tbl->sl); in mlx5_l3t_prepare_entry() 1152 rte_spinlock_unlock(&tbl->sl); in mlx5_l3t_prepare_entry()
|
| /f-stack/dpdk/drivers/net/liquidio/ |
| H A D | lio_rxtx.h | 374 uint64_t sl : 8; member 409 uint64_t sl : 8; 547 pki_ih3->sl = 32; /* sl will be sizeof(pki_ih3) + irh + ossp0 + ossp1*/ in lio_prepare_pci_cmd()
|
| /f-stack/dpdk/drivers/common/mlx5/linux/ |
| H A D | mlx5_nl.h | 28 rte_spinlock_t sl; member
|
| /f-stack/freebsd/contrib/openzfs/include/sys/ |
| H A D | qat.h | 194 #define qat_compress(dir, s, sl, d, dl, cl) 0 argument
|