Home
last modified time | relevance | path

Searched refs:tot (Results 1 - 25 of 65) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/
H A Dvivid-vbi-gen.c71 unsigned tot = 0; in cc_insert() local
76 tot += cc[2 * i]; in cc_insert()
78 cc[14] = cc[15] = !(tot & 1); in cc_insert()
169 unsigned tot = 0; in calc_parity() local
172 tot += (val & (1 << i)) ? 1 : 0; in calc_parity()
173 return val | ((tot & 1) ? 0 : 0x80); in calc_parity()
/kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/
H A Dvivid-vbi-gen.c71 unsigned tot = 0; in cc_insert() local
76 tot += cc[2 * i]; in cc_insert()
78 cc[14] = cc[15] = !(tot & 1); in cc_insert()
169 unsigned tot = 0; in calc_parity() local
172 tot += (val & (1 << i)) ? 1 : 0; in calc_parity()
173 return val | ((tot & 1) ? 0 : 0x80); in calc_parity()
/kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/
H A Dmptcp_inq.c343 ssize_t ret, tot; in process_one_client() local
407 tot = 0; in process_one_client()
414 tot += ret; in process_one_client()
418 if (tcp_inq > expect_len - tot) in process_one_client()
420 tcp_inq, expect_len - tot, (int)expect_len); in process_one_client()
422 assert(tcp_inq <= expect_len - tot); in process_one_client()
423 } while ((size_t)tot < expect_len); in process_one_client()
/kernel/linux/linux-5.10/drivers/net/
H A Dveth.c365 struct rtnl_link_stats64 *tot) in veth_get_stats64()
372 tot->tx_dropped = veth_stats_tx(dev, &packets, &bytes); in veth_get_stats64()
373 tot->tx_bytes = bytes; in veth_get_stats64()
374 tot->tx_packets = packets; in veth_get_stats64()
377 tot->tx_dropped += rx.xdp_tx_err; in veth_get_stats64()
378 tot->rx_dropped = rx.rx_drops + rx.peer_tq_xdp_xmit_err; in veth_get_stats64()
379 tot->rx_bytes = rx.xdp_bytes; in veth_get_stats64()
380 tot->rx_packets = rx.xdp_packets; in veth_get_stats64()
386 tot->rx_bytes += bytes; in veth_get_stats64()
387 tot in veth_get_stats64()
364 veth_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *tot) veth_get_stats64() argument
[all...]
H A Dvirtio_net.c1842 struct rtnl_link_stats64 *tot) in virtnet_stats()
1866 tot->rx_packets += rpackets; in virtnet_stats()
1867 tot->tx_packets += tpackets; in virtnet_stats()
1868 tot->rx_bytes += rbytes; in virtnet_stats()
1869 tot->tx_bytes += tbytes; in virtnet_stats()
1870 tot->rx_dropped += rdrops; in virtnet_stats()
1873 tot->tx_dropped = dev->stats.tx_dropped; in virtnet_stats()
1874 tot->tx_fifo_errors = dev->stats.tx_fifo_errors; in virtnet_stats()
1875 tot->rx_length_errors = dev->stats.rx_length_errors; in virtnet_stats()
1876 tot in virtnet_stats()
1841 virtnet_stats(struct net_device *dev, struct rtnl_link_stats64 *tot) virtnet_stats() argument
[all...]
H A Dxen-netfront.c1387 struct rtnl_link_stats64 *tot) in xennet_get_stats64()
1410 tot->rx_packets += rx_packets; in xennet_get_stats64()
1411 tot->tx_packets += tx_packets; in xennet_get_stats64()
1412 tot->rx_bytes += rx_bytes; in xennet_get_stats64()
1413 tot->tx_bytes += tx_bytes; in xennet_get_stats64()
1416 tot->rx_errors = dev->stats.rx_errors; in xennet_get_stats64()
1417 tot->tx_dropped = dev->stats.tx_dropped; in xennet_get_stats64()
1386 xennet_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *tot) xennet_get_stats64() argument
/kernel/linux/linux-5.10/fs/nfsd/
H A Dnfssvc.c717 int tot = 0; in nfsd_set_nrthreads() local
730 tot = 0; in nfsd_set_nrthreads()
733 tot += nthreads[i]; in nfsd_set_nrthreads()
735 if (tot > NFSD_MAXSERVS) { in nfsd_set_nrthreads()
737 for (i = 0; i < n && tot > 0; i++) { in nfsd_set_nrthreads()
738 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
739 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
742 for (i = 0; i < n && tot > 0; i++) { in nfsd_set_nrthreads()
744 tot--; in nfsd_set_nrthreads()
/kernel/linux/linux-6.6/fs/nfsd/
H A Dnfssvc.c730 int tot = 0; in nfsd_set_nrthreads() local
743 tot = 0; in nfsd_set_nrthreads()
746 tot += nthreads[i]; in nfsd_set_nrthreads()
748 if (tot > NFSD_MAXSERVS) { in nfsd_set_nrthreads()
750 for (i = 0; i < n && tot > 0; i++) { in nfsd_set_nrthreads()
751 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
752 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
755 for (i = 0; i < n && tot > 0; i++) { in nfsd_set_nrthreads()
757 tot--; in nfsd_set_nrthreads()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_dir2.h43 xfs_extlen_t tot);
49 xfs_extlen_t tot);
52 xfs_extlen_t tot);
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_dir2.h43 xfs_extlen_t tot);
49 xfs_extlen_t tot);
52 xfs_extlen_t tot);
/kernel/linux/linux-6.6/drivers/net/
H A Dveth.c422 struct rtnl_link_stats64 *tot) in veth_get_stats64()
428 tot->tx_dropped = atomic64_read(&priv->dropped); in veth_get_stats64()
429 dev_fetch_sw_netstats(tot, dev->tstats); in veth_get_stats64()
432 tot->tx_dropped += rx.xdp_tx_err; in veth_get_stats64()
433 tot->rx_dropped = rx.rx_drops + rx.peer_tq_xdp_xmit_err; in veth_get_stats64()
434 tot->rx_bytes += rx.xdp_bytes; in veth_get_stats64()
435 tot->rx_packets += rx.xdp_packets; in veth_get_stats64()
443 tot->rx_bytes += tot_peer.tx_bytes; in veth_get_stats64()
444 tot->rx_packets += tot_peer.tx_packets; in veth_get_stats64()
447 tot in veth_get_stats64()
421 veth_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *tot) veth_get_stats64() argument
[all...]
H A Dxen-netfront.c1383 struct rtnl_link_stats64 *tot) in xennet_get_stats64()
1406 tot->rx_packets += rx_packets; in xennet_get_stats64()
1407 tot->tx_packets += tx_packets; in xennet_get_stats64()
1408 tot->rx_bytes += rx_bytes; in xennet_get_stats64()
1409 tot->tx_bytes += tx_bytes; in xennet_get_stats64()
1412 tot->rx_errors = dev->stats.rx_errors; in xennet_get_stats64()
1413 tot->tx_dropped = dev->stats.tx_dropped; in xennet_get_stats64()
1382 xennet_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *tot) xennet_get_stats64() argument
/kernel/linux/linux-6.6/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py68 tot = 0
71 return tot
72 tot += 1
73 return tot
77 tot = 0
80 return tot
81 tot += 1
82 return tot
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-c2c.c814 int tot = 0, st = 0; in percent_costly_snoop() local
824 tot = total->rmt_hitm; in percent_costly_snoop()
828 tot = total->lcl_hitm; in percent_costly_snoop()
832 tot = total->tot_hitm; in percent_costly_snoop()
836 tot = total->tot_peer; in percent_costly_snoop()
842 p = tot ? (double) st / tot : 0; in percent_costly_snoop()
908 static double percent(u32 st, u32 tot) in percent() argument
910 return tot ? 100. * (double) st / (double) tot in percent()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_ethtool.c756 u64 *totals, *tot; in fun_get_ethtool_stats() local
766 *data = (cnt); *tot++ += *data++; \ in fun_get_ethtool_stats()
773 tot = totals; in fun_get_ethtool_stats()
799 tot = totals; in fun_get_ethtool_stats()
814 tot = totals; in fun_get_ethtool_stats()
/kernel/linux/linux-5.10/tools/perf/
H A Dbuiltin-c2c.c786 int tot = 0, st = 0; in percent_hitm() local
796 tot = total->rmt_hitm; in percent_hitm()
800 tot = total->lcl_hitm; in percent_hitm()
804 tot = total->tot_hitm; in percent_hitm()
809 p = tot ? (double) st / tot : 0; in percent_hitm()
875 static double percent(int st, int tot) in percent() argument
877 return tot ? 100. * (double) st / (double) tot : 0; in percent()
2572 const char *display = str ?: "tot"; in setup_display()
[all...]
/kernel/linux/linux-5.10/drivers/net/hyperv/
H A Dnetvsc_drv.c1272 struct netvsc_vf_pcpu_stats *tot) in netvsc_get_vf_stats()
1277 memset(tot, 0, sizeof(*tot)); in netvsc_get_vf_stats()
1293 tot->rx_packets += rx_packets; in netvsc_get_vf_stats()
1294 tot->tx_packets += tx_packets; in netvsc_get_vf_stats()
1295 tot->rx_bytes += rx_bytes; in netvsc_get_vf_stats()
1296 tot->tx_bytes += tx_bytes; in netvsc_get_vf_stats()
1297 tot->tx_dropped += stats->tx_dropped; in netvsc_get_vf_stats()
1271 netvsc_get_vf_stats(struct net_device *net, struct netvsc_vf_pcpu_stats *tot) netvsc_get_vf_stats() argument
/kernel/linux/linux-6.6/drivers/net/hyperv/
H A Dnetvsc_drv.c1257 struct netvsc_vf_pcpu_stats *tot) in netvsc_get_vf_stats()
1262 memset(tot, 0, sizeof(*tot)); in netvsc_get_vf_stats()
1278 tot->rx_packets += rx_packets; in netvsc_get_vf_stats()
1279 tot->tx_packets += tx_packets; in netvsc_get_vf_stats()
1280 tot->rx_bytes += rx_bytes; in netvsc_get_vf_stats()
1281 tot->tx_bytes += tx_bytes; in netvsc_get_vf_stats()
1282 tot->tx_dropped += stats->tx_dropped; in netvsc_get_vf_stats()
1256 netvsc_get_vf_stats(struct net_device *net, struct netvsc_vf_pcpu_stats *tot) netvsc_get_vf_stats() argument
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
H A Dlpfc_debugfs.c423 "tot:%d get:%d put:%d mt:%d " in lpfc_debugfs_commonxripools_data()
1040 uint64_t tot, totin, totout; in lpfc_debugfs_nvmestat_data() local
1153 tot = atomic_read(&tgtp->rcv_fcp_cmd_drop); in lpfc_debugfs_nvmestat_data()
1154 tot += atomic_read(&tgtp->xmt_fcp_release); in lpfc_debugfs_nvmestat_data()
1155 tot = atomic_read(&tgtp->rcv_fcp_cmd_in) - tot; in lpfc_debugfs_nvmestat_data()
1158 "IO_CTX: %08x WAIT: cur %08x tot %08x\n" in lpfc_debugfs_nvmestat_data()
1163 tot); in lpfc_debugfs_nvmestat_data()
1187 tot = cstat->io_cmpls; in lpfc_debugfs_nvmestat_data()
1188 totin += tot; in lpfc_debugfs_nvmestat_data()
1259 u64 tot, totin, totout; lpfc_debugfs_scsistat_data() local
[all...]
H A Dlpfc_attr.c171 uint64_t totin, totout, tot; in lpfc_nvme_info_show() local
320 tot = atomic_read(&tgtp->rcv_fcp_cmd_drop); in lpfc_nvme_info_show()
321 tot += atomic_read(&tgtp->xmt_fcp_release); in lpfc_nvme_info_show()
322 tot = atomic_read(&tgtp->rcv_fcp_cmd_in) - tot; in lpfc_nvme_info_show()
325 "IO_CTX: %08x WAIT: cur %08x tot %08x\n" in lpfc_nvme_info_show()
330 tot); in lpfc_nvme_info_show()
473 tot = cstat->io_cmpls; in lpfc_nvme_info_show()
474 totin += tot; in lpfc_nvme_info_show()
539 u64 tot, toti in lpfc_scsi_stat_show() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A Dadf_transport.c12 #define ADF_PERCENT(tot, percent) (((tot) * (percent)) / 100)
/kernel/linux/linux-6.6/drivers/scsi/lpfc/
H A Dlpfc_attr.c346 uint64_t totin, totout, tot; in lpfc_nvme_info_show() local
495 tot = atomic_read(&tgtp->rcv_fcp_cmd_drop); in lpfc_nvme_info_show()
496 tot += atomic_read(&tgtp->xmt_fcp_release); in lpfc_nvme_info_show()
497 tot = atomic_read(&tgtp->rcv_fcp_cmd_in) - tot; in lpfc_nvme_info_show()
500 "IO_CTX: %08x WAIT: cur %08x tot %08x\n" in lpfc_nvme_info_show()
505 tot); in lpfc_nvme_info_show()
648 tot = cstat->io_cmpls; in lpfc_nvme_info_show()
649 totin += tot; in lpfc_nvme_info_show()
712 u64 tot, toti in lpfc_scsi_stat_show() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
H A Digc_hw.h261 u64 tot; member
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/
H A Digc_hw.h249 u64 tot; member
/kernel/linux/linux-5.10/net/ipv4/
H A Dip_tunnel_core.c434 struct rtnl_link_stats64 *tot) in ip_tunnel_get_stats64()
436 netdev_stats_to_stats64(tot, &dev->stats); in ip_tunnel_get_stats64()
437 dev_fetch_sw_netstats(tot, dev->tstats); in ip_tunnel_get_stats64()
433 ip_tunnel_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *tot) ip_tunnel_get_stats64() argument

Completed in 48 milliseconds

123