Lines Matching refs:iu

192 		return &vfc_cmd->v2.iu;
194 return &vfc_cmd->v1.iu;
215 struct ibmvfc_cmd *vfc_cmd = &evt->iu.cmd;
216 struct ibmvfc_mad_common *mad = &evt->iu.mad_common;
217 struct ibmvfc_fcp_cmd_iu *iu = ibmvfc_get_fcp_iu(vhost, vfc_cmd);
229 entry->op_code = iu->cdb[0];
231 entry->lun = scsilun_to_int(&iu->lun);
232 entry->tmf_flags = iu->tmf_flags;
233 entry->u.start.xfer_len = be32_to_cpu(iu->xfer_len);
253 struct ibmvfc_fcp_cmd_iu *iu = ibmvfc_get_fcp_iu(vhost, vfc_cmd);
266 entry->op_code = iu->cdb[0];
268 entry->lun = scsilun_to_int(&iu->lun);
269 entry->tmf_flags = iu->tmf_flags;
1610 struct ibmvfc_fcp_cmd_iu *iu = ibmvfc_get_fcp_iu(evt->vhost, vfc_cmd);
1627 iu->add_cdb_len |= IBMVFC_WRDATA;
1630 iu->add_cdb_len |= IBMVFC_RDDATA;
1690 *evt->xfer_iu = evt->iu;
1900 struct ibmvfc_cmd *vfc_cmd = &evt->iu.cmd;
1901 struct ibmvfc_fcp_cmd_iu *iu = ibmvfc_get_fcp_iu(vhost, vfc_cmd);
1914 vfc_cmd->payload_len = cpu_to_be32(sizeof(*iu));
1918 int_to_scsilun(sdev->lun, &iu->lun);
1936 struct ibmvfc_fcp_cmd_iu *iu;
1968 iu = ibmvfc_get_fcp_iu(vhost, vfc_cmd);
1970 iu->xfer_len = cpu_to_be32(scsi_bufflen(cmnd));
1971 memcpy(iu->cdb, cmnd->cmnd, cmnd->cmd_len);
1975 iu->pri_task_attr = IBMVFC_SIMPLE_TASK;
2057 tmf = &evt->iu.tmf;
2118 plogi = &evt->iu.plogi;
2241 mad = &evt->iu.passthru;
2246 mad->common.length = cpu_to_be16(sizeof(*mad) - sizeof(mad->fc_iu) - sizeof(mad->iu));
2249 offsetof(struct ibmvfc_passthru_mad, iu));
2250 mad->cmd_ioba.len = cpu_to_be32(sizeof(mad->iu));
2252 mad->iu.cmd_len = cpu_to_be32(job->request_payload.payload_len);
2253 mad->iu.rsp_len = cpu_to_be32(job->reply_payload.payload_len);
2254 mad->iu.flags = cpu_to_be32(fc_flags);
2255 mad->iu.cancel_key = cpu_to_be32(IBMVFC_PASSTHRU_CANCEL_KEY);
2257 mad->iu.cmd.va = cpu_to_be64(sg_dma_address(job->request_payload.sg_list));
2258 mad->iu.cmd.len = cpu_to_be32(sg_dma_len(job->request_payload.sg_list));
2259 mad->iu.rsp.va = cpu_to_be64(sg_dma_address(job->reply_payload.sg_list));
2260 mad->iu.rsp.len = cpu_to_be32(sg_dma_len(job->reply_payload.sg_list));
2261 mad->iu.scsi_id = cpu_to_be64(port_id);
2262 mad->iu.tag = cpu_to_be64((u64)evt);
2263 rsp_len = be32_to_cpu(mad->iu.rsp.len);
2315 struct ibmvfc_fcp_cmd_iu *iu;
2335 iu = ibmvfc_get_fcp_iu(vhost, tmf);
2340 iu->tmf_flags = type;
2540 tmf = &evt->iu.tmf;
2749 be32_to_cpu(evt->iu.cmd.cancel_key) == cancel_key)
2786 struct ibmvfc_fcp_cmd_iu *iu;
2818 iu = ibmvfc_get_fcp_iu(vhost, tmf);
2822 iu->tmf_flags = IBMVFC_ABORT_TASK_SET;
4083 prli = &evt->iu.prli;
4197 plogi = &evt->iu.plogi;
4273 mad = &evt->iu.implicit_logout;
4454 move = &evt->iu.move_login;
4524 ibmvfc_get_cmd_error(be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error)),
4525 be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error),
4543 struct ibmvfc_passthru_mad *mad = &evt->iu.passthru;
4548 mad->common.length = cpu_to_be16(sizeof(*mad) - sizeof(mad->fc_iu) - sizeof(mad->iu));
4550 offsetof(struct ibmvfc_passthru_mad, iu));
4551 mad->cmd_ioba.len = cpu_to_be32(sizeof(mad->iu));
4552 mad->iu.cmd_len = cpu_to_be32(sizeof(mad->fc_iu.payload));
4553 mad->iu.rsp_len = cpu_to_be32(sizeof(mad->fc_iu.response));
4554 mad->iu.cmd.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
4557 mad->iu.cmd.len = cpu_to_be32(sizeof(mad->fc_iu.payload));
4558 mad->iu.rsp.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
4561 mad->iu.rsp.len = cpu_to_be32(sizeof(mad->fc_iu.response));
4627 tmf = &evt->iu.tmf;
4685 mad = &evt->iu.passthru;
4686 mad->iu.flags = cpu_to_be32(IBMVFC_FC_ELS);
4687 mad->iu.scsi_id = cpu_to_be64(tgt->scsi_id);
4688 mad->iu.cancel_key = cpu_to_be32(tgt->cancel_key);
4792 query_tgt = &evt->iu.query_tgt;
4970 mad = &evt->iu.discover_targets;
5064 mad = &evt->iu.channel_setup;
5124 mad = &evt->iu.channel_enquiry;
5255 mad = &evt->iu.npiv_login;
5322 mad = &evt->iu.npiv_logout;