Lines Matching refs:lsreq

200 ls_req_to_lsop(struct nvmefc_ls_req *lsreq)  in ls_req_to_lsop()  argument
202 return container_of(lsreq, struct nvmefc_ls_req_op, ls_req); in ls_req_to_lsop()
1039 struct nvmefc_ls_req *lsreq = &lsop->ls_req; in __nvme_fc_finish_ls_req() local
1055 fc_dma_unmap_single(rport->dev, lsreq->rqstdma, in __nvme_fc_finish_ls_req()
1056 (lsreq->rqstlen + lsreq->rsplen), in __nvme_fc_finish_ls_req()
1067 struct nvmefc_ls_req *lsreq = &lsop->ls_req; in __nvme_fc_send_ls_req() local
1077 lsreq->done = done; in __nvme_fc_send_ls_req()
1083 lsreq->rqstdma = fc_dma_map_single(rport->dev, lsreq->rqstaddr, in __nvme_fc_send_ls_req()
1084 lsreq->rqstlen + lsreq->rsplen, in __nvme_fc_send_ls_req()
1086 if (fc_dma_mapping_error(rport->dev, lsreq->rqstdma)) { in __nvme_fc_send_ls_req()
1090 lsreq->rspdma = lsreq->rqstdma + lsreq->rqstlen; in __nvme_fc_send_ls_req()
1101 &rport->remoteport, lsreq); in __nvme_fc_send_ls_req()
1113 fc_dma_unmap_single(rport->dev, lsreq->rqstdma, in __nvme_fc_send_ls_req()
1114 (lsreq->rqstlen + lsreq->rsplen), in __nvme_fc_send_ls_req()
1123 nvme_fc_send_ls_req_done(struct nvmefc_ls_req *lsreq, int status) in nvme_fc_send_ls_req_done() argument
1125 struct nvmefc_ls_req_op *lsop = ls_req_to_lsop(lsreq); in nvme_fc_send_ls_req_done()
1134 struct nvmefc_ls_req *lsreq = &lsop->ls_req; in nvme_fc_send_ls_req() local
1135 struct fcnvme_ls_rjt *rjt = lsreq->rspaddr; in nvme_fc_send_ls_req()
1179 struct nvmefc_ls_req *lsreq; in nvme_fc_connect_admin_queue() local
1198 lsreq = &lsop->ls_req; in nvme_fc_connect_admin_queue()
1200 lsreq->private = &assoc_acc[1]; in nvme_fc_connect_admin_queue()
1202 lsreq->private = NULL; in nvme_fc_connect_admin_queue()
1225 lsreq->rqstaddr = assoc_rqst; in nvme_fc_connect_admin_queue()
1226 lsreq->rqstlen = sizeof(*assoc_rqst); in nvme_fc_connect_admin_queue()
1227 lsreq->rspaddr = assoc_acc; in nvme_fc_connect_admin_queue()
1228 lsreq->rsplen = sizeof(*assoc_acc); in nvme_fc_connect_admin_queue()
1229 lsreq->timeout = NVME_FC_LS_TIMEOUT_SEC; in nvme_fc_connect_admin_queue()
1296 struct nvmefc_ls_req *lsreq; in nvme_fc_connect_queue() local
1314 lsreq = &lsop->ls_req; in nvme_fc_connect_queue()
1316 lsreq->private = (void *)&conn_acc[1]; in nvme_fc_connect_queue()
1318 lsreq->private = NULL; in nvme_fc_connect_queue()
1340 lsreq->rqstaddr = conn_rqst; in nvme_fc_connect_queue()
1341 lsreq->rqstlen = sizeof(*conn_rqst); in nvme_fc_connect_queue()
1342 lsreq->rspaddr = conn_acc; in nvme_fc_connect_queue()
1343 lsreq->rsplen = sizeof(*conn_acc); in nvme_fc_connect_queue()
1344 lsreq->timeout = NVME_FC_LS_TIMEOUT_SEC; in nvme_fc_connect_queue()
1394 nvme_fc_disconnect_assoc_done(struct nvmefc_ls_req *lsreq, int status) in nvme_fc_disconnect_assoc_done() argument
1396 struct nvmefc_ls_req_op *lsop = ls_req_to_lsop(lsreq); in nvme_fc_disconnect_assoc_done()
1428 struct nvmefc_ls_req *lsreq; in nvme_fc_xmt_disconnect_assoc() local
1444 lsreq = &lsop->ls_req; in nvme_fc_xmt_disconnect_assoc()
1446 lsreq->private = (void *)&discon_acc[1]; in nvme_fc_xmt_disconnect_assoc()
1448 lsreq->private = NULL; in nvme_fc_xmt_disconnect_assoc()
1450 nvmefc_fmt_lsreq_discon_assoc(lsreq, discon_rqst, discon_acc, in nvme_fc_xmt_disconnect_assoc()