Lines Matching refs:iu

156 	struct ibmvfc_cmd *vfc_cmd = &evt->iu.cmd;
157 struct ibmvfc_mad_common *mad = &evt->iu.mad_common;
168 entry->op_code = vfc_cmd->iu.cdb[0];
170 entry->lun = scsilun_to_int(&vfc_cmd->iu.lun);
171 entry->tmf_flags = vfc_cmd->iu.tmf_flags;
172 entry->u.start.xfer_len = be32_to_cpu(vfc_cmd->iu.xfer_len);
201 entry->op_code = vfc_cmd->iu.cdb[0];
203 entry->lun = scsilun_to_int(&vfc_cmd->iu.lun);
204 entry->tmf_flags = vfc_cmd->iu.tmf_flags;
1350 vfc_cmd->iu.add_cdb_len |= IBMVFC_WRDATA;
1353 vfc_cmd->iu.add_cdb_len |= IBMVFC_RDDATA;
1411 *evt->xfer_iu = evt->iu;
1633 vfc_cmd = &evt->iu.cmd;
1638 vfc_cmd->payload_len = cpu_to_be32(sizeof(vfc_cmd->iu));
1642 vfc_cmd->iu.xfer_len = cpu_to_be32(scsi_bufflen(cmnd));
1643 int_to_scsilun(cmnd->device->lun, &vfc_cmd->iu.lun);
1644 memcpy(vfc_cmd->iu.cdb, cmnd->cmnd, cmnd->cmd_len);
1650 vfc_cmd->iu.pri_task_attr = IBMVFC_SIMPLE_TASK;
1653 vfc_cmd->iu.pri_task_attr = IBMVFC_HEAD_OF_QUEUE;
1656 vfc_cmd->iu.pri_task_attr = IBMVFC_ORDERED_TASK;
1735 tmf = &evt->iu.tmf;
1792 plogi = &evt->iu.plogi;
1906 mad = &evt->iu.passthru;
1911 mad->common.length = cpu_to_be16(sizeof(*mad) - sizeof(mad->fc_iu) - sizeof(mad->iu));
1914 offsetof(struct ibmvfc_passthru_mad, iu));
1915 mad->cmd_ioba.len = cpu_to_be32(sizeof(mad->iu));
1917 mad->iu.cmd_len = cpu_to_be32(job->request_payload.payload_len);
1918 mad->iu.rsp_len = cpu_to_be32(job->reply_payload.payload_len);
1919 mad->iu.flags = cpu_to_be32(fc_flags);
1920 mad->iu.cancel_key = cpu_to_be32(IBMVFC_PASSTHRU_CANCEL_KEY);
1922 mad->iu.cmd.va = cpu_to_be64(sg_dma_address(job->request_payload.sg_list));
1923 mad->iu.cmd.len = cpu_to_be32(sg_dma_len(job->request_payload.sg_list));
1924 mad->iu.rsp.va = cpu_to_be64(sg_dma_address(job->reply_payload.sg_list));
1925 mad->iu.rsp.len = cpu_to_be32(sg_dma_len(job->reply_payload.sg_list));
1926 mad->iu.scsi_id = cpu_to_be64(port_id);
1927 mad->iu.tag = cpu_to_be64((u64)evt);
1928 rsp_len = be32_to_cpu(mad->iu.rsp.len);
1989 tmf = &evt->iu.cmd;
1994 tmf->payload_len = cpu_to_be32(sizeof(tmf->iu));
1998 int_to_scsilun(sdev->lun, &tmf->iu.lun);
2000 tmf->iu.tmf_flags = type;
2188 tmf = &evt->iu.tmf;
2257 be32_to_cpu(evt->iu.cmd.cancel_key) == cancel_key)
2319 tmf = &evt->iu.cmd;
2324 tmf->payload_len = cpu_to_be32(sizeof(tmf->iu));
2328 int_to_scsilun(sdev->lun, &tmf->iu.lun);
2330 tmf->iu.tmf_flags = IBMVFC_ABORT_TASK_SET;
3418 prli = &evt->iu.prli;
3516 plogi = &evt->iu.plogi;
3589 mad = &evt->iu.implicit_logout;
3658 ibmvfc_get_cmd_error(be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error)),
3659 mad->iu.status, mad->iu.error,
3677 struct ibmvfc_passthru_mad *mad = &evt->iu.passthru;
3682 mad->common.length = cpu_to_be16(sizeof(*mad) - sizeof(mad->fc_iu) - sizeof(mad->iu));
3684 offsetof(struct ibmvfc_passthru_mad, iu));
3685 mad->cmd_ioba.len = cpu_to_be32(sizeof(mad->iu));
3686 mad->iu.cmd_len = cpu_to_be32(sizeof(mad->fc_iu.payload));
3687 mad->iu.rsp_len = cpu_to_be32(sizeof(mad->fc_iu.response));
3688 mad->iu.cmd.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
3691 mad->iu.cmd.len = cpu_to_be32(sizeof(mad->fc_iu.payload));
3692 mad->iu.rsp.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
3695 mad->iu.rsp.len = cpu_to_be32(sizeof(mad->fc_iu.response));
3752 tmf = &evt->iu.tmf;
3799 mad = &evt->iu.passthru;
3800 mad->iu.flags = cpu_to_be32(IBMVFC_FC_ELS);
3801 mad->iu.scsi_id = cpu_to_be64(tgt->scsi_id);
3802 mad->iu.cancel_key = cpu_to_be32(tgt->cancel_key);
3902 query_tgt = &evt->iu.query_tgt;
4031 mad = &evt->iu.discover_targets;
4146 mad = &evt->iu.npiv_login;
4207 mad = &evt->iu.npiv_logout;