Home
last modified time | relevance | path

Searched refs:get_stats (Results 1 – 24 of 24) sorted by relevance

/netbsd/usr.sbin/altq/altqstat/
H A Dqdisc_fifoq.c51 struct fifoq_getstats get_stats; in fifoq_stat_loop() local
58 strlcpy(get_stats.iface.fifoq_ifname, ifname, in fifoq_stat_loop()
59 sizeof(get_stats.iface.fifoq_ifname)); in fifoq_stat_loop()
66 if (ioctl(fd, FIFOQ_GETSTATS, &get_stats) < 0) in fifoq_stat_loop()
73 get_stats.q_len, get_stats.q_limit, get_stats.period); in fifoq_stat_loop()
75 (ull)get_stats.xmit_cnt.packets, in fifoq_stat_loop()
76 (ull)get_stats.xmit_cnt.bytes, in fifoq_stat_loop()
77 (ull)get_stats.drop_cnt.packets, in fifoq_stat_loop()
78 (ull)get_stats.drop_cnt.bytes); in fifoq_stat_loop()
80 rate2str(calc_rate(get_stats.xmit_cnt.bytes, in fifoq_stat_loop()
[all …]
H A Dqdisc_cdnr.c62 struct cdnr_get_stats get_stats; in cdnr_stat_loop() local
76 strlcpy(get_stats.iface.cdnr_ifname, ifname, in cdnr_stat_loop()
77 sizeof(get_stats.iface.cdnr_ifname)); in cdnr_stat_loop()
85 get_stats.nskip = 0; in cdnr_stat_loop()
86 get_stats.nelements = NELEMENTS; in cdnr_stat_loop()
87 get_stats.tce_stats = new; in cdnr_stat_loop()
89 if (ioctl(fd, CDNR_GETSTATS, &get_stats) < 0) in cdnr_stat_loop()
97 (ull)get_stats.cnts[TCACODE_PASS].packets, in cdnr_stat_loop()
98 (ull)get_stats.cnts[TCACODE_DROP].packets, in cdnr_stat_loop()
99 (ull)get_stats.cnts[TCACODE_MARK].packets, in cdnr_stat_loop()
[all …]
H A Dqdisc_hfsc.c57 struct hfsc_class_stats get_stats; in hfsc_stat_loop() local
67 strlcpy(get_stats.iface.hfsc_ifname, ifname, in hfsc_stat_loop()
68 sizeof(get_stats.iface.hfsc_ifname)); in hfsc_stat_loop()
79 get_stats.nskip = 0; in hfsc_stat_loop()
80 get_stats.nclasses = NCLASSES; in hfsc_stat_loop()
81 get_stats.stats = new; in hfsc_stat_loop()
83 if (ioctl(fd, HFSC_GETSTATS, &get_stats) < 0) in hfsc_stat_loop()
89 stattime = get_stats.cur_time; in hfsc_stat_loop()
90 machclk_freq = get_stats.machclk_freq; in hfsc_stat_loop()
93 get_stats.hif_classes, get_stats.hif_packets); in hfsc_stat_loop()
[all …]
H A Dqdisc_priq.c54 struct priq_class_stats get_stats; in priq_stat_loop() local
62 strlcpy(get_stats.iface.ifname, ifname, in priq_stat_loop()
63 sizeof(get_stats.iface.ifname)); in priq_stat_loop()
72 get_stats.stats = new; in priq_stat_loop()
73 get_stats.maxpri = PRIQ_MAXPRI; in priq_stat_loop()
74 if (ioctl(fd, PRIQ_GETSTATS, &get_stats) < 0) in priq_stat_loop()
82 for (i = get_stats.maxpri; i >= 0; i--) { in priq_stat_loop()
H A Dqdisc_cbq.c65 struct cbq_getstats get_stats; in cbq_stat_loop() local
73 strlcpy(get_stats.iface.cbq_ifacename, ifname, in cbq_stat_loop()
74 sizeof(get_stats.iface.cbq_ifacename)); in cbq_stat_loop()
82 get_stats.nclasses = NCLASSES; in cbq_stat_loop()
83 get_stats.stats = new; in cbq_stat_loop()
84 if (ioctl(fd, CBQ_GETSTATS, &get_stats) < 0) in cbq_stat_loop()
90 for (i=0; i<get_stats.nclasses; i++) { in cbq_stat_loop()
H A Dqdisc_jobs.c82 struct jobs_class_stats get_stats; in jobs_stat_loop() local
90 strlcpy(get_stats.iface.jobs_ifname, ifname, in jobs_stat_loop()
91 sizeof(get_stats.iface.jobs_ifname)); in jobs_stat_loop()
100 get_stats.stats = new; in jobs_stat_loop()
101 get_stats.maxpri = JOBS_MAXPRI; in jobs_stat_loop()
102 if (ioctl(fd, JOBS_GETSTATS, &get_stats) < 0) in jobs_stat_loop()
111 for (i = get_stats.maxpri; i >= 0; i--) { in jobs_stat_loop()
/netbsd/external/bsd/libpcap/dist/
H A Dpcap-dos.c389 if (!dev->get_stats || (stats = (*dev->get_stats)(dev)) == NULL) in pcap_stats_dos()
416 if (!dev || !dev->get_stats) in pcap_stats_ex()
429 memcpy (se, (*dev->get_stats)(dev), sizeof(*se)); in pcap_stats_ex()
1171 dev->get_stats = pkt_stats; in pkt_probe()
1226 dev->get_stats = ndis_stats; in ndis_probe()
H A Dpcap-dos.h160 void *(*get_stats)(struct device *dev); member
/netbsd/sys/netbt/
H A Dhci_ioctl.c282 (*unit->hci_if->get_stats)(unit->hci_dev, &btr->btr_stats, 0); in hci_ioctl_pcb()
292 (*unit->hci_if->get_stats)(unit->hci_dev, &btr->btr_stats, 1); in hci_ioctl_pcb()
H A Dhci_unit.c94 KASSERT(hci_if->get_stats != NULL); in hci_attach_pcb()
H A Dhci.h2511 void (*get_stats)(device_t, struct bt_stats *, int); member
/netbsd/external/bsd/unbound/dist/testdata/stat_values.tdir/
H A Dstat_values.test57 get_stats () {
129 get_stats
/netbsd/sys/dev/sdmmc/
H A Dsbt.c134 .get_stats = sbt_stats,
/netbsd/sys/dev/bluetooth/
H A Dbtuart.c127 .get_stats = btuart_stats,
H A Dbcsp.c215 .get_stats = bcsp_stats,
H A Dbth5.c220 .get_stats = bth5_stats,
/netbsd/sys/dev/pci/
H A Dif_aq.c1280 int (*get_stats)(struct aq_softc *, aq_hw_stats_s_t *); member
1547 .get_stats = fw1x_get_stats,
1558 .get_stats = fw2x_get_stats,
1569 .get_stats = aq2_fw_get_stats,
1995 if (sc->sc_fw_ops != NULL && sc->sc_fw_ops->get_stats != NULL && in aq_attach()
1996 sc->sc_fw_ops->get_stats(sc, &sc->sc_statistics[0]) == 0) { in aq_attach()
4579 if (sc->sc_fw_ops->get_stats(sc, &sc->sc_statistics[cur]) != 0) in aq_update_statistics()
/netbsd/sys/dev/pcmcia/
H A Dbt3c.c157 .get_stats = bt3c_stats,
H A Dbtbc.c136 .get_stats = btbc_stats,
/netbsd/external/cddl/osnet/dist/lib/libzfs/common/
H A Dlibzfs_dataset.c383 get_stats(zfs_handle_t *zhp) in get_stats() function
404 (void) get_stats(zhp); in zfs_refresh_properties()
1717 (void) get_stats(zhp); in zfs_prop_set_list()
1827 (void) get_stats(zhp); in zfs_prop_inherit()
/netbsd/external/gpl3/gcc/dist/gcc/
H A Dgenrecog.c2138 get_stats (state *s) in get_stats() function
2148 stats for_trans = get_stats (trans->to); in get_stats()
2237 stats st = get_stats (root); in optimize_subroutine_group()
H A Dgenrecog.cc2136 get_stats (state *s) in get_stats() function
2146 stats for_trans = get_stats (trans->to); in get_stats()
2235 stats st = get_stats (root); in optimize_subroutine_group()
/netbsd/external/gpl3/gcc.old/dist/gcc/
H A Dgenrecog.c2138 get_stats (state *s) in get_stats() function
2148 stats for_trans = get_stats (trans->to); in get_stats()
2237 stats st = get_stats (root); in optimize_subroutine_group()
/netbsd/sys/dev/usb/
H A Dubt.c282 .get_stats = ubt_stats,