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)
34 BUG_ON(!cb_arg);
35 rrq_req = cb_arg->io_req;
36 orig_io_req = cb_arg->aborted_io_req;
58 kfree(cb_arg);
66 struct bnx2fc_els_cb_arg *cb_arg = NULL;
83 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_NOIO);
84 if (!cb_arg) {
85 printk(KERN_ERR PFX "Unable to allocate cb_arg for RRQ\n");
90 cb_arg->aborted_io_req = aborted_io_req;
99 bnx2fc_rrq_compl, cb_arg,
114 kfree(cb_arg);
122 static void bnx2fc_l2_els_compl(struct bnx2fc_els_cb_arg *cb_arg)
135 l2_oxid = cb_arg->l2_oxid;
138 els_req = cb_arg->io_req;
179 kfree(cb_arg);
186 struct bnx2fc_els_cb_arg *cb_arg;
192 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC);
193 if (!cb_arg) {
194 printk(KERN_ERR PFX "Unable to allocate cb_arg for ADISC\n");
198 cb_arg->l2_oxid = ntohs(fh->fh_ox_id);
200 BNX2FC_ELS_DBG("send ADISC: l2_oxid = 0x%x\n", cb_arg->l2_oxid);
204 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov);
206 kfree(cb_arg);
214 struct bnx2fc_els_cb_arg *cb_arg;
220 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC);
221 if (!cb_arg) {
222 printk(KERN_ERR PFX "Unable to allocate cb_arg for LOGO\n");
226 cb_arg->l2_oxid = ntohs(fh->fh_ox_id);
228 BNX2FC_ELS_DBG("Send LOGO: l2_oxid = 0x%x\n", cb_arg->l2_oxid);
232 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov);
234 kfree(cb_arg);
242 struct bnx2fc_els_cb_arg *cb_arg;
248 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC);
249 if (!cb_arg) {
250 printk(KERN_ERR PFX "Unable to allocate cb_arg for LOGO\n");
254 cb_arg->l2_oxid = ntohs(fh->fh_ox_id);
259 bnx2fc_l2_els_compl, cb_arg, 2 * r_a_tov);
261 kfree(cb_arg);
265 static void bnx2fc_srr_compl(struct bnx2fc_els_cb_arg *cb_arg)
278 orig_io_req = cb_arg->aborted_io_req;
279 srr_req = cb_arg->io_req;
375 static void bnx2fc_rec_compl(struct bnx2fc_els_cb_arg *cb_arg)
399 rec_req = cb_arg->io_req;
400 orig_io_req = cb_arg->aborted_io_req;
579 kfree(cb_arg);
587 struct bnx2fc_els_cb_arg *cb_arg = NULL;
595 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC);
596 if (!cb_arg) {
597 printk(KERN_ERR PFX "Unable to allocate cb_arg for REC\n");
603 cb_arg->aborted_io_req = orig_io_req;
611 bnx2fc_rec_compl, cb_arg,
618 kfree(cb_arg);
629 struct bnx2fc_els_cb_arg *cb_arg = NULL;
636 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC);
637 if (!cb_arg) {
638 printk(KERN_ERR PFX "Unable to allocate cb_arg for SRR\n");
644 cb_arg->aborted_io_req = orig_io_req;
655 bnx2fc_srr_compl, cb_arg,
662 kfree(cb_arg);
672 void (*cb_func)(struct bnx2fc_els_cb_arg *cb_arg),
673 struct bnx2fc_els_cb_arg *cb_arg, u32 timer_msec)
715 cb_arg->io_req = els_req;
716 els_req->cb_arg = cb_arg;
743 els_req->cb_arg = NULL;
784 els_req->cb_arg = NULL;
849 if ((els_req->cb_func) && (els_req->cb_arg)) {
850 els_req->cb_func(els_req->cb_arg);
851 els_req->cb_arg = NULL;