Home
last modified time | relevance | path

Searched refs:total_bytes (Results 1 – 25 of 95) sorted by relevance

1234

/linux/drivers/staging/sm750fb/
H A Dddk750_hwi2c.c88 unsigned int total_bytes = 0; in hw_i2c_write_data() local
127 total_bytes += (count + 1); in hw_i2c_write_data()
131 return total_bytes; in hw_i2c_write_data()
153 unsigned int total_bytes = 0; in hw_i2c_read_data() local
192 total_bytes += (count + 1); in hw_i2c_read_data()
196 return total_bytes; in hw_i2c_read_data()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_ring.c236 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 Di40e_txrx_common.h48 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()
/linux/drivers/md/dm-vdo/
H A Dmemory-alloc.c91 size_t total_bytes = memory_stats.kmalloc_bytes + memory_stats.vmalloc_bytes; in update_peak_usage() local
93 if (total_bytes > memory_stats.peak_bytes) in update_peak_usage()
94 memory_stats.peak_bytes = total_bytes; in update_peak_usage()
419 u64 total_bytes; in vdo_report_memory_usage() local
428 total_bytes = kmalloc_bytes + vmalloc_bytes; in vdo_report_memory_usage()
437 (unsigned long long) total_bytes, (unsigned long long) peak_usage); in vdo_report_memory_usage()
/linux/tools/testing/selftests/net/
H A Dpsock_tpacket.c97 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/ice/
H A Dice_xsk.c988 unsigned int *total_bytes) in ice_xmit_pkt() argument
1001 *total_bytes += desc->len; in ice_xmit_pkt()
1014 unsigned int *total_bytes) in ice_xmit_pkt_batch() argument
1031 *total_bytes += descs[i].len; in ice_xmit_pkt_batch()
1048 unsigned int *total_bytes) in ice_fill_tx_hw_ring() argument
1055 ice_xmit_pkt_batch(xdp_ring, xsk_pool, &descs[i], total_bytes); in ice_fill_tx_hw_ring()
1057 ice_xmit_pkt(xdp_ring, xsk_pool, &descs[i], total_bytes); in ice_fill_tx_hw_ring()
1071 unsigned int total_bytes = 0; in ice_xmit_zc() local
1090 &total_bytes); in ice_xmit_zc()
1095 nb_pkts - nb_processed, &total_bytes); in ice_xmit_zc()
[all …]
H A Dice_txrx_lib.c269 int total_bytes = 0, total_pkts = 0; in ice_clean_xdp_irq() local
302 total_bytes += tx_buf->bytecount; in ice_clean_xdp_irq()
331 ice_update_tx_ring_stats(xdp_ring, total_pkts, total_bytes); in ice_clean_xdp_irq()
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c566 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 Dspace-info.c314 found->total_bytes += block_group->length; in btrfs_add_bg_to_space_info()
453 if (used + bytes < space_info->total_bytes + avail) in btrfs_can_overcommit()
489 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets()
554 (s64)(info->total_bytes - btrfs_space_info_used(info, true)), in __btrfs_dump_space_info()
558 info->total_bytes, info->bytes_used, info->bytes_pinned, in __btrfs_dump_space_info()
866 if (space_info->total_bytes + avail < used) in btrfs_calc_reclaim_metadata_size()
867 to_reclaim += used - (space_info->total_bytes + avail); in btrfs_calc_reclaim_metadata_size()
880 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim()
943 if (used < space_info->total_bytes) in need_preemptive_reclaim()
944 thresh += space_info->total_bytes - used; in need_preemptive_reclaim()
[all …]
H A Dfile-item.c1062 u64 total_bytes = 0; in btrfs_csum_file_blocks() local
1077 bytenr = sums->logical + total_bytes; in btrfs_csum_file_blocks()
1163 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1228 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1251 ins_size = (u32)(sums->len - total_bytes) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1260 total_bytes += ins_size * fs_info->sectorsize; in btrfs_csum_file_blocks()
1263 if (total_bytes < sums->len) { in btrfs_csum_file_blocks()
H A Daccessors.h126 static_assert(sizeof(u64) == sizeof_field(struct btrfs_dev_item, total_bytes)); in btrfs_device_total_bytes()
127 return btrfs_get_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes)); in btrfs_device_total_bytes()
133 static_assert(sizeof(u64) == sizeof_field(struct btrfs_dev_item, total_bytes)); in btrfs_set_device_total_bytes()
135 btrfs_set_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes), val); in btrfs_set_device_total_bytes()
152 total_bytes, 64);
802 total_bytes, 64);
873 total_bytes, 64);
H A Dbackref.h242 struct btrfs_data_container *init_data_container(u32 total_bytes);
243 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
H A Dextent-io-tree.c993 u64 total_bytes = 0; in btrfs_find_delalloc_range() local
1025 total_bytes += state->end - state->start + 1; in btrfs_find_delalloc_range()
1026 if (total_bytes >= max_bytes) in btrfs_find_delalloc_range()
1647 u64 total_bytes = 0; in count_range_bits() local
1697 total_bytes += min(search_end, state->end) + 1 - in count_range_bits()
1699 if (total_bytes >= max_bytes) in count_range_bits()
1721 return total_bytes; in count_range_bits()
/linux/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c676 int send_recv_data(int lfd, int fd, uint32_t total_bytes) in send_recv_data() argument
681 .bytes = total_bytes, in send_recv_data()
696 while (bytes < total_bytes && !READ_ONCE(arg.stop)) { in send_recv_data()
698 MIN(total_bytes - bytes, sizeof(batch)), 0); in send_recv_data()
708 if (bytes != total_bytes) { in send_recv_data()
709 log_err("recv %zd expected %u", bytes, total_bytes); in send_recv_data()
711 err = bytes > total_bytes ? -E2BIG : -EINTR; in send_recv_data()
H A Dtest_sockmap.c678 float total_bytes, txmsg_pop_total, txmsg_push_total; in msg_loop()
699 total_bytes = (float)iov_length * (float)cnt; in msg_loop()
701 total_bytes *= (float)iov_count; in msg_loop()
703 txmsg_push_total = txmsg_end_push * (total_bytes / txmsg_apply); in msg_loop()
704 txmsg_pop_total = txmsg_pop * (total_bytes / txmsg_apply); in msg_loop()
709 total_bytes += txmsg_push_total; in msg_loop()
710 total_bytes -= txmsg_pop_total; in msg_loop()
718 while (s->bytes_recvd < total_bytes) { in msg_loop()
738 fprintf(stderr, "unexpected timeout: recved %zu/%f pop_total %f\n", s->bytes_recvd, total_bytes, txmsg_pop_total);
778 if (opt->check_recved_len && s->bytes_recvd > total_bytes) { in sendmsg_test()
602 float total_bytes, txmsg_pop_total; msg_loop() local
[all...]
/linux/drivers/net/wireless/ath/ath11k/
H A Dtestmode.c399 u16 chunk_len, total_bytes, num_segments; in ath11k_tm_cmd_wmi_ftm() local
427 total_bytes = buf_len; in ath11k_tm_cmd_wmi_ftm()
428 num_segments = total_bytes / MAX_WMI_UTF_LEN; in ath11k_tm_cmd_wmi_ftm()
448 ftm_cmd->seg_hdr.len = total_bytes; in ath11k_tm_cmd_wmi_ftm()
/linux/drivers/scsi/qla2xxx/
H A Dqla_isr.c242 uint16_t no_bytes = 0, total_bytes = 0, pending_bytes = 0; in __qla_copy_purex_to_buffer() local
248 total_bytes = (le16_to_cpu(purex->frame_size) & 0x0FFF) in __qla_copy_purex_to_buffer()
255 tpad = roundup(total_bytes, 4); in __qla_copy_purex_to_buffer()
265 pending_bytes = total_bytes = tpad; in __qla_copy_purex_to_buffer()
279 while ((total_bytes > 0) && (entry_count_remaining > 0)) { in __qla_copy_purex_to_buffer()
299 if ((buffer_copy_offset + no_bytes) <= total_bytes) { in __qla_copy_purex_to_buffer()
310 total_bytes - buffer_copy_offset); in __qla_copy_purex_to_buffer()
321 total_bytes, entry_count_remaining); in __qla_copy_purex_to_buffer()
326 be32_to_cpu_array((u32 *)buf, (__be32 *)buf, total_bytes >> 2); in __qla_copy_purex_to_buffer()
861 uint16_t no_bytes = 0, total_bytes = 0, pending_bytes = 0; in qla27xx_copy_multiple_pkt() local
[all …]
/linux/drivers/media/common/b2c2/
H A Dflexcop-i2c.c46 int len = r100.tw_sm_c_100.total_bytes, in flexcop_i2c_read4()
91 int len = r100.tw_sm_c_100.total_bytes; /* remember total_bytes is buflen-1 */ in flexcop_i2c_write4()
141 r100.tw_sm_c_100.total_bytes = bytes_to_transfer - 1; in flexcop_i2c_request()
/linux/net/batman-adv/
H A Dnetlink.h21 u8 result, u32 test_time, u64 total_bytes,
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.c219 unsigned int total_bytes = 0, total_packets = 0; in iavf_clean_tx_irq() local
246 total_bytes += tx_buf->bytecount; in iavf_clean_tx_irq()
305 tx_ring->stats.bytes += total_bytes; in iavf_clean_tx_irq()
308 tx_ring->q_vector->tx.total_bytes += total_bytes; in iavf_clean_tx_irq()
328 total_packets, total_bytes); in iavf_clean_tx_irq()
489 bytes = rc->total_bytes; in iavf_update_itr()
640 rc->total_bytes = 0; in iavf_update_itr()
1251 rx_ring->q_vector->rx.total_bytes += total_rx_bytes; in iavf_clean_rx_irq()
/linux/drivers/gpu/drm/sprd/
H A Dsprd_dsi.c458 u32 total_bytes; in sprd_dsi_dpi_video() local
519 total_bytes = (vm->hactive + vm->hfront_porch) * in sprd_dsi_dpi_video()
523 if (total_bytes < bytes_per_chunk) { in sprd_dsi_dpi_video()
528 chunk_overhead = total_bytes - bytes_per_chunk; in sprd_dsi_dpi_video()
542 if (total_bytes >= (bytes_per_chunk * chunks)) { in sprd_dsi_dpi_video()
543 bytes_left = total_bytes - in sprd_dsi_dpi_video()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-pko.h243 uint64_t total_bytes:16; member
245 uint64_t total_bytes:16;
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_tcp_ca.c19 static const unsigned int total_bytes = 10 * 1024 * 1024; variable
73 ASSERT_OK(send_recv_data(lfd, fd, total_bytes), "send_recv_data"); in do_test()
172 ASSERT_OK(send_recv_data(lfd, fd, total_bytes), "send_recv_data"); in test_dctcp()
/linux/include/uapi/linux/
H A Dbtrfs_tree.h528 __le64 total_bytes; member
586 __le64 total_bytes; member
689 __le64 total_bytes; member
/linux/fs/notify/fanotify/
H A Dfanotify_user.c529 int ret, total_bytes = 0, info_type = 0; in copy_info_records_to_user() local
557 total_bytes += ret; in copy_info_records_to_user()
573 total_bytes += ret; in copy_info_records_to_user()
623 total_bytes += ret; in copy_info_records_to_user()
633 total_bytes += ret; in copy_info_records_to_user()
642 total_bytes += ret; in copy_info_records_to_user()
645 return total_bytes; in copy_info_records_to_user()

1234