Lines Matching refs:lsop
350 __nvmet_fc_finish_ls_req(struct nvmet_fc_ls_req_op *lsop) in __nvmet_fc_finish_ls_req() argument
352 struct nvmet_fc_tgtport *tgtport = lsop->tgtport; in __nvmet_fc_finish_ls_req()
353 struct nvmefc_ls_req *lsreq = &lsop->ls_req; in __nvmet_fc_finish_ls_req()
358 if (!lsop->req_queued) { in __nvmet_fc_finish_ls_req()
363 list_del(&lsop->lsreq_list); in __nvmet_fc_finish_ls_req()
365 lsop->req_queued = false; in __nvmet_fc_finish_ls_req()
378 struct nvmet_fc_ls_req_op *lsop, in __nvmet_fc_send_ls_req() argument
381 struct nvmefc_ls_req *lsreq = &lsop->ls_req; in __nvmet_fc_send_ls_req()
392 lsop->req_queued = false; in __nvmet_fc_send_ls_req()
393 INIT_LIST_HEAD(&lsop->lsreq_list); in __nvmet_fc_send_ls_req()
406 list_add_tail(&lsop->lsreq_list, &tgtport->ls_req_list); in __nvmet_fc_send_ls_req()
408 lsop->req_queued = true; in __nvmet_fc_send_ls_req()
412 ret = tgtport->ops->ls_req(&tgtport->fc_target_port, lsop->hosthandle, in __nvmet_fc_send_ls_req()
420 lsop->ls_error = ret; in __nvmet_fc_send_ls_req()
422 lsop->req_queued = false; in __nvmet_fc_send_ls_req()
423 list_del(&lsop->lsreq_list); in __nvmet_fc_send_ls_req()
436 struct nvmet_fc_ls_req_op *lsop, in nvmet_fc_send_ls_req_async() argument
441 return __nvmet_fc_send_ls_req(tgtport, lsop, done); in nvmet_fc_send_ls_req_async()
447 struct nvmet_fc_ls_req_op *lsop = in nvmet_fc_disconnect_assoc_done() local
450 __nvmet_fc_finish_ls_req(lsop); in nvmet_fc_disconnect_assoc_done()
454 kfree(lsop); in nvmet_fc_disconnect_assoc_done()
480 struct nvmet_fc_ls_req_op *lsop; in nvmet_fc_xmt_disconnect_assoc() local
493 lsop = kzalloc((sizeof(*lsop) + in nvmet_fc_xmt_disconnect_assoc()
496 if (!lsop) { in nvmet_fc_xmt_disconnect_assoc()
503 discon_rqst = (struct fcnvme_ls_disconnect_assoc_rqst *)&lsop[1]; in nvmet_fc_xmt_disconnect_assoc()
505 lsreq = &lsop->ls_req; in nvmet_fc_xmt_disconnect_assoc()
511 lsop->tgtport = tgtport; in nvmet_fc_xmt_disconnect_assoc()
512 lsop->hosthandle = assoc->hostport->hosthandle; in nvmet_fc_xmt_disconnect_assoc()
517 ret = nvmet_fc_send_ls_req_async(tgtport, lsop, in nvmet_fc_xmt_disconnect_assoc()
523 kfree(lsop); in nvmet_fc_xmt_disconnect_assoc()