Home
last modified time | relevance | path

Searched refs:iu (Results 1 – 21 of 21) sorted by relevance

/drivers/scsi/libsas/
Dsas_task.c8 struct ssp_response_iu *iu) in sas_ssp_task_response() argument
14 if (iu->datapres == 0) in sas_ssp_task_response()
15 tstat->stat = iu->status; in sas_ssp_task_response()
16 else if (iu->datapres == 1) in sas_ssp_task_response()
17 tstat->stat = iu->resp_data[3]; in sas_ssp_task_response()
18 else if (iu->datapres == 2) { in sas_ssp_task_response()
22 be32_to_cpu(iu->sense_data_len)); in sas_ssp_task_response()
23 memcpy(tstat->buf, iu->sense_data, tstat->buf_valid_size); in sas_ssp_task_response()
25 if (iu->status != SAM_STAT_CHECK_CONDITION) in sas_ssp_task_response()
30 iu->status); in sas_ssp_task_response()
/drivers/scsi/ibmvscsi/
Dibmvstgt.c142 union viosrp_iu *iu = vio_iu(iue); in send_rsp() local
143 uint64_t tag = iu->srp.rsp.tag; in send_rsp()
149 memset(iu, 0, sizeof(struct srp_rsp)); in send_rsp()
150 iu->srp.rsp.opcode = SRP_RSP; in send_rsp()
151 iu->srp.rsp.req_lim_delta = 1; in send_rsp()
152 iu->srp.rsp.tag = tag; in send_rsp()
155 iu->srp.rsp.flags |= SRP_RSP_FLAG_DIOVER; in send_rsp()
157 iu->srp.rsp.data_in_res_cnt = 0; in send_rsp()
158 iu->srp.rsp.data_out_res_cnt = 0; in send_rsp()
160 iu->srp.rsp.flags &= ~SRP_RSP_FLAG_RSPVALID; in send_rsp()
[all …]
Dibmvfc.c156 struct ibmvfc_cmd *vfc_cmd = &evt->iu.cmd; in ibmvfc_trc_start()
157 struct ibmvfc_mad_common *mad = &evt->iu.mad_common; in ibmvfc_trc_start()
168 entry->op_code = vfc_cmd->iu.cdb[0]; in ibmvfc_trc_start()
170 entry->lun = scsilun_to_int(&vfc_cmd->iu.lun); in ibmvfc_trc_start()
171 entry->tmf_flags = vfc_cmd->iu.tmf_flags; in ibmvfc_trc_start()
172 entry->u.start.xfer_len = vfc_cmd->iu.xfer_len; in ibmvfc_trc_start()
201 entry->op_code = vfc_cmd->iu.cdb[0]; in ibmvfc_trc_end()
203 entry->lun = scsilun_to_int(&vfc_cmd->iu.lun); in ibmvfc_trc_end()
204 entry->tmf_flags = vfc_cmd->iu.tmf_flags; in ibmvfc_trc_end()
1350 vfc_cmd->iu.add_cdb_len |= IBMVFC_WRDATA; in ibmvfc_map_sg_data()
[all …]
Dibmvscsi.c793 unmap_cmd_data(&evt->iu.srp.cmd, evt, in purge_requests()
830 evt_struct->iu.srp.cmd.opcode); in ibmvscsi_timeout()
878 evt_struct->iu.srp.login_req.opcode != SRP_LOGIN_REQ) in ibmvscsi_send_srp_event()
885 evt_struct->iu.srp.cmd.opcode != SRP_TSK_MGMT) { in ibmvscsi_send_srp_event()
906 *evt_struct->xfer_iu = evt_struct->iu; in ibmvscsi_send_srp_event()
947 unmap_cmd_data(&evt_struct->iu.srp.cmd, evt_struct, hostdata->dev); in ibmvscsi_send_srp_event()
955 unmap_cmd_data(&evt_struct->iu.srp.cmd, evt_struct, hostdata->dev); in ibmvscsi_send_srp_event()
991 unmap_cmd_data(&evt_struct->iu.srp.cmd, in handle_cmd_rsp()
1036 srp_cmd = &evt_struct->iu.srp.cmd; in ibmvscsi_queuecommand_lck()
1184 login = &evt_struct->iu.srp.login_req; in send_srp_login()
[all …]
Dibmvscsi.h72 union viosrp_iu iu; member
Dibmvfc.h455 struct ibmvfc_fcp_cmd_iu iu; member
489 struct ibmvfc_passthru_iu iu; member
642 union ibmvfc_iu iu; member
/drivers/usb/storage/
Duas.c299 struct iu *iu = urb->transfer_buffer; in uas_stat_cmplt() local
319 tag = be16_to_cpup(&iu->tag) - 1; in uas_stat_cmplt()
326 if (iu->iu_id == IU_ID_RESPONSE) { in uas_stat_cmplt()
328 memcpy(&devinfo->response, iu, sizeof(devinfo->response)); in uas_stat_cmplt()
336 switch (iu->iu_id) { in uas_stat_cmplt()
364 "Bogus IU (%d) received on status pipe\n", iu->iu_id); in uas_stat_cmplt()
424 struct sense_iu *iu; in uas_alloc_sense_urb() local
429 iu = kzalloc(sizeof(*iu), gfp); in uas_alloc_sense_urb()
430 if (!iu) in uas_alloc_sense_urb()
433 usb_fill_bulk_urb(urb, udev, devinfo->status_pipe, iu, sizeof(*iu), in uas_alloc_sense_urb()
[all …]
/drivers/infiniband/ulp/srp/
Dib_srp.c129 struct srp_iu *iu; in srp_alloc_iu() local
131 iu = kmalloc(sizeof *iu, gfp_mask); in srp_alloc_iu()
132 if (!iu) in srp_alloc_iu()
135 iu->buf = kzalloc(size, gfp_mask); in srp_alloc_iu()
136 if (!iu->buf) in srp_alloc_iu()
139 iu->dma = ib_dma_map_single(host->srp_dev->dev, iu->buf, size, in srp_alloc_iu()
141 if (ib_dma_mapping_error(host->srp_dev->dev, iu->dma)) in srp_alloc_iu()
144 iu->size = size; in srp_alloc_iu()
145 iu->direction = direction; in srp_alloc_iu()
147 return iu; in srp_alloc_iu()
[all …]
/drivers/usb/gadget/
Dtcm_usb_gadget.c558 struct sense_iu *iu = &cmd->sense_iu; in uasp_prepare_status() local
562 iu->iu_id = IU_ID_STATUS; in uasp_prepare_status()
563 iu->tag = cpu_to_be16(cmd->tag); in uasp_prepare_status()
568 iu->len = cpu_to_be16(se_cmd->scsi_sense_length); in uasp_prepare_status()
569 iu->status = se_cmd->scsi_status; in uasp_prepare_status()
572 stream->req_status->buf = iu; in uasp_prepare_status()
631 struct sense_iu *iu = &cmd->sense_iu; in uasp_send_status_response() local
633 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_status_response()
645 struct sense_iu *iu = &cmd->sense_iu; in uasp_send_read_response() local
650 iu->tag = cpu_to_be16(cmd->tag); in uasp_send_read_response()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_glue.c942 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
948 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
956 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
1938 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0; in sym2_set_width()
1954 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0; in sym2_set_dt()
1959 static void sym2_set_iu(struct scsi_target *starget, int iu)
1965 if (iu)
1966 tp->tgoal.iu = tp->tgoal.dt = 1;
1968 tp->tgoal.iu = 0;
Dsym_hipd.c1371 goal->iu = 0;
1402 goal->iu = goal->qas = 0;
1434 (goal->iu || goal->dt || goal->qas || (goal->period < 0xa)))) {
1456 (goal->iu ? PPR_OPT_IU : 0) |
2055 tp->tprint.iu != spi_iu(starget) ||
2062 tp->tprint.iu = spi_iu(starget);
2123 if (!tp->tgoal.dt && !tp->tgoal.iu && !tp->tgoal.qas) {
2152 spi_iu(starget) = tp->tgoal.iu = !!(opts & PPR_OPT_IU);
4163 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0;
4344 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0;
Dsym_hipd.h353 unsigned int iu:1; member
/drivers/scsi/
Dscsi_transport_spi.c389 spi_transport_max_attr(iu, "%d\n");
789 DV_SET(iu, 0); in spi_dv_retrain()
934 DV_SET(iu, 1); in spi_dv_device_internal()
942 DV_SET(iu, 0); in spi_dv_device_internal()
1159 tp->iu ? " IU" : "", in spi_display_xfer_agreement()
1465 return TARGET_ATTRIBUTE_HELPER(iu); in target_attribute_is_visible()
1468 return TARGET_ATTRIBUTE_HELPER(iu); in target_attribute_is_visible()
Dgdth_ioctl.h219 } iu; member
261 } iu; member
/drivers/scsi/mvsas/
Dmv_sas.c1747 void mvs_fill_ssp_resp_iu(struct ssp_response_iu *iu, in mvs_fill_ssp_resp_iu() argument
1750 iu->datapres = 2; in mvs_fill_ssp_resp_iu()
1751 iu->response_data_len = 0; in mvs_fill_ssp_resp_iu()
1752 iu->sense_data_len = 17; in mvs_fill_ssp_resp_iu()
1753 iu->status = 02; in mvs_fill_ssp_resp_iu()
1754 mvs_set_sense(iu->sense_data, 17, 0, in mvs_fill_ssp_resp_iu()
1779 struct ssp_response_iu *iu = slot->response + in mvs_slot_err() local
1781 mvs_fill_ssp_resp_iu(iu, NOT_READY, 0x04, 01); in mvs_slot_err()
1782 sas_ssp_task_response(mvi->dev, task, iu); in mvs_slot_err()
1878 struct ssp_response_iu *iu = slot->response + in mvs_slot_complete() local
[all …]
/drivers/scsi/aic94xx/
Daic94xx_task.c191 struct ssp_response_iu *iu = in asd_get_response_tasklet() local
196 sas_ssp_task_response(&asd_ha->pcidev->dev, task, iu); in asd_get_response_tasklet()
/drivers/message/fusion/
Dmptspi.c1023 static void mptspi_write_iu(struct scsi_target *starget, int iu) in mptspi_write_iu() argument
1031 if (!iu && spi_period(starget) < 9) in mptspi_write_iu()
1034 spi_iu(starget) = iu; in mptspi_write_iu()
/drivers/scsi/aic7xxx/
Daic79xx_osm.c2583 static void ahd_linux_set_iu(struct scsi_target *starget, int iu) in ahd_linux_set_iu() argument
2602 iu ? "enabling" : "disabling"); in ahd_linux_set_iu()
2605 if (iu && spi_max_width(starget)) { in ahd_linux_set_iu()
Daic7xxx_osm.c2510 static void ahc_linux_set_iu(struct scsi_target *starget, int iu)
2526 if (iu)
/drivers/scsi/pm8001/
Dpm80xx_hwi.c1250 struct ssp_response_iu *iu; in mpi_ssp_completion() local
1283 iu = &psspPayload->ssp_resp_iu; in mpi_ssp_completion()
1284 sas_ssp_task_response(pm8001_ha->dev, t, iu); in mpi_ssp_completion()
Dpm8001_hwi.c1849 struct ssp_response_iu *iu; in mpi_ssp_completion() local
1882 iu = &psspPayload->ssp_resp_iu; in mpi_ssp_completion()
1883 sas_ssp_task_response(pm8001_ha->dev, t, iu); in mpi_ssp_completion()