Lines Matching refs:dev_handle

461 		tgtdev->dev_handle = MPI3MR_INVALID_DEV_HANDLE;  in mpi3mr_invalidate_devhandles()
464 tgt_priv->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_invalidate_devhandles()
745 if (tgtdev->dev_handle == handle) in __mpi3mr_get_tgtdev_by_handle()
910 __func__, tgtdev->dev_handle, (unsigned long long)tgtdev->wwid); in mpi3mr_remove_tgtdev_from_host()
914 tgt_priv->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_remove_tgtdev_from_host()
939 __func__, tgtdev->dev_handle, (unsigned long long)tgtdev->wwid); in mpi3mr_remove_tgtdev_from_host()
1090 if (((tgtdev->dev_handle == MPI3MR_INVALID_DEV_HANDLE) || in mpi3mr_refresh_tgtdevs()
1102 if (tgtdev->dev_handle == MPI3MR_INVALID_DEV_HANDLE) { in mpi3mr_refresh_tgtdevs()
1118 if ((tgtdev->dev_handle != MPI3MR_INVALID_DEV_HANDLE) && in mpi3mr_refresh_tgtdevs()
1152 tgtdev->dev_handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_update_tgtdev()
1194 scsi_tgt_priv_data->dev_handle = tgtdev->dev_handle; in mpi3mr_update_tgtdev()
1340 u16 dev_handle = 0; in mpi3mr_devstatuschg_evt_bh() local
1346 dev_handle = le16_to_cpu(evtdata->dev_handle); in mpi3mr_devstatuschg_evt_bh()
1349 __func__, dev_handle, evtdata->reason_code); in mpi3mr_devstatuschg_evt_bh()
1367 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devstatuschg_evt_bh()
1405 u16 dev_handle = 0, perst_id = 0; in mpi3mr_devinfochg_evt_bh() local
1408 dev_handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_devinfochg_evt_bh()
1411 __func__, dev_handle, perst_id); in mpi3mr_devinfochg_evt_bh()
1412 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devinfochg_evt_bh()
2033 handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_fwevt_bh()
2261 __func__, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_iou()
2268 __func__, drv_cmd->dev_handle, in mpi3mr_dev_rmhs_complete_iou()
2270 mpi3mr_dev_rmhs_send_tm(mrioc, drv_cmd->dev_handle, in mpi3mr_dev_rmhs_complete_iou()
2276 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2280 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2281 clear_bit(drv_cmd->dev_handle, mrioc->removepend_bitmap); in mpi3mr_dev_rmhs_complete_iou()
2287 drv_cmd->dev_handle = delayed_dev_rmhs->handle; in mpi3mr_dev_rmhs_complete_iou()
2292 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
2293 mpi3mr_dev_rmhs_send_tm(mrioc, drv_cmd->dev_handle, drv_cmd, in mpi3mr_dev_rmhs_complete_iou()
2304 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_complete_iou()
2336 mrioc->name, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_tm()
2341 mrioc->name, drv_cmd->dev_handle, cmd_idx); in mpi3mr_dev_rmhs_complete_tm()
2349 iou_ctrl.param16[0] = cpu_to_le16(drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_tm()
2365 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_complete_tm()
2443 drv_cmd->dev_handle = handle; in mpi3mr_dev_rmhs_send_tm()
2445 tm_req.dev_handle = cpu_to_le16(handle); in mpi3mr_dev_rmhs_send_tm()
2463 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_send_tm()
2755 u16 dev_handle = 0; in mpi3mr_devstatuschg_evt_th() local
2765 dev_handle = le16_to_cpu(evtdata->dev_handle); in mpi3mr_devstatuschg_evt_th()
2788 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devstatuschg_evt_th()
2804 mpi3mr_dev_rmhs_send_tm(mrioc, dev_handle, NULL, in mpi3mr_devstatuschg_evt_th()
2807 mpi3mr_dev_rmhs_send_tm(mrioc, dev_handle, NULL, in mpi3mr_devstatuschg_evt_th()
3256 u16 dev_handle = 0xFFFF; in mpi3mr_process_op_reply_desc() local
3292 dev_handle = le16_to_cpu(scsi_reply->dev_handle); in mpi3mr_process_op_reply_desc()
3335 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_process_op_reply_desc()
3467 __func__, dev_handle, ioc_status, ioc_loginfo, in mpi3mr_process_op_reply_desc()
3832 tm_req.dev_handle = cpu_to_le16(handle); in mpi3mr_issue_tm()
4263 u16 dev_handle; in mpi3mr_eh_target_reset() local
4280 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_target_reset()
4285 mrioc->name, dev_handle); in mpi3mr_eh_target_reset()
4294 dev_handle); in mpi3mr_eh_target_reset()
4297 MPI3_SCSITASKMGMT_TASKTYPE_TARGET_RESET, dev_handle, in mpi3mr_eh_target_reset()
4335 u16 dev_handle; in mpi3mr_eh_dev_reset() local
4352 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_dev_reset()
4357 mrioc->name, dev_handle); in mpi3mr_eh_dev_reset()
4365 "Device(lun) Reset is issued to handle(0x%04x)\n", dev_handle); in mpi3mr_eh_dev_reset()
4368 MPI3_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET, dev_handle, in mpi3mr_eh_dev_reset()
4690 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
4718 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
4881 u16 dev_handle; in mpi3mr_qcmd() local
4912 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_qcmd()
4918 (stgt_priv_data->dev_removed || (dev_handle == MPI3MR_INVALID_DEV_HANDLE))) { in mpi3mr_qcmd()
4940 if (dev_handle == MPI3MR_INVALID_DEV_HANDLE) { in mpi3mr_qcmd()
4997 scsiio_req->dev_handle = cpu_to_le16(dev_handle); in mpi3mr_qcmd()
5110 cmdptr->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_init_drv_cmd()