Lines Matching refs:zfcp_sdev
86 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_action_dismiss_lun() local
88 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_INUSE) in zfcp_erp_action_dismiss_lun()
89 zfcp_erp_action_dismiss(&zfcp_sdev->erp_action); in zfcp_erp_action_dismiss_lun()
168 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_required_act() local
172 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_required_act()
173 l_status = atomic_read(&zfcp_sdev->status); in zfcp_erp_required_act()
220 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_setup_act() local
230 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_setup_act()
235 &zfcp_sdev->status); in zfcp_erp_setup_act()
236 erp_action = &zfcp_sdev->erp_action; in zfcp_erp_setup_act()
239 if (!(atomic_read(&zfcp_sdev->status) & in zfcp_erp_setup_act()
462 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in _zfcp_erp_lun_reopen() local
463 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in _zfcp_erp_lun_reopen()
468 zfcp_sdev->port, sdev, dbftag, act_status); in _zfcp_erp_lun_reopen()
482 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_reopen() local
483 struct zfcp_port *port = zfcp_sdev->port; in zfcp_erp_lun_reopen()
516 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_shutdown_wait() local
517 struct zfcp_port *port = zfcp_sdev->port; in zfcp_erp_lun_shutdown_wait()
551 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_unblock() local
554 &zfcp_sdev->status)) in zfcp_erp_lun_unblock()
556 atomic_or(ZFCP_STATUS_COMMON_UNBLOCKED, &zfcp_sdev->status); in zfcp_erp_lun_unblock()
1120 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_strategy_clearstati() local
1123 &zfcp_sdev->status); in zfcp_erp_lun_strategy_clearstati()
1154 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_strategy() local
1159 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
1164 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
1171 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
1186 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_strategy_check_lun() local
1190 atomic_set(&zfcp_sdev->erp_counter, 0); in zfcp_erp_strategy_check_lun()
1194 atomic_inc(&zfcp_sdev->erp_counter); in zfcp_erp_strategy_check_lun()
1195 if (atomic_read(&zfcp_sdev->erp_counter) > ZFCP_MAX_ERPS) { in zfcp_erp_strategy_check_lun()
1196 dev_err(&zfcp_sdev->port->adapter->ccw_device->dev, in zfcp_erp_strategy_check_lun()
1200 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_erp_strategy_check_lun()
1213 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { in zfcp_erp_strategy_check_lun()
1339 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_strategy_statechange() local
1363 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_strategy_statechange()
1364 if (zfcp_erp_strat_change_det(&zfcp_sdev->status, erp_status)) { in zfcp_erp_strategy_statechange()
1378 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_action_dequeue() local
1391 zfcp_sdev = sdev_to_zfcp(erp_action->sdev); in zfcp_erp_action_dequeue()
1393 &zfcp_sdev->status); in zfcp_erp_action_dequeue()
1836 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_set_lun_status() local
1838 atomic_or(mask, &zfcp_sdev->status); in zfcp_erp_set_lun_status()
1848 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_clear_lun_status() local
1850 atomic_andnot(mask, &zfcp_sdev->status); in zfcp_erp_clear_lun_status()
1853 atomic_set(&zfcp_sdev->erp_counter, 0); in zfcp_erp_clear_lun_status()