Lines Matching refs:iu

150 	struct ibmvfc_cmd *vfc_cmd = &evt->iu.cmd;
151 struct ibmvfc_mad_common *mad = &evt->iu.mad_common;
162 entry->op_code = vfc_cmd->iu.cdb[0];
164 entry->lun = scsilun_to_int(&vfc_cmd->iu.lun);
165 entry->tmf_flags = vfc_cmd->iu.tmf_flags;
166 entry->u.start.xfer_len = be32_to_cpu(vfc_cmd->iu.xfer_len);
195 entry->op_code = vfc_cmd->iu.cdb[0];
197 entry->lun = scsilun_to_int(&vfc_cmd->iu.lun);
198 entry->tmf_flags = vfc_cmd->iu.tmf_flags;
1402 vfc_cmd->iu.add_cdb_len |= IBMVFC_WRDATA;
1405 vfc_cmd->iu.add_cdb_len |= IBMVFC_RDDATA;
1464 *evt->xfer_iu = evt->iu;
1683 vfc_cmd = &evt->iu.cmd;
1688 vfc_cmd->payload_len = cpu_to_be32(sizeof(vfc_cmd->iu));
1692 vfc_cmd->iu.xfer_len = cpu_to_be32(scsi_bufflen(cmnd));
1693 int_to_scsilun(cmnd->device->lun, &vfc_cmd->iu.lun);
1694 memcpy(vfc_cmd->iu.cdb, cmnd->cmnd, cmnd->cmd_len);
1698 vfc_cmd->iu.pri_task_attr = IBMVFC_SIMPLE_TASK;
1775 tmf = &evt->iu.tmf;
1832 plogi = &evt->iu.plogi;
1950 mad = &evt->iu.passthru;
1955 mad->common.length = cpu_to_be16(sizeof(*mad) - sizeof(mad->fc_iu) - sizeof(mad->iu));
1958 offsetof(struct ibmvfc_passthru_mad, iu));
1959 mad->cmd_ioba.len = cpu_to_be32(sizeof(mad->iu));
1961 mad->iu.cmd_len = cpu_to_be32(job->request_payload.payload_len);
1962 mad->iu.rsp_len = cpu_to_be32(job->reply_payload.payload_len);
1963 mad->iu.flags = cpu_to_be32(fc_flags);
1964 mad->iu.cancel_key = cpu_to_be32(IBMVFC_PASSTHRU_CANCEL_KEY);
1966 mad->iu.cmd.va = cpu_to_be64(sg_dma_address(job->request_payload.sg_list));
1967 mad->iu.cmd.len = cpu_to_be32(sg_dma_len(job->request_payload.sg_list));
1968 mad->iu.rsp.va = cpu_to_be64(sg_dma_address(job->reply_payload.sg_list));
1969 mad->iu.rsp.len = cpu_to_be32(sg_dma_len(job->reply_payload.sg_list));
1970 mad->iu.scsi_id = cpu_to_be64(port_id);
1971 mad->iu.tag = cpu_to_be64((u64)evt);
1972 rsp_len = be32_to_cpu(mad->iu.rsp.len);
2034 tmf = &evt->iu.cmd;
2039 tmf->payload_len = cpu_to_be32(sizeof(tmf->iu));
2043 int_to_scsilun(sdev->lun, &tmf->iu.lun);
2045 tmf->iu.tmf_flags = type;
2233 tmf = &evt->iu.tmf;
2302 be32_to_cpu(evt->iu.cmd.cancel_key) == cancel_key)
2364 tmf = &evt->iu.cmd;
2369 tmf->payload_len = cpu_to_be32(sizeof(tmf->iu));
2373 int_to_scsilun(sdev->lun, &tmf->iu.lun);
2375 tmf->iu.tmf_flags = IBMVFC_ABORT_TASK_SET;
3456 prli = &evt->iu.prli;
3559 plogi = &evt->iu.plogi;
3627 mad = &evt->iu.implicit_logout;
3794 move = &evt->iu.move_login;
3864 ibmvfc_get_cmd_error(be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error)),
3865 be16_to_cpu(mad->iu.status), be16_to_cpu(mad->iu.error),
3883 struct ibmvfc_passthru_mad *mad = &evt->iu.passthru;
3888 mad->common.length = cpu_to_be16(sizeof(*mad) - sizeof(mad->fc_iu) - sizeof(mad->iu));
3890 offsetof(struct ibmvfc_passthru_mad, iu));
3891 mad->cmd_ioba.len = cpu_to_be32(sizeof(mad->iu));
3892 mad->iu.cmd_len = cpu_to_be32(sizeof(mad->fc_iu.payload));
3893 mad->iu.rsp_len = cpu_to_be32(sizeof(mad->fc_iu.response));
3894 mad->iu.cmd.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
3897 mad->iu.cmd.len = cpu_to_be32(sizeof(mad->fc_iu.payload));
3898 mad->iu.rsp.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
3901 mad->iu.rsp.len = cpu_to_be32(sizeof(mad->fc_iu.response));
3959 tmf = &evt->iu.tmf;
4006 mad = &evt->iu.passthru;
4007 mad->iu.flags = cpu_to_be32(IBMVFC_FC_ELS);
4008 mad->iu.scsi_id = cpu_to_be64(tgt->scsi_id);
4009 mad->iu.cancel_key = cpu_to_be32(tgt->cancel_key);
4107 query_tgt = &evt->iu.query_tgt;
4273 mad = &evt->iu.discover_targets;
4390 mad = &evt->iu.npiv_login;
4451 mad = &evt->iu.npiv_logout;