Lines Matching refs:tls_req

330 	struct fcloop_lsreq *tls_req;  in fcloop_rport_lsrqst_work()  local
334 tls_req = list_first_entry_or_null(&rport->ls_list, in fcloop_rport_lsrqst_work()
336 if (!tls_req) in fcloop_rport_lsrqst_work()
339 list_del(&tls_req->ls_list); in fcloop_rport_lsrqst_work()
342 tls_req->lsreq->done(tls_req->lsreq, tls_req->status); in fcloop_rport_lsrqst_work()
347 kmem_cache_free(lsreq_cache, tls_req); in fcloop_rport_lsrqst_work()
360 struct fcloop_lsreq *tls_req; in fcloop_h2t_ls_req() local
363 tls_req = kmem_cache_alloc(lsreq_cache, GFP_KERNEL); in fcloop_h2t_ls_req()
364 if (!tls_req) in fcloop_h2t_ls_req()
366 tls_req->lsreq = lsreq; in fcloop_h2t_ls_req()
367 INIT_LIST_HEAD(&tls_req->ls_list); in fcloop_h2t_ls_req()
370 tls_req->status = -ECONNREFUSED; in fcloop_h2t_ls_req()
372 list_add_tail(&tls_req->ls_list, &rport->ls_list); in fcloop_h2t_ls_req()
378 tls_req->status = 0; in fcloop_h2t_ls_req()
380 &tls_req->ls_rsp, in fcloop_h2t_ls_req()
390 struct fcloop_lsreq *tls_req = ls_rsp_to_lsreq(lsrsp); in fcloop_h2t_xmt_ls_rsp() local
391 struct nvmefc_ls_req *lsreq = tls_req->lsreq; in fcloop_h2t_xmt_ls_rsp()
403 kmem_cache_free(lsreq_cache, tls_req); in fcloop_h2t_xmt_ls_rsp()
409 list_add_tail(&tls_req->ls_list, &rport->ls_list); in fcloop_h2t_xmt_ls_rsp()
421 struct fcloop_lsreq *tls_req; in fcloop_tport_lsrqst_work() local
425 tls_req = list_first_entry_or_null(&tport->ls_list, in fcloop_tport_lsrqst_work()
427 if (!tls_req) in fcloop_tport_lsrqst_work()
430 list_del(&tls_req->ls_list); in fcloop_tport_lsrqst_work()
433 tls_req->lsreq->done(tls_req->lsreq, tls_req->status); in fcloop_tport_lsrqst_work()
438 kmem_cache_free(lsreq_cache, tls_req); in fcloop_tport_lsrqst_work()
450 struct fcloop_lsreq *tls_req; in fcloop_t2h_ls_req() local
459 tls_req = kmem_cache_alloc(lsreq_cache, GFP_KERNEL); in fcloop_t2h_ls_req()
460 if (!tls_req) in fcloop_t2h_ls_req()
462 tls_req->lsreq = lsreq; in fcloop_t2h_ls_req()
463 INIT_LIST_HEAD(&tls_req->ls_list); in fcloop_t2h_ls_req()
466 tls_req->status = -ECONNREFUSED; in fcloop_t2h_ls_req()
468 list_add_tail(&tls_req->ls_list, &tport->ls_list); in fcloop_t2h_ls_req()
474 tls_req->status = 0; in fcloop_t2h_ls_req()
475 ret = nvme_fc_rcv_ls_req(tport->remoteport, &tls_req->ls_rsp, in fcloop_t2h_ls_req()
479 kmem_cache_free(lsreq_cache, tls_req); in fcloop_t2h_ls_req()
489 struct fcloop_lsreq *tls_req = ls_rsp_to_lsreq(lsrsp); in fcloop_t2h_xmt_ls_rsp() local
490 struct nvmefc_ls_req *lsreq = tls_req->lsreq; in fcloop_t2h_xmt_ls_rsp()
514 kmem_cache_free(lsreq_cache, tls_req); in fcloop_t2h_xmt_ls_rsp()
525 list_add_tail(&tls_req->ls_list, &tport->ls_list); in fcloop_t2h_xmt_ls_rsp()