/linux-6.3-rc2/drivers/scsi/isci/ |
A D | task.h | 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() 125 tmf->resp.resp_iu.resp_data[0], in isci_print_tmf() 126 tmf->resp.resp_iu.resp_data[1], in isci_print_tmf() 127 tmf->resp.resp_iu.resp_data[2], in isci_print_tmf() [all …]
|
A D | task.c | 290 tmf->complete = &completion; 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() 358 memset(tmf, 0, sizeof(*tmf)); in isci_task_build_tmf() 359 tmf->tmf_code = code; in isci_task_build_tmf() 382 struct isci_tmf tmf; in isci_task_send_lu_reset_sas() local 482 struct isci_tmf tmf; in isci_task_abort_task() local 685 if (tmf) { in isci_task_request_complete() 689 memcpy(tmf->resp.rsp_buf, in isci_task_request_complete() 693 memcpy(&tmf->resp.d2h_fis, in isci_task_request_complete() [all …]
|
A D | request.h | 135 struct ssp_task_iu tmf; member
|
/linux-6.3-rc2/drivers/vhost/ |
A D | scsi.c | 370 vhost_work_queue(&tmf->vhost->dev, &tmf->vwork); in vhost_scsi_release_cmd() 1173 vhost_scsi_send_tmf_resp(tmf->vhost, &tmf->svq->vq, tmf->in_iovs, in vhost_scsi_tmf_resp_work() 1174 tmf->vq_desc, &tmf->resp_iov, resp_code); in vhost_scsi_tmf_resp_work() 1209 tmf->tpg = tpg; in vhost_scsi_handle_tmf() 1210 tmf->vhost = vs; in vhost_scsi_handle_tmf() 1211 tmf->svq = svq; in vhost_scsi_handle_tmf() 1214 tmf->in_iovs = vc->in; in vhost_scsi_handle_tmf() 1305 vc.req = &v_req.tmf; in vhost_scsi_ctl_handle_vq() 2037 tmf = kzalloc(sizeof(*tmf), GFP_KERNEL); in vhost_scsi_port_link() 2038 if (!tmf) in vhost_scsi_port_link() [all …]
|
/linux-6.3-rc2/drivers/scsi/aacraid/ |
A D | linit.c | 697 struct aac_hba_tm_req *tmf; in aac_eh_abort() local 724 memset(tmf, 0, sizeof(*tmf)); in aac_eh_abort() 725 tmf->tmf = HBA_TMF_ABORT_TASK; in aac_eh_abort() 727 tmf->lun[1] = cmd->device->lun; in aac_eh_abort() 829 struct aac_hba_tm_req *tmf; in aac_eh_tmf_lun_reset_fib() local 834 memset(tmf, 0, sizeof(*tmf)); in aac_eh_tmf_lun_reset_fib() 835 tmf->tmf = HBA_TMF_LUN_RESET; in aac_eh_tmf_lun_reset_fib() 836 tmf->it_nexus = info->rmw_nexus; in aac_eh_tmf_lun_reset_fib() 840 tmf->error_ptr_hi = cpu_to_le32 in aac_eh_tmf_lun_reset_fib() 842 tmf->error_ptr_lo = cpu_to_le32 in aac_eh_tmf_lun_reset_fib() [all …]
|
/linux-6.3-rc2/drivers/scsi/snic/ |
A D | snic_scsi.c | 1293 u32 tmf, in snic_queue_itmf_req() argument 1316 tmf); in snic_queue_itmf_req() 1342 int tmf) in snic_issue_tm_req() argument 1355 tmf, rqi, tag); in snic_issue_tm_req() 1397 int tmf) in snic_queue_abort_req() argument 1501 tmf = SNIC_ITMF_ABTS_TASK_TERM; in snic_send_abort_and_wait() 1503 tmf = SNIC_ITMF_ABTS_TASK; in snic_send_abort_and_wait() 1716 u32 sv_state = 0, tmf = 0; in snic_dr_clean_single_req() local 1780 tmf = SNIC_ITMF_ABTS_TASK_TERM; in snic_dr_clean_single_req() 1782 tmf = SNIC_ITMF_ABTS_TASK; in snic_dr_clean_single_req() [all …]
|
/linux-6.3-rc2/drivers/scsi/ibmvscsi/ |
A D | ibmvfc.c | 2027 struct ibmvfc_tmf *tmf; in ibmvfc_bsg_timeout() local 2043 tmf = &evt->iu.tmf; in ibmvfc_bsg_timeout() 2044 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_bsg_timeout() 2047 tmf->common.length = cpu_to_be16(sizeof(*tmf)); in ibmvfc_bsg_timeout() 2289 struct ibmvfc_cmd *tmf; in ibmvfc_reset_device() local 2510 tmf = &evt->iu.tmf; in ibmvfc_init_tmf() 2511 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_init_tmf() 2519 tmf->common.length = cpu_to_be16(sizeof(*tmf)); in ibmvfc_init_tmf() 4553 tmf = &evt->iu.tmf; in ibmvfc_adisc_timeout() 4554 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_adisc_timeout() [all …]
|
/linux-6.3-rc2/drivers/scsi/aic94xx/ |
A 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()
|
/linux-6.3-rc2/drivers/scsi/elx/efct/ |
A D | efct_lio.h | 25 io->tgt_io.tmf, ##__VA_ARGS__) 114 u8 tmf; member
|
/linux-6.3-rc2/drivers/scsi/libsas/ |
A D | sas_scsi_host.c | 1015 struct sas_tmf_task *tmf) in sas_execute_tmf() argument 1042 task->tmf = tmf; in sas_execute_tmf() 1132 struct sas_tmf_task *tmf) in sas_execute_ssp_tmf() argument 1141 return sas_execute_tmf(device, &ssp_task, sizeof(ssp_task), -1, tmf); in sas_execute_ssp_tmf() 1147 .tmf = TMF_ABORT_TASK_SET, in sas_abort_task_set() 1157 .tmf = TMF_CLEAR_TASK_SET, in sas_clear_task_set() 1167 .tmf = TMF_LU_RESET, in sas_lu_reset() 1177 .tmf = TMF_QUERY_TASK, in sas_query_task() 1193 .tmf = TMF_ABORT_TASK, in sas_abort_task()
|
A D | sas_internal.h | 106 struct sas_tmf_task *tmf);
|
/linux-6.3-rc2/drivers/scsi/ |
A D | virtio_scsi.c | 47 struct virtio_scsi_ctrl_tmf_req tmf; member 52 struct virtio_scsi_ctrl_tmf_resp tmf; member 619 sizeof cmd->req.tmf, sizeof cmd->resp.tmf, true) < 0) in virtscsi_tmf() 623 if (cmd->resp.tmf.response == VIRTIO_SCSI_S_OK || in virtscsi_tmf() 624 cmd->resp.tmf.response == VIRTIO_SCSI_S_FUNCTION_SUCCEEDED) in virtscsi_tmf() 654 cmd->req.tmf = (struct virtio_scsi_ctrl_tmf_req){ in virtscsi_device_reset() 712 cmd->req.tmf = (struct virtio_scsi_ctrl_tmf_req){ in virtscsi_abort()
|
A D | libiscsi.c | 246 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()
|
/linux-6.3-rc2/drivers/scsi/hisi_sas/ |
A D | hisi_sas_v1_hw.c | 961 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() 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()
|
A D | hisi_sas_v2_hw.c | 1745 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() 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() 2493 struct sas_tmf_task *tmf = slot->tmf; in prep_ata_v2_hw() local 2506 if (tmf && ata_task->force_phy) { in prep_ata_v2_hw()
|
A D | hisi_sas_v3_hw.c | 1241 struct sas_tmf_task *tmf = slot->tmf; in prep_ssp_v3_hw() local 1242 int has_data = 0, priority = !!tmf; in prep_ssp_v3_hw() 1254 if (tmf) { in prep_ssp_v3_hw() 1301 if (!tmf) { in prep_ssp_v3_hw() 1305 buf_cmd[10] = tmf->tmf; in prep_ssp_v3_hw() 1306 switch (tmf->tmf) { in prep_ssp_v3_hw() 1310 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in prep_ssp_v3_hw() 1312 tmf->tag_of_task_to_be_managed & 0xff; in prep_ssp_v3_hw()
|
/linux-6.3-rc2/drivers/scsi/mvsas/ |
A D | mv_sas.c | 555 struct sas_tmf_task *tmf) in mvs_task_prep_ssp() argument 675 buf_cmd[10] = tmf->tmf; in mvs_task_prep_ssp() 676 switch (tmf->tmf) { in mvs_task_prep_ssp() 680 (tmf->tag_of_task_to_be_managed >> 8) & 0xff; in mvs_task_prep_ssp() 682 tmf->tag_of_task_to_be_managed & 0xff; in mvs_task_prep_ssp() 695 struct sas_tmf_task *tmf, int *pass) in mvs_task_prep() argument 731 if (tei.port && !tei.port->port_attached && !tmf) { in mvs_task_prep() 797 rc = mvs_task_prep_ssp(mvi, &tei, is_tmf, tmf); in mvs_task_prep() 848 struct sas_tmf_task *tmf = task->tmf; in mvs_queue_command() local 849 int is_tmf = !!task->tmf; in mvs_queue_command() [all …]
|
/linux-6.3-rc2/drivers/scsi/pm8001/ |
A D | pm8001_sas.c | 348 struct pm8001_ccb_info *ccb, struct sas_tmf_task *tmf) in pm8001_task_prep_ssp_tm() argument 350 return PM8001_CHIP_DISP->ssp_tm_req(pm8001_ha, ccb, tmf); in pm8001_task_prep_ssp_tm() 390 struct sas_tmf_task *tmf = task->tmf; in pm8001_deliver_command() local 391 int is_tmf = !!tmf; in pm8001_deliver_command() 398 return pm8001_task_prep_ssp_tm(pm8001_ha, ccb, tmf); in pm8001_deliver_command()
|
A D | pm8001_sas.h | 204 struct pm8001_ccb_info *ccb, struct sas_tmf_task *tmf); 679 struct sas_tmf_task *tmf);
|
/linux-6.3-rc2/include/scsi/ |
A D | sas.h | 372 u8 tmf; member 593 u8 tmf; member
|
A D | libsas.h | 595 u8 tmf; member 625 struct sas_tmf_task *tmf; member
|
/linux-6.3-rc2/drivers/target/ |
A D | target_core_transport.c | 3086 static const char *target_tmf_name(enum tcm_tmreq_table tmf) in target_tmf_name() argument 3088 switch (tmf) { in target_tmf_name() 3106 struct se_tmr_req *tmf = cmd->se_tmr_req; in target_show_cmd() local 3117 pfx, target_tmf_name(tmf->function), cmd->tag, in target_show_cmd() 3118 tmf->ref_task_tag, cmd->se_tfo->get_cmd_state(cmd), in target_show_cmd()
|
A D | target_core_user.c | 1239 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()
|
/linux-6.3-rc2/drivers/scsi/qla2xxx/ |
A D | qla_init.c | 1995 struct srb_iocb *tmf = &sp->u.iocb_cmd; in qla2x00_tmf_iocb_timeout() local 2010 tmf->u.tmf.comp_status = cpu_to_le16(CS_TIMEOUT); in qla2x00_tmf_iocb_timeout() 2011 tmf->u.tmf.data = QLA_FUNCTION_FAILED; in qla2x00_tmf_iocb_timeout() 2012 complete(&tmf->u.tmf.comp); in qla2x00_tmf_iocb_timeout() 2020 complete(&tmf->u.tmf.comp); in qla2x00_tmf_sp_done() 2045 init_completion(&tm_iocb->u.tmf.comp); in qla2x00_async_tm_cmd() 2046 tm_iocb->u.tmf.flags = flags; in qla2x00_async_tm_cmd() 2047 tm_iocb->u.tmf.lun = lun; in qla2x00_async_tm_cmd() 2059 rval = tm_iocb->u.tmf.data; in qla2x00_async_tm_cmd() 2067 flags = tm_iocb->u.tmf.flags; in qla2x00_async_tm_cmd() [all …]
|
A D | qla_mr.c | 2153 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()
|