Lines Matching refs:cb_arg

11 	void (*cb_func)(struct qedf_els_cb_arg *cb_arg),
12 struct qedf_els_cb_arg *cb_arg, uint32_t timer_msec)
66 "0x%p cb_arg = %p xid = %x\n", els_req, cb_arg,
72 cb_arg->io_req = els_req;
73 cb_arg->op = op;
74 els_req->cb_arg = cb_arg;
96 els_req->cb_arg = NULL;
183 if ((els_req->cb_func) && (els_req->cb_arg)) {
184 els_req->cb_func(els_req->cb_arg);
185 els_req->cb_arg = NULL;
191 static void qedf_rrq_compl(struct qedf_els_cb_arg *cb_arg)
198 rrq_req = cb_arg->io_req;
203 orig_io_req = cb_arg->aborted_io_req;
233 kfree(cb_arg);
243 struct qedf_els_cb_arg *cb_arg = NULL;
300 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO);
301 if (!cb_arg) {
302 QEDF_ERR(&(qedf->dbg_ctx), "Unable to allocate cb_arg for "
308 cb_arg->aborted_io_req = aborted_io_req;
317 qedf_rrq_compl, cb_arg, r_a_tov);
323 kfree(cb_arg);
418 static void qedf_l2_els_compl(struct qedf_els_cb_arg *cb_arg)
429 l2_oxid = cb_arg->l2_oxid;
430 els_req = cb_arg->io_req;
438 * If we are flushing the command just free the cb_arg as none of the
466 if (cb_arg->op == ELS_ADISC)
497 kfree(cb_arg);
505 struct qedf_els_cb_arg *cb_arg = NULL;
513 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO);
514 if (!cb_arg) {
515 QEDF_ERR(&(qedf->dbg_ctx), "Unable to allocate cb_arg for "
520 cb_arg->l2_oxid = ntohs(fh->fh_ox_id);
523 "Sending ADISC ox_id=0x%x.\n", cb_arg->l2_oxid);
528 qedf_l2_els_compl, cb_arg, r_a_tov);
533 kfree(cb_arg);
538 static void qedf_srr_compl(struct qedf_els_cb_arg *cb_arg)
552 srr_req = cb_arg->io_req;
556 orig_io_req = cb_arg->aborted_io_req;
620 kfree(cb_arg);
629 struct qedf_els_cb_arg *cb_arg = NULL;
662 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO);
663 if (!cb_arg) {
664 QEDF_ERR(&(qedf->dbg_ctx), "Unable to allocate cb_arg for "
670 cb_arg->aborted_io_req = orig_io_req;
679 qedf_srr_compl, cb_arg, r_a_tov);
685 kfree(cb_arg);
701 struct qedf_els_cb_arg *cb_arg;
711 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO);
712 if (!cb_arg) {
713 QEDF_ERR(&(fcport->qedf->dbg_ctx), "Unable to allocate cb_arg "
722 cb_arg->offset = offset;
723 cb_arg->r_ctl = r_ctl;
724 orig_io_req->cb_arg = cb_arg;
747 struct qedf_els_cb_arg *cb_arg;
749 cb_arg = io_req->cb_arg;
761 rc = qedf_send_srr(io_req, cb_arg->offset, cb_arg->r_ctl);
766 kfree(cb_arg);
833 static void qedf_rec_compl(struct qedf_els_cb_arg *cb_arg)
853 rec_req = cb_arg->io_req;
857 orig_io_req = cb_arg->aborted_io_req;
992 kfree(cb_arg);
1002 struct qedf_els_cb_arg *cb_arg = NULL;
1036 cb_arg = kzalloc(sizeof(struct qedf_els_cb_arg), GFP_NOIO);
1037 if (!cb_arg) {
1038 QEDF_ERR(&(qedf->dbg_ctx), "Unable to allocate cb_arg for "
1044 cb_arg->aborted_io_req = orig_io_req;
1056 qedf_rec_compl, cb_arg, r_a_tov);
1062 kfree(cb_arg);