Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/media/platform/vivid/
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()
/Linux-v5.4/net/ipv4/
Dip_tunnel_core.c185 struct rtnl_link_stats64 *tot) in ip_tunnel_get_stats64() argument
189 netdev_stats_to_stats64(tot, &dev->stats); in ip_tunnel_get_stats64()
205 tot->rx_packets += rx_packets; in ip_tunnel_get_stats64()
206 tot->tx_packets += tx_packets; in ip_tunnel_get_stats64()
207 tot->rx_bytes += rx_bytes; in ip_tunnel_get_stats64()
208 tot->tx_bytes += tx_bytes; in ip_tunnel_get_stats64()
/Linux-v5.4/fs/nfsd/
Dnfssvc.c670 int tot = 0; in nfsd_set_nrthreads() local
683 tot = 0; in nfsd_set_nrthreads()
686 tot += nthreads[i]; in nfsd_set_nrthreads()
688 if (tot > NFSD_MAXSERVS) { in nfsd_set_nrthreads()
690 for (i = 0; i < n && tot > 0; i++) { in nfsd_set_nrthreads()
691 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
692 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
695 for (i = 0; i < n && tot > 0; i++) { in nfsd_set_nrthreads()
697 tot--; in nfsd_set_nrthreads()
/Linux-v5.4/drivers/net/
Dveth.c333 struct rtnl_link_stats64 *tot) in veth_get_stats64() argument
340 tot->tx_dropped = veth_stats_tx(&tx, dev); in veth_get_stats64()
341 tot->tx_bytes = tx.bytes; in veth_get_stats64()
342 tot->tx_packets = tx.packets; in veth_get_stats64()
345 tot->rx_dropped = rx.xdp_drops; in veth_get_stats64()
346 tot->rx_bytes = rx.xdp_bytes; in veth_get_stats64()
347 tot->rx_packets = rx.xdp_packets; in veth_get_stats64()
352 tot->rx_dropped += veth_stats_tx(&tx, peer); in veth_get_stats64()
353 tot->rx_bytes += tx.bytes; in veth_get_stats64()
354 tot->rx_packets += tx.packets; in veth_get_stats64()
[all …]
Dxen-netfront.c1096 struct rtnl_link_stats64 *tot) in xennet_get_stats64() argument
1119 tot->rx_packets += rx_packets; in xennet_get_stats64()
1120 tot->tx_packets += tx_packets; in xennet_get_stats64()
1121 tot->rx_bytes += rx_bytes; in xennet_get_stats64()
1122 tot->tx_bytes += tx_bytes; in xennet_get_stats64()
1125 tot->rx_errors = dev->stats.rx_errors; in xennet_get_stats64()
1126 tot->tx_dropped = dev->stats.tx_dropped; in xennet_get_stats64()
Dvirtio_net.c1717 struct rtnl_link_stats64 *tot) in virtnet_stats() argument
1741 tot->rx_packets += rpackets; in virtnet_stats()
1742 tot->tx_packets += tpackets; in virtnet_stats()
1743 tot->rx_bytes += rbytes; in virtnet_stats()
1744 tot->tx_bytes += tbytes; in virtnet_stats()
1745 tot->rx_dropped += rdrops; in virtnet_stats()
1748 tot->tx_dropped = dev->stats.tx_dropped; in virtnet_stats()
1749 tot->tx_fifo_errors = dev->stats.tx_fifo_errors; in virtnet_stats()
1750 tot->rx_length_errors = dev->stats.rx_length_errors; in virtnet_stats()
1751 tot->rx_frame_errors = dev->stats.rx_frame_errors; in virtnet_stats()
/Linux-v5.4/fs/xfs/libxfs/
Dxfs_dir2.h120 xfs_extlen_t tot);
126 xfs_extlen_t tot);
129 xfs_extlen_t tot);
/Linux-v5.4/Documentation/trace/
Dtracepoints.rst127 int tot = 0;
130 tot += calculate_nuggets();
132 trace_foo_bar(tot);
/Linux-v5.4/drivers/net/hyperv/
Dnetvsc_drv.c1158 struct netvsc_vf_pcpu_stats *tot) in netvsc_get_vf_stats() argument
1163 memset(tot, 0, sizeof(*tot)); in netvsc_get_vf_stats()
1179 tot->rx_packets += rx_packets; in netvsc_get_vf_stats()
1180 tot->tx_packets += tx_packets; in netvsc_get_vf_stats()
1181 tot->rx_bytes += rx_bytes; in netvsc_get_vf_stats()
1182 tot->tx_bytes += tx_bytes; in netvsc_get_vf_stats()
1183 tot->tx_dropped += stats->tx_dropped; in netvsc_get_vf_stats()
/Linux-v5.4/tools/perf/
Dbuiltin-c2c.c819 int tot = 0, st = 0; in percent_hitm() local
829 tot = total->rmt_hitm; in percent_hitm()
833 tot = total->lcl_hitm; in percent_hitm()
837 tot = total->tot_hitm; in percent_hitm()
842 p = tot ? (double) st / tot : 0; in percent_hitm()
908 static double percent(int st, int tot) in percent() argument
910 return tot ? 100. * (double) st / (double) tot : 0; in percent()
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_debugfs.c1042 uint64_t tot, totin, totout; in lpfc_debugfs_nvmestat_data() local
1155 tot = atomic_read(&tgtp->rcv_fcp_cmd_drop); in lpfc_debugfs_nvmestat_data()
1156 tot += atomic_read(&tgtp->xmt_fcp_release); in lpfc_debugfs_nvmestat_data()
1157 tot = atomic_read(&tgtp->rcv_fcp_cmd_in) - tot; in lpfc_debugfs_nvmestat_data()
1165 tot); in lpfc_debugfs_nvmestat_data()
1189 tot = cstat->io_cmpls; in lpfc_debugfs_nvmestat_data()
1190 totin += tot; in lpfc_debugfs_nvmestat_data()
1206 tot, ((data1 + data2 + data3) - tot)); in lpfc_debugfs_nvmestat_data()
1261 u64 tot, totin, totout; in lpfc_debugfs_scsistat_data() local
1275 tot = cstat->io_cmpls; in lpfc_debugfs_scsistat_data()
[all …]
Dlpfc_attr.c174 uint64_t totin, totout, tot; in lpfc_nvme_info_show() local
324 tot = atomic_read(&tgtp->rcv_fcp_cmd_drop); in lpfc_nvme_info_show()
325 tot += atomic_read(&tgtp->xmt_fcp_release); in lpfc_nvme_info_show()
326 tot = atomic_read(&tgtp->rcv_fcp_cmd_in) - tot; in lpfc_nvme_info_show()
334 tot); in lpfc_nvme_info_show()
476 tot = cstat->io_cmpls; in lpfc_nvme_info_show()
477 totin += tot; in lpfc_nvme_info_show()
542 u64 tot, totin, totout; in lpfc_scsi_stat_show() local
556 tot = cstat->io_cmpls; in lpfc_scsi_stat_show()
557 totin += tot; in lpfc_scsi_stat_show()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/igc/
Digc_hw.h261 u64 tot; member
/Linux-v5.4/drivers/mtd/nand/raw/
Dnandsim.c438 unsigned long deciles[10], decile_max[10], tot = 0; in nandsim_show() local
448 tot += wear; in nandsim_show()
466 avg = tot / wear_eb_count; in nandsim_show()
469 seq_printf(m, "Total numbers of erases: %lu\n", tot); in nandsim_show()
/Linux-v5.4/drivers/net/ethernet/intel/igb/
De1000_hw.h209 u64 tot; member
/Linux-v5.4/include/net/
Dip_tunnels.h277 struct rtnl_link_stats64 *tot);
/Linux-v5.4/drivers/net/ethernet/toshiba/
Dspider_net.c988 int tot = 0; in show_rx_chain() local
1033 tot ++; in show_rx_chain()
1038 "for a total of %d descrs\n", cnt, cstat, tot); in show_rx_chain()
/Linux-v5.4/drivers/gpu/drm/omapdrm/dss/
Ddsi.c4216 int bl, wc, pps, tot; in print_dsi_vm() local
4221 tot = bl + pps; in print_dsi_vm()
4230 bl, pps, tot, in print_dsi_vm()
4241 TO_DSI_T(tot)); in print_dsi_vm()
4248 int hact, bl, tot; in print_dispc_vm() local
4252 tot = hact + bl; in print_dispc_vm()
4261 bl, hact, tot, in print_dispc_vm()
4268 TO_DISPC_T(tot)); in print_dispc_vm()
/Linux-v5.4/drivers/video/fbdev/omap2/omapfb/dss/
Ddsi.c4320 int bl, wc, pps, tot; in print_dsi_vm() local
4325 tot = bl + pps; in print_dsi_vm()
4334 bl, pps, tot, in print_dsi_vm()
4345 TO_DSI_T(tot)); in print_dsi_vm()
4352 int hact, bl, tot; in print_dispc_vm() local
4356 tot = hact + bl; in print_dispc_vm()
4365 bl, hact, tot, in print_dispc_vm()
4372 TO_DISPC_T(tot)); in print_dispc_vm()
/Linux-v5.4/drivers/net/ethernet/intel/e1000e/
Dhw.h378 u64 tot; member
/Linux-v5.4/tools/perf/scripts/python/
Dexported-sql-viewer.py1564 tot = bsym_start + boff + 1 - sym_start - off
1565 if tot <= 0 or tot > 16384:
1575 buf_sz = tot + 16
1576 buf = create_string_buffer(tot + 16)
1581 while tot > 0:
1596 tot -= cnt
/Linux-v5.4/fs/
Dbuffer.c3356 int tot = 0; in recalc_bh_state() local
3362 tot += per_cpu(bh_accounting, i).nr; in recalc_bh_state()
3363 buffer_heads_over_limit = (tot > max_buffer_heads); in recalc_bh_state()
/Linux-v5.4/fs/ocfs2/dlm/
Ddlmrecovery.c144 int tot=0; in dlm_dispatch_work() local
151 tot++; in dlm_dispatch_work()
153 mlog(0, "%s: work thread has %d work items\n", dlm->name, tot); in dlm_dispatch_work()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_main.c1657 unsigned long tot = 0; in collect_sge_port_stats() local
1660 tot += adapter->sge.qs[i].port_stats[idx]; in collect_sge_port_stats()
1661 return tot; in collect_sge_port_stats()
/Linux-v5.4/drivers/mmc/core/
Dmmc_test.c586 uint64_t tot = bytes * count; in mmc_test_print_avg_rate() local
591 rate = mmc_test_rate(tot, &ts); in mmc_test_print_avg_rate()

12