/linux-6.6.21/net/tls/ |
D | tls_device.c | 262 struct page_frag *pfrag, in tls_append_frag() argument 268 if (skb_frag_page(frag) == pfrag->page && in tls_append_frag() 269 skb_frag_off(frag) + skb_frag_size(frag) == pfrag->offset) { in tls_append_frag() 273 skb_frag_fill_page_desc(frag, pfrag->page, pfrag->offset, in tls_append_frag() 276 get_page(pfrag->page); in tls_append_frag() 279 pfrag->offset += size; in tls_append_frag() 320 struct page_frag *pfrag, in tls_device_record_close() argument 332 if (unlikely(pfrag->size - pfrag->offset < prot->tag_size) && in tls_device_record_close() 333 !skb_page_frag_refill(prot->tag_size, pfrag, sk->sk_allocation)) { in tls_device_record_close() 336 pfrag = &dummy_tag_frag; in tls_device_record_close() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | esp4.c | 474 struct page_frag *pfrag = &x->xfrag; in esp_output_head() local 482 if (unlikely(!skb_page_frag_refill(allocsize, pfrag, GFP_ATOMIC))) { in esp_output_head() 487 page = pfrag->page; in esp_output_head() 490 tail = page_address(page) + pfrag->offset; in esp_output_head() 496 __skb_fill_page_desc(skb, nfrags, page, pfrag->offset, in esp_output_head() 500 pfrag->offset = pfrag->offset + allocsize; in esp_output_head() 586 struct page_frag *pfrag = &x->xfrag; in esp_output_tail() local 591 if (unlikely(!skb_page_frag_refill(allocsize, pfrag, GFP_ATOMIC))) { in esp_output_tail() 598 page = pfrag->page; in esp_output_tail() 601 __skb_fill_page_desc(skb, 0, page, pfrag->offset, skb->data_len); in esp_output_tail() [all …]
|
D | ip_output.c | 953 struct page_frag *pfrag, in __ip_append_data() argument 1230 if (!sk_page_frag_refill(sk, pfrag)) in __ip_append_data() 1234 if (!skb_can_coalesce(skb, i, pfrag->page, in __ip_append_data() 1235 pfrag->offset)) { in __ip_append_data() 1240 __skb_fill_page_desc(skb, i, pfrag->page, in __ip_append_data() 1241 pfrag->offset, 0); in __ip_append_data() 1243 get_page(pfrag->page); in __ip_append_data() 1245 copy = min_t(int, copy, pfrag->size - pfrag->offset); in __ip_append_data() 1247 page_address(pfrag->page) + pfrag->offset, in __ip_append_data() 1251 pfrag->offset += copy; in __ip_append_data()
|
D | tcp.c | 1179 struct page_frag *pfrag = sk_page_frag(sk); in tcp_sendmsg_locked() local 1181 if (!sk_page_frag_refill(sk, pfrag)) in tcp_sendmsg_locked() 1184 if (!skb_can_coalesce(skb, i, pfrag->page, in tcp_sendmsg_locked() 1185 pfrag->offset)) { in tcp_sendmsg_locked() 1193 copy = min_t(int, copy, pfrag->size - pfrag->offset); in tcp_sendmsg_locked() 1206 pfrag->page, in tcp_sendmsg_locked() 1207 pfrag->offset, in tcp_sendmsg_locked() 1216 skb_fill_page_desc(skb, i, pfrag->page, in tcp_sendmsg_locked() 1217 pfrag->offset, copy); in tcp_sendmsg_locked() 1218 page_ref_inc(pfrag->page); in tcp_sendmsg_locked() [all …]
|
D | tcp_output.c | 3860 struct page_frag *pfrag = sk_page_frag(sk); in tcp_send_syn_data() local 3883 pfrag, sk->sk_allocation)) in tcp_send_syn_data() 3890 space = min_t(size_t, space, pfrag->size - pfrag->offset); in tcp_send_syn_data() 3894 space = copy_page_from_iter(pfrag->page, pfrag->offset, in tcp_send_syn_data() 3901 skb_fill_page_desc(syn_data, 0, pfrag->page, in tcp_send_syn_data() 3902 pfrag->offset, space); in tcp_send_syn_data() 3903 page_ref_inc(pfrag->page); in tcp_send_syn_data() 3904 pfrag->offset += space; in tcp_send_syn_data()
|
/linux-6.6.21/net/ipv6/ |
D | esp6.c | 509 struct page_frag *pfrag = &x->xfrag; in esp6_output_head() local 517 if (unlikely(!skb_page_frag_refill(allocsize, pfrag, GFP_ATOMIC))) { in esp6_output_head() 522 page = pfrag->page; in esp6_output_head() 525 tail = page_address(page) + pfrag->offset; in esp6_output_head() 531 __skb_fill_page_desc(skb, nfrags, page, pfrag->offset, in esp6_output_head() 535 pfrag->offset = pfrag->offset + allocsize; in esp6_output_head() 623 struct page_frag *pfrag = &x->xfrag; in esp6_output_tail() local 628 if (unlikely(!skb_page_frag_refill(allocsize, pfrag, GFP_ATOMIC))) { in esp6_output_tail() 635 page = pfrag->page; in esp6_output_tail() 638 __skb_fill_page_desc(skb, 0, page, pfrag->offset, skb->data_len); in esp6_output_tail() [all …]
|
D | ip6_output.c | 1473 struct page_frag *pfrag, in __ip6_append_data() argument 1818 if (!sk_page_frag_refill(sk, pfrag)) in __ip6_append_data() 1822 if (!skb_can_coalesce(skb, i, pfrag->page, in __ip6_append_data() 1823 pfrag->offset)) { in __ip6_append_data() 1828 __skb_fill_page_desc(skb, i, pfrag->page, in __ip6_append_data() 1829 pfrag->offset, 0); in __ip6_append_data() 1831 get_page(pfrag->page); in __ip6_append_data() 1833 copy = min_t(int, copy, pfrag->size - pfrag->offset); in __ip6_append_data() 1835 page_address(pfrag->page) + pfrag->offset, in __ip6_append_data() 1839 pfrag->offset += copy; in __ip6_append_data()
|
/linux-6.6.21/net/kcm/ |
D | kcmsock.c | 805 struct page_frag *pfrag = sk_page_frag(sk); in kcm_sendmsg() local 807 if (!sk_page_frag_refill(sk, pfrag)) in kcm_sendmsg() 810 if (!skb_can_coalesce(skb, i, pfrag->page, in kcm_sendmsg() 811 pfrag->offset)) { in kcm_sendmsg() 853 pfrag->size - pfrag->offset); in kcm_sendmsg() 858 pfrag->page, in kcm_sendmsg() 859 pfrag->offset, in kcm_sendmsg() 869 skb_fill_page_desc(skb, i, pfrag->page, in kcm_sendmsg() 870 pfrag->offset, copy); in kcm_sendmsg() 871 get_page(pfrag->page); in kcm_sendmsg() [all …]
|
/linux-6.6.21/drivers/vhost/ |
D | net.c | 659 struct page_frag *pfrag, gfp_t gfp) in vhost_net_page_frag_refill() argument 661 if (pfrag->page) { in vhost_net_page_frag_refill() 662 if (pfrag->offset + sz <= pfrag->size) in vhost_net_page_frag_refill() 664 __page_frag_cache_drain(pfrag->page, net->refcnt_bias); in vhost_net_page_frag_refill() 667 pfrag->offset = 0; in vhost_net_page_frag_refill() 671 pfrag->page = alloc_pages((gfp & ~__GFP_DIRECT_RECLAIM) | in vhost_net_page_frag_refill() 675 if (likely(pfrag->page)) { in vhost_net_page_frag_refill() 676 pfrag->size = PAGE_SIZE << SKB_FRAG_PAGE_ORDER; in vhost_net_page_frag_refill() 680 pfrag->page = alloc_page(gfp); in vhost_net_page_frag_refill() 681 if (likely(pfrag->page)) { in vhost_net_page_frag_refill() [all …]
|
/linux-6.6.21/net/core/ |
D | skmsg.c | 30 struct page_frag *pfrag = sk_page_frag(sk); in sk_msg_alloc() local 40 if (!sk_page_frag_refill(sk, pfrag)) { in sk_msg_alloc() 45 orig_offset = pfrag->offset; in sk_msg_alloc() 46 use = min_t(int, len, pfrag->size - orig_offset); in sk_msg_alloc() 57 sg_page(sge) == pfrag->page && in sk_msg_alloc() 68 sg_set_page(sge, pfrag->page, use, orig_offset); in sk_msg_alloc() 69 get_page(pfrag->page); in sk_msg_alloc() 75 pfrag->offset += use; in sk_msg_alloc()
|
D | sock.c | 2913 bool skb_page_frag_refill(unsigned int sz, struct page_frag *pfrag, gfp_t gfp) in skb_page_frag_refill() argument 2915 if (pfrag->page) { in skb_page_frag_refill() 2916 if (page_ref_count(pfrag->page) == 1) { in skb_page_frag_refill() 2917 pfrag->offset = 0; in skb_page_frag_refill() 2920 if (pfrag->offset + sz <= pfrag->size) in skb_page_frag_refill() 2922 put_page(pfrag->page); in skb_page_frag_refill() 2925 pfrag->offset = 0; in skb_page_frag_refill() 2929 pfrag->page = alloc_pages((gfp & ~__GFP_DIRECT_RECLAIM) | in skb_page_frag_refill() 2933 if (likely(pfrag->page)) { in skb_page_frag_refill() 2934 pfrag->size = PAGE_SIZE << SKB_FRAG_PAGE_ORDER; in skb_page_frag_refill() [all …]
|
D | skbuff.c | 2873 struct page_frag *pfrag = sk_page_frag(sk); in linear_to_page() local 2875 if (!sk_page_frag_refill(sk, pfrag)) in linear_to_page() 2878 *len = min_t(unsigned int, *len, pfrag->size - pfrag->offset); in linear_to_page() 2880 memcpy(page_address(pfrag->page) + pfrag->offset, in linear_to_page() 2882 *offset = pfrag->offset; in linear_to_page() 2883 pfrag->offset += *len; in linear_to_page() 2885 return pfrag->page; in linear_to_page()
|
/linux-6.6.21/net/mptcp/ |
D | protocol.c | 981 const struct page_frag *pfrag, in mptcp_frag_can_collapse_to() argument 984 return df && pfrag->page == df->page && in mptcp_frag_can_collapse_to() 985 pfrag->size - pfrag->offset > 0 && in mptcp_frag_can_collapse_to() 986 pfrag->offset == (df->offset + df->data_len) && in mptcp_frag_can_collapse_to() 1098 static bool mptcp_page_frag_refill(struct sock *sk, struct page_frag *pfrag) in mptcp_page_frag_refill() argument 1101 pfrag, sk->sk_allocation))) in mptcp_page_frag_refill() 1109 mptcp_carve_data_frag(const struct mptcp_sock *msk, struct page_frag *pfrag, in mptcp_carve_data_frag() argument 1115 dfrag = (struct mptcp_data_frag *)(page_to_virt(pfrag->page) + offset); in mptcp_carve_data_frag() 1121 dfrag->page = pfrag->page; in mptcp_carve_data_frag() 1777 struct page_frag *pfrag; in mptcp_sendmsg() local [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/ |
D | en_tx.c | 607 void **pfrag) in is_inline() argument 618 *pfrag = ptr; in is_inline() 642 void **pfrag, in get_real_size() argument 678 shinfo, pfrag); in get_real_size()
|
/linux-6.6.21/fs/ceph/ |
D | inode.c | 314 struct ceph_inode_frag *pfrag, int *found) in __ceph_choose_frag() argument 330 if (pfrag) in __ceph_choose_frag() 331 memcpy(pfrag, frag, sizeof(*pfrag)); in __ceph_choose_frag() 356 struct ceph_inode_frag *pfrag, int *found) in ceph_choose_frag() argument 360 ret = __ceph_choose_frag(ci, v, pfrag, found); in ceph_choose_frag()
|
D | super.h | 738 struct ceph_inode_frag *pfrag,
|
/linux-6.6.21/drivers/scsi/be2iscsi/ |
D | be_main.c | 2137 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl_v2() 2226 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl() 2329 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_buffer() 3895 struct iscsi_sge *pfrag; in beiscsi_init_sgl_handle() local 3973 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle() 3984 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle() 3985 AMAP_SET_BITS(struct amap_iscsi_sge, addr_hi, pfrag, 0); in beiscsi_init_sgl_handle() 3986 AMAP_SET_BITS(struct amap_iscsi_sge, addr_lo, pfrag, 0); in beiscsi_init_sgl_handle() 3987 pfrag += phba->params.num_sge_per_io; in beiscsi_init_sgl_handle()
|
D | be_main.h | 212 struct iscsi_sge *pfrag; member
|
/linux-6.6.21/include/net/ |
D | sock.h | 2604 bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag);
|
/linux-6.6.21/include/linux/ |
D | skbuff.h | 3520 bool skb_page_frag_refill(unsigned int sz, struct page_frag *pfrag, gfp_t prio);
|