Lines Matching refs:dev_handle
342 tgtdev->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_invalidate_devhandles()
345 tgt_priv->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_invalidate_devhandles()
521 if (tgtdev->dev_handle == handle) in __mpi3mr_get_tgtdev_by_handle()
639 __func__, tgtdev->dev_handle, (unsigned long long)tgtdev->wwid); in mpi3mr_remove_tgtdev_from_host()
642 tgt_priv->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_remove_tgtdev_from_host()
650 __func__, tgtdev->dev_handle, (unsigned long long)tgtdev->wwid); in mpi3mr_remove_tgtdev_from_host()
773 if ((tgtdev->dev_handle == MPI3MR_INVALID_DEV_HANDLE) && in mpi3mr_rfresh_tgtdevs()
783 if ((tgtdev->dev_handle != MPI3MR_INVALID_DEV_HANDLE) && in mpi3mr_rfresh_tgtdevs()
808 tgtdev->dev_handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_update_tgtdev()
823 scsi_tgt_priv_data->dev_handle = tgtdev->dev_handle; in mpi3mr_update_tgtdev()
911 u16 dev_handle = 0; in mpi3mr_devstatuschg_evt_bh() local
917 dev_handle = le16_to_cpu(evtdata->dev_handle); in mpi3mr_devstatuschg_evt_bh()
920 __func__, dev_handle, evtdata->reason_code); in mpi3mr_devstatuschg_evt_bh()
938 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devstatuschg_evt_bh()
976 u16 dev_handle = 0, perst_id = 0; in mpi3mr_devinfochg_evt_bh() local
979 dev_handle = le16_to_cpu(dev_pg0->dev_handle); in mpi3mr_devinfochg_evt_bh()
982 __func__, dev_handle, perst_id); in mpi3mr_devinfochg_evt_bh()
983 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devinfochg_evt_bh()
1419 __func__, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_iou()
1426 __func__, drv_cmd->dev_handle, in mpi3mr_dev_rmhs_complete_iou()
1428 mpi3mr_dev_rmhs_send_tm(mrioc, drv_cmd->dev_handle, in mpi3mr_dev_rmhs_complete_iou()
1434 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
1438 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
1439 clear_bit(drv_cmd->dev_handle, mrioc->removepend_bitmap); in mpi3mr_dev_rmhs_complete_iou()
1445 drv_cmd->dev_handle = delayed_dev_rmhs->handle; in mpi3mr_dev_rmhs_complete_iou()
1450 __func__, drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_iou()
1451 mpi3mr_dev_rmhs_send_tm(mrioc, drv_cmd->dev_handle, drv_cmd, in mpi3mr_dev_rmhs_complete_iou()
1460 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_complete_iou()
1489 mrioc->name, drv_cmd->dev_handle, drv_cmd->ioc_status, in mpi3mr_dev_rmhs_complete_tm()
1494 mrioc->name, drv_cmd->dev_handle, cmd_idx); in mpi3mr_dev_rmhs_complete_tm()
1502 iou_ctrl.param16[0] = cpu_to_le16(drv_cmd->dev_handle); in mpi3mr_dev_rmhs_complete_tm()
1518 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_complete_tm()
1588 drv_cmd->dev_handle = handle; in mpi3mr_dev_rmhs_send_tm()
1590 tm_req.dev_handle = cpu_to_le16(handle); in mpi3mr_dev_rmhs_send_tm()
1608 drv_cmd->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_dev_rmhs_send_tm()
1761 u16 dev_handle = 0; in mpi3mr_devstatuschg_evt_th() local
1771 dev_handle = le16_to_cpu(evtdata->dev_handle); in mpi3mr_devstatuschg_evt_th()
1794 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, dev_handle); in mpi3mr_devstatuschg_evt_th()
1810 mpi3mr_dev_rmhs_send_tm(mrioc, dev_handle, NULL, in mpi3mr_devstatuschg_evt_th()
1813 mpi3mr_dev_rmhs_send_tm(mrioc, dev_handle, NULL, in mpi3mr_devstatuschg_evt_th()
2145 u16 dev_handle = 0xFFFF; in mpi3mr_process_op_reply_desc() local
2175 dev_handle = le16_to_cpu(scsi_reply->dev_handle); in mpi3mr_process_op_reply_desc()
2295 __func__, dev_handle, ioc_status, ioc_loginfo, in mpi3mr_process_op_reply_desc()
2625 tm_req.dev_handle = cpu_to_le16(handle); in mpi3mr_issue_tm()
2923 u16 dev_handle; in mpi3mr_eh_target_reset() local
2940 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_target_reset()
2943 dev_handle); in mpi3mr_eh_target_reset()
2946 MPI3_SCSITASKMGMT_TASKTYPE_TARGET_RESET, dev_handle, in mpi3mr_eh_target_reset()
2977 u16 dev_handle; in mpi3mr_eh_dev_reset() local
2994 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_eh_dev_reset()
2996 "Device(lun) Reset is issued to handle(0x%04x)\n", dev_handle); in mpi3mr_eh_dev_reset()
2999 MPI3_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET, dev_handle, in mpi3mr_eh_dev_reset()
3285 scsi_tgt_priv_data->dev_handle = tgt_dev->dev_handle; in mpi3mr_target_alloc()
3432 u16 dev_handle; in mpi3mr_qcmd() local
3459 dev_handle = stgt_priv_data->dev_handle; in mpi3mr_qcmd()
3460 if (dev_handle == MPI3MR_INVALID_DEV_HANDLE) { in mpi3mr_qcmd()
3521 scsiio_req->dev_handle = cpu_to_le16(dev_handle); in mpi3mr_qcmd()
3590 cmdptr->dev_handle = MPI3MR_INVALID_DEV_HANDLE; in mpi3mr_init_drv_cmd()