Home
last modified time | relevance | path

Searched refs:pfrag (Results 1 – 19 of 19) sorted by relevance

/linux-6.3-rc2/net/tls/
A Dtls_device.c260 struct page_frag *pfrag, in tls_append_frag() argument
275 get_page(pfrag->page); in tls_append_frag()
278 pfrag->offset += size; in tls_append_frag()
319 struct page_frag *pfrag, in tls_device_record_close() argument
349 struct page_frag *pfrag, in tls_create_new_record() argument
364 get_page(pfrag->page); in tls_create_new_record()
392 if (pfrag->size > pfrag->offset) in tls_do_allocation()
443 struct page_frag *pfrag; in tls_push_data() local
468 pfrag = sk_page_frag(sk); in tls_push_data()
514 copy = min_t(size_t, copy, pfrag->size - pfrag->offset); in tls_push_data()
[all …]
/linux-6.3-rc2/net/ipv4/
A Desp4.c474 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 …]
A Dip_output.c963 struct page_frag *pfrag, in __ip_append_data() argument
1213 if (!sk_page_frag_refill(sk, pfrag)) in __ip_append_data()
1217 if (!skb_can_coalesce(skb, i, pfrag->page, in __ip_append_data()
1218 pfrag->offset)) { in __ip_append_data()
1223 __skb_fill_page_desc(skb, i, pfrag->page, in __ip_append_data()
1224 pfrag->offset, 0); in __ip_append_data()
1226 get_page(pfrag->page); in __ip_append_data()
1228 copy = min_t(int, copy, pfrag->size - pfrag->offset); in __ip_append_data()
1230 page_address(pfrag->page) + pfrag->offset, in __ip_append_data()
1234 pfrag->offset += copy; in __ip_append_data()
A Dtcp.c1351 struct page_frag *pfrag = sk_page_frag(sk); in tcp_sendmsg_locked() local
1353 if (!sk_page_frag_refill(sk, pfrag)) in tcp_sendmsg_locked()
1356 if (!skb_can_coalesce(skb, i, pfrag->page, in tcp_sendmsg_locked()
1357 pfrag->offset)) { in tcp_sendmsg_locked()
1365 copy = min_t(int, copy, pfrag->size - pfrag->offset); in tcp_sendmsg_locked()
1378 pfrag->page, in tcp_sendmsg_locked()
1379 pfrag->offset, in tcp_sendmsg_locked()
1388 skb_fill_page_desc(skb, i, pfrag->page, in tcp_sendmsg_locked()
1389 pfrag->offset, copy); in tcp_sendmsg_locked()
1390 page_ref_inc(pfrag->page); in tcp_sendmsg_locked()
[all …]
/linux-6.3-rc2/net/ipv6/
A Desp6.c509 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 …]
A Dip6_output.c1467 struct page_frag *pfrag, in __ip6_append_data() argument
1785 if (!sk_page_frag_refill(sk, pfrag)) in __ip6_append_data()
1789 if (!skb_can_coalesce(skb, i, pfrag->page, in __ip6_append_data()
1790 pfrag->offset)) { in __ip6_append_data()
1795 __skb_fill_page_desc(skb, i, pfrag->page, in __ip6_append_data()
1796 pfrag->offset, 0); in __ip6_append_data()
1798 get_page(pfrag->page); in __ip6_append_data()
1800 copy = min_t(int, copy, pfrag->size - pfrag->offset); in __ip6_append_data()
1802 page_address(pfrag->page) + pfrag->offset, in __ip6_append_data()
1806 pfrag->offset += copy; in __ip6_append_data()
/linux-6.3-rc2/net/kcm/
A Dkcmsock.c966 struct page_frag *pfrag = sk_page_frag(sk); in kcm_sendmsg() local
968 if (!sk_page_frag_refill(sk, pfrag)) in kcm_sendmsg()
971 if (!skb_can_coalesce(skb, i, pfrag->page, in kcm_sendmsg()
972 pfrag->offset)) { in kcm_sendmsg()
993 pfrag->size - pfrag->offset); in kcm_sendmsg()
999 pfrag->page, in kcm_sendmsg()
1000 pfrag->offset, in kcm_sendmsg()
1009 skb_fill_page_desc(skb, i, pfrag->page, in kcm_sendmsg()
1010 pfrag->offset, copy); in kcm_sendmsg()
1011 get_page(pfrag->page); in kcm_sendmsg()
[all …]
/linux-6.3-rc2/drivers/vhost/
A Dnet.c659 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()
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()
682 pfrag->size = PAGE_SIZE; in vhost_net_page_frag_refill()
[all …]
/linux-6.3-rc2/net/core/
A Dskmsg.c30 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()
A Dsock.c2845 if (pfrag->page) { in skb_page_frag_refill()
2846 if (page_ref_count(pfrag->page) == 1) { in skb_page_frag_refill()
2847 pfrag->offset = 0; in skb_page_frag_refill()
2850 if (pfrag->offset + sz <= pfrag->size) in skb_page_frag_refill()
2852 put_page(pfrag->page); in skb_page_frag_refill()
2855 pfrag->offset = 0; in skb_page_frag_refill()
2863 if (likely(pfrag->page)) { in skb_page_frag_refill()
2864 pfrag->size = PAGE_SIZE << SKB_FRAG_PAGE_ORDER; in skb_page_frag_refill()
2868 pfrag->page = alloc_page(gfp); in skb_page_frag_refill()
2869 if (likely(pfrag->page)) { in skb_page_frag_refill()
[all …]
A Dskbuff.c2775 struct page_frag *pfrag = sk_page_frag(sk); in linear_to_page() local
2777 if (!sk_page_frag_refill(sk, pfrag)) in linear_to_page()
2780 *len = min_t(unsigned int, *len, pfrag->size - pfrag->offset); in linear_to_page()
2782 memcpy(page_address(pfrag->page) + pfrag->offset, in linear_to_page()
2784 *offset = pfrag->offset; in linear_to_page()
2785 pfrag->offset += *len; in linear_to_page()
2787 return pfrag->page; in linear_to_page()
/linux-6.3-rc2/net/mptcp/
A Dprotocol.c957 const struct page_frag *pfrag, in mptcp_frag_can_collapse_to() argument
960 return df && pfrag->page == df->page && in mptcp_frag_can_collapse_to()
961 pfrag->size - pfrag->offset > 0 && in mptcp_frag_can_collapse_to()
1082 pfrag, sk->sk_allocation))) in mptcp_page_frag_refill()
1102 dfrag->page = pfrag->page; in mptcp_carve_data_frag()
1702 struct page_frag *pfrag; in mptcp_sendmsg() local
1738 pfrag = sk_page_frag(sk); in mptcp_sendmsg()
1755 if (!mptcp_page_frag_refill(sk, pfrag)) in mptcp_sendmsg()
1758 dfrag = mptcp_carve_data_frag(msk, pfrag, pfrag->offset); in mptcp_sendmsg()
1767 psize = pfrag->size - offset; in mptcp_sendmsg()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Den_tx.c605 void **pfrag) in is_inline() argument
616 *pfrag = ptr; in is_inline()
640 void **pfrag, in get_real_size() argument
676 shinfo, pfrag); in get_real_size()
/linux-6.3-rc2/fs/ceph/
A Dinode.c210 struct ceph_inode_frag *pfrag, int *found) in __ceph_choose_frag() argument
226 if (pfrag) in __ceph_choose_frag()
227 memcpy(pfrag, frag, sizeof(*pfrag)); in __ceph_choose_frag()
252 struct ceph_inode_frag *pfrag, int *found) in ceph_choose_frag() argument
256 ret = __ceph_choose_frag(ci, v, pfrag, found); in ceph_choose_frag()
A Dsuper.h708 struct ceph_inode_frag *pfrag,
/linux-6.3-rc2/drivers/scsi/be2iscsi/
A Dbe_main.c2137 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()
3894 struct iscsi_sge *pfrag; in beiscsi_init_sgl_handle() local
3972 pfrag = mem_descr_sg->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3983 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
3984 AMAP_SET_BITS(struct amap_iscsi_sge, addr_hi, pfrag, 0); in beiscsi_init_sgl_handle()
3985 AMAP_SET_BITS(struct amap_iscsi_sge, addr_lo, pfrag, 0); in beiscsi_init_sgl_handle()
3986 pfrag += phba->params.num_sge_per_io; in beiscsi_init_sgl_handle()
A Dbe_main.h213 struct iscsi_sge *pfrag; member
/linux-6.3-rc2/include/net/
A Dsock.h2570 bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag);
/linux-6.3-rc2/include/linux/
A Dskbuff.h3496 bool skb_page_frag_refill(unsigned int sz, struct page_frag *pfrag, gfp_t prio);

Completed in 103 milliseconds