Lines Matching refs:iocb
106 int fn, void *iocb, int flags);
496 static int qlt_reset(struct scsi_qla_host *vha, void *iocb, int mcmd) in qlt_reset() argument
503 struct imm_ntfy_from_isp *n = (struct imm_ntfy_from_isp *)iocb; in qlt_reset()
504 struct atio_from_isp *a = (struct atio_from_isp *)iocb; in qlt_reset()
556 iocb, QLA24XX_MGMT_SEND_NACK); in qlt_reset()
3803 int fn, void *iocb, int flags) in qlt_issue_task_mgmt() argument
3808 struct atio_from_isp *a = (struct atio_from_isp *)iocb; in qlt_issue_task_mgmt()
3823 if (iocb) { in qlt_issue_task_mgmt()
3824 memcpy(&mcmd->orig_iocb.imm_ntfy, iocb, in qlt_issue_task_mgmt()
3912 static int qlt_handle_task_mgmt(struct scsi_qla_host *vha, void *iocb) in qlt_handle_task_mgmt() argument
3914 struct atio_from_isp *a = (struct atio_from_isp *)iocb; in qlt_handle_task_mgmt()
3933 return qlt_sched_sess_work(tgt, QLA_TGT_SESS_WORK_TM, iocb, in qlt_handle_task_mgmt()
3940 return qlt_issue_task_mgmt(sess, unpacked_lun, fn, iocb, 0); in qlt_handle_task_mgmt()
3945 struct imm_ntfy_from_isp *iocb, struct qla_tgt_sess *sess) in __qlt_abort_task() argument
3947 struct atio_from_isp *a = (struct atio_from_isp *)iocb; in __qlt_abort_task()
3963 memcpy(&mcmd->orig_iocb.imm_ntfy, iocb, in __qlt_abort_task()
3971 le16_to_cpu(iocb->u.isp2x.seq_id)); in __qlt_abort_task()
3985 struct imm_ntfy_from_isp *iocb) in qlt_abort_task() argument
3991 loop_id = GET_TARGET_ID(ha, (struct atio_from_isp *)iocb); in qlt_abort_task()
3999 QLA_TGT_SESS_WORK_ABORT, iocb, sizeof(*iocb)); in qlt_abort_task()
4002 return __qlt_abort_task(vha, iocb, sess); in qlt_abort_task()
4135 struct imm_ntfy_from_isp *iocb) in qlt_24xx_handle_els() argument
4146 wwn = wwn_to_u64(iocb->u.isp24.port_name); in qlt_24xx_handle_els()
4148 port_id.b.domain = iocb->u.isp24.port_id[2]; in qlt_24xx_handle_els()
4149 port_id.b.area = iocb->u.isp24.port_id[1]; in qlt_24xx_handle_els()
4150 port_id.b.al_pa = iocb->u.isp24.port_id[0]; in qlt_24xx_handle_els()
4153 loop_id = le16_to_cpu(iocb->u.isp24.nport_handle); in qlt_24xx_handle_els()
4157 vha->vp_idx, iocb->u.isp24.port_id, iocb->u.isp24.status_subcode); in qlt_24xx_handle_els()
4162 switch (iocb->u.isp24.status_subcode) { in qlt_24xx_handle_els()
4187 qlt_swap_imm_ntfy_iocb(iocb, &sess->tm_iocb); in qlt_24xx_handle_els()
4189 qlt_send_term_imm_notif(vha, iocb, 1); in qlt_24xx_handle_els()
4201 memcpy(&sess->tm_iocb, iocb, sizeof(sess->tm_iocb)); in qlt_24xx_handle_els()
4228 wd3_lo = le16_to_cpu(iocb->u.isp24.u.prli.wd3_lo); in qlt_24xx_handle_els()
4244 qlt_send_term_imm_notif(vha, iocb, 1); in qlt_24xx_handle_els()
4255 sess->loop_id, sess, iocb->u.isp24.nport_handle); in qlt_24xx_handle_els()
4281 res = qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS_SESS); in qlt_24xx_handle_els()
4300 "received\n", vha->vp_idx, iocb->u.isp24.status_subcode); in qlt_24xx_handle_els()
4301 res = qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS_SESS); in qlt_24xx_handle_els()
4667 struct imm_ntfy_from_isp *iocb) in qlt_prepare_srr_imm() argument
4680 memcpy(&imm->imm_ntfy, iocb, sizeof(imm->imm_ntfy)); in qlt_prepare_srr_imm()
4689 imm, imm->srr_id, iocb->u.isp24.srr_ui); in qlt_prepare_srr_imm()
4747 qlt_send_notify_ack(vha, iocb, 0, 0, 0, in qlt_prepare_srr_imm()
4757 struct imm_ntfy_from_isp *iocb) in qlt_handle_imm_notify() argument
4764 status = le16_to_cpu(iocb->u.isp2x.status); in qlt_handle_imm_notify()
4770 vha->vp_idx, le16_to_cpu(iocb->u.isp24.nport_handle), in qlt_handle_imm_notify()
4771 iocb->u.isp24.status_subcode); in qlt_handle_imm_notify()
4773 if (qlt_reset(vha, iocb, QLA_TGT_ABORT_ALL) == 0) in qlt_handle_imm_notify()
4784 le16_to_cpu(iocb->u.isp24.nport_handle), in qlt_handle_imm_notify()
4785 iocb->u.isp24.status_subcode); in qlt_handle_imm_notify()
4790 memcpy(&tgt->link_reinit_iocb, iocb, sizeof(*iocb)); in qlt_handle_imm_notify()
4804 le16_to_cpu(iocb->u.isp24.nport_handle), in qlt_handle_imm_notify()
4805 iocb->u.isp24.status_subcode); in qlt_handle_imm_notify()
4807 if (qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS_SESS) == 0) in qlt_handle_imm_notify()
4815 if (qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS) == 0) in qlt_handle_imm_notify()
4824 if (qlt_reset(vha, iocb, QLA_TGT_ABORT_ALL) == 0) in qlt_handle_imm_notify()
4834 if (qlt_reset(vha, iocb, QLA_TGT_NEXUS_LOSS) == 0) in qlt_handle_imm_notify()
4849 le16_to_cpu(iocb->u.isp2x.seq_id), in qlt_handle_imm_notify()
4850 GET_TARGET_ID(ha, (struct atio_from_isp *)iocb), in qlt_handle_imm_notify()
4851 le16_to_cpu(iocb->u.isp2x.lun)); in qlt_handle_imm_notify()
4852 if (qlt_abort_task(vha, iocb) == 0) in qlt_handle_imm_notify()
4865 vha->vp_idx, iocb->u.isp2x.task_flags); in qlt_handle_imm_notify()
4866 if (qlt_handle_task_mgmt(vha, iocb) == 0) in qlt_handle_imm_notify()
4871 if (qlt_24xx_handle_els(vha, iocb) == 0) in qlt_handle_imm_notify()
4876 qlt_prepare_srr_imm(vha, iocb); in qlt_handle_imm_notify()
4888 qlt_send_notify_ack(vha, iocb, add_flags, 0, 0, 0, 0, 0); in qlt_handle_imm_notify()
5654 void *iocb; in qlt_tmr_work() local
5683 iocb = a; in qlt_tmr_work()
5688 rc = qlt_issue_task_mgmt(sess, unpacked_lun, fn, iocb, 0); in qlt_tmr_work()