Home
last modified time | relevance | path

Searched refs:cntr (Results 1 – 12 of 12) sorted by relevance

/freebsd-13-stable/sys/netipsec/
HDsubr_ipsec.c128 ipsec_kmod_enter(volatile u_int *cntr) in ipsec_kmod_enter() argument
133 old = *cntr; in ipsec_kmod_enter()
137 } while(atomic_cmpset_acq_int(cntr, old, new) == 0); in ipsec_kmod_enter()
142 ipsec_kmod_exit(volatile u_int *cntr) in ipsec_kmod_exit() argument
147 old = *cntr; in ipsec_kmod_exit()
149 } while (atomic_cmpset_rel_int(cntr, old, new) == 0); in ipsec_kmod_exit()
153 ipsec_kmod_drain(volatile u_int *cntr) in ipsec_kmod_drain() argument
158 old = *cntr; in ipsec_kmod_drain()
160 } while (atomic_cmpset_acq_int(cntr, old, new) == 0); in ipsec_kmod_drain()
161 while (atomic_cmpset_int(cntr, 0, 0) == 0) in ipsec_kmod_drain()
HDxform_esp.c698 uint64_t cntr; in esp_output() local
820 cntr = sav->cntr++; in esp_output()
894 be64enc(&ivp[4], cntr); in esp_output()
HDkeydb.h186 uint64_t cntr; /* counter for GCM and CTR */ member
HDkey.c5265 newsav->cntr = sav->cntr; in key_updateaddresses()
/freebsd-13-stable/sys/net/altq/
HDaltq.h72 #define PKTCNTR_ADD(cntr, len) \ argument
73 do { (cntr)->packets++; (cntr)->bytes += len; } while (/*CONSTCOND*/ 0)
/freebsd-13-stable/contrib/ntp/kernel/sys/
HDpcl720.h28 #define pcl720_cntr(base,cntr) (base+4+cntr) /* cntr: 0..2 */ argument
56 ctrl.s.cntr = c; \
68 ctrl.s.cntr = i8253_cntr_0; \
HDi8253.h41 unsigned int cntr : 2; member
/freebsd-13-stable/sys/netpfil/ipfw/
HDip_fw_sockopt.c206 rule->cntr = uma_zalloc_pcpu(V_ipfw_cntr_zone, M_WAITOK | M_ZERO); in ipfw_alloc_rule()
224 uma_zfree_pcpu(V_ipfw_cntr_zone, rule->cntr); in ipfw_free_rule()
398 export_cntr1_base(struct ip_fw *krule, struct ip_fw_bcounter *cntr) in export_cntr1_base() argument
402 cntr->size = sizeof(*cntr); in export_cntr1_base()
404 if (krule->cntr != NULL) { in export_cntr1_base()
405 cntr->pcnt = counter_u64_fetch(krule->cntr); in export_cntr1_base()
406 cntr->bcnt = counter_u64_fetch(krule->cntr + 1); in export_cntr1_base()
407 cntr->timestamp = krule->timestamp; in export_cntr1_base()
409 if (cntr->timestamp > 0) { in export_cntr1_base()
411 cntr->timestamp += boottime.tv_sec; in export_cntr1_base()
[all …]
HDip_fw_private.h282 counter_u64_t cntr; /* Pointer to rule counters */ member
394 counter_u64_add((_cntr)->cntr, 1); \
395 counter_u64_add((_cntr)->cntr + 1, _bytes); \
406 counter_u64_zero((_cntr)->cntr); \
407 counter_u64_zero((_cntr)->cntr + 1); \
/freebsd-13-stable/sbin/ipfw/
HDipfw2.c2193 struct buf_pr *bp, struct ip_fw_rule *rule, struct ip_fw_bcounter *cntr) in show_static_rule() argument
2215 if (cntr != NULL) { in show_static_rule()
2218 pr_u64(bp, &cntr->pcnt, fo->pcwidth); in show_static_rule()
2219 pr_u64(bp, &cntr->bcnt, fo->bcwidth); in show_static_rule()
2224 bprintf(bp, "%10u ", cntr->timestamp); in show_static_rule()
2234 if (cntr->timestamp > 0) { in show_static_rule()
2235 t = _long_to_time(cntr->timestamp); in show_static_rule()
2651 struct ip_fw_bcounter *cntr; in prepare_format_opts() local
2659 cntr = (struct ip_fw_bcounter *)(rtlv + 1); in prepare_format_opts()
2660 r = (struct ip_fw_rule *)((caddr_t)cntr + cntr->size); in prepare_format_opts()
[all …]
/freebsd-13-stable/sys/contrib/octeon-sdk/
HDcvmx-mio-defs.h5555 uint64_t cntr : 64; /**< Nanoseconds */ member
5557 uint64_t cntr : 64;
/freebsd-13-stable/sys/dev/bxe/
HDecore_hsi.h9409 uint16_t cntr /* CQ pending completion counter */; member
9413 uint16_t cntr /* CQ pending completion counter */;