/linux-6.12.1/drivers/net/ethernet/intel/libeth/ |
D | rx.c | 40 u32 max_len, u32 truesize) in libeth_rx_hw_len_truesize() argument 45 truesize = clamp(roundup_pow_of_two(truesize), roundup_pow_of_two(min), in libeth_rx_hw_len_truesize() 48 len = SKB_WITH_OVERHEAD(truesize - pp->offset); in libeth_rx_hw_len_truesize() 82 fq->truesize); in libeth_rx_page_pool_params() 92 fq->truesize = roundup_pow_of_two(SKB_HEAD_ALIGN(pp->offset + in libeth_rx_page_pool_params() 125 mtu = fq->truesize; in libeth_rx_page_pool_params_zc() 136 fq->truesize = fq->buf_len; in libeth_rx_page_pool_params_zc()
|
/linux-6.12.1/net/openvswitch/ |
D | openvswitch_trace.h | 26 __field( unsigned int, truesize ) 51 __entry->truesize = skb->truesize; 72 __entry->truesize, __entry->nr_frags, __entry->gso_size, 97 __field( unsigned int, truesize ) 121 __entry->truesize = skb->truesize; 141 __entry->truesize, __entry->nr_frags, __entry->gso_size,
|
/linux-6.12.1/sound/isa/sb/ |
D | emu8000_patch.c | 143 int truesize; in snd_emu8000_sample_new() local 152 truesize = sp->v.size; in snd_emu8000_sample_new() 154 truesize += sp->v.loopend - sp->v.loopstart; in snd_emu8000_sample_new() 156 truesize += BLANK_LOOP_SIZE; in snd_emu8000_sample_new() 158 sp->block = snd_util_mem_alloc(hdr, truesize * 2); in snd_emu8000_sample_new() 177 sp->v.truesize = truesize * 2; /* in bytes */ in snd_emu8000_sample_new()
|
/linux-6.12.1/sound/pci/emu10k1/ |
D | emu10k1_patch.c | 33 int truesize, size, blocksize; in snd_emu10k1_sample_new() local 59 truesize = sp->v.size + BLANK_HEAD_SIZE; in snd_emu10k1_sample_new() 61 truesize += BLANK_LOOP_SIZE; in snd_emu10k1_sample_new() 91 truesize += loop_size; in snd_emu10k1_sample_new() 99 blocksize = truesize << shift; in snd_emu10k1_sample_new() 108 sp->v.truesize = blocksize; in snd_emu10k1_sample_new()
|
/linux-6.12.1/net/atm/ |
D | atm_misc.c | 15 int atm_charge(struct atm_vcc *vcc, int truesize) in atm_charge() argument 17 atm_force_charge(vcc, truesize); in atm_charge() 20 atm_return(vcc, truesize); in atm_charge() 37 atomic_add(skb->truesize-guess, in atm_alloc_charge()
|
D | pppoatm.c | 195 atm_return(atmvcc, skb->truesize); in pppoatm_push() 325 !pppoatm_may_send(pvcc, n->truesize)) { in pppoatm_send() 335 } else if (!pppoatm_may_send(pvcc, skb->truesize)) in pppoatm_send() 340 if (!pppoatm_may_send(pvcc, skb->truesize)) in pppoatm_send()
|
/linux-6.12.1/include/net/libeth/ |
D | rx.h | 45 u32 truesize; member 77 u32 truesize; 104 buf->truesize = fq->truesize; in libeth_rx_alloc() 105 buf->page = page_pool_dev_alloc(fq->pp, &buf->offset, &buf->truesize); in libeth_rx_alloc()
|
/linux-6.12.1/net/ipv4/ |
D | inet_fragment.c | 281 sum += skb->truesize; in inet_frag_rbtree_purge() 466 orig_truesize = skb->truesize; in inet_frag_reasm_prepare() 499 delta = -head->truesize; in inet_frag_reasm_prepare() 505 delta += head->truesize; in inet_frag_reasm_prepare() 526 head->truesize += clone->truesize; in inet_frag_reasm_prepare() 529 add_frag_mem_limit(q->fqdir, clone->truesize); in inet_frag_reasm_prepare() 538 int ts_delta = head->truesize - orig_truesize; in inet_frag_reasm_prepare() 559 const unsigned int head_truesize = head->truesize; in inet_frag_reasm_finish() 572 sum_truesize = head->truesize; in inet_frag_reasm_finish() 583 sum_truesize += fp->truesize; in inet_frag_reasm_finish() [all …]
|
D | tcp_output.c | 1199 WARN_ON(refcount_sub_and_test(skb->truesize - 1, &sk->sk_wmem_alloc)); in tcp_wfree() 1374 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in __tcp_transmit_skb() 1501 sk_wmem_queued_add(sk, skb->truesize); in tcp_queue_skb() 1502 sk_mem_charge(sk, skb->truesize); in tcp_queue_skb() 1638 sk_wmem_queued_add(sk, buff->truesize); in tcp_fragment() 1639 sk_mem_charge(sk, buff->truesize); in tcp_fragment() 1641 buff->truesize += nlen; in tcp_fragment() 1642 skb->truesize -= nlen; in tcp_fragment() 1737 skb->truesize -= delta_truesize; in tcp_trim_head() 2173 sk_wmem_queued_add(sk, buff->truesize); in tso_fragment() [all …]
|
/linux-6.12.1/include/linux/ |
D | atmdev.h | 247 refcount_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc); in atm_account_tx() 248 ATM_SKB(skb)->acct_truesize = skb->truesize; in atm_account_tx() 252 static inline void atm_force_charge(struct atm_vcc *vcc,int truesize) in atm_force_charge() argument 254 atomic_add(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_force_charge() 258 static inline void atm_return(struct atm_vcc *vcc,int truesize) in atm_return() argument 260 atomic_sub(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_return() 288 int atm_charge(struct atm_vcc *vcc,int truesize);
|
/linux-6.12.1/include/net/ |
D | fq_impl.h | 17 unsigned int bytes, unsigned int truesize) in __fq_adjust_removal() argument 26 fq->memory_usage -= truesize; in __fq_adjust_removal() 44 __fq_adjust_removal(fq, flow, 1, skb->len, skb->truesize); in fq_adjust_removal() 66 unsigned int packets = 0, bytes = 0, truesize = 0; in fq_flow_drop() local 81 truesize += skb->truesize; in fq_flow_drop() 85 __fq_adjust_removal(fq, flow, packets, bytes, truesize); in fq_flow_drop() 223 fq->memory_usage += skb->truesize; in fq_tin_enqueue()
|
D | xdp.h | 227 unsigned int size, unsigned int truesize, in xdp_update_skb_shared_info() argument 234 skb->truesize += truesize; in xdp_update_skb_shared_info()
|
/linux-6.12.1/net/core/ |
D | gro.c | 154 delta_truesize = skb->truesize - new_truesize; in skb_gro_receive() 156 skb->truesize = new_truesize; in skb_gro_receive() 184 delta_truesize = skb->truesize - new_truesize; in skb_gro_receive() 185 skb->truesize = new_truesize; in skb_gro_receive() 194 delta_truesize = skb->truesize; in skb_gro_receive() 218 p->truesize += delta_truesize; in skb_gro_receive() 222 lp->truesize += delta_truesize; in skb_gro_receive() 248 p->truesize += skb->truesize; in skb_gro_receive_list()
|
D | datagram.c | 651 skb->truesize += PAGE_ALIGN(copied + start); in zerocopy_fill_skb_from_iter() 699 unsigned long orig_size = skb->truesize; in __zerocopy_sg_from_iter() 700 unsigned long truesize; in __zerocopy_sg_from_iter() local 708 truesize = skb->truesize - orig_size; in __zerocopy_sg_from_iter() 710 sk_wmem_queued_add(sk, truesize); in __zerocopy_sg_from_iter() 712 sk_mem_charge(sk, truesize); in __zerocopy_sg_from_iter() 714 refcount_add(truesize, &skb->sk->sk_wmem_alloc); in __zerocopy_sg_from_iter()
|
D | net_test.c | 182 skb->truesize += skb->data_len; in gso_test_func() 208 total_true_size += frag_skb->truesize; in gso_test_func() 213 skb->truesize += total_true_size; in gso_test_func()
|
D | skbuff.c | 378 skb->truesize = SKB_TRUESIZE(size); in __finalize_skb_around() 880 int off, int size, unsigned int truesize) in skb_add_rx_frag_netmem() argument 882 DEBUG_NET_WARN_ON_ONCE(size > truesize); in skb_add_rx_frag_netmem() 887 skb->truesize += truesize; in skb_add_rx_frag_netmem() 892 unsigned int truesize) in skb_coalesce_rx_frag() argument 896 DEBUG_NET_WARN_ON_ONCE(size > truesize); in skb_coalesce_rx_frag() 901 skb->truesize += truesize; in skb_coalesce_rx_frag() 933 u32 size, truesize, len, max_head_size, off; in skb_pp_cow_data() local 949 truesize = SKB_HEAD_ALIGN(size) + headroom; in skb_pp_cow_data() 950 data = page_pool_dev_alloc_va(pool, &truesize); in skb_pp_cow_data() [all …]
|
/linux-6.12.1/include/trace/events/ |
D | net.h | 185 __field( unsigned int, truesize ) 211 __entry->truesize = skb->truesize; 224 __entry->data_len, __entry->truesize,
|
D | sock.h | 80 __field(unsigned int, truesize) 86 __entry->truesize = skb->truesize; 91 __entry->rmem_alloc, __entry->truesize, __entry->sk_rcvbuf)
|
/linux-6.12.1/tools/testing/selftests/net/packetdrill/ |
D | tcp_zerocopy_maxfrags.pkt | 16 // Each pinned zerocopy page is fully accounted to skb->truesize. 18 // one byte, but increasing truesize with a page (64KB on PPC).
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt7601u/ |
D | dma.c | 29 void *data, u32 seg_len, u32 truesize, struct page *p) in mt7601u_rx_skb_from_seg() argument 63 frag, truesize); in mt7601u_rx_skb_from_seg() 82 u32 fce_info, truesize = seg_len; in mt7601u_rx_process_seg() local 104 skb = mt7601u_rx_skb_from_seg(dev, rxwi, data, seg_len, truesize, p); in mt7601u_rx_process_seg()
|
/linux-6.12.1/drivers/net/ethernet/intel/idpf/ |
D | idpf_txrx.c | 598 bufq->hdr_truesize = fq.truesize; in idpf_rx_hdr_buf_alloc_all() 648 fq.truesize = bufq->hdr_truesize; in idpf_rx_post_buf_desc() 659 fq.truesize = bufq->truesize; in idpf_rx_post_buf_desc() 739 rxq->truesize = fq.truesize; in idpf_rx_bufs_init_singleq() 783 .truesize = bufq->truesize, in idpf_rx_bufs_init() 797 bufq->truesize = fq.truesize; in idpf_rx_bufs_init() 816 u32 truesize = 0; in idpf_rx_bufs_init_all() local 840 q->truesize = truesize; in idpf_rx_bufs_init_all() 842 type = truesize ? LIBETH_FQE_SHORT : LIBETH_FQE_MTU; in idpf_rx_bufs_init_all() 848 truesize = q->truesize >> 1; in idpf_rx_bufs_init_all() [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 832 unsigned int truesize = ixgbevf_rx_pg_size(rx_ring) / 2; in ixgbevf_add_rx_frag() local 834 unsigned int truesize = ring_uses_build_skb(rx_ring) ? in ixgbevf_add_rx_frag() 839 rx_buffer->page_offset, size, truesize); in ixgbevf_add_rx_frag() 841 rx_buffer->page_offset ^= truesize; in ixgbevf_add_rx_frag() 843 rx_buffer->page_offset += truesize; in ixgbevf_add_rx_frag() 855 unsigned int truesize = ixgbevf_rx_pg_size(rx_ring) / 2; in ixgbevf_construct_skb() local 857 unsigned int truesize = SKB_DATA_ALIGN(xdp->data_end - in ixgbevf_construct_skb() local 902 size, truesize); in ixgbevf_construct_skb() 904 rx_buffer->page_offset ^= truesize; in ixgbevf_construct_skb() 906 rx_buffer->page_offset += truesize; in ixgbevf_construct_skb() [all …]
|
/linux-6.12.1/net/sctp/ |
D | ulpevent.c | 59 sctp_ulpevent_init(event, msg_flags, skb->truesize); in sctp_ulpevent_new() 138 sctp_ulpevent_init(event, MSG_NOTIFICATION, skb->truesize); in sctp_ulpevent_make_assoc_change() 404 sctp_ulpevent_init(event, MSG_NOTIFICATION, skb->truesize); in sctp_ulpevent_make_remote_error() 455 sctp_ulpevent_init(event, MSG_NOTIFICATION, skb->truesize); in sctp_ulpevent_make_send_failed() 551 sctp_ulpevent_init(event, MSG_NOTIFICATION, skb->truesize); in sctp_ulpevent_make_send_failed_event()
|
/linux-6.12.1/net/phonet/ |
D | pep-gprs.c | 104 rskb->truesize += rskb->len; in gprs_recv() 113 skb->truesize -= flen; in gprs_recv()
|
/linux-6.12.1/drivers/net/ |
D | virtio_net.c | 514 int len, int truesize); 745 static void *mergeable_len_to_ctx(unsigned int truesize, in mergeable_len_to_ctx() argument 748 return (void *)(unsigned long)((headroom << MRG_CTX_HEADER_SHIFT) | truesize); in mergeable_len_to_ctx() 781 unsigned int len, unsigned int truesize, in page_to_skb() argument 804 tailroom = truesize - headroom - hdr_padded_len - len; in page_to_skb() 809 skb = virtnet_build_skb(buf, truesize, p - buf, len); in page_to_skb() 838 skb_add_rx_frag(skb, 0, page, offset, len, truesize); in page_to_skb() 859 frag_size, truesize); in page_to_skb() 1211 u32 len, truesize; in xsk_append_merge_buffer() local 1246 truesize = len; in xsk_append_merge_buffer() [all …]
|