Lines Matching refs:zfcp_sdev

979 	struct zfcp_scsi_dev *zfcp_sdev;  in zfcp_fsf_abort_fcp_command_handler()  local
985 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_command_handler()
990 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, in zfcp_fsf_abort_fcp_command_handler()
997 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fsafch2"); in zfcp_fsf_abort_fcp_command_handler()
1005 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()
1007 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()
1020 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_abort_fcp_command_handler()
1043 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_cmnd() local
1044 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_abort_fcp_cmnd()
1058 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_abort_fcp_cmnd()
1066 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_abort_fcp_cmnd()
1067 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_abort_fcp_cmnd()
2115 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_open_lun_handler() local
2122 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_open_lun_handler()
2126 &zfcp_sdev->status); in zfcp_fsf_open_lun_handler()
2136 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_open_lun_handler()
2138 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_open_lun_handler()
2144 dev_warn(&zfcp_sdev->port->adapter->ccw_device->dev, in zfcp_fsf_open_lun_handler()
2148 (unsigned long long)zfcp_sdev->port->wwpn, in zfcp_fsf_open_lun_handler()
2161 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_open_lun_handler()
2170 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_open_lun_handler()
2179 zfcp_sdev->lun_handle = header->lun_handle; in zfcp_fsf_open_lun_handler()
2180 atomic_or(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); in zfcp_fsf_open_lun_handler()
2238 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_close_lun_handler() local
2243 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_close_lun_handler()
2247 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, "fscuh_1"); in zfcp_fsf_close_lun_handler()
2251 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fscuh_2"); in zfcp_fsf_close_lun_handler()
2255 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_close_lun_handler()
2257 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_close_lun_handler()
2264 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_close_lun_handler()
2272 atomic_andnot(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); in zfcp_fsf_close_lun_handler()
2285 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(erp_action->sdev); in zfcp_fsf_close_lun() local
2306 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_close_lun()
2335 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_req_trace() local
2350 zfcp_sdev = sdev_to_zfcp(scsi->device); in zfcp_fsf_req_trace()
2359 lat = &zfcp_sdev->latencies.read; in zfcp_fsf_req_trace()
2364 lat = &zfcp_sdev->latencies.write; in zfcp_fsf_req_trace()
2367 lat = &zfcp_sdev->latencies.cmd; in zfcp_fsf_req_trace()
2372 spin_lock(&zfcp_sdev->latencies.lock); in zfcp_fsf_req_trace()
2376 spin_unlock(&zfcp_sdev->latencies.lock); in zfcp_fsf_req_trace()
2391 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_fcp_handler_common() local
2397 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_handler_common()
2407 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fssfch2"); in zfcp_fsf_fcp_handler_common()
2419 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
2431 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_fcp_handler_common()
2433 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_fcp_handler_common()
2446 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_fcp_handler_common()
2452 zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
2453 zfcp_erp_port_forced_reopen(zfcp_sdev->port, 0, "fssfch7"); in zfcp_fsf_fcp_handler_common()
2563 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_cmnd() local
2564 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in zfcp_fsf_fcp_cmnd()
2569 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_fcp_cmnd()
2596 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_cmnd()
2597 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_cmnd()
2677 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_task_mgmt() local
2678 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_fcp_task_mgmt()
2680 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_fcp_task_mgmt()
2700 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_task_mgmt()
2701 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_task_mgmt()