| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_ring.c | 236 unsigned int total_bytes; in intel_ring_begin() local 242 total_bytes = bytes + rq->reserved_space; in intel_ring_begin() 243 GEM_BUG_ON(total_bytes > ring->effective_size); in intel_ring_begin() 245 if (unlikely(total_bytes > remain_usable)) { in intel_ring_begin() 254 total_bytes += remain_actual; in intel_ring_begin() 263 total_bytes = rq->reserved_space + remain_actual; in intel_ring_begin() 267 if (unlikely(total_bytes > ring->space)) { in intel_ring_begin() 283 total_bytes); in intel_ring_begin()
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_txrx_common.h | 48 unsigned int total_bytes) in i40e_update_tx_stats() argument 51 tx_ring->stats.bytes += total_bytes; in i40e_update_tx_stats() 54 tx_ring->q_vector->tx.total_bytes += total_bytes; in i40e_update_tx_stats()
|
| H A D | i40e_xsk.c | 509 unsigned int *total_bytes) in i40e_xmit_pkt() argument 522 *total_bytes += desc->len; in i40e_xmit_pkt() 526 unsigned int *total_bytes) in i40e_xmit_pkt_batch() argument 544 *total_bytes += desc[i].len; in i40e_xmit_pkt_batch() 551 unsigned int *total_bytes) in i40e_fill_tx_hw_ring() argument 558 i40e_xmit_pkt_batch(xdp_ring, &descs[i], total_bytes); in i40e_fill_tx_hw_ring() 560 i40e_xmit_pkt(xdp_ring, &descs[i], total_bytes); in i40e_fill_tx_hw_ring() 583 unsigned int total_bytes = 0; in i40e_xmit_zc() local 591 i40e_fill_tx_hw_ring(xdp_ring, descs, nb_processed, &total_bytes); in i40e_xmit_zc() 596 &total_bytes); in i40e_xmit_zc() [all …]
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | papr-platform-dump.c | 150 u64 total_bytes; in papr_platform_dump_handle_read() local 195 total_bytes = (u64) (((u64)params->bytes_ret_hi << 32) | in papr_platform_dump_handle_read() 201 if (WARN(total_bytes > size, "possible write beyond end of work area")) in papr_platform_dump_handle_read() 205 total_bytes)) in papr_platform_dump_handle_read() 208 return total_bytes; in papr_platform_dump_handle_read()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_xsk.c | 711 unsigned int *total_bytes) in ice_xmit_pkt() argument 724 *total_bytes += desc->len; in ice_xmit_pkt() 737 unsigned int *total_bytes) in ice_xmit_pkt_batch() argument 755 *total_bytes += descs[i].len; in ice_xmit_pkt_batch() 772 unsigned int *total_bytes) in ice_fill_tx_hw_ring() argument 779 ice_xmit_pkt_batch(xdp_ring, xsk_pool, &descs[i], total_bytes); in ice_fill_tx_hw_ring() 781 ice_xmit_pkt(xdp_ring, xsk_pool, &descs[i], total_bytes); in ice_fill_tx_hw_ring() 795 unsigned int total_bytes = 0; in ice_xmit_zc() local 814 &total_bytes); in ice_xmit_zc() 819 nb_pkts - nb_processed, &total_bytes); in ice_xmit_zc() [all …]
|
| H A D | ice_txrx.c | 274 unsigned int total_bytes = 0, total_pkts = 0; in ice_clean_tx_irq() local 312 total_bytes += tx_buf->bytecount; in ice_clean_tx_irq() 370 ice_update_tx_ring_stats(tx_ring, total_pkts, total_bytes); in ice_clean_tx_irq() 371 netdev_tx_completed_queue(txring_txq(tx_ring), total_pkts, total_bytes); in ice_clean_tx_irq() 1092 u64 total_packets = 0, total_bytes = 0, pkts, bytes; in __ice_update_sample() local 1104 total_bytes += bytes; in __ice_update_sample() 1116 total_bytes += bytes; in __ice_update_sample() 1121 total_packets, total_bytes, sample); in __ice_update_sample()
|
| /linux/tools/testing/selftests/net/ |
| H A D | psock_tpacket.c | 97 static unsigned int total_packets, total_bytes; variable 247 total_bytes += ppd.v1->tp_h.tp_snaplen; in walk_v1_v2_rx() 253 total_bytes += ppd.v2->tp_h.tp_snaplen; in walk_v1_v2_rx() 276 fprintf(stderr, " %u pkts (%u bytes)", NUM_PACKETS, total_bytes >> 1); in walk_v1_v2_rx() 433 total_bytes += ppd.v1->tp_h.tp_snaplen; in walk_tx() 443 total_bytes += ppd.v2->tp_h.tp_snaplen; in walk_tx() 455 total_bytes += tx->tp_snaplen; in walk_tx() 572 total_bytes += bytes; in __v3_walk_block() 619 fprintf(stderr, " %u pkts (%u bytes)", NUM_PACKETS, total_bytes >> 1); in walk_v3_rx() 705 total_bytes = 0; in setup_ring()
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | igb_xsk.c | 345 unsigned int total_bytes = 0, total_packets = 0; in igb_clean_rx_irq_zc() local 406 total_bytes += size; in igb_clean_rx_irq_zc() 431 total_bytes += skb->len; in igb_clean_rx_irq_zc() 447 igb_update_rx_stats(q_vector, total_packets, total_bytes); in igb_clean_rx_irq_zc() 472 unsigned int total_bytes = 0; in igb_xmit_zc() local 513 total_bytes += descs[i].len; in igb_xmit_zc() 521 netdev_tx_sent_queue(txring_txq(tx_ring), total_bytes); in igb_xmit_zc()
|
| /linux/sound/drivers/ |
| H A D | pcmtest.c | 109 size_t total_bytes; // Total bytes read/written member 145 v_iter->total_bytes += by; in inc_buf_pos() 182 ch_num = (v_iter->total_bytes / v_iter->sample_bytes) % runtime->channels; in check_buf_block_i() 183 if (current_byte != patt_bufs[ch_num].buf[ch_pos_i(v_iter->total_bytes, in check_buf_block_i() 208 if (current_byte != patt_bufs[ch_num].buf[(v_iter->total_bytes / channels) in check_buf_block_ni() 248 patt_bufs[ch_num].buf[(v_iter->total_bytes / channels) in fill_block_pattern_n() 261 pos_in_ch = ch_pos_i(v_iter->total_bytes, runtime->channels, v_iter->sample_bytes); in fill_block_pattern_i() 411 v_iter->total_bytes = 0; in reset_buf_iterator()
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_main.c | 566 unsigned int total_bytes = 0, total_packets = 0; in fm10k_clean_rx_irq() local 609 total_bytes += fm10k_process_skb_fields(rx_ring, rx_desc, skb); in fm10k_clean_rx_irq() 625 rx_ring->stats.bytes += total_bytes; in fm10k_clean_rx_irq() 628 q_vector->rx.total_bytes += total_bytes; in fm10k_clean_rx_irq() 1184 unsigned int total_bytes = 0, total_packets = 0; in fm10k_clean_tx_irq() local 1213 total_bytes += tx_buffer->bytecount; in fm10k_clean_tx_irq() 1270 tx_ring->stats.bytes += total_bytes; in fm10k_clean_tx_irq() 1273 q_vector->tx.total_bytes += total_bytes; in fm10k_clean_tx_irq() 1307 total_packets, total_bytes); in fm10k_clean_tx_irq() 1350 avg_wire_size = ring_container->total_bytes / packets; in fm10k_update_itr() [all …]
|
| /linux/fs/btrfs/ |
| H A D | space-info.c | 394 space_info->total_bytes += block_group->length; in btrfs_add_bg_to_space_info() 530 return (space_info_used_bytes + bytes < space_info->total_bytes + avail); in check_can_overcommit() 608 if (used_after <= space_info->total_bytes || in btrfs_try_granting_tickets() 655 (s64)(info->total_bytes - btrfs_space_info_used(info, true)), in __btrfs_dump_space_info() 659 info->total_bytes, info->bytes_used, info->bytes_pinned, in __btrfs_dump_space_info() 979 if (space_info->total_bytes + avail < used) in btrfs_calc_reclaim_metadata_size() 980 to_reclaim += used - (space_info->total_bytes + avail); in btrfs_calc_reclaim_metadata_size() 1002 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim() 1055 if (used < space_info->total_bytes) in need_preemptive_reclaim() 1056 thresh += space_info->total_bytes - used; in need_preemptive_reclaim() [all …]
|
| H A D | file-item.c | 1138 u64 total_bytes = 0; in btrfs_insert_data_csums() local 1153 bytenr = sums->logical + total_bytes; in btrfs_insert_data_csums() 1239 tmp = sums->len - total_bytes; in btrfs_insert_data_csums() 1304 tmp = sums->len - total_bytes; in btrfs_insert_data_csums() 1327 ins_size = (u32)(sums->len - total_bytes) >> fs_info->sectorsize_bits; in btrfs_insert_data_csums() 1336 total_bytes += (ins_size << fs_info->sectorsize_bits); in btrfs_insert_data_csums() 1338 if (total_bytes < sums->len) { in btrfs_insert_data_csums()
|
| H A D | extent-io-tree.c | 1102 u64 total_bytes = 0; in btrfs_find_delalloc_range() local 1134 total_bytes += state->end - state->start + 1; in btrfs_find_delalloc_range() 1135 if (total_bytes >= max_bytes) in btrfs_find_delalloc_range() 1785 u64 total_bytes = 0; in btrfs_count_range_bits() local 1835 total_bytes += min(search_end, state->end) + 1 - in btrfs_count_range_bits() 1837 if (total_bytes >= max_bytes) in btrfs_count_range_bits() 1859 return total_bytes; in btrfs_count_range_bits()
|
| H A D | dev-replace.c | 198 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace() 199 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace() 300 device->total_bytes = btrfs_device_get_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev() 993 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); in btrfs_dev_replace_finishing()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | bpf_qdisc.c | 19 static const unsigned int total_bytes = 10 * 1024 * 1024; variable 43 err = send_recv_data(srv_fd, cli_fd, total_bytes); in do_test()
|
| H A D | bpf_tcp_ca.c | 20 static const unsigned int total_bytes = 10 * 1024 * 1024; variable 74 ASSERT_OK(send_recv_data(lfd, fd, total_bytes), "send_recv_data"); in do_test() 177 ASSERT_OK(send_recv_data(lfd, fd, total_bytes), "send_recv_data"); in test_dctcp()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | network_helpers.c | 727 int send_recv_data(int lfd, int fd, uint32_t total_bytes) in send_recv_data() argument 732 .bytes = total_bytes, in send_recv_data() 747 while (bytes < total_bytes && !READ_ONCE(arg.stop)) { in send_recv_data() 749 MIN(total_bytes - bytes, sizeof(batch)), 0); in send_recv_data() 759 if (bytes != total_bytes) { in send_recv_data() 760 log_err("recv %zd expected %u", bytes, total_bytes); in send_recv_data() 762 err = bytes > total_bytes ? -E2BIG : -EINTR; in send_recv_data()
|
| H A D | test_sockmap.c | 587 float total_bytes, txmsg_pop_total, txmsg_push_total; in msg_loop() local 608 total_bytes = (float)iov_length * (float)cnt; in msg_loop() 610 total_bytes *= (float)iov_count; in msg_loop() 612 txmsg_push_total = txmsg_end_push * (total_bytes / txmsg_apply); in msg_loop() 613 txmsg_pop_total = txmsg_pop * (total_bytes / txmsg_apply); in msg_loop() 618 total_bytes += txmsg_push_total; in msg_loop() 619 total_bytes -= txmsg_pop_total; in msg_loop() 627 while (s->bytes_recvd < total_bytes) { in msg_loop() 647 …r, "unexpected timeout: recved %zu/%f pop_total %f\n", s->bytes_recvd, total_bytes, txmsg_pop_tota… in msg_loop() 687 if (opt->check_recved_len && s->bytes_recvd > total_bytes) { in msg_loop() [all …]
|
| /linux/net/batman-adv/ |
| H A D | netlink.h | 23 u8 result, u32 test_time, u64 total_bytes,
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | testmode.c | 552 u16 total_bytes, num_segments; in ath10k_tm_cmd_tlv() local 576 total_bytes = buf_len; in ath10k_tm_cmd_tlv() 577 num_segments = total_bytes / MAX_WMI_UTF_LEN; in ath10k_tm_cmd_tlv() 602 ftm_cmd->seg_hdr.len = __cpu_to_le32(total_bytes); in ath10k_tm_cmd_tlv()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_txrx.c | 239 unsigned int total_bytes = 0, total_packets = 0; in iavf_clean_tx_irq() local 266 total_bytes += tx_buf->bytecount; in iavf_clean_tx_irq() 325 tx_ring->stats.bytes += total_bytes; in iavf_clean_tx_irq() 328 tx_ring->q_vector->tx.total_bytes += total_bytes; in iavf_clean_tx_irq() 348 total_packets, total_bytes); in iavf_clean_tx_irq() 509 bytes = rc->total_bytes; in iavf_update_itr() 660 rc->total_bytes = 0; in iavf_update_itr() 1484 rx_ring->q_vector->rx.total_bytes += total_rx_bytes; in iavf_clean_rx_irq()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 699 int ret, total_bytes = 0, info_type = 0; in copy_info_records_to_user() local 727 total_bytes += ret; in copy_info_records_to_user() 743 total_bytes += ret; in copy_info_records_to_user() 793 total_bytes += ret; in copy_info_records_to_user() 803 total_bytes += ret; in copy_info_records_to_user() 812 total_bytes += ret; in copy_info_records_to_user() 821 total_bytes += ret; in copy_info_records_to_user() 830 total_bytes += ret; in copy_info_records_to_user() 833 return total_bytes; in copy_info_records_to_user()
|
| /linux/drivers/dma/ |
| H A D | amba-pl08x.c | 1207 int num_llis, size_t *total_bytes) in prep_byte_width_lli() argument 1211 (*total_bytes) += len; in prep_byte_width_lli() 1264 size_t max_bytes_per_lli, total_bytes; in pl08x_fill_llis_for_desc() local 1285 total_bytes = 0; in pl08x_fill_llis_for_desc() 1382 num_llis++, &total_bytes); in pl08x_fill_llis_for_desc() 1441 total_bytes += lli_len; in pl08x_fill_llis_for_desc() 1452 bd.remainder, num_llis++, &total_bytes); in pl08x_fill_llis_for_desc() 1456 if (total_bytes != dsg->len) { in pl08x_fill_llis_for_desc() 1459 __func__, total_bytes, dsg->len); in pl08x_fill_llis_for_desc()
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_txrx.c | 573 u64 total_bytes = 0, total_packets = 0, ts_lost = 0; in fbnic_clean_twq0() local 620 total_bytes += FBNIC_XMIT_CB(skb)->bytecount; in fbnic_clean_twq0() 626 if (!total_bytes) in fbnic_clean_twq0() 639 netdev_tx_completed_queue(txq, total_packets, total_bytes); in fbnic_clean_twq0() 644 ring->stats.bytes += total_bytes; in fbnic_clean_twq0() 648 if (!netif_txq_completed_wake(txq, total_packets, total_bytes, in fbnic_clean_twq0() 661 u64 total_bytes = 0, total_packets = 0; in fbnic_clean_twq1() local 679 total_bytes += FIELD_GET(FBNIC_TWD_LEN_MASK, twd); in fbnic_clean_twq1() 688 if (!total_bytes) in fbnic_clean_twq1() 701 ring->stats.bytes += total_bytes; in fbnic_clean_twq1()
|
| /linux/tools/perf/ |
| H A D | builtin-timechart.c | 102 u64 total_bytes; 117 u64 total_bytes; 873 c->total_bytes += ret; in process_enter_write() 874 p->total_bytes += ret; in process_enter_write() 1267 bytes = c->total_bytes; in draw_process_bars() 1480 if (c->total_bytes >= threshold) { in write_svg_file() 101 u64 total_bytes; global() member 116 u64 total_bytes; global() member
|