Home
last modified time | relevance | path

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

1234

/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()
H A Di40e_xsk.c509 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/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/arch/powerpc/platforms/pseries/
H A Dpapr-platform-dump.c150 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 Dice_xsk.c711 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 Dice_txrx.c273 unsigned int total_bytes = 0, total_pkts = 0; in ice_clean_tx_irq() local
311 total_bytes += tx_buf->bytecount; in ice_clean_tx_irq()
369 ice_update_tx_ring_stats(tx_ring, total_pkts, total_bytes); in ice_clean_tx_irq()
370 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() local
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()
/linux/drivers/spi/
H A Dspi-microchip-core-qspi.c399 int total_bytes, cmd_bytes, frames, ctrl; in mchp_coreqspi_config_op() local
402 total_bytes = cmd_bytes + op->data.nbytes; in mchp_coreqspi_config_op()
431 cmd_bytes = total_bytes; in mchp_coreqspi_config_op()
433 frames = total_bytes & BYTESUPPER_MASK; in mchp_coreqspi_config_op()
435 frames = total_bytes & BYTESLOWER_MASK; in mchp_coreqspi_config_op()
599 u32 total_bytes = 0, cmd_bytes = 0, idle_cycles = 0; in mchp_coreqspi_prepare_message() local
624 total_bytes += t->len; in mchp_coreqspi_prepare_message()
628 cmd_bytes = total_bytes; in mchp_coreqspi_prepare_message()
646 frames = total_bytes & BYTESUPPER_MASK; in mchp_coreqspi_prepare_message()
648 frames = total_bytes & BYTESLOWER_MASK; in mchp_coreqspi_prepare_message()
/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/igb/
H A Digb_xsk.c345 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 Dpcmtest.c109 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 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/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/
H A Dia_css_sdis2.host.c37 unsigned int total_bytes = aligned_width * IA_CSS_DVS2_NUM_COEF_TYPES * in ia_css_sdis2_horicoef_vmem_encode() local
43 assert(total_bytes <= size); in ia_css_sdis2_horicoef_vmem_encode()
62 unsigned int total_bytes = aligned_height * IA_CSS_DVS2_NUM_COEF_TYPES * in ia_css_sdis2_vertcoef_vmem_encode() local
68 assert(total_bytes <= size); in ia_css_sdis2_vertcoef_vmem_encode()
/linux/fs/btrfs/
H A Dspace-info.c385 space_info->total_bytes += block_group->length; in btrfs_add_bg_to_space_info()
518 return (space_info_used_bytes + bytes < space_info->total_bytes + avail); in check_can_overcommit()
596 if (used_after <= space_info->total_bytes || in btrfs_try_granting_tickets()
643 (s64)(info->total_bytes - btrfs_space_info_used(info, true)), in __btrfs_dump_space_info()
647 info->total_bytes, info->bytes_used, info->bytes_pinned, in __btrfs_dump_space_info()
955 if (space_info->total_bytes + avail < used) in btrfs_calc_reclaim_metadata_size()
956 to_reclaim += used - (space_info->total_bytes + avail); in btrfs_calc_reclaim_metadata_size()
978 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim()
1031 if (used < space_info->total_bytes) in need_preemptive_reclaim()
1032 thresh += space_info->total_bytes - used; in need_preemptive_reclaim()
[all …]
H A Dfile-item.c1112 u64 total_bytes = 0; in btrfs_csum_file_blocks() local
1127 bytenr = sums->logical + total_bytes; in btrfs_csum_file_blocks()
1213 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1278 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1301 ins_size = (u32)(sums->len - total_bytes) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1310 total_bytes += ins_size * fs_info->sectorsize; in btrfs_csum_file_blocks()
1312 if (total_bytes < sums->len) { in btrfs_csum_file_blocks()
/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/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/
H A Dia_css_sdis.host.c41 unsigned int total_bytes = aligned_width * IA_CSS_DVS_NUM_COEF_TYPES * sizeof( in ia_css_sdis_horicoef_vmem_encode() local
49 assert(total_bytes <= size); in ia_css_sdis_horicoef_vmem_encode()
68 unsigned int total_bytes = aligned_height * IA_CSS_DVS_NUM_COEF_TYPES * in ia_css_sdis_vertcoef_vmem_encode() local
76 assert(total_bytes <= size); in ia_css_sdis_vertcoef_vmem_encode()
/linux/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c726 int send_recv_data(int lfd, int fd, uint32_t total_bytes) in send_recv_data() argument
731 .bytes = total_bytes, in send_recv_data()
746 while (bytes < total_bytes && !READ_ONCE(arg.stop)) { in send_recv_data()
748 MIN(total_bytes - bytes, sizeof(batch)), 0); in send_recv_data()
758 if (bytes != total_bytes) { in send_recv_data()
759 log_err("recv %zd expected %u", bytes, total_bytes); in send_recv_data()
761 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() local
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); in msg_loop()
778 if (opt->check_recved_len && s->bytes_recvd > total_bytes) { in msg_loop()
[all...]
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.c239 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 Dfanotify_user.c696 int ret, total_bytes = 0, info_type = 0; in copy_info_records_to_user() local
724 total_bytes += ret; in copy_info_records_to_user()
740 total_bytes += ret; in copy_info_records_to_user()
790 total_bytes += ret; in copy_info_records_to_user()
800 total_bytes += ret; in copy_info_records_to_user()
809 total_bytes += ret; in copy_info_records_to_user()
818 total_bytes += ret; in copy_info_records_to_user()
827 total_bytes += ret; in copy_info_records_to_user()
830 return total_bytes; in copy_info_records_to_user()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-pko.h243 uint64_t total_bytes:16; member
245 uint64_t total_bytes:16;
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_xsk.c462 unsigned int total_packets = 0, total_bytes = 0; in ixgbe_clean_xdp_tx_irq() local
475 total_bytes += tx_bi->bytecount; in ixgbe_clean_xdp_tx_irq()
500 total_bytes); in ixgbe_clean_xdp_tx_irq()
/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.h535 __le64 total_bytes;
593 __le64 total_bytes;
696 __le64 total_bytes;
528 __le64 total_bytes; global() member
586 __le64 total_bytes; global() member
689 __le64 total_bytes; global() member

1234