Lines Matching refs:els_req
115 struct bnx2fc_cmd *els_req; in bnx2fc_l2_els_compl() local
129 els_req = cb_arg->io_req; in bnx2fc_l2_els_compl()
130 if (test_and_clear_bit(BNX2FC_FLAG_ELS_TIMEOUT, &els_req->req_flags)) { in bnx2fc_l2_els_compl()
135 if (els_req->on_active_queue) { in bnx2fc_l2_els_compl()
136 list_del_init(&els_req->link); in bnx2fc_l2_els_compl()
137 els_req->on_active_queue = 0; in bnx2fc_l2_els_compl()
138 rc = bnx2fc_initiate_cleanup(els_req); in bnx2fc_l2_els_compl()
144 tgt = els_req->tgt; in bnx2fc_l2_els_compl()
145 mp_req = &(els_req->mp_req); in bnx2fc_l2_els_compl()
265 struct bnx2fc_cmd *els_req; in bnx2fc_initiate_els() local
292 els_req = bnx2fc_elstm_alloc(tgt, BNX2FC_ELS); in bnx2fc_initiate_els()
293 if (!els_req) { in bnx2fc_initiate_els()
298 els_req->sc_cmd = NULL; in bnx2fc_initiate_els()
299 els_req->port = port; in bnx2fc_initiate_els()
300 els_req->tgt = tgt; in bnx2fc_initiate_els()
301 els_req->cb_func = cb_func; in bnx2fc_initiate_els()
302 cb_arg->io_req = els_req; in bnx2fc_initiate_els()
303 els_req->cb_arg = cb_arg; in bnx2fc_initiate_els()
305 mp_req = (struct bnx2fc_mp_req *)&(els_req->mp_req); in bnx2fc_initiate_els()
306 rc = bnx2fc_init_mp_req(els_req); in bnx2fc_initiate_els()
310 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els()
321 els_req->data_xfer_len = mp_req->req_len; in bnx2fc_initiate_els()
328 els_req->cb_func = NULL; in bnx2fc_initiate_els()
329 els_req->cb_arg = NULL; in bnx2fc_initiate_els()
331 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els()
350 xid = els_req->xid; in bnx2fc_initiate_els()
357 bnx2fc_init_mp_task(els_req, task); in bnx2fc_initiate_els()
363 els_req->cb_func = NULL; in bnx2fc_initiate_els()
364 els_req->cb_arg = NULL; in bnx2fc_initiate_els()
365 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_initiate_els()
371 bnx2fc_cmd_timer_set(els_req, timer_msec); in bnx2fc_initiate_els()
374 els_req->on_active_queue = 1; in bnx2fc_initiate_els()
375 list_add_tail(&els_req->link, &tgt->els_queue); in bnx2fc_initiate_els()
385 void bnx2fc_process_els_compl(struct bnx2fc_cmd *els_req, in bnx2fc_process_els_compl() argument
394 "cmd_type = %d\n", els_req->xid, els_req->cmd_type); in bnx2fc_process_els_compl()
397 &els_req->req_flags)) { in bnx2fc_process_els_compl()
399 "els - 0x%x\n", els_req->xid); in bnx2fc_process_els_compl()
401 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_els_compl()
406 if (cancel_delayed_work(&els_req->timeout_work)) in bnx2fc_process_els_compl()
407 kref_put(&els_req->refcount, in bnx2fc_process_els_compl()
410 if (els_req->on_active_queue) { in bnx2fc_process_els_compl()
411 list_del_init(&els_req->link); in bnx2fc_process_els_compl()
412 els_req->on_active_queue = 0; in bnx2fc_process_els_compl()
415 mp_req = &(els_req->mp_req); in bnx2fc_process_els_compl()
428 if ((els_req->cb_func) && (els_req->cb_arg)) { in bnx2fc_process_els_compl()
429 els_req->cb_func(els_req->cb_arg); in bnx2fc_process_els_compl()
430 els_req->cb_arg = NULL; in bnx2fc_process_els_compl()
433 kref_put(&els_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_els_compl()