| /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 | 526 unsigned int *total_bytes) in i40e_xmit_pkt_batch() argument 539 *total_bytes += desc->len; in i40e_xmit_pkt_batch() 543 unsigned int *total_bytes) in i40e_xmit_pkt_batch() 561 *total_bytes += desc[i].len; in i40e_fill_tx_hw_ring() 568 unsigned int *total_bytes) in i40e_set_rs_bit() 575 i40e_xmit_pkt_batch(xdp_ring, &descs[i], total_bytes); 577 i40e_xmit_pkt(xdp_ring, &descs[i], total_bytes); 600 unsigned int total_bytes = 0; in i40e_xmit_zc() 608 i40e_fill_tx_hw_ring(xdp_ring, descs, nb_processed, &total_bytes); 613 &total_bytes); in i40e_clean_xdp_tx_buffer() 509 i40e_xmit_pkt(struct i40e_ring * xdp_ring,struct xdp_desc * desc,unsigned int * total_bytes) i40e_xmit_pkt() argument 551 i40e_fill_tx_hw_ring(struct i40e_ring * xdp_ring,struct xdp_desc * descs,u32 nb_pkts,unsigned int * total_bytes) i40e_fill_tx_hw_ring() argument 583 unsigned int total_bytes = 0; i40e_xmit_zc() local [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 | 717 * @total_bytes: bytes accumulator that will be used for stats update in ice_xmit_pkt() 721 unsigned int *total_bytes) in ice_xmit_pkt() 734 *total_bytes += desc->len; in ice_xmit_pkt_batch() 742 * @total_bytes: bytes accumulator that will be used for stats update in ice_xmit_pkt_batch() 747 unsigned int *total_bytes) in ice_xmit_pkt_batch() 765 *total_bytes += descs[i].len; 777 * @total_bytes: bytes accumulator that will be used for stats update in ice_fill_tx_hw_ring() 782 unsigned int *total_bytes) in ice_fill_tx_hw_ring() 789 ice_xmit_pkt_batch(xdp_ring, xsk_pool, &descs[i], total_bytes); 791 ice_xmit_pkt(xdp_ring, xsk_pool, &descs[i], total_bytes); in ice_xmit_zc() 711 ice_xmit_pkt(struct ice_tx_ring * xdp_ring,struct xsk_buff_pool * xsk_pool,struct xdp_desc * desc,unsigned int * total_bytes) ice_xmit_pkt() argument 737 ice_xmit_pkt_batch(struct ice_tx_ring * xdp_ring,struct xsk_buff_pool * xsk_pool,struct xdp_desc * descs,unsigned int * total_bytes) ice_xmit_pkt_batch() argument 772 ice_fill_tx_hw_ring(struct ice_tx_ring * xdp_ring,struct xsk_buff_pool * xsk_pool,struct xdp_desc * descs,u32 nb_pkts,unsigned int * total_bytes) ice_fill_tx_hw_ring() argument 795 unsigned int total_bytes = 0; ice_xmit_zc() local [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() 1091 u64 total_packets = 0, total_bytes = 0, pkts, bytes; in __ice_update_sample() 1103 total_bytes += bytes; in __ice_update_sample() 1115 total_bytes += bytes; in __ice_update_sample() 1120 total_packets, total_bytes, sample); in __ice_update_sample() 1092 u64 total_packets = 0, total_bytes = 0, pkts, bytes; __ice_update_sample() local
|
| /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 | 128 size_t total_bytes; // Total bytes read/written 164 v_iter->total_bytes += by; 201 ch_num = (v_iter->total_bytes / v_iter->sample_bytes) % runtime->channels; in check_buf_block_ni() 202 if (current_byte != patt_bufs[ch_num].buf[ch_pos_i(v_iter->total_bytes, in check_buf_block_ni() 227 if (current_byte != patt_bufs[ch_num].buf[(v_iter->total_bytes / channels) in check_buf_block() 267 patt_bufs[ch_num].buf[(v_iter->total_bytes / channels) in fill_block_pattern_i() 280 pos_in_ch = ch_pos_i(v_iter->total_bytes, runtime->channels, v_iter->sample_bytes); in fill_block_pattern() 427 v_iter->total_bytes = 0; in snd_pcmtst_pcm_trigger() 109 size_t total_bytes; // Total bytes read/written global() member
|
| /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 | 32 * reservations we care about total_bytes - SUM(space_info->bytes_) when 85 * space_info->total_bytes. This loops through the ->priority_tickets and 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, 9 in need_preemptive_reclaim() [all...] |
| H A D | file-item.c | 1116 u64 total_bytes = 0; in find_next_csum_offset() 1131 bytenr = sums->logical + total_bytes; in btrfs_insert_data_csums() 1217 tmp = sums->len - total_bytes; in btrfs_insert_data_csums() 1282 tmp = sums->len - total_bytes; in btrfs_insert_data_csums() 1305 ins_size = (u32)(sums->len - total_bytes) >> fs_info->sectorsize_bits; in btrfs_insert_data_csums() 1314 total_bytes += (ins_size << fs_info->sectorsize_bits); in btrfs_insert_data_csums() 1316 if (total_bytes < sums->len) { in btrfs_insert_data_csums() 1138 u64 total_bytes = 0; btrfs_insert_data_csums() local
|
| 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() 302 device->total_bytes = btrfs_device_get_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev() 997 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 | 20 static const unsigned int total_bytes = 10 * 1024 * 1024; 44 err = send_recv_data(srv_fd, cli_fd, total_bytes); in do_test() 19 static const unsigned int total_bytes = 10 * 1024 * 1024; global() variable
|
| 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/Documentation/translations/zh_CN/admin-guide/mm/damon/ |
| H A D | usage.rst | 102 │ │ │ │ │ │ │ :ref:`tried_regions <sysfs_schemes_tried_regions_zh_CN>`/total_bytes 160 - ``update_schemes_tried_bytes``:只更新 ``.../tried_regions/total_bytes`` 532 该目录初始时有一个文件 ``total_bytes``。 535 ``kdamonds/<N>/state`` 文件时,DAMON 会更新 ``total_bytes`` 文件,使读取 542 更新 ``total_bytes`` 文件,而不会创建子目录。
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | network_helpers.c | 751 int send_recv_data(int lfd, int fd, uint32_t total_bytes) in send_recv_data() 756 .bytes = total_bytes, in send_recv_data() 770 /* recv total_bytes */ in send_recv_data() 771 while (bytes < total_bytes && !READ_ONCE(arg.stop)) { in send_recv_data() 773 MIN(total_bytes - bytes, sizeof(batch)), 0); in send_recv_data() 783 if (bytes != total_bytes) { in tc_prog_attach() 784 log_err("recv %zd expected %u", bytes, total_bytes); in tc_prog_attach() 786 err = bytes > total_bytes ? -E2BIG : -EINTR; in tc_prog_attach() 727 send_recv_data(int lfd,int fd,uint32_t total_bytes) send_recv_data() argument
|
| 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 | 574 u64 total_bytes = 0, total_packets = 0, ts_lost = 0; in fbnic_clean_twq0() 621 total_bytes += FBNIC_XMIT_CB(skb)->bytecount; in fbnic_clean_twq0() 627 if (!total_bytes) in fbnic_clean_twq0() 640 netdev_tx_completed_queue(txq, total_packets, total_bytes); in fbnic_clean_twq0() 645 ring->stats.bytes += total_bytes; in fbnic_clean_twq0() 649 if (!netif_txq_completed_wake(txq, total_packets, total_bytes, in fbnic_clean_twq0() 662 u64 total_bytes = 0, total_packets = 0; in fbnic_clean_twq1() 680 total_bytes += FIELD_GET(FBNIC_TWD_LEN_MASK, twd); in fbnic_clean_twq1() 689 if (!total_bytes) in fbnic_clean_twq1() 702 ring->stats.bytes += total_bytes; in fbnic_clean_twq1() 573 u64 total_bytes = 0, total_packets = 0, ts_lost = 0; fbnic_clean_twq0() local 661 u64 total_bytes = 0, total_packets = 0; fbnic_clean_twq1() local [all...] |