Searched refs:zfcp_sdev (Results 1 – 5 of 5) sorted by relevance
93 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_action_dismiss_lun() local95 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_INUSE) in zfcp_erp_action_dismiss_lun()96 zfcp_erp_action_dismiss(&zfcp_sdev->erp_action); in zfcp_erp_action_dismiss_lun()134 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_required_act() local138 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_required_act()139 l_status = atomic_read(&zfcp_sdev->status); in zfcp_erp_required_act()185 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_setup_act() local189 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_setup_act()194 &zfcp_sdev->status); in zfcp_erp_setup_act()195 erp_action = &zfcp_sdev->erp_action; in zfcp_erp_setup_act()[all …]
56 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_slave_destroy() local59 if (!zfcp_sdev->port) in zfcp_scsi_slave_destroy()63 put_device(&zfcp_sdev->port->dev); in zfcp_scsi_slave_destroy()85 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scpnt->device); in zfcp_scsi_queuecommand() local101 status = atomic_read(&zfcp_sdev->status); in zfcp_scsi_queuecommand()103 !(atomic_read(&zfcp_sdev->port->status) & in zfcp_scsi_queuecommand()136 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_slave_alloc() local141 zfcp_sdev->erp_action.adapter = adapter; in zfcp_scsi_slave_alloc()142 zfcp_sdev->erp_action.sdev = sdev; in zfcp_scsi_slave_alloc()148 zfcp_sdev->erp_action.port = port; in zfcp_scsi_slave_alloc()[all …]
813 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_fsf_abort_fcp_command_handler() local819 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_command_handler()824 zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, in zfcp_fsf_abort_fcp_command_handler()831 zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fsafch2"); in zfcp_fsf_abort_fcp_command_handler()839 zfcp_erp_set_port_status(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()841 zfcp_erp_port_reopen(zfcp_sdev->port, in zfcp_fsf_abort_fcp_command_handler()854 zfcp_fc_test_link(zfcp_sdev->port); in zfcp_fsf_abort_fcp_command_handler()877 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_fsf_abort_fcp_cmnd() local878 struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; in zfcp_fsf_abort_fcp_cmnd()892 if (unlikely(!(atomic_read(&zfcp_sdev->status) & in zfcp_fsf_abort_fcp_cmnd()[all …]
210 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_unit_sdev_status() local214 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_unit_sdev_status()215 status = atomic_read(&zfcp_sdev->status); in zfcp_unit_sdev_status()
380 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); \381 struct zfcp_latencies *lat = &zfcp_sdev->latencies; \382 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; \411 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); \412 struct zfcp_latencies *lat = &zfcp_sdev->latencies; \441 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); \442 struct zfcp_port *port = zfcp_sdev->port; \