Home
last modified time | relevance | path

Searched refs:tmf (Results 1 – 25 of 37) sorted by relevance

12

/drivers/scsi/isci/
Dtask.h99 static inline void isci_print_tmf(struct isci_host *ihost, struct isci_tmf *tmf) in isci_print_tmf() argument
101 if (SAS_PROTOCOL_SATA == tmf->proto) in isci_print_tmf()
107 tmf->status, in isci_print_tmf()
108 tmf->resp.d2h_fis.status, in isci_print_tmf()
109 tmf->resp.d2h_fis.error); in isci_print_tmf()
121 tmf->status, in isci_print_tmf()
122 tmf->resp.resp_iu.datapres, in isci_print_tmf()
123 tmf->resp.resp_iu.status, in isci_print_tmf()
124 be32_to_cpu(tmf->resp.resp_iu.response_data_len), in isci_print_tmf()
125 tmf->resp.resp_iu.resp_data[0], in isci_print_tmf()
[all …]
Dtask.c256 struct isci_tmf *tmf, unsigned long timeout_ms) in isci_task_execute_tmf() argument
290 tmf->complete = &completion; in isci_task_execute_tmf()
291 tmf->status = SCI_FAILURE_TIMEOUT; in isci_task_execute_tmf()
293 ireq = isci_task_request_build(ihost, idev, tag, tmf); in isci_task_execute_tmf()
327 isci_print_tmf(ihost, tmf); in isci_task_execute_tmf()
329 if (tmf->status == SCI_SUCCESS) in isci_task_execute_tmf()
331 else if (tmf->status == SCI_FAILURE_IO_RESPONSE_VALID) { in isci_task_execute_tmf()
355 static void isci_task_build_tmf(struct isci_tmf *tmf, in isci_task_build_tmf() argument
358 memset(tmf, 0, sizeof(*tmf)); in isci_task_build_tmf()
359 tmf->tmf_code = code; in isci_task_build_tmf()
[all …]
Drequest.h135 struct ssp_task_iu tmf; member
/drivers/vhost/
Dscsi.c353 static void vhost_scsi_release_tmf_res(struct vhost_scsi_tmf *tmf) in vhost_scsi_release_tmf_res() argument
355 struct vhost_scsi_inflight *inflight = tmf->inflight; in vhost_scsi_release_tmf_res()
357 kfree(tmf); in vhost_scsi_release_tmf_res()
364 struct vhost_scsi_tmf *tmf = container_of(se_cmd, in vhost_scsi_release_cmd() local
366 struct vhost_virtqueue *vq = &tmf->svq->vq; in vhost_scsi_release_cmd()
368 vhost_vq_work_queue(vq, &tmf->vwork); in vhost_scsi_release_cmd()
401 struct vhost_scsi_tmf *tmf = container_of(se_cmd, struct vhost_scsi_tmf, in vhost_scsi_queue_tm_rsp() local
404 tmf->scsi_resp = se_cmd->se_tmr_req->response; in vhost_scsi_queue_tm_rsp()
405 transport_generic_free_cmd(&tmf->se_cmd, 0); in vhost_scsi_queue_tm_rsp()
1277 struct vhost_scsi_tmf *tmf = container_of(work, struct vhost_scsi_tmf, in vhost_scsi_tmf_resp_work() local
[all …]
/drivers/scsi/aacraid/
Dlinit.c696 struct aac_hba_tm_req *tmf; in aac_eh_abort() local
722 tmf = (struct aac_hba_tm_req *)fib->hw_fib_va; in aac_eh_abort()
723 memset(tmf, 0, sizeof(*tmf)); in aac_eh_abort()
724 tmf->tmf = HBA_TMF_ABORT_TASK; in aac_eh_abort()
725 tmf->it_nexus = aac->hba_map[bus][cid].rmw_nexus; in aac_eh_abort()
726 tmf->lun[1] = cmd->device->lun; in aac_eh_abort()
729 tmf->error_ptr_hi = cpu_to_le32((u32)(address >> 32)); in aac_eh_abort()
730 tmf->error_ptr_lo = cpu_to_le32((u32)(address & 0xffffffff)); in aac_eh_abort()
731 tmf->error_length = cpu_to_le32(FW_ERROR_BUFFER_SIZE); in aac_eh_abort()
733 fib->hbacmd_size = sizeof(*tmf); in aac_eh_abort()
[all …]
/drivers/scsi/snic/
Dsnic_scsi.c1288 u32 tmf, in snic_queue_itmf_req() argument
1311 tmf); in snic_queue_itmf_req()
1324 tmf, sc, rqi, req_id, snic_cmd_tag(sc), ret); in snic_queue_itmf_req()
1328 tmf, sc, rqi, req_id, snic_cmd_tag(sc)); in snic_queue_itmf_req()
1337 int tmf) in snic_issue_tm_req() argument
1350 tmf, rqi, tag); in snic_issue_tm_req()
1353 if (tmf == SNIC_ITMF_LUN_RESET) { in snic_issue_tm_req()
1367 ret = snic_queue_itmf_req(snic, tmreq, sc, tmf, req_id); in snic_issue_tm_req()
1373 tmf, sc, rqi, req_id, tag, ret); in snic_issue_tm_req()
1377 tmf, sc, rqi, req_id, tag); in snic_issue_tm_req()
[all …]
/drivers/scsi/ibmvscsi/
Dibmvfc.c2036 struct ibmvfc_tmf *tmf; in ibmvfc_bsg_timeout() local
2057 tmf = &evt->iu.tmf; in ibmvfc_bsg_timeout()
2058 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_bsg_timeout()
2059 tmf->common.version = cpu_to_be32(1); in ibmvfc_bsg_timeout()
2060 tmf->common.opcode = cpu_to_be32(IBMVFC_TMF_MAD); in ibmvfc_bsg_timeout()
2061 tmf->common.length = cpu_to_be16(sizeof(*tmf)); in ibmvfc_bsg_timeout()
2062 tmf->scsi_id = cpu_to_be64(port_id); in ibmvfc_bsg_timeout()
2063 tmf->cancel_key = cpu_to_be32(IBMVFC_PASSTHRU_CANCEL_KEY); in ibmvfc_bsg_timeout()
2064 tmf->my_cancel_key = cpu_to_be32(IBMVFC_INTERNAL_CANCEL_KEY); in ibmvfc_bsg_timeout()
2312 struct ibmvfc_cmd *tmf; in ibmvfc_reset_device() local
[all …]
/drivers/scsi/aic94xx/
Daic94xx_tmf.c444 scb->abort_task.ssp_task.tmf = TMF_ABORT_TASK; in asd_abort_task()
557 int tmf, int index) in asd_initiate_ssp_tmf() argument
577 if (tmf == TMF_QUERY_TASK) in asd_initiate_ssp_tmf()
593 scb->ssp_tmf.ssp_task.tmf = tmf; in asd_initiate_ssp_tmf()
600 if (tmf == TMF_QUERY_TASK) in asd_initiate_ssp_tmf()
/drivers/scsi/libsas/
Dsas_scsi_host.c978 struct sas_tmf_task *tmf) in sas_execute_tmf() argument
1005 task->tmf = tmf; in sas_execute_tmf()
1095 struct sas_tmf_task *tmf) in sas_execute_ssp_tmf() argument
1104 return sas_execute_tmf(device, &ssp_task, sizeof(ssp_task), -1, tmf); in sas_execute_ssp_tmf()
1110 .tmf = TMF_ABORT_TASK_SET, in sas_abort_task_set()
1120 .tmf = TMF_CLEAR_TASK_SET, in sas_clear_task_set()
1130 .tmf = TMF_LU_RESET, in sas_lu_reset()
1140 .tmf = TMF_QUERY_TASK, in sas_query_task()
1156 .tmf = TMF_ABORT_TASK, in sas_abort_task()
Dsas_internal.h99 struct sas_tmf_task *tmf);
/drivers/scsi/
Dvirtio_scsi.c47 struct virtio_scsi_ctrl_tmf_req tmf; member
52 struct virtio_scsi_ctrl_tmf_resp tmf; member
617 sizeof cmd->req.tmf, sizeof cmd->resp.tmf, true) < 0) in virtscsi_tmf()
621 if (cmd->resp.tmf.response == VIRTIO_SCSI_S_OK || in virtscsi_tmf()
622 cmd->resp.tmf.response == VIRTIO_SCSI_S_FUNCTION_SUCCEEDED) in virtscsi_tmf()
652 cmd->req.tmf = (struct virtio_scsi_ctrl_tmf_req){ in virtscsi_device_reset()
710 cmd->req.tmf = (struct virtio_scsi_ctrl_tmf_req){ in virtscsi_abort()
Dlibiscsi.c246 struct iscsi_tm *tmf = &session->tmhdr; in iscsi_check_tmf_restrictions() local
252 if ((tmf->opcode & ISCSI_OPCODE_MASK) != ISCSI_OP_SCSI_TMFUNC) in iscsi_check_tmf_restrictions()
255 switch (ISCSI_TM_FUNC_VALUE(tmf)) { in iscsi_check_tmf_restrictions()
260 hdr_lun = scsilun_to_int(&tmf->lun); in iscsi_check_tmf_restrictions()
293 task->hdr_itt == tmf->rtt) { in iscsi_check_tmf_restrictions()
998 struct iscsi_tm_rsp *tmf = (struct iscsi_tm_rsp *)hdr; in iscsi_tmf_rsp() local
1007 if (tmf->response == ISCSI_TMF_RSP_COMPLETE) in iscsi_tmf_rsp()
1009 else if (tmf->response == ISCSI_TMF_RSP_NO_TASK) in iscsi_tmf_rsp()
/drivers/scsi/hisi_sas/
Dhisi_sas_v1_hw.c961 struct sas_tmf_task *tmf = slot->tmf; in prep_ssp_v1_hw() local
962 int has_data = 0, priority = !!tmf; in prep_ssp_v1_hw()
976 if (tmf) { in prep_ssp_v1_hw()
997 if (tmf) { in prep_ssp_v1_hw()
1024 if (!tmf) { in prep_ssp_v1_hw()
1029 buf_cmd[10] = tmf->tmf; in prep_ssp_v1_hw()
1030 switch (tmf->tmf) { in prep_ssp_v1_hw()
1034 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v1_hw()
1036 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v1_hw()
Dhisi_sas_v2_hw.c1745 struct sas_tmf_task *tmf = slot->tmf; in prep_ssp_v2_hw() local
1746 int has_data = 0, priority = !!tmf; in prep_ssp_v2_hw()
1757 if (tmf) { in prep_ssp_v2_hw()
1800 if (!tmf) { in prep_ssp_v2_hw()
1805 buf_cmd[10] = tmf->tmf; in prep_ssp_v2_hw()
1806 switch (tmf->tmf) { in prep_ssp_v2_hw()
1810 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v2_hw()
1812 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v2_hw()
2503 struct sas_tmf_task *tmf = slot->tmf; in prep_ata_v2_hw() local
2516 if (tmf && ata_task->force_phy) { in prep_ata_v2_hw()
Dhisi_sas_v3_hw.c1268 struct sas_tmf_task *tmf = slot->tmf; in prep_ssp_v3_hw() local
1269 int has_data = 0, priority = !!tmf; in prep_ssp_v3_hw()
1281 if (tmf) { in prep_ssp_v3_hw()
1328 if (!tmf) { in prep_ssp_v3_hw()
1332 buf_cmd[10] = tmf->tmf; in prep_ssp_v3_hw()
1333 switch (tmf->tmf) { in prep_ssp_v3_hw()
1337 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v3_hw()
1339 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v3_hw()
/drivers/scsi/elx/efct/
Defct_lio.h25 io->tgt_io.tmf, ##__VA_ARGS__)
114 u8 tmf; member
/drivers/scsi/mvsas/
Dmv_sas.c555 struct sas_tmf_task *tmf) in mvs_task_prep_ssp() argument
670 buf_cmd[10] = tmf->tmf; in mvs_task_prep_ssp()
671 switch (tmf->tmf) { in mvs_task_prep_ssp()
675 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in mvs_task_prep_ssp()
677 tmf->tag_of_task_to_be_managed & 0xff; in mvs_task_prep_ssp()
690 struct sas_tmf_task *tmf, int *pass) in mvs_task_prep() argument
726 if (tei.port && !tei.port->port_attached && !tmf) { in mvs_task_prep()
792 rc = mvs_task_prep_ssp(mvi, &tei, is_tmf, tmf); in mvs_task_prep()
843 struct sas_tmf_task *tmf = task->tmf; in mvs_queue_command() local
844 int is_tmf = !!task->tmf; in mvs_queue_command()
[all …]
/drivers/scsi/pm8001/
Dpm8001_sas.c359 struct pm8001_ccb_info *ccb, struct sas_tmf_task *tmf) in pm8001_task_prep_ssp_tm() argument
361 return PM8001_CHIP_DISP->ssp_tm_req(pm8001_ha, ccb, tmf); in pm8001_task_prep_ssp_tm()
401 struct sas_tmf_task *tmf = task->tmf; in pm8001_deliver_command() local
402 int is_tmf = !!tmf; in pm8001_deliver_command()
409 return pm8001_task_prep_ssp_tm(pm8001_ha, ccb, tmf); in pm8001_deliver_command()
Dpm8001_sas.h205 struct pm8001_ccb_info *ccb, struct sas_tmf_task *tmf);
680 struct sas_tmf_task *tmf);
/drivers/scsi/qla2xxx/
Dqla_init.c2018 struct srb_iocb *tmf = &sp->u.iocb_cmd; in qla2x00_tmf_iocb_timeout() local
2037 tmf->u.tmf.comp_status = cpu_to_le16(CS_TIMEOUT); in qla2x00_tmf_iocb_timeout()
2038 tmf->u.tmf.data = QLA_FUNCTION_FAILED; in qla2x00_tmf_iocb_timeout()
2039 complete(&tmf->u.tmf.comp); in qla2x00_tmf_iocb_timeout()
2045 struct srb_iocb *tmf = &sp->u.iocb_cmd; in qla_marker_sp_done() local
2050 sp->handle, sp->fcport->d_id.b24, sp->u.iocb_cmd.u.tmf.flags, in qla_marker_sp_done()
2051 sp->u.iocb_cmd.u.tmf.lun, sp->qpair->id); in qla_marker_sp_done()
2053 sp->u.iocb_cmd.u.tmf.data = res; in qla_marker_sp_done()
2054 complete(&tmf->u.tmf.comp); in qla_marker_sp_done()
2111 init_completion(&tm_iocb->u.tmf.comp); in qla26xx_marker()
[all …]
Dqla_mr.c2153 struct srb_iocb *tmf; in qlafx00_tm_iocb_entry() local
2155 tmf = &sp->u.iocb_cmd; in qlafx00_tm_iocb_entry()
2159 tmf->u.tmf.comp_status = cpstatus; in qlafx00_tm_iocb_entry()
3185 tm_iocb.control_flags = cpu_to_le32(fxio->u.tmf.flags); in qlafx00_tm_iocb()
3187 int_to_scsilun(fxio->u.tmf.lun, &llun); in qlafx00_tm_iocb()
Dqla_iocb.c2550 flags = iocb->u.tmf.flags; in qla24xx_tm_iocb()
2551 lun = iocb->u.tmf.lun; in qla24xx_tm_iocb()
3911 mrk->modifier = sp->u.iocb_cmd.u.tmf.modifier; in qla_marker_iocb()
3913 if (sp->u.iocb_cmd.u.tmf.modifier != MK_SYNC_ALL) { in qla_marker_iocb()
3914 mrk->nport_handle = cpu_to_le16(sp->u.iocb_cmd.u.tmf.loop_id); in qla_marker_iocb()
3915 int_to_scsilun(sp->u.iocb_cmd.u.tmf.lun, (struct scsi_lun *)&mrk->lun); in qla_marker_iocb()
3917 mrk->vp_index = sp->u.iocb_cmd.u.tmf.vp_index; in qla_marker_iocb()
/drivers/target/
Dtarget_core_transport.c3125 static const char *target_tmf_name(enum tcm_tmreq_table tmf) in target_tmf_name() argument
3127 switch (tmf) { in target_tmf_name()
3145 struct se_tmr_req *tmf = cmd->se_tmr_req; in target_show_cmd() local
3156 pfx, target_tmf_name(tmf->function), cmd->tag, in target_show_cmd()
3157 tmf->ref_task_tag, cmd->se_tfo->get_cmd_state(cmd), in target_show_cmd()
Dtarget_core_user.c1239 tcmu_tmr_type(enum tcm_tmreq_table tmf) in tcmu_tmr_type() argument
1241 switch (tmf) { in tcmu_tmr_type()
1255 tcmu_tmr_notify(struct se_device *se_dev, enum tcm_tmreq_table tmf, in tcmu_tmr_notify() argument
1294 tcmu_tmr_type(tmf), udev->name, i, cmd_cnt); in tcmu_tmr_notify()
1300 tmr->tmr_type = tcmu_tmr_type(tmf); in tcmu_tmr_notify()
/drivers/scsi/bnx2i/
D57xx_iscsi_hsi.h1395 struct bnx2i_tmf_request tmf; member
1516 struct bnx2i_tmf_response tmf; member

12