Home
last modified time | relevance | path

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

/freebsd/sys/dev/hwpmc/
H A Dpmu_dmc620.c79 pmu_dmc620_rd4(void *arg, u_int cntr, off_t reg) in pmu_dmc620_rd4() argument
85 KASSERT(cntr < DMC620_COUNTERS_N, ("Wrong counter unit %d", cntr)); in pmu_dmc620_rd4()
87 val = RD4(sc, DMC620_REG(cntr, reg)); in pmu_dmc620_rd4()
92 pmu_dmc620_wr4(void *arg, u_int cntr, off_t reg, uint32_t val) in pmu_dmc620_wr4() argument
97 KASSERT(cntr < DMC620_COUNTERS_N, ("Wrong counter unit %d", cntr)); in pmu_dmc620_wr4()
99 WR4(sc, DMC620_REG(cntr, reg), val); in pmu_dmc620_wr4()
H A Dhwpmc_dmc620.c152 cntr(int class, int ri) in cntr() function
212 pmu_dmc620_rd4(desc->pd_rw_arg, cntr(class, ri), in CLASSDEP_FN4()
238 pmu_dmc620_wr4(desc->pd_rw_arg, cntr(class, ri), in CLASSDEP_FN4()
378 pmu_dmc620_wr4(desc->pd_rw_arg, cntr(class, ri), in CLASSDEP_FN3()
380 pmu_dmc620_wr4(desc->pd_rw_arg, cntr(class, ri), in CLASSDEP_FN3()
382 pmu_dmc620_wr4(desc->pd_rw_arg, cntr(class, ri), in CLASSDEP_FN3()
384 pmu_dmc620_wr4(desc->pd_rw_arg, cntr(class, ri), in CLASSDEP_FN3()
391 pmu_dmc620_wr4(desc->pd_rw_arg, cntr(class, ri), in CLASSDEP_FN3()
416 pmu_dmc620_wr4(desc->pd_rw_arg, cntr(class, ri), in CLASSDEP_FN3()
H A Dpmu_dmc620_reg.h76 uint32_t pmu_dmc620_rd4(void *arg, u_int cntr, off_t reg);
77 void pmu_dmc620_wr4(void *arg, u_int cntr, off_t reg, uint32_t val);
/freebsd/sys/netipsec/
H A Dsubr_ipsec.c117 ipsec_kmod_enter(volatile u_int *cntr) in ipsec_kmod_enter() argument
122 old = *cntr; in ipsec_kmod_enter()
126 } while(atomic_cmpset_acq_int(cntr, old, new) == 0); in ipsec_kmod_enter()
131 ipsec_kmod_exit(volatile u_int *cntr) in ipsec_kmod_exit() argument
136 old = *cntr; in ipsec_kmod_exit()
138 } while (atomic_cmpset_rel_int(cntr, old, new) == 0); in ipsec_kmod_exit()
142 ipsec_kmod_drain(volatile u_int *cntr) in ipsec_kmod_drain() argument
147 old = *cntr; in ipsec_kmod_drain()
149 } while (atomic_cmpset_acq_int(cntr, old, new) == 0); in ipsec_kmod_drain()
150 while (atomic_cmpset_int(cntr, 0, 0) == 0) in ipsec_kmod_drain()
H A Dxform_esp.c705 uint64_t cntr; in esp_output() local
827 cntr = sav->cntr++; in esp_output()
901 be64enc(&ivp[4], cntr); in esp_output()
H A Dkeydb.h189 uint64_t cntr; /* counter for GCM and CTR */
186 uint64_t cntr; /* counter for GCM and CTR */ global() member
H A Dkey.c5510 newsav->cntr = sav->cntr; in key_updateaddresses()
/freebsd/sys/net/altq/
H A Daltq.h72 #define PKTCNTR_ADD(cntr, len) \ argument
73 do { (cntr)->packets++; (cntr)->bytes += len; } while (/*CONSTCOND*/ 0)
/freebsd/contrib/ntp/kernel/sys/
H A Dpcl720.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; \
H A Di8253.h41 unsigned int cntr : 2; member
/freebsd/crypto/openssl/test/recipes/
H A D80-test_ca.t234 my $cntr = 10;
237 1 while $cntr-- > 0 && print PIPE "y\n";
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_private.h288 counter_u64_t cntr; /* Pointer to rule counters */ member
399 counter_u64_add((_cntr)->cntr, 1); \
400 counter_u64_add((_cntr)->cntr + 1, _bytes); \
411 counter_u64_zero((_cntr)->cntr); \
412 counter_u64_zero((_cntr)->cntr + 1); \
H A Dip_fw_sockopt.c195 rule->cntr = uma_zalloc_pcpu(V_ipfw_cntr_zone, M_WAITOK | M_ZERO); in ipfw_alloc_rule()
213 uma_zfree_pcpu(V_ipfw_cntr_zone, rule->cntr); in ipfw_free_rule()
387 export_cntr1_base(struct ip_fw *krule, struct ip_fw_bcounter *cntr) in export_cntr1_base() argument
391 cntr->size = sizeof(*cntr); in export_cntr1_base()
393 if (krule->cntr != NULL) { in export_cntr1_base()
394 cntr->pcnt = counter_u64_fetch(krule->cntr); in export_cntr1_base()
395 cntr->bcnt = counter_u64_fetch(krule->cntr + 1); in export_cntr1_base()
396 cntr->timestamp = krule->timestamp; in export_cntr1_base()
398 if (cntr->timestamp > 0) { in export_cntr1_base()
400 cntr->timestamp += boottime.tv_sec; in export_cntr1_base()
[all …]
/freebsd/sbin/ipfw/
H A Dipfw2.c2391 struct buf_pr *bp, struct ip_fw_rule *rule, struct ip_fw_bcounter *cntr) in show_static_rule() argument
2414 if (cntr != NULL) { in show_static_rule()
2417 pr_u64(bp, &cntr->pcnt, fo->pcwidth); in show_static_rule()
2418 pr_u64(bp, &cntr->bcnt, fo->bcwidth); in show_static_rule()
2423 bprintf(bp, "%10u ", cntr->timestamp); in show_static_rule()
2433 if (cntr->timestamp > 0) { in show_static_rule()
2434 t = _long_to_time(cntr->timestamp); in show_static_rule()
2856 struct ip_fw_bcounter *cntr; in prepare_format_opts() local
2864 cntr = (struct ip_fw_bcounter *)(rtlv + 1); in prepare_format_opts()
2865 r = (struct ip_fw_rule *)((caddr_t)cntr + cntr->size); in prepare_format_opts()
[all …]
/freebsd/sys/dev/bxe/
H A Decore_hsi.h9409 uint16_t cntr /* CQ pending completion counter */; member
9413 uint16_t cntr /* CQ pending completion counter */;
/freebsd/share/misc/
H A Dusb_vendors21522 cb72 ben-wpan, cntr