Lines Matching refs:cb_arg

25 			void (*cb_func)(struct bnx2fc_els_cb_arg *cb_arg),
26 struct bnx2fc_els_cb_arg *cb_arg, u32 timer_msec);
28 static void bnx2fc_rrq_compl(struct bnx2fc_els_cb_arg *cb_arg) in bnx2fc_rrq_compl() argument
34 BUG_ON(!cb_arg); in bnx2fc_rrq_compl()
35 rrq_req = cb_arg->io_req; in bnx2fc_rrq_compl()
36 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rrq_compl()
58 kfree(cb_arg); in bnx2fc_rrq_compl()
66 struct bnx2fc_els_cb_arg *cb_arg = NULL; in bnx2fc_send_rrq() local
83 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_NOIO); in bnx2fc_send_rrq()
84 if (!cb_arg) { in bnx2fc_send_rrq()
90 cb_arg->aborted_io_req = aborted_io_req; in bnx2fc_send_rrq()
99 bnx2fc_rrq_compl, cb_arg, in bnx2fc_send_rrq()
114 kfree(cb_arg); in bnx2fc_send_rrq()
122 static void bnx2fc_l2_els_compl(struct bnx2fc_els_cb_arg *cb_arg) in bnx2fc_l2_els_compl() argument
135 l2_oxid = cb_arg->l2_oxid; in bnx2fc_l2_els_compl()
138 els_req = cb_arg->io_req; in bnx2fc_l2_els_compl()
179 kfree(cb_arg); in bnx2fc_l2_els_compl()
186 struct bnx2fc_els_cb_arg *cb_arg; in bnx2fc_send_adisc() local
192 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_adisc()
193 if (!cb_arg) { in bnx2fc_send_adisc()
198 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_adisc()
200 BNX2FC_ELS_DBG("send ADISC: l2_oxid = 0x%x\n", cb_arg->l2_oxid); in bnx2fc_send_adisc()
204 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov); in bnx2fc_send_adisc()
206 kfree(cb_arg); in bnx2fc_send_adisc()
214 struct bnx2fc_els_cb_arg *cb_arg; in bnx2fc_send_logo() local
220 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_logo()
221 if (!cb_arg) { in bnx2fc_send_logo()
226 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_logo()
228 BNX2FC_ELS_DBG("Send LOGO: l2_oxid = 0x%x\n", cb_arg->l2_oxid); in bnx2fc_send_logo()
232 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov); in bnx2fc_send_logo()
234 kfree(cb_arg); in bnx2fc_send_logo()
242 struct bnx2fc_els_cb_arg *cb_arg; in bnx2fc_send_rls() local
248 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_rls()
249 if (!cb_arg) { in bnx2fc_send_rls()
254 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in bnx2fc_send_rls()
259 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov); in bnx2fc_send_rls()
261 kfree(cb_arg); in bnx2fc_send_rls()
265 static void bnx2fc_srr_compl(struct bnx2fc_els_cb_arg *cb_arg) in bnx2fc_srr_compl() argument
278 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_srr_compl()
279 srr_req = cb_arg->io_req; in bnx2fc_srr_compl()
375 static void bnx2fc_rec_compl(struct bnx2fc_els_cb_arg *cb_arg) in bnx2fc_rec_compl() argument
399 rec_req = cb_arg->io_req; in bnx2fc_rec_compl()
400 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rec_compl()
579 kfree(cb_arg); in bnx2fc_rec_compl()
587 struct bnx2fc_els_cb_arg *cb_arg = NULL; in bnx2fc_send_rec() local
595 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_rec()
596 if (!cb_arg) { in bnx2fc_send_rec()
603 cb_arg->aborted_io_req = orig_io_req; in bnx2fc_send_rec()
611 bnx2fc_rec_compl, cb_arg, in bnx2fc_send_rec()
618 kfree(cb_arg); in bnx2fc_send_rec()
629 struct bnx2fc_els_cb_arg *cb_arg = NULL; in bnx2fc_send_srr() local
636 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_srr()
637 if (!cb_arg) { in bnx2fc_send_srr()
644 cb_arg->aborted_io_req = orig_io_req; in bnx2fc_send_srr()
655 bnx2fc_srr_compl, cb_arg, in bnx2fc_send_srr()
662 kfree(cb_arg); in bnx2fc_send_srr()
672 void (*cb_func)(struct bnx2fc_els_cb_arg *cb_arg), in bnx2fc_initiate_els() argument
673 struct bnx2fc_els_cb_arg *cb_arg, u32 timer_msec) 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()
743 els_req->cb_arg = NULL; in bnx2fc_initiate_els()
784 els_req->cb_arg = NULL; in bnx2fc_initiate_els()
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()