Home
last modified time | relevance | path

Searched refs:tot (Results 1 – 25 of 34) sorted by relevance

12

/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_inq.c353 ssize_t ret, tot; in process_one_client() local
417 tot = 0; in process_one_client()
424 tot += ret; in process_one_client()
428 if (tcp_inq > expect_len - tot) in process_one_client()
430 tcp_inq, expect_len - tot, (int)expect_len); in process_one_client()
432 assert(tcp_inq <= expect_len - tot); in process_one_client()
433 } while ((size_t)tot < expect_len); in process_one_client()
/linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/
H A Dnpc.c2863 int tot = 0, rc; in npc_subbank_ref_alloc() local
2879 start, stop, tot, count, rc); in npc_subbank_ref_alloc()
2932 count - tot, mcam_idx + tot, in npc_subbank_ref_alloc()
2933 count - tot, max_alloc, in npc_subbank_ref_alloc()
2936 tot += alloc_cnt; in npc_subbank_ref_alloc()
2939 __func__, tot, alloc_cnt); in npc_subbank_ref_alloc()
2941 if (!rc && count == tot) in npc_subbank_ref_alloc()
2950 rc = npc_idx_free(rvu, mcam_idx, tot, false); in npc_subbank_ref_alloc()
2954 __func__, tot); in npc_subbank_ref_alloc()
2993 int tot = 0, rc; in npc_subbank_noref_alloc() local
[all …]
/linux/drivers/net/ethernet/alibaba/eea/
H A Deea_net.c359 static void eea_stats(struct net_device *netdev, struct rtnl_link_stats64 *tot) in eea_stats() argument
381 tot->rx_packets += packets; in eea_stats()
382 tot->rx_bytes += bytes; in eea_stats()
383 tot->rx_dropped += drop; in eea_stats()
384 tot->rx_length_errors += lerr; in eea_stats()
385 tot->rx_errors += lerr; in eea_stats()
401 tot->tx_packets += packets; in eea_stats()
402 tot->tx_bytes += bytes; in eea_stats()
403 tot->tx_dropped += drop; in eea_stats()
/linux/fs/nfsd/
H A Dnfssvc.c689 int tot = 0; in nfsd_set_nrthreads() local
706 tot = 0; in nfsd_set_nrthreads()
709 tot += nthreads[i]; in nfsd_set_nrthreads()
711 if (tot > NFSD_MAXSERVS) { in nfsd_set_nrthreads()
713 for (i = 0; i < n && tot > 0; i++) { in nfsd_set_nrthreads()
714 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
715 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
718 for (i = 0; i < n && tot > 0; i++) { in nfsd_set_nrthreads()
720 tot--; in nfsd_set_nrthreads()
/linux/fs/xfs/libxfs/
H A Dxfs_dir2.h65 xfs_extlen_t tot);
71 xfs_extlen_t tot);
74 xfs_extlen_t tot);
/linux/drivers/net/
H A Dveth.c453 struct rtnl_link_stats64 *tot) in veth_get_stats64() argument
459 tot->tx_dropped = atomic64_read(&priv->dropped); in veth_get_stats64()
460 dev_fetch_sw_netstats(tot, dev->tstats); in veth_get_stats64()
463 tot->tx_dropped += rx.xdp_tx_err; in veth_get_stats64()
464 tot->rx_dropped = rx.rx_drops + rx.peer_tq_xdp_xmit_err; in veth_get_stats64()
465 tot->rx_bytes += rx.xdp_bytes; in veth_get_stats64()
466 tot->rx_packets += rx.xdp_packets; in veth_get_stats64()
474 tot->rx_bytes += tot_peer.tx_bytes; in veth_get_stats64()
475 tot->rx_packets += tot_peer.tx_packets; in veth_get_stats64()
478 tot in veth_get_stats64()
[all...]
H A Dxen-netfront.c1400 struct rtnl_link_stats64 *tot) in xennet_get_stats64()
1423 tot->rx_packets += rx_packets; in xennet_release_tx_bufs()
1424 tot->tx_packets += tx_packets; in xennet_release_tx_bufs()
1425 tot->rx_bytes += rx_bytes; in xennet_release_tx_bufs()
1426 tot->tx_bytes += tx_bytes; in xennet_release_tx_bufs()
1429 tot->rx_errors = dev->stats.rx_errors; in xennet_release_tx_bufs()
1430 tot->tx_dropped = dev->stats.tx_dropped; in xennet_release_tx_bufs()
1390 xennet_get_stats64(struct net_device * dev,struct rtnl_link_stats64 * tot) xennet_get_stats64() argument
H A Dvirtio_net.c3676 struct rtnl_link_stats64 *tot) in virtnet_stats()
3701 tot->rx_packets += rpackets; in virtnet_stats()
3702 tot->tx_packets += tpackets; in virtnet_stats()
3703 tot->rx_bytes += rbytes; in virtnet_stats()
3704 tot->tx_bytes += tbytes; in virtnet_stats()
3705 tot->rx_dropped += rdrops; in virtnet_stats()
3706 tot->tx_errors += terrors; in virtnet_stats()
3709 tot->tx_dropped = DEV_STATS_READ(dev, tx_dropped); in virtnet_stats()
3710 tot->tx_fifo_errors = DEV_STATS_READ(dev, tx_fifo_errors); in virtnet_stats()
3711 tot in virtnet_stats()
3674 virtnet_stats(struct net_device * dev,struct rtnl_link_stats64 * tot) virtnet_stats() argument
[all...]
/linux/Documentation/trace/
H A Dtracepoints.rst127 int tot = 0;
130 tot += calculate_nuggets();
132 trace_foo_bar_tp(tot);
/linux/tools/perf/
H A Dbuiltin-c2c.c794 int tot = 0, st = 0; in tot_loads_cmp()
804 tot = total->rmt_hitm; in tot_loads_cmp()
808 tot = total->lcl_hitm; in tot_loads_cmp()
812 tot = total->tot_hitm;
816 tot = total->tot_peer; in percent_color()
822 p = tot ? (double) st / tot : 0; in percent_color()
888 static double percent(u32 st, u32 tot)
890 return tot ? 100. * (double) st / (double) tot in percent_costly_snoop_color()
835 int tot = 0, st = 0; percent_costly_snoop() local
929 percent(u32 st,u32 tot) percent() argument
[all...]
H A Dbuiltin-kvm.c238 static double percent(u64 st, u64 tot) in percent()
240 return tot ? 100. * (double) st / (double) tot : 0;
236 percent(u64 st,u64 tot) percent() argument
/linux/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py73 tot = 0
76 return tot
77 tot += 1
78 return tot
82 tot = 0
85 return tot
86 tot += 1
87 return tot
/linux/drivers/net/hyperv/
H A Dnetvsc_drv.c1225 struct netvsc_vf_pcpu_stats *tot) in netvsc_get_vf_stats() argument
1230 memset(tot, 0, sizeof(*tot)); in netvsc_get_vf_stats()
1246 tot->rx_packets += rx_packets; in netvsc_get_vf_stats()
1247 tot->tx_packets += tx_packets; in netvsc_get_vf_stats()
1248 tot->rx_bytes += rx_bytes; in netvsc_get_vf_stats()
1249 tot->tx_bytes += tx_bytes; in netvsc_get_vf_stats()
1250 tot->tx_dropped += stats->tx_dropped; in netvsc_get_vf_stats()
/linux/drivers/scsi/lpfc/
H A Dlpfc_debugfs.c1034 uint64_t tot, totin, totout; in lpfc_debugfs_nvmestat_data() local
1147 tot = atomic_read(&tgtp->rcv_fcp_cmd_drop); in lpfc_debugfs_nvmestat_data()
1148 tot += atomic_read(&tgtp->xmt_fcp_release); in lpfc_debugfs_nvmestat_data()
1149 tot = atomic_read(&tgtp->rcv_fcp_cmd_in) - tot; in lpfc_debugfs_nvmestat_data()
1157 tot); in lpfc_debugfs_nvmestat_data()
1181 tot = cstat->io_cmpls; in lpfc_debugfs_nvmestat_data()
1182 totin += tot; in lpfc_debugfs_nvmestat_data()
1198 tot, ((data1 + data2 + data3) - tot)); in lpfc_debugfs_nvmestat_data()
1253 u64 tot, totin, totout; in lpfc_debugfs_scsistat_data() local
1268 tot = cstat->io_cmpls; in lpfc_debugfs_scsistat_data()
[all …]
H A Dlpfc_attr.c459 uint64_t totin, totout, tot; in lpfc_nvme_info_show() local
579 tot = atomic_read(&tgtp->rcv_fcp_cmd_drop); in lpfc_nvme_info_show()
580 tot += atomic_read(&tgtp->xmt_fcp_release); in lpfc_nvme_info_show()
581 tot = atomic_read(&tgtp->rcv_fcp_cmd_in) - tot; in lpfc_nvme_info_show()
589 tot); in lpfc_nvme_info_show()
704 tot = cstat->io_cmpls; in lpfc_nvme_info_show()
705 totin += tot; in lpfc_nvme_info_show()
753 u64 tot, totin, totout; in lpfc_scsi_stat_show() local
766 tot = cstat->io_cmpls; in lpfc_scsi_stat_show()
767 totin += tot; in lpfc_scsi_stat_show()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_transport.c12 #define ADF_PERCENT(tot, percent) (((tot) * (percent)) / 100) argument
/linux/tools/perf/scripts/python/
H A Dparallel-perf.py513 tot = 0
517 tot += cnt
540 interval = int(round(tot / divisor, 0))
/linux/drivers/net/ethernet/intel/igc/
H A Digc_hw.h256 u64 tot; member
/linux/drivers/mtd/nand/raw/
H A Dnandsim.c443 unsigned long deciles[10], decile_max[10], tot = 0; in ns_show() local
453 tot += wear; in ns_show()
471 avg = tot / wear_eb_count; in ns_show()
474 seq_printf(m, "Total numbers of erases: %lu\n", tot); in ns_show()
/linux/net/ipv4/
H A Dnexthop.c1014 size_t tot = nla_total_size(sz) + in nh_nlmsg_size_grp() local
1019 tot += nh_nlmsg_size_grp_res(nhg); in nh_nlmsg_size_grp()
1022 tot += nla_total_size(0) + /* NHA_GROUP_STATS */ in nh_nlmsg_size_grp()
1024 tot += nhg->num_nh * in nh_nlmsg_size_grp()
1030 tot += nhg->num_nh * in nh_nlmsg_size_grp()
1032 tot += nla_total_size(4); /* NHA_HW_STATS_USED */ in nh_nlmsg_size_grp()
1036 return tot; in nh_nlmsg_size_grp()
/linux/drivers/net/ethernet/intel/igb/
H A De1000_hw.h209 u64 tot; member
/linux/drivers/net/ethernet/intel/e1000e/
H A Dhw.h420 u64 tot; member
/linux/drivers/gpu/drm/bridge/
H A Dtc358768.c922 u32 tot = dsi_hfp + dsi_hsw + dsi_hss; in tc358768_bridge_atomic_pre_enable() local
924 dsi_hsw = tot / 3; in tc358768_bridge_atomic_pre_enable()
/linux/fs/
H A Dbuffer.c2860 int tot = 0; in recalc_bh_state() local
2866 tot += per_cpu(bh_accounting, i).nr; in recalc_bh_state()
2867 buffer_heads_over_limit = (tot > max_buffer_heads); in recalc_bh_state()
/linux/fs/ntfs3/
H A Dindex.c618 u32 tot = le32_to_cpu(hdr->total); in index_hdr_check() local
622 if (!IS_ALIGNED(off, 8) || tot > bytes || end > tot || in index_hdr_check()

12