Lines Matching refs:zfcp_sdev
834 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_abort_fcp_command_handler() local
840 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_command_handler()
845 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, in zfcp_fsf_abort_fcp_command_handler()
852 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fsafch2"); in zfcp_fsf_abort_fcp_command_handler()
860 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()
862 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()
875 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_abort_fcp_command_handler()
898 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_cmnd() local
899 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_abort_fcp_cmnd()
913 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_abort_fcp_cmnd()
921 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_abort_fcp_cmnd()
922 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_abort_fcp_cmnd()
1798 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_open_lun_handler() local
1805 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_open_lun_handler()
1809 &zfcp_sdev->status); in zfcp_fsf_open_lun_handler()
1819 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_open_lun_handler()
1821 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_open_lun_handler()
1827 dev_warn(&zfcp_sdev->port->adapter->ccw_device->dev, in zfcp_fsf_open_lun_handler()
1831 (unsigned long long)zfcp_sdev->port->wwpn, in zfcp_fsf_open_lun_handler()
1844 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_open_lun_handler()
1853 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_open_lun_handler()
1862 zfcp_sdev->lun_handle = header->lun_handle; in zfcp_fsf_open_lun_handler()
1863 atomic_or(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); in zfcp_fsf_open_lun_handler()
1920 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_close_lun_handler() local
1925 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_close_lun_handler()
1929 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, "fscuh_1"); in zfcp_fsf_close_lun_handler()
1933 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fscuh_2"); in zfcp_fsf_close_lun_handler()
1937 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_close_lun_handler()
1939 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_close_lun_handler()
1946 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_close_lun_handler()
1954 atomic_andnot(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); in zfcp_fsf_close_lun_handler()
1967 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(erp_action->sdev); in zfcp_fsf_close_lun() local
1988 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_close_lun()
2016 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_req_trace() local
2031 zfcp_sdev = sdev_to_zfcp(scsi->device); in zfcp_fsf_req_trace()
2040 lat = &zfcp_sdev->latencies.read; in zfcp_fsf_req_trace()
2045 lat = &zfcp_sdev->latencies.write; in zfcp_fsf_req_trace()
2048 lat = &zfcp_sdev->latencies.cmd; in zfcp_fsf_req_trace()
2053 spin_lock(&zfcp_sdev->latencies.lock); in zfcp_fsf_req_trace()
2057 spin_unlock(&zfcp_sdev->latencies.lock); in zfcp_fsf_req_trace()
2073 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_fcp_handler_common() local
2079 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_handler_common()
2089 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fssfch2"); in zfcp_fsf_fcp_handler_common()
2101 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
2113 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_fcp_handler_common()
2115 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_fcp_handler_common()
2128 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_fcp_handler_common()
2238 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_cmnd() local
2239 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in zfcp_fsf_fcp_cmnd()
2244 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_fcp_cmnd()
2271 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_cmnd()
2272 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_cmnd()
2351 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_task_mgmt() local
2352 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_fcp_task_mgmt()
2354 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_fcp_task_mgmt()
2374 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_task_mgmt()
2375 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_task_mgmt()