Searched refs:r2t_pdu (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/nvme/target/ |
H A D | tcp.c | 63 struct nvme_tcp_r2t_pdu *r2t_pdu; member 444 struct nvme_tcp_r2t_pdu *pdu = cmd->r2t_pdu; in nvmet_setup_r2t_pdu() 667 int left = sizeof(*cmd->r2t_pdu) - cmd->offset + hdgst; in nvmet_try_send_r2t() 676 ret = kernel_sendpage(cmd->queue->sock, virt_to_page(cmd->r2t_pdu), in nvmet_try_send_r2t() 677 offset_in_page(cmd->r2t_pdu) + cmd->offset, left, flags); in nvmet_try_send_r2t() 1321 c->r2t_pdu = page_frag_alloc(&queue->pf_cache, in nvmet_tcp_alloc_cmd() 1322 sizeof(*c->r2t_pdu) + hdgst, GFP_KERNEL | __GFP_ZERO); in nvmet_tcp_alloc_cmd() 1323 if (!c->r2t_pdu) in nvmet_tcp_alloc_cmd() 1342 page_frag_free(c->r2t_pdu); in nvmet_tcp_free_cmd()
|
/kernel/linux/linux-6.6/drivers/nvme/target/ |
H A D | tcp.c | 100 struct nvme_tcp_r2t_pdu *r2t_pdu; member 463 struct nvme_tcp_r2t_pdu *pdu = cmd->r2t_pdu; in nvmet_setup_r2t_pdu() 695 int left = sizeof(*cmd->r2t_pdu) - cmd->offset + hdgst; in nvmet_try_send_r2t() 703 bvec_set_virt(&bvec, (void *)cmd->r2t_pdu + cmd->offset, left); in nvmet_try_send_r2t() 1381 c->r2t_pdu = page_frag_alloc(&queue->pf_cache, in nvmet_tcp_alloc_cmd() 1382 sizeof(*c->r2t_pdu) + hdgst, GFP_KERNEL | __GFP_ZERO); in nvmet_tcp_alloc_cmd() 1383 if (!c->r2t_pdu) in nvmet_tcp_alloc_cmd() 1402 page_frag_free(c->r2t_pdu); in nvmet_tcp_free_cmd()
|
Completed in 5 milliseconds