Lines Matching refs:zfcp_sdev
774 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_command_handler() local
783 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, in zfcp_fsf_abort_fcp_command_handler()
790 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fsafch2"); in zfcp_fsf_abort_fcp_command_handler()
798 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()
800 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()
813 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_abort_fcp_command_handler()
836 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_cmnd() local
837 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_abort_fcp_cmnd()
851 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_abort_fcp_cmnd()
859 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_abort_fcp_cmnd()
860 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_abort_fcp_cmnd()
1733 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_open_lun_handler() local
1744 &zfcp_sdev->status); in zfcp_fsf_open_lun_handler()
1758 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_open_lun_handler()
1760 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_open_lun_handler()
1773 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_open_lun_handler()
1782 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_open_lun_handler()
1791 zfcp_sdev->lun_handle = header->lun_handle; in zfcp_fsf_open_lun_handler()
1792 atomic_set_mask(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); in zfcp_fsf_open_lun_handler()
1850 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_close_lun_handler() local
1857 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, "fscuh_1"); in zfcp_fsf_close_lun_handler()
1861 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fscuh_2"); in zfcp_fsf_close_lun_handler()
1865 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_close_lun_handler()
1867 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_close_lun_handler()
1874 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_close_lun_handler()
1882 atomic_clear_mask(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); in zfcp_fsf_close_lun_handler()
1895 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(erp_action->sdev); in zfcp_fsf_close_lun() local
1916 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_close_lun()
1944 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scsi->device); in zfcp_fsf_req_trace() local
1967 lat = &zfcp_sdev->latencies.read; in zfcp_fsf_req_trace()
1972 lat = &zfcp_sdev->latencies.write; in zfcp_fsf_req_trace()
1975 lat = &zfcp_sdev->latencies.cmd; in zfcp_fsf_req_trace()
1980 spin_lock(&zfcp_sdev->latencies.lock); in zfcp_fsf_req_trace()
1984 spin_unlock(&zfcp_sdev->latencies.lock); in zfcp_fsf_req_trace()
1996 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_handler_common() local
2005 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, "fssfch1"); in zfcp_fsf_fcp_handler_common()
2010 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fssfch2"); in zfcp_fsf_fcp_handler_common()
2026 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
2027 zfcp_erp_adapter_shutdown(zfcp_sdev->port->adapter, 0, in zfcp_fsf_fcp_handler_common()
2037 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
2038 zfcp_erp_adapter_shutdown(zfcp_sdev->port->adapter, 0, in zfcp_fsf_fcp_handler_common()
2043 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_fcp_handler_common()
2045 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_fcp_handler_common()
2058 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_fcp_handler_common()
2167 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_cmnd() local
2168 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in zfcp_fsf_fcp_cmnd()
2173 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_fcp_cmnd()
2200 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_cmnd()
2201 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_cmnd()
2271 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scmnd->device); in zfcp_fsf_fcp_task_mgmt() local
2272 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_fcp_task_mgmt()
2274 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_fcp_task_mgmt()
2293 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_task_mgmt()
2294 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_task_mgmt()