Lines Matching refs:cb_arg
24 void (*cb_func)(struct bnx2fc_els_cb_arg *cb_arg),
25 struct bnx2fc_els_cb_arg *cb_arg, u32 timer_msec);
27 static void bnx2fc_rrq_compl(struct bnx2fc_els_cb_arg *cb_arg) in bnx2fc_rrq_compl() argument
33 BUG_ON(!cb_arg); in bnx2fc_rrq_compl()
34 rrq_req = cb_arg->io_req; in bnx2fc_rrq_compl()
35 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rrq_compl()
57 kfree(cb_arg); in bnx2fc_rrq_compl()
65 struct bnx2fc_els_cb_arg *cb_arg = NULL; in bnx2fc_send_rrq() local
75 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_NOIO); in bnx2fc_send_rrq()
76 if (!cb_arg) { in bnx2fc_send_rrq()
82 cb_arg->aborted_io_req = aborted_io_req; in bnx2fc_send_rrq()
91 bnx2fc_rrq_compl, cb_arg, in bnx2fc_send_rrq()
106 kfree(cb_arg); in bnx2fc_send_rrq()
114 static void bnx2fc_l2_els_compl(struct bnx2fc_els_cb_arg *cb_arg) in bnx2fc_l2_els_compl() argument
127 l2_oxid = cb_arg->l2_oxid; in bnx2fc_l2_els_compl()
130 els_req = cb_arg->io_req; in bnx2fc_l2_els_compl()
171 kfree(cb_arg); in bnx2fc_l2_els_compl()
178 struct bnx2fc_els_cb_arg *cb_arg; in bnx2fc_send_adisc() local
184 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_adisc()
185 if (!cb_arg) { in bnx2fc_send_adisc()
190 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_adisc()
192 BNX2FC_ELS_DBG("send ADISC: l2_oxid = 0x%x\n", cb_arg->l2_oxid); in bnx2fc_send_adisc()
196 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov); in bnx2fc_send_adisc()
198 kfree(cb_arg); in bnx2fc_send_adisc()
206 struct bnx2fc_els_cb_arg *cb_arg; in bnx2fc_send_logo() local
212 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_logo()
213 if (!cb_arg) { in bnx2fc_send_logo()
218 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_logo()
220 BNX2FC_ELS_DBG("Send LOGO: l2_oxid = 0x%x\n", cb_arg->l2_oxid); in bnx2fc_send_logo()
224 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov); in bnx2fc_send_logo()
226 kfree(cb_arg); in bnx2fc_send_logo()
234 struct bnx2fc_els_cb_arg *cb_arg; in bnx2fc_send_rls() local
240 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_rls()
241 if (!cb_arg) { in bnx2fc_send_rls()
246 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_rls()
251 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov); in bnx2fc_send_rls()
253 kfree(cb_arg); in bnx2fc_send_rls()
257 void bnx2fc_srr_compl(struct bnx2fc_els_cb_arg *cb_arg) in bnx2fc_srr_compl() argument
270 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_srr_compl()
271 srr_req = cb_arg->io_req; in bnx2fc_srr_compl()
367 void bnx2fc_rec_compl(struct bnx2fc_els_cb_arg *cb_arg) in bnx2fc_rec_compl() argument
391 rec_req = cb_arg->io_req; in bnx2fc_rec_compl()
392 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rec_compl()
571 kfree(cb_arg); in bnx2fc_rec_compl()
579 struct bnx2fc_els_cb_arg *cb_arg = NULL; in bnx2fc_send_rec() local
587 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_rec()
588 if (!cb_arg) { in bnx2fc_send_rec()
595 cb_arg->aborted_io_req = orig_io_req; in bnx2fc_send_rec()
603 bnx2fc_rec_compl, cb_arg, in bnx2fc_send_rec()
611 kfree(cb_arg); in bnx2fc_send_rec()
621 struct bnx2fc_els_cb_arg *cb_arg = NULL; in bnx2fc_send_srr() local
628 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_srr()
629 if (!cb_arg) { in bnx2fc_send_srr()
636 cb_arg->aborted_io_req = orig_io_req; in bnx2fc_send_srr()
647 bnx2fc_srr_compl, cb_arg, in bnx2fc_send_srr()
655 kfree(cb_arg); in bnx2fc_send_srr()
664 void (*cb_func)(struct bnx2fc_els_cb_arg *cb_arg), in bnx2fc_initiate_els() argument
665 struct bnx2fc_els_cb_arg *cb_arg, u32 timer_msec) in bnx2fc_initiate_els()
708 cb_arg->io_req = els_req; in bnx2fc_initiate_els()
709 els_req->cb_arg = cb_arg; in bnx2fc_initiate_els()
735 els_req->cb_arg = NULL; in bnx2fc_initiate_els()
776 els_req->cb_arg = NULL; in bnx2fc_initiate_els()
841 if ((els_req->cb_func) && (els_req->cb_arg)) { in bnx2fc_process_els_compl()
842 els_req->cb_func(els_req->cb_arg); in bnx2fc_process_els_compl()
843 els_req->cb_arg = NULL; in bnx2fc_process_els_compl()