Home
last modified time | relevance | path

Searched refs:total_bytes (Results 1 - 25 of 201) sorted by relevance

123456789

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_tcp_ca.c12 static const unsigned int total_bytes = 10 * 1024 * 1024; variable
68 while (bytes < total_bytes && !READ_ONCE(stop)) { in server()
70 min(total_bytes - bytes, sizeof(batch)), 0); in server()
80 CHECK(bytes != total_bytes, "send", "%zd != %u nr_sent:%zd errno:%d\n", in server()
81 bytes, total_bytes, nr_sent, errno); in server()
160 /* recv total_bytes */ in do_test()
161 while (bytes < total_bytes && !READ_ONCE(stop)) { in do_test()
163 min(total_bytes - bytes, sizeof(batch)), 0); in do_test()
171 CHECK(bytes != total_bytes, "recv", "%zd != %u nr_recv:%zd errno:%d\n", in do_test()
172 bytes, total_bytes, nr_rec in do_test()
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx_common.h41 * @total_bytes: total bytes sent
45 unsigned int total_bytes) in i40e_update_tx_stats()
48 tx_ring->stats.bytes += total_bytes; in i40e_update_tx_stats()
51 tx_ring->q_vector->tx.total_bytes += total_bytes; in i40e_update_tx_stats()
43 i40e_update_tx_stats(struct i40e_ring *tx_ring, unsigned int total_packets, unsigned int total_bytes) i40e_update_tx_stats() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx_common.h42 * @total_bytes: total bytes sent
46 unsigned int total_bytes) in i40e_update_tx_stats()
49 tx_ring->stats.bytes += total_bytes; in i40e_update_tx_stats()
52 tx_ring->q_vector->tx.total_bytes += total_bytes; in i40e_update_tx_stats()
44 i40e_update_tx_stats(struct i40e_ring *tx_ring, unsigned int total_packets, unsigned int total_bytes) i40e_update_tx_stats() argument
H A Di40e_xsk.c538 unsigned int *total_bytes) in i40e_xmit_pkt()
551 *total_bytes += desc->len; in i40e_xmit_pkt()
555 unsigned int *total_bytes) in i40e_xmit_pkt_batch()
572 *total_bytes += desc[i].len; in i40e_xmit_pkt_batch()
579 unsigned int *total_bytes) in i40e_fill_tx_hw_ring()
586 i40e_xmit_pkt_batch(xdp_ring, &descs[i], total_bytes); in i40e_fill_tx_hw_ring()
588 i40e_xmit_pkt(xdp_ring, &descs[i], total_bytes); in i40e_fill_tx_hw_ring()
611 unsigned int total_bytes = 0; in i40e_xmit_zc() local
619 i40e_fill_tx_hw_ring(xdp_ring, descs, nb_processed, &total_bytes); in i40e_xmit_zc()
624 &total_bytes); in i40e_xmit_zc()
537 i40e_xmit_pkt(struct i40e_ring *xdp_ring, struct xdp_desc *desc, unsigned int *total_bytes) i40e_xmit_pkt() argument
554 i40e_xmit_pkt_batch(struct i40e_ring *xdp_ring, struct xdp_desc *desc, unsigned int *total_bytes) i40e_xmit_pkt_batch() argument
578 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
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dintel_ring.c227 unsigned int total_bytes; in intel_ring_begin() local
233 total_bytes = bytes + rq->reserved_space; in intel_ring_begin()
234 GEM_BUG_ON(total_bytes > ring->effective_size); in intel_ring_begin()
236 if (unlikely(total_bytes > remain_usable)) { in intel_ring_begin()
245 total_bytes += remain_actual; in intel_ring_begin()
254 total_bytes = rq->reserved_space + remain_actual; in intel_ring_begin()
258 if (unlikely(total_bytes > ring->space)) { in intel_ring_begin()
274 total_bytes); in intel_ring_begin()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dspace-info.c25 * reservations we care about total_bytes - SUM(space_info->bytes_) when
78 * space_info->total_bytes. This loops through the ->priority_tickets and
259 u64 total_bytes, u64 bytes_used, in btrfs_update_space_info()
271 found->total_bytes += total_bytes; in btrfs_update_space_info()
272 found->disk_total += total_bytes * factor; in btrfs_update_space_info()
276 if (total_bytes > 0) in btrfs_update_space_info()
348 if (used + bytes < space_info->total_bytes + avail) in btrfs_can_overcommit()
384 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets()
423 (s64)(info->total_bytes in __btrfs_dump_space_info()
258 btrfs_update_space_info(struct btrfs_fs_info *info, u64 flags, u64 total_bytes, u64 bytes_used, u64 bytes_readonly, struct btrfs_space_info **space_info) btrfs_update_space_info() argument
[all...]
H A Dspace-info.h9 u64 total_bytes; /* total bytes in the space, member
121 u64 total_bytes, u64 bytes_used,
H A Dfile-item.c537 unsigned long total_bytes = 0; in btrfs_csum_one_bio() local
599 bytes_left = bio->bi_iter.bi_size - total_bytes; in btrfs_csum_one_bio()
613 + total_bytes; in btrfs_csum_one_bio()
626 total_bytes += fs_info->sectorsize; in btrfs_csum_one_bio()
854 u64 total_bytes = 0; in btrfs_csum_file_blocks() local
870 bytenr = sums->bytenr + total_bytes; in btrfs_csum_file_blocks()
971 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
996 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1023 ins_size = (u32)(sums->len - total_bytes) >> in btrfs_csum_file_blocks()
1033 total_bytes in btrfs_csum_file_blocks()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_tcp_ca.c21 static const unsigned int total_bytes = 10 * 1024 * 1024; variable
56 while (bytes < total_bytes && !READ_ONCE(stop)) { in server()
58 MIN(total_bytes - bytes, sizeof(batch)), 0); in server()
68 CHECK(bytes != total_bytes, "send", "%zd != %u nr_sent:%zd errno:%d\n", in server()
69 bytes, total_bytes, nr_sent, errno); in server()
148 /* recv total_bytes */ in do_test()
149 while (bytes < total_bytes && !READ_ONCE(stop)) { in do_test()
151 MIN(total_bytes - bytes, sizeof(batch)), 0); in do_test()
159 CHECK(bytes != total_bytes, "recv", "%zd != %u nr_recv:%zd errno:%d\n", in do_test()
160 bytes, total_bytes, nr_rec in do_test()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c988 * @total_bytes: bytes accumulator that will be used for stats update
991 unsigned int *total_bytes) in ice_xmit_pkt()
1004 *total_bytes += desc->len; in ice_xmit_pkt()
1011 * @total_bytes: bytes accumulator that will be used for stats update
1014 unsigned int *total_bytes) in ice_xmit_pkt_batch()
1031 *total_bytes += descs[i].len; in ice_xmit_pkt_batch()
1042 * @total_bytes: bytes accumulator that will be used for stats update
1045 u32 nb_pkts, unsigned int *total_bytes) in ice_fill_tx_hw_ring()
1052 ice_xmit_pkt_batch(xdp_ring, &descs[i], total_bytes); in ice_fill_tx_hw_ring()
1054 ice_xmit_pkt(xdp_ring, &descs[i], total_bytes); in ice_fill_tx_hw_ring()
990 ice_xmit_pkt(struct ice_tx_ring *xdp_ring, struct xdp_desc *desc, unsigned int *total_bytes) ice_xmit_pkt() argument
1013 ice_xmit_pkt_batch(struct ice_tx_ring *xdp_ring, struct xdp_desc *descs, unsigned int *total_bytes) ice_xmit_pkt_batch() argument
1044 ice_fill_tx_hw_ring(struct ice_tx_ring *xdp_ring, struct xdp_desc *descs, u32 nb_pkts, unsigned int *total_bytes) ice_fill_tx_hw_ring() argument
1067 unsigned int total_bytes = 0; ice_xmit_zc() local
[all...]
/kernel/linux/linux-6.6/sound/drivers/
H A Dpcmtest.c108 size_t total_bytes; // Total bytes read/written member
144 v_iter->total_bytes += by; in inc_buf_pos()
181 ch_num = (v_iter->total_bytes / v_iter->sample_bytes) % runtime->channels; in check_buf_block_i()
182 if (current_byte != patt_bufs[ch_num].buf[ch_pos_i(v_iter->total_bytes, in check_buf_block_i()
207 if (current_byte != patt_bufs[ch_num].buf[(v_iter->total_bytes / channels) in check_buf_block_ni()
247 patt_bufs[ch_num].buf[(v_iter->total_bytes / channels) in fill_block_pattern_n()
260 pos_in_ch = ch_pos_i(v_iter->total_bytes, runtime->channels, v_iter->sample_bytes); in fill_block_pattern_i()
410 v_iter->total_bytes = 0; in reset_buf_iterator()
/kernel/linux/linux-5.10/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 in setup_ring()
[all...]
/kernel/linux/linux-6.6/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 in setup_ring()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_xsk.c354 q_vector->rx.total_bytes += total_rx_bytes; in ixgbe_clean_rx_irq_zc()
452 unsigned int total_packets = 0, total_bytes = 0; in ixgbe_clean_xdp_tx_irq() local
465 total_bytes += tx_bi->bytecount; in ixgbe_clean_xdp_tx_irq()
491 tx_ring->stats.bytes += total_bytes; in ixgbe_clean_xdp_tx_irq()
494 q_vector->tx.total_bytes += total_bytes; in ixgbe_clean_xdp_tx_irq()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_xsk.c367 q_vector->rx.total_bytes += total_rx_bytes; in ixgbe_clean_rx_irq_zc()
465 unsigned int total_packets = 0, total_bytes = 0; in ixgbe_clean_xdp_tx_irq() local
478 total_bytes += tx_bi->bytecount; in ixgbe_clean_xdp_tx_irq()
504 tx_ring->stats.bytes += total_bytes; in ixgbe_clean_xdp_tx_irq()
507 q_vector->tx.total_bytes += total_bytes; in ixgbe_clean_xdp_tx_irq()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c572 unsigned int total_bytes = 0, total_packets = 0; in fm10k_clean_rx_irq() local
615 total_bytes += fm10k_process_skb_fields(rx_ring, rx_desc, skb); in fm10k_clean_rx_irq()
631 rx_ring->stats.bytes += total_bytes; in fm10k_clean_rx_irq()
634 q_vector->rx.total_bytes += total_bytes; in fm10k_clean_rx_irq()
1190 unsigned int total_bytes = 0, total_packets = 0; in fm10k_clean_tx_irq() local
1219 total_bytes += tx_buffer->bytecount; in fm10k_clean_tx_irq()
1276 tx_ring->stats.bytes += total_bytes; in fm10k_clean_tx_irq()
1279 q_vector->tx.total_bytes += total_bytes; in fm10k_clean_tx_irq()
1313 total_packets, total_bytes); fm10k_clean_tx_irq() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c567 unsigned int total_bytes = 0, total_packets = 0; in fm10k_clean_rx_irq() local
610 total_bytes += fm10k_process_skb_fields(rx_ring, rx_desc, skb); in fm10k_clean_rx_irq()
626 rx_ring->stats.bytes += total_bytes; in fm10k_clean_rx_irq()
629 q_vector->rx.total_bytes += total_bytes; in fm10k_clean_rx_irq()
1185 unsigned int total_bytes = 0, total_packets = 0; in fm10k_clean_tx_irq() local
1214 total_bytes += tx_buffer->bytecount; in fm10k_clean_tx_irq()
1271 tx_ring->stats.bytes += total_bytes; in fm10k_clean_tx_irq()
1274 q_vector->tx.total_bytes += total_bytes; in fm10k_clean_tx_irq()
1308 total_packets, total_bytes); fm10k_clean_tx_irq() local
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dspace-info.c29 * reservations we care about total_bytes - SUM(space_info->bytes_) when
82 * space_info->total_bytes. This loops through the ->priority_tickets and
310 found->total_bytes += block_group->length; in btrfs_add_bg_to_space_info()
394 if (used + bytes < space_info->total_bytes + avail) in btrfs_can_overcommit()
430 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets()
495 (s64)(info->total_bytes - btrfs_space_info_used(info, true)), in __btrfs_dump_space_info()
499 info->total_bytes, info->bytes_used, info->bytes_pinned, in __btrfs_dump_space_info()
831 if (space_info->total_bytes + avail < used) in btrfs_calc_reclaim_metadata_size()
832 to_reclaim += used - (space_info->total_bytes + avail); in btrfs_calc_reclaim_metadata_size()
845 thresh = mult_perc(space_info->total_bytes, 9 in need_preemptive_reclaim()
[all...]
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-microchip-core-qspi.c316 int total_bytes, cmd_bytes, frames, ctrl; in mchp_coreqspi_config_op() local
319 total_bytes = cmd_bytes + op->data.nbytes; in mchp_coreqspi_config_op()
348 cmd_bytes = total_bytes; in mchp_coreqspi_config_op()
350 frames = total_bytes & BYTESUPPER_MASK; in mchp_coreqspi_config_op()
352 frames = total_bytes & BYTESLOWER_MASK; in mchp_coreqspi_config_op()
/kernel/linux/linux-5.10/drivers/usb/host/
H A Dfhci-sched.c194 if (usb->actual_frame->total_bytes + len + PROTOCOL_OVERHEAD >= in add_packet()
197 "%d %d %d\n", usb->actual_frame->total_bytes, len, in add_packet()
231 usb->actual_frame->total_bytes += (len + PROTOCOL_OVERHEAD); in add_packet()
247 usb->actual_frame->total_bytes -= (len + PROTOCOL_OVERHEAD); in add_packet()
315 if (usb->actual_frame->total_bytes >= in scan_ed_list()
324 if (usb->actual_frame->total_bytes >= frame_part[list_type]) in scan_ed_list()
349 usb->actual_frame->total_bytes = 0; in rotate_frames()
369 if (usb->actual_frame->total_bytes == 0) { in fhci_schedule_transactions()
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dfhci-sched.c194 if (usb->actual_frame->total_bytes + len + PROTOCOL_OVERHEAD >= in add_packet()
197 "%d %d %d\n", usb->actual_frame->total_bytes, len, in add_packet()
231 usb->actual_frame->total_bytes += (len + PROTOCOL_OVERHEAD); in add_packet()
247 usb->actual_frame->total_bytes -= (len + PROTOCOL_OVERHEAD); in add_packet()
315 if (usb->actual_frame->total_bytes >= in scan_ed_list()
324 if (usb->actual_frame->total_bytes >= frame_part[list_type]) in scan_ed_list()
349 usb->actual_frame->total_bytes = 0; in rotate_frames()
369 if (usb->actual_frame->total_bytes == 0) { in fhci_schedule_transactions()
/kernel/linux/linux-6.6/net/batman-adv/
H A Dnetlink.h21 u8 result, u32 test_time, u64 total_bytes,

Completed in 24 milliseconds

123456789