Lines Matching refs:els_req

124 	struct bnx2fc_cmd *els_req;  in bnx2fc_l2_els_compl()  local
138 els_req = cb_arg->io_req; in bnx2fc_l2_els_compl()
139 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &els_req->req_flags)) { in bnx2fc_l2_els_compl()
144 if (els_req->on_active_queue) { in bnx2fc_l2_els_compl()
145 list_del_init(&els_req->link); in bnx2fc_l2_els_compl()
146 els_req->on_active_queue = 0; in bnx2fc_l2_els_compl()
147 rc = bnx2fc_initiate_cleanup(els_req); in bnx2fc_l2_els_compl()
153 tgt = els_req->tgt; in bnx2fc_l2_els_compl()
154 mp_req = &(els_req->mp_req); in bnx2fc_l2_els_compl()
679 struct bnx2fc_cmd *els_req; in bnx2fc_initiate_els() local
705 els_req = bnx2fc_elstm_alloc(tgt, BNX2FC_ELS); in bnx2fc_initiate_els()
706 if (!els_req) { in bnx2fc_initiate_els()
711 els_req->sc_cmd = NULL; in bnx2fc_initiate_els()
712 els_req->port = port; in bnx2fc_initiate_els()
713 els_req->tgt = tgt; in bnx2fc_initiate_els()
714 els_req->cb_func = cb_func; in bnx2fc_initiate_els()
715 cb_arg->io_req = els_req; in bnx2fc_initiate_els()
716 els_req->cb_arg = cb_arg; in bnx2fc_initiate_els()
717 els_req->data_xfer_len = data_len; in bnx2fc_initiate_els()
719 mp_req = (struct bnx2fc_mp_req *)&(els_req->mp_req); in bnx2fc_initiate_els()
720 rc = bnx2fc_init_mp_req(els_req); in bnx2fc_initiate_els()
724 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els()
735 els_req->data_xfer_len = mp_req->req_len; in bnx2fc_initiate_els()
742 els_req->cb_func = NULL; in bnx2fc_initiate_els()
743 els_req->cb_arg = NULL; in bnx2fc_initiate_els()
745 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els()
769 xid = els_req->xid; in bnx2fc_initiate_els()
777 bnx2fc_init_mp_task(els_req, task); in bnx2fc_initiate_els()
783 els_req->cb_func = NULL; in bnx2fc_initiate_els()
784 els_req->cb_arg = NULL; in bnx2fc_initiate_els()
785 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els()
791 bnx2fc_cmd_timer_set(els_req, timer_msec); in bnx2fc_initiate_els()
794 els_req->on_active_queue = 1; in bnx2fc_initiate_els()
795 list_add_tail(&els_req->link, &tgt->els_queue); in bnx2fc_initiate_els()
805 void bnx2fc_process_els_compl(struct bnx2fc_cmd *els_req, in bnx2fc_process_els_compl() argument
814 "cmd_type = %d\n", els_req->xid, els_req->cmd_type); in bnx2fc_process_els_compl()
817 &els_req->req_flags)) { in bnx2fc_process_els_compl()
819 "els - 0x%x\n", els_req->xid); in bnx2fc_process_els_compl()
821 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_els_compl()
826 if (cancel_delayed_work(&els_req->timeout_work)) in bnx2fc_process_els_compl()
827 kref_put(&els_req->refcount, in bnx2fc_process_els_compl()
830 if (els_req->on_active_queue) { in bnx2fc_process_els_compl()
831 list_del_init(&els_req->link); in bnx2fc_process_els_compl()
832 els_req->on_active_queue = 0; in bnx2fc_process_els_compl()
835 mp_req = &(els_req->mp_req); in bnx2fc_process_els_compl()
849 if ((els_req->cb_func) && (els_req->cb_arg)) { in bnx2fc_process_els_compl()
850 els_req->cb_func(els_req->cb_arg); in bnx2fc_process_els_compl()
851 els_req->cb_arg = NULL; in bnx2fc_process_els_compl()
854 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_els_compl()