Lines Matching refs:dev_handle
468 tgtdev->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_invalidate_devhandles()
471 tgt_priv->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_invalidate_devhandles()
752 if (tgtdev->dev_handle == handle) in __mpi3mr_get_tgtdev_by_handle()
917 __func__, tgtdev->dev_handle, (unsigned long long)tgtdev->wwid); in mpi3mr_remove_tgtdev_from_host()
921 tgt_priv->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_remove_tgtdev_from_host()
946 __func__, tgtdev->dev_handle, (unsigned long long)tgtdev->wwid); in mpi3mr_remove_tgtdev_from_host()
997 tgtdev->dev_handle, perst_id); in mpi3mr_report_tgtdev_to_host()
1101 if (((tgtdev->dev_handle == MPI3MR_INVALID_DEV_HANDLE) || in mpi3mr_refresh_tgtdevs()
1113 if (tgtdev->dev_handle == MPI3MR_INVALID_DEV_HANDLE) { in mpi3mr_refresh_tgtdevs()
1129 if ((tgtdev->dev_handle != MPI3MR_INVALID_DEV_HANDLE) && in mpi3mr_refresh_tgtdevs()
1163 tgtdev->dev_handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_update_tgtdev()
1205 scsi_tgt_priv_data->dev_handle = tgtdev->dev_handle; in mpi3mr_update_tgtdev()
1351 u16 dev_handle = 0; in mpi3mr_devstatuschg_evt_bh() local
1357 dev_handle = le16_to_cpu(evtdata->dev_handle); in mpi3mr_devstatuschg_evt_bh()
1360 dev_handle, evtdata->reason_code); in mpi3mr_devstatuschg_evt_bh()
1378 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devstatuschg_evt_bh()
1383 dev_handle, evtdata->reason_code); in mpi3mr_devstatuschg_evt_bh()
1421 u16 dev_handle = 0, perst_id = 0; in mpi3mr_devinfochg_evt_bh() local
1424 dev_handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_devinfochg_evt_bh()
1427 dev_handle, perst_id); in mpi3mr_devinfochg_evt_bh()
1428 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devinfochg_evt_bh()
1433 dev_handle, perst_id); in mpi3mr_devinfochg_evt_bh()
2060 handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_fwevt_bh()
2288 __func__, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_iou()
2295 __func__, drv_cmd->dev_handle, in mpi3mr_dev_rmhs_complete_iou()
2297 mpi3mr_dev_rmhs_send_tm(mrioc, drv_cmd->dev_handle, in mpi3mr_dev_rmhs_complete_iou()
2303 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2307 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2308 clear_bit(drv_cmd->dev_handle, mrioc->removepend_bitmap); in mpi3mr_dev_rmhs_complete_iou()
2314 drv_cmd->dev_handle = delayed_dev_rmhs->handle; in mpi3mr_dev_rmhs_complete_iou()
2319 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2320 mpi3mr_dev_rmhs_send_tm(mrioc, drv_cmd->dev_handle, drv_cmd, in mpi3mr_dev_rmhs_complete_iou()
2331 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_complete_iou()
2363 mrioc->name, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_tm()
2368 mrioc->name, drv_cmd->dev_handle, cmd_idx); in mpi3mr_dev_rmhs_complete_tm()
2376 iou_ctrl.param16[0] = cpu_to_le16(drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_tm()
2392 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_complete_tm()
2470 drv_cmd->dev_handle = handle; in mpi3mr_dev_rmhs_send_tm()
2472 tm_req.dev_handle = cpu_to_le16(handle); in mpi3mr_dev_rmhs_send_tm()
2490 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_send_tm()
2782 u16 dev_handle = 0; in mpi3mr_devstatuschg_evt_th() local
2792 dev_handle = le16_to_cpu(evtdata->dev_handle); in mpi3mr_devstatuschg_evt_th()
2795 evtdata->reason_code, dev_handle); in mpi3mr_devstatuschg_evt_th()
2818 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devstatuschg_evt_th()
2822 dev_handle); in mpi3mr_devstatuschg_evt_th()
2838 mpi3mr_dev_rmhs_send_tm(mrioc, dev_handle, NULL, in mpi3mr_devstatuschg_evt_th()
2841 mpi3mr_dev_rmhs_send_tm(mrioc, dev_handle, NULL, in mpi3mr_devstatuschg_evt_th()
3014 le16_to_cpu(dev_pg0->dev_handle), in mpi3mr_os_handle_events()
3296 u16 dev_handle = 0xFFFF; in mpi3mr_process_op_reply_desc() local
3332 dev_handle = le16_to_cpu(scsi_reply->dev_handle); in mpi3mr_process_op_reply_desc()
3375 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_process_op_reply_desc()
3518 __func__, dev_handle, ioc_status, ioc_loginfo, in mpi3mr_process_op_reply_desc()
3883 tm_req.dev_handle = cpu_to_le16(handle); in mpi3mr_issue_tm()
4326 u16 dev_handle; in mpi3mr_eh_target_reset() local
4343 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_target_reset()
4348 mrioc->name, dev_handle); in mpi3mr_eh_target_reset()
4357 dev_handle); in mpi3mr_eh_target_reset()
4360 MPI3_SCSITASKMGMT_TASKTYPE_TARGET_RESET, dev_handle, in mpi3mr_eh_target_reset()
4398 u16 dev_handle; in mpi3mr_eh_dev_reset() local
4415 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_dev_reset()
4420 mrioc->name, dev_handle); in mpi3mr_eh_dev_reset()
4428 "Device(lun) Reset is issued to handle(0x%04x)\n", dev_handle); in mpi3mr_eh_dev_reset()
4431 MPI3_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET, dev_handle, in mpi3mr_eh_dev_reset()
4469 u16 dev_handle, timeout = MPI3MR_ABORTTM_TIMEOUT; in mpi3mr_eh_abort() local
4496 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_abort()
4511 mrioc->name, dev_handle); in mpi3mr_eh_abort()
4517 dev_handle, sdev_priv_data->lun_id, MPI3MR_HOSTTAG_BLK_TMS, in mpi3mr_eh_abort()
4839 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
4867 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
5030 u16 dev_handle; in mpi3mr_qcmd() local
5061 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_qcmd()
5067 (stgt_priv_data->dev_removed || (dev_handle == MPI3MR_INVALID_DEV_HANDLE))) { in mpi3mr_qcmd()
5089 if (dev_handle == MPI3MR_INVALID_DEV_HANDLE) { in mpi3mr_qcmd()
5146 scsiio_req->dev_handle = cpu_to_le16(dev_handle); in mpi3mr_qcmd()
5260 cmdptr->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_init_drv_cmd()