/drivers/scsi/isci/ |
D | task.h | 99 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 …]
|
D | task.c | 258 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 …]
|
D | request.h | 135 struct ssp_task_iu tmf; member
|
/drivers/vhost/ |
D | scsi.c | 363 static void vhost_scsi_release_tmf_res(struct vhost_scsi_tmf *tmf) in vhost_scsi_release_tmf_res() argument 365 struct vhost_scsi_tpg *tpg = tmf->tpg; in vhost_scsi_release_tmf_res() 366 struct vhost_scsi_inflight *inflight = tmf->inflight; in vhost_scsi_release_tmf_res() 369 list_add_tail(&tpg->tmf_queue, &tmf->queue_entry); in vhost_scsi_release_tmf_res() 377 struct vhost_scsi_tmf *tmf = container_of(se_cmd, in vhost_scsi_release_cmd() local 380 vhost_work_queue(&tmf->vhost->dev, &tmf->vwork); in vhost_scsi_release_cmd() 427 struct vhost_scsi_tmf *tmf = container_of(se_cmd, struct vhost_scsi_tmf, in vhost_scsi_queue_tm_rsp() local 430 tmf->scsi_resp = se_cmd->se_tmr_req->response; in vhost_scsi_queue_tm_rsp() 431 transport_generic_free_cmd(&tmf->se_cmd, 0); in vhost_scsi_queue_tm_rsp() 1184 struct vhost_scsi_tmf *tmf = container_of(work, struct vhost_scsi_tmf, in vhost_scsi_tmf_resp_work() local [all …]
|
/drivers/scsi/ibmvscsi/ |
D | ibmvfc.c | 1759 struct ibmvfc_tmf *tmf; in ibmvfc_bsg_timeout() local 1775 tmf = &evt->iu.tmf; in ibmvfc_bsg_timeout() 1776 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_bsg_timeout() 1777 tmf->common.version = cpu_to_be32(1); in ibmvfc_bsg_timeout() 1778 tmf->common.opcode = cpu_to_be32(IBMVFC_TMF_MAD); in ibmvfc_bsg_timeout() 1779 tmf->common.length = cpu_to_be16(sizeof(*tmf)); in ibmvfc_bsg_timeout() 1780 tmf->scsi_id = cpu_to_be64(port_id); in ibmvfc_bsg_timeout() 1781 tmf->cancel_key = cpu_to_be32(IBMVFC_PASSTHRU_CANCEL_KEY); in ibmvfc_bsg_timeout() 1782 tmf->my_cancel_key = cpu_to_be32(IBMVFC_INTERNAL_CANCEL_KEY); in ibmvfc_bsg_timeout() 2021 struct ibmvfc_cmd *tmf; in ibmvfc_reset_device() local [all …]
|
/drivers/scsi/aacraid/ |
D | linit.c | 695 struct aac_hba_tm_req *tmf; in aac_eh_abort() local 721 tmf = (struct aac_hba_tm_req *)fib->hw_fib_va; in aac_eh_abort() 722 memset(tmf, 0, sizeof(*tmf)); in aac_eh_abort() 723 tmf->tmf = HBA_TMF_ABORT_TASK; in aac_eh_abort() 724 tmf->it_nexus = aac->hba_map[bus][cid].rmw_nexus; in aac_eh_abort() 725 tmf->lun[1] = cmd->device->lun; in aac_eh_abort() 728 tmf->error_ptr_hi = cpu_to_le32((u32)(address >> 32)); in aac_eh_abort() 729 tmf->error_ptr_lo = cpu_to_le32((u32)(address & 0xffffffff)); in aac_eh_abort() 730 tmf->error_length = cpu_to_le32(FW_ERROR_BUFFER_SIZE); in aac_eh_abort() 732 fib->hbacmd_size = sizeof(*tmf); in aac_eh_abort() [all …]
|
/drivers/scsi/pm8001/ |
D | pm8001_sas.c | 338 struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf) in pm8001_task_prep_ssp_tm() argument 340 return PM8001_CHIP_DISP->ssp_tm_req(pm8001_ha, ccb, tmf); in pm8001_task_prep_ssp_tm() 381 gfp_t gfp_flags, int is_tmf, struct pm8001_tmf_task *tmf) in pm8001_task_exec() argument 467 ccb, tmf); in pm8001_task_exec() 718 void *parameter, u32 para_len, struct pm8001_tmf_task *tmf) in pm8001_exec_internal_tmf_task() argument 739 res = pm8001_task_exec(task, GFP_KERNEL, 1, tmf); in pm8001_exec_internal_tmf_task() 759 tmf->tmf); in pm8001_exec_internal_tmf_task() 909 u8 *lun, struct pm8001_tmf_task *tmf) in pm8001_issue_ssp_tmf() argument 917 tmf); in pm8001_issue_ssp_tmf() 1124 tmf_task.tmf = TMF_LU_RESET; in pm8001_lu_reset() [all …]
|
D | pm8001_sas.h | 104 u8 tmf; member 206 struct pm8001_ccb_info *ccb, struct pm8001_tmf_task *tmf); 683 struct pm8001_tmf_task *tmf);
|
D | pm8001_hwi.h | 541 __le32 tmf; member
|
/drivers/scsi/snic/ |
D | snic_scsi.c | 1310 u32 tmf, in snic_queue_itmf_req() argument 1333 tmf); in snic_queue_itmf_req() 1346 tmf, sc, rqi, req_id, snic_cmd_tag(sc), ret); in snic_queue_itmf_req() 1350 tmf, sc, rqi, req_id, snic_cmd_tag(sc)); in snic_queue_itmf_req() 1359 int tmf) in snic_issue_tm_req() argument 1372 tmf, rqi, tag); in snic_issue_tm_req() 1375 if (tmf == SNIC_ITMF_LUN_RESET) { in snic_issue_tm_req() 1389 ret = snic_queue_itmf_req(snic, tmreq, sc, tmf, req_id); in snic_issue_tm_req() 1395 tmf, sc, rqi, req_id, tag, ret); in snic_issue_tm_req() 1399 tmf, sc, rqi, req_id, tag); in snic_issue_tm_req() [all …]
|
/drivers/scsi/mvsas/ |
D | mv_sas.c | 554 struct mvs_tmf_task *tmf) in mvs_task_prep_ssp() argument 674 buf_cmd[10] = tmf->tmf; in mvs_task_prep_ssp() 675 switch (tmf->tmf) { in mvs_task_prep_ssp() 679 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in mvs_task_prep_ssp() 681 tmf->tag_of_task_to_be_managed & 0xff; in mvs_task_prep_ssp() 694 struct mvs_tmf_task *tmf, int *pass) in mvs_task_prep() argument 729 if (tei.port && !tei.port->port_attached && !tmf) { in mvs_task_prep() 790 rc = mvs_task_prep_ssp(mvi, &tei, is_tmf, tmf); in mvs_task_prep() 840 struct mvs_tmf_task *tmf) in mvs_task_exec() argument 850 rc = mvs_task_prep(task, mvi, is_tmf, tmf, &pass); in mvs_task_exec() [all …]
|
D | mv_defs.h | 491 u8 tmf; member
|
/drivers/scsi/aic94xx/ |
D | aic94xx_tmf.c | 444 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/ |
D | virtio_scsi.c | 46 struct virtio_scsi_ctrl_tmf_req tmf; member 51 struct virtio_scsi_ctrl_tmf_resp tmf; member 610 sizeof cmd->req.tmf, sizeof cmd->resp.tmf, true) < 0) in virtscsi_tmf() 614 if (cmd->resp.tmf.response == VIRTIO_SCSI_S_OK || in virtscsi_tmf() 615 cmd->resp.tmf.response == VIRTIO_SCSI_S_FUNCTION_SUCCEEDED) in virtscsi_tmf() 646 cmd->req.tmf = (struct virtio_scsi_ctrl_tmf_req){ in virtscsi_device_reset() 704 cmd->req.tmf = (struct virtio_scsi_ctrl_tmf_req){ in virtscsi_abort()
|
D | libiscsi.c | 234 struct iscsi_tm *tmf = &session->tmhdr; in iscsi_check_tmf_restrictions() local 240 if ((tmf->opcode & ISCSI_OPCODE_MASK) != ISCSI_OP_SCSI_TMFUNC) in iscsi_check_tmf_restrictions() 243 switch (ISCSI_TM_FUNC_VALUE(tmf)) { in iscsi_check_tmf_restrictions() 248 hdr_lun = scsilun_to_int(&tmf->lun); in iscsi_check_tmf_restrictions() 281 task->hdr_itt == tmf->rtt) { in iscsi_check_tmf_restrictions() 920 struct iscsi_tm_rsp *tmf = (struct iscsi_tm_rsp *)hdr; in iscsi_tmf_rsp() local 929 if (tmf->response == ISCSI_TMF_RSP_COMPLETE) in iscsi_tmf_rsp() 931 else if (tmf->response == ISCSI_TMF_RSP_NO_TASK) in iscsi_tmf_rsp()
|
/drivers/scsi/hisi_sas/ |
D | hisi_sas_v1_hw.c | 961 struct hisi_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() 1028 if (!tmf) { in prep_ssp_v1_hw() 1034 buf_cmd[10] = tmf->tmf; in prep_ssp_v1_hw() 1035 switch (tmf->tmf) { in prep_ssp_v1_hw() 1039 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v1_hw() 1041 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v1_hw()
|
D | hisi_sas_v2_hw.c | 1745 struct hisi_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() 1806 buf_cmd[10] = tmf->tmf; in prep_ssp_v2_hw() 1807 switch (tmf->tmf) { in prep_ssp_v2_hw() 1811 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v2_hw() 1813 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v2_hw() 2502 struct hisi_sas_tmf_task *tmf = slot->tmf; in prep_ata_v2_hw() local 2515 if (tmf && tmf->force_phy) { in prep_ata_v2_hw() [all …]
|
D | hisi_sas_main.c | 14 u8 *lun, struct hisi_sas_tmf_task *tmf); 408 bool is_tmf, struct hisi_sas_tmf_task *tmf, in hisi_sas_task_prep() argument 518 slot->tmf = tmf; in hisi_sas_task_prep() 566 bool is_tmf, struct hisi_sas_tmf_task *tmf) in hisi_sas_task_exec() argument 608 rc = hisi_sas_task_prep(task, &dq, is_tmf, tmf, &pass); in hisi_sas_task_exec() 714 tmf_task.tmf = TMF_CLEAR_TASK_SET; in hisi_sas_init_device() 1197 struct hisi_sas_tmf_task *tmf) in hisi_sas_exec_internal_tmf_task() argument 1225 res = hisi_sas_task_exec(task, GFP_KERNEL, 1, tmf); in hisi_sas_exec_internal_tmf_task() 1364 u8 *lun, struct hisi_sas_tmf_task *tmf) in hisi_sas_debug_issue_ssp_tmf() argument 1374 sizeof(ssp_task), tmf); in hisi_sas_debug_issue_ssp_tmf() [all …]
|
D | hisi_sas_v3_hw.c | 1213 struct hisi_sas_tmf_task *tmf = slot->tmf; in prep_ssp_v3_hw() local 1214 int has_data = 0, priority = !!tmf; in prep_ssp_v3_hw() 1226 if (tmf) { in prep_ssp_v3_hw() 1273 if (!tmf) { in prep_ssp_v3_hw() 1277 buf_cmd[10] = tmf->tmf; in prep_ssp_v3_hw() 1278 switch (tmf->tmf) { in prep_ssp_v3_hw() 1282 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v3_hw() 1284 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v3_hw()
|
D | hisi_sas.h | 217 u8 tmf; member 239 struct hisi_sas_tmf_task *tmf; member
|
/drivers/scsi/qla2xxx/ |
D | qla_init.c | 1867 struct srb_iocb *tmf = &sp->u.iocb_cmd; in qla2x00_tmf_iocb_timeout() local 1881 tmf->u.tmf.comp_status = cpu_to_le16(CS_TIMEOUT); in qla2x00_tmf_iocb_timeout() 1882 tmf->u.tmf.data = QLA_FUNCTION_FAILED; in qla2x00_tmf_iocb_timeout() 1883 complete(&tmf->u.tmf.comp); in qla2x00_tmf_iocb_timeout() 1889 struct srb_iocb *tmf = &sp->u.iocb_cmd; in qla2x00_tmf_sp_done() local 1891 complete(&tmf->u.tmf.comp); in qla2x00_tmf_sp_done() 1912 init_completion(&tm_iocb->u.tmf.comp); in qla2x00_async_tm_cmd() 1915 tm_iocb->u.tmf.flags = flags; in qla2x00_async_tm_cmd() 1916 tm_iocb->u.tmf.lun = lun; in qla2x00_async_tm_cmd() 1917 tm_iocb->u.tmf.data = tag; in qla2x00_async_tm_cmd() [all …]
|
D | qla_mr.c | 2152 struct srb_iocb *tmf; in qlafx00_tm_iocb_entry() local 2154 tmf = &sp->u.iocb_cmd; in qlafx00_tm_iocb_entry() 2158 tmf->u.tmf.comp_status = cpstatus; in qlafx00_tm_iocb_entry() 3184 tm_iocb.control_flags = cpu_to_le32(fxio->u.tmf.flags); in qlafx00_tm_iocb() 3186 int_to_scsilun(fxio->u.tmf.lun, &llun); in qlafx00_tm_iocb()
|
/drivers/target/ |
D | target_core_transport.c | 2978 static const char *target_tmf_name(enum tcm_tmreq_table tmf) in target_tmf_name() argument 2980 switch (tmf) { in target_tmf_name() 2998 struct se_tmr_req *tmf = cmd->se_tmr_req; in target_show_cmd() local 3009 pfx, target_tmf_name(tmf->function), cmd->tag, in target_show_cmd() 3010 tmf->ref_task_tag, cmd->se_tfo->get_cmd_state(cmd), in target_show_cmd()
|
D | target_core_user.c | 1212 tcmu_tmr_type(enum tcm_tmreq_table tmf) in tcmu_tmr_type() argument 1214 switch (tmf) { in tcmu_tmr_type() 1228 tcmu_tmr_notify(struct se_device *se_dev, enum tcm_tmreq_table tmf, in tcmu_tmr_notify() argument 1268 tcmu_tmr_type(tmf), udev->name, i, cmd_cnt); in tcmu_tmr_notify() 1274 tmr->tmr_type = tcmu_tmr_type(tmf); in tcmu_tmr_notify()
|
/drivers/scsi/bnx2i/ |
D | 57xx_iscsi_hsi.h | 1395 struct bnx2i_tmf_request tmf; member 1516 struct bnx2i_tmf_response tmf; member
|