Lines Matching refs:tmf
1717 struct ibmvfc_tmf *tmf; in ibmvfc_bsg_timeout() local
1733 tmf = &evt->iu.tmf; in ibmvfc_bsg_timeout()
1734 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_bsg_timeout()
1735 tmf->common.version = 1; in ibmvfc_bsg_timeout()
1736 tmf->common.opcode = IBMVFC_TMF_MAD; in ibmvfc_bsg_timeout()
1737 tmf->common.length = sizeof(*tmf); in ibmvfc_bsg_timeout()
1738 tmf->scsi_id = port_id; in ibmvfc_bsg_timeout()
1739 tmf->cancel_key = IBMVFC_PASSTHRU_CANCEL_KEY; in ibmvfc_bsg_timeout()
1740 tmf->my_cancel_key = IBMVFC_INTERNAL_CANCEL_KEY; in ibmvfc_bsg_timeout()
1974 struct ibmvfc_cmd *tmf; in ibmvfc_reset_device() local
1987 tmf = &evt->iu.cmd; in ibmvfc_reset_device()
1988 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_reset_device()
1989 tmf->resp.va = (u64)evt->crq.ioba + offsetof(struct ibmvfc_cmd, rsp); in ibmvfc_reset_device()
1990 tmf->resp.len = sizeof(tmf->rsp); in ibmvfc_reset_device()
1991 tmf->frame_type = IBMVFC_SCSI_FCP_TYPE; in ibmvfc_reset_device()
1992 tmf->payload_len = sizeof(tmf->iu); in ibmvfc_reset_device()
1993 tmf->resp_len = sizeof(tmf->rsp); in ibmvfc_reset_device()
1994 tmf->cancel_key = (unsigned long)sdev->hostdata; in ibmvfc_reset_device()
1995 tmf->tgt_scsi_id = rport->port_id; in ibmvfc_reset_device()
1996 int_to_scsilun(sdev->lun, &tmf->iu.lun); in ibmvfc_reset_device()
1997 tmf->flags = (IBMVFC_NO_MEM_DESC | IBMVFC_TMF); in ibmvfc_reset_device()
1998 tmf->iu.tmf_flags = type; in ibmvfc_reset_device()
2158 struct ibmvfc_tmf *tmf; in ibmvfc_cancel_all() local
2186 tmf = &evt->iu.tmf; in ibmvfc_cancel_all()
2187 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_cancel_all()
2188 tmf->common.version = 1; in ibmvfc_cancel_all()
2189 tmf->common.opcode = IBMVFC_TMF_MAD; in ibmvfc_cancel_all()
2190 tmf->common.length = sizeof(*tmf); in ibmvfc_cancel_all()
2191 tmf->scsi_id = rport->port_id; in ibmvfc_cancel_all()
2192 int_to_scsilun(sdev->lun, &tmf->lun); in ibmvfc_cancel_all()
2196 tmf->flags = (type | IBMVFC_TMF_LUA_VALID); in ibmvfc_cancel_all()
2198 tmf->flags = ((type & IBMVFC_TMF_SUPPRESS_ABTS) | IBMVFC_TMF_LUA_VALID); in ibmvfc_cancel_all()
2199 tmf->cancel_key = (unsigned long)sdev->hostdata; in ibmvfc_cancel_all()
2200 tmf->my_cancel_key = (unsigned long)starget->hostdata; in ibmvfc_cancel_all()
2278 struct ibmvfc_cmd *tmf; in ibmvfc_abort_task_set() local
2306 tmf = &evt->iu.cmd; in ibmvfc_abort_task_set()
2307 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_abort_task_set()
2308 tmf->resp.va = (u64)evt->crq.ioba + offsetof(struct ibmvfc_cmd, rsp); in ibmvfc_abort_task_set()
2309 tmf->resp.len = sizeof(tmf->rsp); in ibmvfc_abort_task_set()
2310 tmf->frame_type = IBMVFC_SCSI_FCP_TYPE; in ibmvfc_abort_task_set()
2311 tmf->payload_len = sizeof(tmf->iu); in ibmvfc_abort_task_set()
2312 tmf->resp_len = sizeof(tmf->rsp); in ibmvfc_abort_task_set()
2313 tmf->cancel_key = (unsigned long)sdev->hostdata; in ibmvfc_abort_task_set()
2314 tmf->tgt_scsi_id = rport->port_id; in ibmvfc_abort_task_set()
2315 int_to_scsilun(sdev->lun, &tmf->iu.lun); in ibmvfc_abort_task_set()
2316 tmf->flags = (IBMVFC_NO_MEM_DESC | IBMVFC_TMF); in ibmvfc_abort_task_set()
2317 tmf->iu.tmf_flags = IBMVFC_ABORT_TASK_SET; in ibmvfc_abort_task_set()
3718 struct ibmvfc_tmf *tmf; in ibmvfc_adisc_timeout() local
3738 tmf = &evt->iu.tmf; in ibmvfc_adisc_timeout()
3739 memset(tmf, 0, sizeof(*tmf)); in ibmvfc_adisc_timeout()
3740 tmf->common.version = 1; in ibmvfc_adisc_timeout()
3741 tmf->common.opcode = IBMVFC_TMF_MAD; in ibmvfc_adisc_timeout()
3742 tmf->common.length = sizeof(*tmf); in ibmvfc_adisc_timeout()
3743 tmf->scsi_id = tgt->scsi_id; in ibmvfc_adisc_timeout()
3744 tmf->cancel_key = tgt->cancel_key; in ibmvfc_adisc_timeout()