| /f-stack/dpdk/lib/librte_eal/ppc/include/ |
| H A D | rte_atomic.h | 137 : [cnt] "r" (&v->cnt), "m" (v->cnt) in rte_atomic32_inc() 152 : [cnt] "r" (&v->cnt), "m" (v->cnt) in rte_atomic32_dec() 168 : [cnt] "r" (&v->cnt) in rte_atomic32_inc_and_test() 186 : [cnt] "r" (&v->cnt) in rte_atomic32_dec_and_test() 241 : [cnt] "m"(v->cnt)); in rte_atomic64_read() 250 : [cnt] "=m"(v->cnt) in rte_atomic64_set() 265 : [cnt] "r" (&v->cnt), [inc] "r" (inc), "m" (v->cnt) in rte_atomic64_add() 295 : [cnt] "r" (&v->cnt), "m" (v->cnt) in rte_atomic64_inc() 310 : [cnt] "r" (&v->cnt), "m" (v->cnt) in rte_atomic64_dec() 364 : [cnt] "r" (&v->cnt) in rte_atomic64_inc_and_test() [all …]
|
| /f-stack/dpdk/lib/librte_eal/x86/include/ |
| H A D | rte_atomic_64.h | 62 v->cnt = 0; in rte_atomic64_init() 68 return v->cnt; in rte_atomic64_read() 83 : [cnt] "=m" (v->cnt) /* output */ in rte_atomic64_add() 85 "m" (v->cnt) in rte_atomic64_add() 95 : [cnt] "=m" (v->cnt) /* output */ in rte_atomic64_sub() 107 : [cnt] "=m" (v->cnt) /* output */ in rte_atomic64_inc() 118 : [cnt] "=m" (v->cnt) /* output */ in rte_atomic64_dec() 132 [cnt] "=m" (v->cnt) in rte_atomic64_add_return() 152 : [cnt] "+m" (v->cnt), /* output */ in rte_atomic64_inc_and_test() 167 : [cnt] "+m" (v->cnt), /* output */ in rte_atomic64_dec_and_test() [all …]
|
| H A D | rte_atomic.h | 142 : [cnt] "=m" (v->cnt) /* output */ in rte_atomic16_inc() 143 : "m" (v->cnt) /* input */ in rte_atomic16_inc() 153 : [cnt] "=m" (v->cnt) /* output */ in rte_atomic16_dec() 154 : "m" (v->cnt) /* input */ in rte_atomic16_dec() 166 : [cnt] "+m" (v->cnt), /* output */ in rte_atomic16_inc_and_test() 179 : [cnt] "+m" (v->cnt), /* output */ in rte_atomic16_dec_and_test() 228 : [cnt] "=m" (v->cnt) /* output */ in rte_atomic32_inc() 229 : "m" (v->cnt) /* input */ in rte_atomic32_inc() 239 : [cnt] "=m" (v->cnt) /* output */ in rte_atomic32_dec() 252 : [cnt] "+m" (v->cnt), /* output */ in rte_atomic32_inc_and_test() [all …]
|
| H A D | rte_atomic_32.h | 91 tmp = v->cnt; in rte_atomic64_init() 92 success = rte_atomic64_cmpset((volatile uint64_t *)&v->cnt, in rte_atomic64_init() 104 tmp = v->cnt; in rte_atomic64_read() 106 success = rte_atomic64_cmpset((volatile uint64_t *)&v->cnt, in rte_atomic64_read() 119 tmp = v->cnt; in rte_atomic64_set() 120 success = rte_atomic64_cmpset((volatile uint64_t *)&v->cnt, in rte_atomic64_set() 132 tmp = v->cnt; in rte_atomic64_add() 133 success = rte_atomic64_cmpset((volatile uint64_t *)&v->cnt, in rte_atomic64_add() 145 tmp = v->cnt; in rte_atomic64_sub() 170 tmp = v->cnt; in rte_atomic64_add_return() [all …]
|
| /f-stack/dpdk/lib/librte_eal/include/generic/ |
| H A D | rte_atomic.h | 207 v->cnt = 0; in rte_atomic16_init() 221 return v->cnt; in rte_atomic16_read() 407 v->cnt = 0; in rte_atomic16_clear() 490 v->cnt = 0; in rte_atomic32_init() 504 return v->cnt; in rte_atomic32_read() 690 v->cnt = 0; in rte_atomic32_clear() 777 v->cnt = 0; in rte_atomic64_init() 783 tmp = v->cnt; in rte_atomic64_init() 807 return v->cnt; in rte_atomic64_read() 813 tmp = v->cnt; in rte_atomic64_read() [all …]
|
| H A D | rte_rwlock.h | 51 rwl->cnt = 0; in rte_rwlock_init() 67 x = __atomic_load_n(&rwl->cnt, __ATOMIC_RELAXED); in rte_rwlock_read_lock() 73 success = __atomic_compare_exchange_n(&rwl->cnt, &x, x + 1, 1, in rte_rwlock_read_lock() 99 x = __atomic_load_n(&rwl->cnt, __ATOMIC_RELAXED); in rte_rwlock_read_trylock() 103 success = __atomic_compare_exchange_n(&rwl->cnt, &x, x + 1, 1, in rte_rwlock_read_trylock() 119 __atomic_fetch_sub(&rwl->cnt, 1, __ATOMIC_RELEASE); in rte_rwlock_read_unlock() 141 x = __atomic_load_n(&rwl->cnt, __ATOMIC_RELAXED); in rte_rwlock_write_trylock() 142 if (x != 0 || __atomic_compare_exchange_n(&rwl->cnt, &x, -1, 1, in rte_rwlock_write_trylock() 162 x = __atomic_load_n(&rwl->cnt, __ATOMIC_RELAXED); in rte_rwlock_write_lock() 168 success = __atomic_compare_exchange_n(&rwl->cnt, &x, -1, 1, in rte_rwlock_write_lock() [all …]
|
| /f-stack/freebsd/mips/mips/ |
| H A D | uio_machdep.c | 73 size_t cnt; in uiomove_fromphys() local 85 cnt = iov->iov_len; in uiomove_fromphys() 86 if (cnt == 0) { in uiomove_fromphys() 91 if (cnt > n) in uiomove_fromphys() 92 cnt = n; in uiomove_fromphys() 94 cnt = ulmin(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 137 iov->iov_len -= cnt; in uiomove_fromphys() 138 uio->uio_resid -= cnt; in uiomove_fromphys() 139 uio->uio_offset += cnt; in uiomove_fromphys() 140 offset += cnt; in uiomove_fromphys() [all …]
|
| H A D | mem.c | 85 vm_size_t cnt; in memrw() local 87 cnt = 0; in memrw() 104 cnt = PAGE_SIZE - ((vm_offset_t)iov->iov_base & in memrw() 106 cnt = min(cnt, PAGE_SIZE - off); in memrw() 107 cnt = min(cnt, iov->iov_len); in memrw() 111 error = uiomove_fromphys(&marr, off, cnt, uio); in memrw()
|
| /f-stack/freebsd/arm/arm/ |
| H A D | uio_machdep.c | 68 size_t cnt; in uiomove_fromphys() local 81 cnt = iov->iov_len; in uiomove_fromphys() 82 if (cnt == 0) { in uiomove_fromphys() 87 if (cnt > n) in uiomove_fromphys() 88 cnt = n; in uiomove_fromphys() 90 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 116 iov->iov_len -= cnt; in uiomove_fromphys() 117 uio->uio_resid -= cnt; in uiomove_fromphys() 118 uio->uio_offset += cnt; in uiomove_fromphys() 119 offset += cnt; in uiomove_fromphys() [all …]
|
| /f-stack/freebsd/i386/i386/ |
| H A D | uio_machdep.c | 68 size_t cnt; in uiomove_fromphys() local 80 cnt = iov->iov_len; in uiomove_fromphys() 81 if (cnt == 0) { in uiomove_fromphys() 86 if (cnt > n) in uiomove_fromphys() 87 cnt = n; in uiomove_fromphys() 89 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 118 iov->iov_len -= cnt; in uiomove_fromphys() 119 uio->uio_resid -= cnt; in uiomove_fromphys() 120 uio->uio_offset += cnt; in uiomove_fromphys() 121 offset += cnt; in uiomove_fromphys() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zcommon/ |
| H A D | zfs_uio.c | 62 ulong_t cnt; in uiomove_iov() local 94 cnt - b_left; in uiomove_iov() 113 skip += cnt; in uiomove_iov() 122 p = (caddr_t)p + cnt; in uiomove_iov() 123 n -= cnt; in uiomove_iov() 133 ulong_t cnt; in uiomove_bvec() local 146 skip += cnt; in uiomove_bvec() 156 n -= cnt; in uiomove_bvec() 172 cnt = copy_to_iter(p, cnt, uio->uio_iter); in uiomove_iter() 174 cnt = copy_from_iter(p, cnt, uio->uio_iter); in uiomove_iter() [all …]
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | uio_machdep.c | 65 size_t cnt; in uiomove_fromphys() local 79 cnt = iov->iov_len; in uiomove_fromphys() 80 if (cnt == 0) { in uiomove_fromphys() 85 if (cnt > n) in uiomove_fromphys() 86 cnt = n; in uiomove_fromphys() 88 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 119 iov->iov_len -= cnt; in uiomove_fromphys() 120 uio->uio_resid -= cnt; in uiomove_fromphys() 121 uio->uio_offset += cnt; in uiomove_fromphys() 122 offset += cnt; in uiomove_fromphys() [all …]
|
| /f-stack/freebsd/amd64/amd64/ |
| H A D | uio_machdep.c | 67 size_t cnt; in uiomove_fromphys() local 81 cnt = iov->iov_len; in uiomove_fromphys() 82 if (cnt == 0) { in uiomove_fromphys() 87 if (cnt > n) in uiomove_fromphys() 88 cnt = n; in uiomove_fromphys() 90 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 121 iov->iov_len -= cnt; in uiomove_fromphys() 122 uio->uio_resid -= cnt; in uiomove_fromphys() 123 uio->uio_offset += cnt; in uiomove_fromphys() 124 offset += cnt; in uiomove_fromphys() [all …]
|
| /f-stack/freebsd/vm/ |
| H A D | uma_dbg.c | 69 int cnt; in trash_ctor() local 77 cnt = size / sizeof(uma_junk); in trash_ctor() 79 for (p = mem; cnt > 0; cnt--, p++) in trash_ctor() 102 int cnt; in trash_dtor() local 110 cnt = size / sizeof(uma_junk); in trash_dtor() 112 for (p = mem; cnt > 0; cnt--, p++) in trash_dtor() 146 int cnt; in mtrash_ctor() local 156 cnt = size / sizeof(uma_junk); in mtrash_ctor() 158 for (p = mem; cnt > 0; cnt--, p++) in mtrash_ctor() 177 int cnt; in mtrash_dtor() local [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/ |
| H A D | snapshot_015_pos.ksh | 85 typeset -i cnt=0 86 while ((cnt < snap_cnt)); do 87 testfile=$mntpnt/testfile.$cnt 89 log_must mkdir $snapdir/snapshot/snap.$cnt 90 if ! datasetexists $fs@snap.$cnt ; then 94 ((cnt += 1)) 98 ((cnt = RANDOM % snap_cnt)) 99 log_must zfs rollback -r $fs@snap.$cnt 104 if ((i <= cnt)); then 118 log_must rmdir $snapdir/snapshot/snap.$cnt [all …]
|
| /f-stack/dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | bnxt_ulp.c | 87 res->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_WC_PROF] = 192; in bnxt_ulp_tf_session_resources_get() 88 res->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_PROF_FUNC] = 64; in bnxt_ulp_tf_session_resources_get() 89 res->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_EM_PROF] = 192; in bnxt_ulp_tf_session_resources_get() 97 res->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_ENCAP_8B] = 511; in bnxt_ulp_tf_session_resources_get() 112 res->em_cnt[TF_DIR_RX].cnt[TF_EM_TBL_TYPE_TBL_SCOPE] = 1; in bnxt_ulp_tf_session_resources_get() 115 res->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_SP_SMAC] = 255; in bnxt_ulp_tf_session_resources_get() 121 res->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_WC_PROF] = 192; in bnxt_ulp_tf_session_resources_get() 123 res->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_EM_PROF] = 192; in bnxt_ulp_tf_session_resources_get() 147 res->em_cnt[TF_DIR_TX].cnt[TF_EM_TBL_TYPE_TBL_SCOPE] = 1; in bnxt_ulp_tf_session_resources_get() 183 res->em_cnt[TF_DIR_RX].cnt[TF_EM_TBL_TYPE_TBL_SCOPE] = 1; in bnxt_ulp_tf_session_resources_get() [all …]
|
| /f-stack/dpdk/drivers/net/mlx4/ |
| H A D | mlx4_utils.c | 54 unsigned int cnt, int zero, int socket) in mlx4_mallocv_inline() argument 65 for (i = 0; i < cnt; ++i) { in mlx4_mallocv_inline() 93 for (i = 0; i != cnt; ++i) in mlx4_mallocv_inline() 139 unsigned int cnt) in mlx4_mallocv() argument 141 return mlx4_mallocv_inline(type, vec, cnt, 0, SOCKET_ID_ANY); in mlx4_mallocv() 152 unsigned int cnt) in mlx4_zmallocv() argument 154 return mlx4_mallocv_inline(type, vec, cnt, 1, SOCKET_ID_ANY); in mlx4_zmallocv() 171 unsigned int cnt, int socket) in mlx4_mallocv_socket() argument 173 return mlx4_mallocv_inline(type, vec, cnt, 0, socket); in mlx4_mallocv_socket() 185 unsigned int cnt, int socket) in mlx4_zmallocv_socket() argument [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_program/ |
| H A D | zfs_program_json.ksh | 109 typeset -i cnt=0 116 if [ "$OUTPUT" != "${pos_cmds_out[$cnt]}" ]; then 118 log_note "Expected:${pos_cmds_out[$cnt]}" 121 cnt=$((cnt + 1)) 135 cnt=0 140 if [ "$OUTPUT" != "${neg_cmds_out[$cnt]}" ]; then 142 log_note "Expected:${neg_cmds_out[$cnt]}" 145 cnt=$((cnt + 1))
|
| /f-stack/freebsd/contrib/ngatm/netnatm/msg/ |
| H A D | parsemsg.awk | 65 cnt = 0 78 iename[cnt]=$1 81 ienum[cnt]=substr($2, 1, length($2)-2) 82 ierep[cnt]=1 85 ierep[cnt]=0 86 ienum[cnt]=$2 88 if(ienum[cnt] != "-") msgrep = 1 94 iecond[cnt] = $3 95 cnt++
|
| /f-stack/lib/ |
| H A D | ff_kern_subr.c | 167 u_int cnt; in uiomove() local 183 cnt = iov->iov_len; in uiomove() 184 if (cnt == 0) { in uiomove() 189 if (cnt > n) in uiomove() 190 cnt = n; in uiomove() 207 bcopy(cp, iov->iov_base, cnt); in uiomove() 215 iov->iov_len -= cnt; in uiomove() 216 uio->uio_resid -= cnt; in uiomove() 217 uio->uio_offset += cnt; in uiomove() 218 cp = (char *)cp + cnt; in uiomove() [all …]
|
| /f-stack/dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_sym_reqmgr.c | 260 sglist[cnt].len = len; in fill_sglist() 264 cnt++; in fill_sglist() 293 cnt++; in create_sglist_from_mbuf() 302 cnt++; in create_sglist_from_mbuf() 351 int err, cnt = 0; in create_cipher_outbuf() local 360 cnt++; in create_cipher_outbuf() 376 cnt++; in create_cipher_outbuf() 554 int i, cnt; in create_aead_inplace_outbuf() local 577 int cnt = 0; in create_aead_outbuf() local 584 cnt++; in create_aead_outbuf() [all …]
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_source.c | 848 ng_source_packet_mod(sc, m, cnt->offset, cnt->width, cp, cnt->flags); in ng_source_mod_counter() 853 if (increment > 0 && cnt->next_val > cnt->max_val) { in ng_source_mod_counter() 854 cnt->next_val = cnt->min_val - 1 + in ng_source_mod_counter() 855 (cnt->next_val - cnt->max_val); in ng_source_mod_counter() 856 if (cnt->next_val > cnt->max_val) in ng_source_mod_counter() 857 cnt->next_val = cnt->max_val; in ng_source_mod_counter() 858 } else if (increment < 0 && cnt->next_val < cnt->min_val) { in ng_source_mod_counter() 859 cnt->next_val = cnt->max_val + 1 + in ng_source_mod_counter() 860 (cnt->next_val - cnt->min_val); in ng_source_mod_counter() 861 if (cnt->next_val < cnt->min_val) in ng_source_mod_counter() [all …]
|
| /f-stack/dpdk/app/test/ |
| H A D | test_ipsec_perf.c | 50 struct stats_counter cnt; member 285 sa->cnt.nb_prepare_call++; in packet_prepare() 286 sa->cnt.nb_prepare_pkt += k; in packet_prepare() 313 sa->cnt.nb_process_call++; in packet_process() 314 sa->cnt.nb_process_pkt += k; in packet_process() 380 sa->cnt.nb_prepare_call = 0; in fill_ipsec_sa_out() 381 sa->cnt.nb_prepare_pkt = 0; in fill_ipsec_sa_out() 382 sa->cnt.nb_process_call = 0; in fill_ipsec_sa_out() 383 sa->cnt.nb_process_pkt = 0; in fill_ipsec_sa_out() 403 sa->cnt.nb_prepare_pkt = 0; in fill_ipsec_sa_in() [all …]
|
| /f-stack/dpdk/examples/ipsec-secgw/ |
| H A D | ipsec_process.c | 183 unsigned int cnt) in ipsec_prepare_crypto_group() argument 186 struct rte_crypto_op *cop[cnt]; in ipsec_prepare_crypto_group() 193 for (j = 0; j != cnt; j++) { in ipsec_prepare_crypto_group() 222 for (j = 0; j != cnt; j++) { in prep_process_group() 240 prep_process_group(sa, mb, cnt); in ipsec_process_inline_group() 259 prep_process_group(sa, mb, cnt); in ipsec_process_cpu_group() 310 pg->m, pg->cnt); in ipsec_process() 315 trf, pg->m, pg->cnt); in ipsec_process() 319 trf, pg->m, pg->cnt); in ipsec_process() 327 if (k != pg->cnt) in ipsec_process() [all …]
|
| /f-stack/freebsd/netinet/ |
| H A D | ip_options.c | 128 for (; cnt > 0; cnt -= optlen, cp += optlen) { in ip_dooptions() 560 int opt, optlen, cnt; in ip_optcopy() local 565 for (; cnt > 0; cnt -= optlen, cp += optlen) { in ip_optcopy() 583 if (optlen > cnt) in ip_optcopy() 584 optlen = cnt; in ip_optcopy() 603 int cnt, optlen; in ip_pcbopts() local 633 cnt = m->m_len; in ip_pcbopts() 639 for (; cnt > 0; cnt -= optlen, cp += optlen) { in ip_pcbopts() 673 cnt -= sizeof(struct in_addr); in ip_pcbopts() 722 int opt, optlen, cnt, found_ra; in ip_checkrouteralert() local [all …]
|