Lines Matching refs:dev_handle
426 tgtdev->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_invalidate_devhandles()
429 tgt_priv->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_invalidate_devhandles()
710 if (tgtdev->dev_handle == handle) in __mpi3mr_get_tgtdev_by_handle()
875 __func__, tgtdev->dev_handle, (unsigned long long)tgtdev->wwid); in mpi3mr_remove_tgtdev_from_host()
879 tgt_priv->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_remove_tgtdev_from_host()
902 __func__, tgtdev->dev_handle, (unsigned long long)tgtdev->wwid); in mpi3mr_remove_tgtdev_from_host()
1049 if ((tgtdev->dev_handle == MPI3MR_INVALID_DEV_HANDLE) && in mpi3mr_rfresh_tgtdevs()
1060 if (tgtdev->dev_handle == MPI3MR_INVALID_DEV_HANDLE) { in mpi3mr_rfresh_tgtdevs()
1072 if ((tgtdev->dev_handle != MPI3MR_INVALID_DEV_HANDLE) && in mpi3mr_rfresh_tgtdevs()
1100 tgtdev->dev_handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_update_tgtdev()
1142 scsi_tgt_priv_data->dev_handle = tgtdev->dev_handle; in mpi3mr_update_tgtdev()
1288 u16 dev_handle = 0; in mpi3mr_devstatuschg_evt_bh() local
1294 dev_handle = le16_to_cpu(evtdata->dev_handle); in mpi3mr_devstatuschg_evt_bh()
1297 __func__, dev_handle, evtdata->reason_code); in mpi3mr_devstatuschg_evt_bh()
1315 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devstatuschg_evt_bh()
1353 u16 dev_handle = 0, perst_id = 0; in mpi3mr_devinfochg_evt_bh() local
1356 dev_handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_devinfochg_evt_bh()
1359 __func__, dev_handle, perst_id); in mpi3mr_devinfochg_evt_bh()
1360 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devinfochg_evt_bh()
1924 handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_fwevt_bh()
2136 __func__, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_iou()
2143 __func__, drv_cmd->dev_handle, in mpi3mr_dev_rmhs_complete_iou()
2145 mpi3mr_dev_rmhs_send_tm(mrioc, drv_cmd->dev_handle, in mpi3mr_dev_rmhs_complete_iou()
2151 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2155 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2156 clear_bit(drv_cmd->dev_handle, mrioc->removepend_bitmap); in mpi3mr_dev_rmhs_complete_iou()
2162 drv_cmd->dev_handle = delayed_dev_rmhs->handle; in mpi3mr_dev_rmhs_complete_iou()
2167 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2168 mpi3mr_dev_rmhs_send_tm(mrioc, drv_cmd->dev_handle, drv_cmd, in mpi3mr_dev_rmhs_complete_iou()
2179 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_complete_iou()
2211 mrioc->name, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_tm()
2216 mrioc->name, drv_cmd->dev_handle, cmd_idx); in mpi3mr_dev_rmhs_complete_tm()
2224 iou_ctrl.param16[0] = cpu_to_le16(drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_tm()
2240 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_complete_tm()
2318 drv_cmd->dev_handle = handle; in mpi3mr_dev_rmhs_send_tm()
2320 tm_req.dev_handle = cpu_to_le16(handle); in mpi3mr_dev_rmhs_send_tm()
2338 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_send_tm()
2630 u16 dev_handle = 0; in mpi3mr_devstatuschg_evt_th() local
2640 dev_handle = le16_to_cpu(evtdata->dev_handle); in mpi3mr_devstatuschg_evt_th()
2663 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devstatuschg_evt_th()
2679 mpi3mr_dev_rmhs_send_tm(mrioc, dev_handle, NULL, in mpi3mr_devstatuschg_evt_th()
2682 mpi3mr_dev_rmhs_send_tm(mrioc, dev_handle, NULL, in mpi3mr_devstatuschg_evt_th()
3125 u16 dev_handle = 0xFFFF; in mpi3mr_process_op_reply_desc() local
3160 dev_handle = le16_to_cpu(scsi_reply->dev_handle); in mpi3mr_process_op_reply_desc()
3328 __func__, dev_handle, ioc_status, ioc_loginfo, in mpi3mr_process_op_reply_desc()
3675 tm_req.dev_handle = cpu_to_le16(handle); in mpi3mr_issue_tm()
4075 u16 dev_handle; in mpi3mr_eh_target_reset() local
4092 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_target_reset()
4097 mrioc->name, dev_handle); in mpi3mr_eh_target_reset()
4106 dev_handle); in mpi3mr_eh_target_reset()
4109 MPI3_SCSITASKMGMT_TASKTYPE_TARGET_RESET, dev_handle, in mpi3mr_eh_target_reset()
4147 u16 dev_handle; in mpi3mr_eh_dev_reset() local
4164 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_dev_reset()
4169 mrioc->name, dev_handle); in mpi3mr_eh_dev_reset()
4177 "Device(lun) Reset is issued to handle(0x%04x)\n", dev_handle); in mpi3mr_eh_dev_reset()
4180 MPI3_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET, dev_handle, in mpi3mr_eh_dev_reset()
4520 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
4548 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
4711 u16 dev_handle; in mpi3mr_qcmd() local
4742 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_qcmd()
4748 (stgt_priv_data->dev_removed || (dev_handle == MPI3MR_INVALID_DEV_HANDLE))) { in mpi3mr_qcmd()
4769 if (dev_handle == MPI3MR_INVALID_DEV_HANDLE) { in mpi3mr_qcmd()
4826 scsiio_req->dev_handle = cpu_to_le16(dev_handle); in mpi3mr_qcmd()
4938 cmdptr->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_init_drv_cmd()