Home
last modified time | relevance | path

Searched refs:tmf (Results 1 – 25 of 32) 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.c258 struct isci_tmf *tmf, unsigned long timeout_ms) in isci_task_execute_tmf() argument
292 tmf->complete = &completion; in isci_task_execute_tmf()
293 tmf->status = SCI_FAILURE_TIMEOUT; in isci_task_execute_tmf()
295 ireq = isci_task_request_build(ihost, idev, tag, tmf); in isci_task_execute_tmf()
329 isci_print_tmf(ihost, tmf); in isci_task_execute_tmf()
331 if (tmf->status == SCI_SUCCESS) in isci_task_execute_tmf()
333 else if (tmf->status == SCI_FAILURE_IO_RESPONSE_VALID) { in isci_task_execute_tmf()
357 static void isci_task_build_tmf(struct isci_tmf *tmf, in isci_task_build_tmf() argument
360 memset(tmf, 0, sizeof(*tmf)); in isci_task_build_tmf()
361 tmf->tmf_code = code; in isci_task_build_tmf()
[all …]
Drequest.h135 struct ssp_task_iu tmf; member
/drivers/scsi/ibmvscsi/
Dibmvfc.c1715 struct ibmvfc_tmf *tmf; in ibmvfc_bsg_timeout() local
1731 tmf = &evt->iu.tmf; in ibmvfc_bsg_timeout()
1732 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_bsg_timeout()
1733 tmf->common.version = cpu_to_be32(1); in ibmvfc_bsg_timeout()
1734 tmf->common.opcode = cpu_to_be32(IBMVFC_TMF_MAD); in ibmvfc_bsg_timeout()
1735 tmf->common.length = cpu_to_be16(sizeof(*tmf)); in ibmvfc_bsg_timeout()
1736 tmf->scsi_id = cpu_to_be64(port_id); in ibmvfc_bsg_timeout()
1737 tmf->cancel_key = cpu_to_be32(IBMVFC_PASSTHRU_CANCEL_KEY); in ibmvfc_bsg_timeout()
1738 tmf->my_cancel_key = cpu_to_be32(IBMVFC_INTERNAL_CANCEL_KEY); in ibmvfc_bsg_timeout()
1975 struct ibmvfc_cmd *tmf; in ibmvfc_reset_device() local
[all …]
/drivers/scsi/pm8001/
Dpm8001_sas.c312 struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf) in pm8001_task_prep_ssp_tm() argument
314 return PM8001_CHIP_DISP->ssp_tm_req(pm8001_ha, ccb, tmf); in pm8001_task_prep_ssp_tm()
357 gfp_t gfp_flags, int is_tmf, struct pm8001_tmf_task *tmf) in pm8001_task_exec() argument
440 ccb, tmf); in pm8001_task_exec()
687 void *parameter, u32 para_len, struct pm8001_tmf_task *tmf) in pm8001_exec_internal_tmf_task() argument
709 res = pm8001_task_exec(task, GFP_KERNEL, 1, tmf); in pm8001_exec_internal_tmf_task()
731 tmf->tmf)); in pm8001_exec_internal_tmf_task()
888 u8 *lun, struct pm8001_tmf_task *tmf) in pm8001_issue_ssp_tmf() argument
896 tmf); in pm8001_issue_ssp_tmf()
1106 tmf_task.tmf = TMF_LU_RESET; in pm8001_lu_reset()
[all …]
Dpm8001_sas.h123 u8 tmf; member
222 struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf);
675 struct pm8001_tmf_task *tmf);
Dpm8001_hwi.h545 __le32 tmf; member
/drivers/scsi/aacraid/
Dlinit.c693 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.c1311 u32 tmf, in snic_queue_itmf_req() argument
1334 tmf); in snic_queue_itmf_req()
1347 tmf, sc, rqi, req_id, snic_cmd_tag(sc), ret); in snic_queue_itmf_req()
1351 tmf, sc, rqi, req_id, snic_cmd_tag(sc)); in snic_queue_itmf_req()
1360 int tmf) in snic_issue_tm_req() argument
1373 tmf, rqi, tag); in snic_issue_tm_req()
1376 if (tmf == SNIC_ITMF_LUN_RESET) { in snic_issue_tm_req()
1390 ret = snic_queue_itmf_req(snic, tmreq, sc, tmf, req_id); in snic_issue_tm_req()
1400 tmf, sc, rqi, req_id, tag, ret); in snic_issue_tm_req()
1404 tmf, sc, rqi, req_id, tag); in snic_issue_tm_req()
[all …]
/drivers/scsi/mvsas/
Dmv_sas.c572 struct mvs_tmf_task *tmf) in mvs_task_prep_ssp() argument
692 buf_cmd[10] = tmf->tmf; in mvs_task_prep_ssp()
693 switch (tmf->tmf) { in mvs_task_prep_ssp()
697 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in mvs_task_prep_ssp()
699 tmf->tag_of_task_to_be_managed & 0xff; in mvs_task_prep_ssp()
712 struct mvs_tmf_task *tmf, int *pass) in mvs_task_prep() argument
747 if (tei.port && !tei.port->port_attached && !tmf) { in mvs_task_prep()
809 rc = mvs_task_prep_ssp(mvi, &tei, is_tmf, tmf); in mvs_task_prep()
859 struct mvs_tmf_task *tmf) in mvs_task_exec() argument
869 rc = mvs_task_prep(task, mvi, is_tmf, tmf, &pass); in mvs_task_exec()
[all …]
Dmv_defs.h507 u8 tmf; member
/drivers/scsi/aic94xx/
Daic94xx_tmf.c463 scb->abort_task.ssp_task.tmf = TMF_ABORT_TASK; in asd_abort_task()
576 int tmf, int index) in asd_initiate_ssp_tmf() argument
596 if (tmf == TMF_QUERY_TASK) in asd_initiate_ssp_tmf()
612 scb->ssp_tmf.ssp_task.tmf = tmf; in asd_initiate_ssp_tmf()
619 if (tmf == TMF_QUERY_TASK) in asd_initiate_ssp_tmf()
/drivers/scsi/hisi_sas/
Dhisi_sas_main.c20 u8 *lun, struct hisi_sas_tmf_task *tmf);
224 struct hisi_sas_tmf_task *tmf) in hisi_sas_task_prep_ssp() argument
226 return hisi_hba->hw->prep_ssp(hisi_hba, slot, is_tmf, tmf); in hisi_sas_task_prep_ssp()
267 tmf_task.tmf = TMF_ABORT_TASK; in hisi_sas_slot_abort()
281 *dq, int is_tmf, struct hisi_sas_tmf_task *tmf, in hisi_sas_task_prep() argument
389 rc = hisi_sas_task_prep_ssp(hisi_hba, slot, is_tmf, tmf); in hisi_sas_task_prep()
440 int is_tmf, struct hisi_sas_tmf_task *tmf) in hisi_sas_task_exec() argument
456 rc = hisi_sas_task_prep(task, dq, is_tmf, tmf, &pass); in hisi_sas_task_exec()
816 struct hisi_sas_tmf_task *tmf) in hisi_sas_exec_internal_tmf_task() argument
845 res = hisi_sas_task_exec(task, GFP_KERNEL, 1, tmf); in hisi_sas_exec_internal_tmf_task()
[all …]
Dhisi_sas.h174 u8 tmf; member
190 struct hisi_sas_tmf_task *tmf);
Dhisi_sas_v1_hw.c1040 struct hisi_sas_tmf_task *tmf) in prep_ssp_v1_hw() argument
1124 buf_cmd[10] = tmf->tmf; in prep_ssp_v1_hw()
1125 switch (tmf->tmf) { in prep_ssp_v1_hw()
1129 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v1_hw()
1131 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v1_hw()
Dhisi_sas_v3_hw.c836 struct hisi_sas_tmf_task *tmf) in prep_ssp_v3_hw() argument
905 buf_cmd[10] = tmf->tmf; in prep_ssp_v3_hw()
906 switch (tmf->tmf) { in prep_ssp_v3_hw()
910 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v3_hw()
912 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v3_hw()
Dhisi_sas_v2_hw.c1756 struct hisi_sas_tmf_task *tmf) in prep_ssp_v2_hw() argument
1828 buf_cmd[10] = tmf->tmf; in prep_ssp_v2_hw()
1829 switch (tmf->tmf) { in prep_ssp_v2_hw()
1833 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v2_hw()
1835 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v2_hw()
/drivers/scsi/
Dvirtio_scsi.c47 struct virtio_scsi_ctrl_tmf_req tmf; member
52 struct virtio_scsi_ctrl_tmf_resp tmf; member
605 sizeof cmd->req.tmf, sizeof cmd->resp.tmf) < 0) in virtscsi_tmf()
609 if (cmd->resp.tmf.response == VIRTIO_SCSI_S_OK || in virtscsi_tmf()
610 cmd->resp.tmf.response == VIRTIO_SCSI_S_FUNCTION_SUCCEEDED) in virtscsi_tmf()
641 cmd->req.tmf = (struct virtio_scsi_ctrl_tmf_req){ in virtscsi_device_reset()
699 cmd->req.tmf = (struct virtio_scsi_ctrl_tmf_req){ in virtscsi_abort()
Dlibiscsi.c263 struct iscsi_tm *tmf = &conn->tmhdr; in iscsi_check_tmf_restrictions() local
269 if ((tmf->opcode & ISCSI_OPCODE_MASK) != ISCSI_OP_SCSI_TMFUNC) in iscsi_check_tmf_restrictions()
272 switch (ISCSI_TM_FUNC_VALUE(tmf)) { in iscsi_check_tmf_restrictions()
277 hdr_lun = scsilun_to_int(&tmf->lun); in iscsi_check_tmf_restrictions()
315 task->hdr_itt == tmf->rtt) { in iscsi_check_tmf_restrictions()
969 struct iscsi_tm_rsp *tmf = (struct iscsi_tm_rsp *)hdr; in iscsi_tmf_rsp() local
977 if (tmf->response == ISCSI_TMF_RSP_COMPLETE) in iscsi_tmf_rsp()
979 else if (tmf->response == ISCSI_TMF_RSP_NO_TASK) in iscsi_tmf_rsp()
Dhpsa_cmd.h611 u8 tmf; /* Task Management Function */ member
/drivers/scsi/qla2xxx/
Dqla_init.c1279 struct srb_iocb *tmf = &sp->u.iocb_cmd; in qla2x00_tmf_iocb_timeout() local
1281 tmf->u.tmf.comp_status = CS_TIMEOUT; in qla2x00_tmf_iocb_timeout()
1282 complete(&tmf->u.tmf.comp); in qla2x00_tmf_iocb_timeout()
1289 struct srb_iocb *tmf = &sp->u.iocb_cmd; in qla2x00_tmf_sp_done() local
1291 complete(&tmf->u.tmf.comp); in qla2x00_tmf_sp_done()
1311 tm_iocb->u.tmf.flags = flags; in qla2x00_async_tm_cmd()
1312 tm_iocb->u.tmf.lun = lun; in qla2x00_async_tm_cmd()
1313 tm_iocb->u.tmf.data = tag; in qla2x00_async_tm_cmd()
1316 init_completion(&tm_iocb->u.tmf.comp); in qla2x00_async_tm_cmd()
1327 wait_for_completion(&tm_iocb->u.tmf.comp); in qla2x00_async_tm_cmd()
[all …]
Dqla_mr.c2178 struct srb_iocb *tmf; in qlafx00_tm_iocb_entry() local
2180 tmf = &sp->u.iocb_cmd; in qlafx00_tm_iocb_entry()
2184 tmf->u.tmf.comp_status = cpstatus; in qlafx00_tm_iocb_entry()
3220 tm_iocb.control_flags = cpu_to_le32(fxio->u.tmf.flags); in qlafx00_tm_iocb()
3222 int_to_scsilun(fxio->u.tmf.lun, &llun); in qlafx00_tm_iocb()
Dqla_isr.c1777 iocb->u.tmf.data = QLA_SUCCESS; in qla24xx_tm_iocb_entry()
1783 iocb->u.tmf.data = QLA_FUNCTION_FAILED; in qla24xx_tm_iocb_entry()
1788 iocb->u.tmf.data = QLA_FUNCTION_FAILED; in qla24xx_tm_iocb_entry()
1799 iocb->u.tmf.data = QLA_FUNCTION_FAILED; in qla24xx_tm_iocb_entry()
1803 if (iocb->u.tmf.data != QLA_SUCCESS) in qla24xx_tm_iocb_entry()
/drivers/target/
Dtarget_core_transport.c2815 static const char *target_tmf_name(enum tcm_tmreq_table tmf) in target_tmf_name() argument
2817 switch (tmf) { in target_tmf_name()
2834 struct se_tmr_req *tmf = cmd->se_tmr_req; in target_show_cmd() local
2845 pfx, target_tmf_name(tmf->function), cmd->tag, in target_show_cmd()
2846 tmf->ref_task_tag, cmd->se_tfo->get_cmd_state(cmd), in target_show_cmd()
/drivers/scsi/bnx2i/
D57xx_iscsi_hsi.h1395 struct bnx2i_tmf_request tmf; member
1516 struct bnx2i_tmf_response tmf; member

12