Lines Matching refs:cb_arg

11 	void (*cb_func)(struct qedf_els_cb_arg *cb_arg),  in qedf_initiate_els()  argument
12 struct qedf_els_cb_arg *cb_arg, uint32_t timer_msec) in qedf_initiate_els()
66 "0x%p cb_arg = %p xid = %x\n", els_req, cb_arg, in qedf_initiate_els()
72 cb_arg->io_req = els_req; in qedf_initiate_els()
73 cb_arg->op = op; in qedf_initiate_els()
74 els_req->cb_arg = cb_arg; in qedf_initiate_els()
96 els_req->cb_arg = NULL; in qedf_initiate_els()
183 if ((els_req->cb_func) && (els_req->cb_arg)) { in qedf_process_els_compl()
184 els_req->cb_func(els_req->cb_arg); in qedf_process_els_compl()
185 els_req->cb_arg = NULL; in qedf_process_els_compl()
191 static void qedf_rrq_compl(struct qedf_els_cb_arg *cb_arg) in qedf_rrq_compl() argument
198 rrq_req = cb_arg->io_req; in qedf_rrq_compl()
203 orig_io_req = cb_arg->aborted_io_req; in qedf_rrq_compl()
233 kfree(cb_arg); in qedf_rrq_compl()
243 struct qedf_els_cb_arg *cb_arg = NULL; in qedf_send_rrq() local
300 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO); in qedf_send_rrq()
301 if (!cb_arg) { in qedf_send_rrq()
308 cb_arg->aborted_io_req = aborted_io_req; in qedf_send_rrq()
317 qedf_rrq_compl, cb_arg, r_a_tov); in qedf_send_rrq()
323 kfree(cb_arg); in qedf_send_rrq()
418 static void qedf_l2_els_compl(struct qedf_els_cb_arg *cb_arg) in qedf_l2_els_compl() argument
429 l2_oxid = cb_arg->l2_oxid; in qedf_l2_els_compl()
430 els_req = cb_arg->io_req; in qedf_l2_els_compl()
466 if (cb_arg->op == ELS_ADISC) in qedf_l2_els_compl()
497 kfree(cb_arg); in qedf_l2_els_compl()
505 struct qedf_els_cb_arg *cb_arg = NULL; in qedf_send_adisc() local
513 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO); in qedf_send_adisc()
514 if (!cb_arg) { in qedf_send_adisc()
520 cb_arg->l2_oxid = ntohs(fh->fh_ox_id); in qedf_send_adisc()
523 "Sending ADISC ox_id=0x%x.\n", cb_arg->l2_oxid); in qedf_send_adisc()
528 qedf_l2_els_compl, cb_arg, r_a_tov); in qedf_send_adisc()
533 kfree(cb_arg); in qedf_send_adisc()
538 static void qedf_srr_compl(struct qedf_els_cb_arg *cb_arg) in qedf_srr_compl() argument
552 srr_req = cb_arg->io_req; in qedf_srr_compl()
556 orig_io_req = cb_arg->aborted_io_req; in qedf_srr_compl()
620 kfree(cb_arg); in qedf_srr_compl()
629 struct qedf_els_cb_arg *cb_arg = NULL; in qedf_send_srr() local
662 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO); in qedf_send_srr()
663 if (!cb_arg) { in qedf_send_srr()
670 cb_arg->aborted_io_req = orig_io_req; in qedf_send_srr()
679 qedf_srr_compl, cb_arg, r_a_tov); in qedf_send_srr()
685 kfree(cb_arg); in qedf_send_srr()
701 struct qedf_els_cb_arg *cb_arg; in qedf_initiate_seq_cleanup() local
711 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO); in qedf_initiate_seq_cleanup()
712 if (!cb_arg) { in qedf_initiate_seq_cleanup()
722 cb_arg->offset = offset; in qedf_initiate_seq_cleanup()
723 cb_arg->r_ctl = r_ctl; in qedf_initiate_seq_cleanup()
724 orig_io_req->cb_arg = cb_arg; in qedf_initiate_seq_cleanup()
747 struct qedf_els_cb_arg *cb_arg; in qedf_process_seq_cleanup_compl() local
749 cb_arg = io_req->cb_arg; in qedf_process_seq_cleanup_compl()
761 rc = qedf_send_srr(io_req, cb_arg->offset, cb_arg->r_ctl); in qedf_process_seq_cleanup_compl()
766 kfree(cb_arg); in qedf_process_seq_cleanup_compl()
833 static void qedf_rec_compl(struct qedf_els_cb_arg *cb_arg) in qedf_rec_compl() argument
853 rec_req = cb_arg->io_req; in qedf_rec_compl()
857 orig_io_req = cb_arg->aborted_io_req; in qedf_rec_compl()
992 kfree(cb_arg); in qedf_rec_compl()
1002 struct qedf_els_cb_arg *cb_arg = NULL; in qedf_send_rec() local
1036 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO); in qedf_send_rec()
1037 if (!cb_arg) { in qedf_send_rec()
1044 cb_arg->aborted_io_req = orig_io_req; in qedf_send_rec()
1056 qedf_rec_compl, cb_arg, r_a_tov); in qedf_send_rec()
1062 kfree(cb_arg); in qedf_send_rec()