Lines Matching refs:zfcp_sdev
982 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_abort_fcp_command_handler() local
988 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_command_handler()
993 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, in zfcp_fsf_abort_fcp_command_handler()
1000 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fsafch2"); in zfcp_fsf_abort_fcp_command_handler()
1008 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()
1010 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()
1023 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_abort_fcp_command_handler()
1046 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_cmnd() local
1047 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_abort_fcp_cmnd()
1061 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_abort_fcp_cmnd()
1069 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_abort_fcp_cmnd()
1070 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_abort_fcp_cmnd()
2118 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_open_lun_handler() local
2125 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_open_lun_handler()
2129 &zfcp_sdev->status); in zfcp_fsf_open_lun_handler()
2139 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_open_lun_handler()
2141 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_open_lun_handler()
2147 dev_warn(&zfcp_sdev->port->adapter->ccw_device->dev, in zfcp_fsf_open_lun_handler()
2151 (unsigned long long)zfcp_sdev->port->wwpn, in zfcp_fsf_open_lun_handler()
2164 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_open_lun_handler()
2173 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_open_lun_handler()
2182 zfcp_sdev->lun_handle = header->lun_handle; in zfcp_fsf_open_lun_handler()
2183 atomic_or(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); in zfcp_fsf_open_lun_handler()
2241 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_close_lun_handler() local
2246 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_close_lun_handler()
2250 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, "fscuh_1"); in zfcp_fsf_close_lun_handler()
2254 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fscuh_2"); in zfcp_fsf_close_lun_handler()
2258 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_close_lun_handler()
2260 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_close_lun_handler()
2267 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_close_lun_handler()
2275 atomic_andnot(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); in zfcp_fsf_close_lun_handler()
2288 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(erp_action->sdev); in zfcp_fsf_close_lun() local
2309 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_close_lun()
2338 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_req_trace() local
2353 zfcp_sdev = sdev_to_zfcp(scsi->device); in zfcp_fsf_req_trace()
2362 lat = &zfcp_sdev->latencies.read; in zfcp_fsf_req_trace()
2367 lat = &zfcp_sdev->latencies.write; in zfcp_fsf_req_trace()
2370 lat = &zfcp_sdev->latencies.cmd; in zfcp_fsf_req_trace()
2375 spin_lock(&zfcp_sdev->latencies.lock); in zfcp_fsf_req_trace()
2379 spin_unlock(&zfcp_sdev->latencies.lock); in zfcp_fsf_req_trace()
2394 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_fcp_handler_common() local
2400 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_handler_common()
2410 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fssfch2"); in zfcp_fsf_fcp_handler_common()
2422 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
2434 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_fcp_handler_common()
2436 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_fcp_handler_common()
2449 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_fcp_handler_common()
2455 zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
2456 zfcp_erp_port_forced_reopen(zfcp_sdev->port, 0, "fssfch7"); in zfcp_fsf_fcp_handler_common()
2566 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_cmnd() local
2567 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in zfcp_fsf_fcp_cmnd()
2572 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_fcp_cmnd()
2600 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_cmnd()
2601 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_cmnd()
2681 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_fcp_task_mgmt() local
2682 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_fcp_task_mgmt()
2684 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_fcp_task_mgmt()
2704 req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; in zfcp_fsf_fcp_task_mgmt()
2705 req->qtcb->header.port_handle = zfcp_sdev->port->handle; in zfcp_fsf_fcp_task_mgmt()