Lines Matching refs:zfcp_sdev

93 	struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev);  in zfcp_erp_action_dismiss_lun()  local
95 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()
131 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_required_act() local
135 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_required_act()
136 l_status = atomic_read(&zfcp_sdev->status); in zfcp_erp_required_act()
182 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_setup_act() local
186 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_setup_act()
191 &zfcp_sdev->status); in zfcp_erp_setup_act()
192 erp_action = &zfcp_sdev->erp_action; in zfcp_erp_setup_act()
196 if (!(atomic_read(&zfcp_sdev->status) & in zfcp_erp_setup_act()
408 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in _zfcp_erp_lun_reopen() local
409 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in _zfcp_erp_lun_reopen()
413 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_FAILED) in _zfcp_erp_lun_reopen()
417 zfcp_sdev->port, sdev, id, act_status); in _zfcp_erp_lun_reopen()
431 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_reopen() local
432 struct zfcp_port *port = zfcp_sdev->port; in zfcp_erp_lun_reopen()
465 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_shutdown_wait() local
466 struct zfcp_port *port = zfcp_sdev->port; in zfcp_erp_lun_shutdown_wait()
498 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_unblock() local
500 if (status_change_set(ZFCP_STATUS_COMMON_UNBLOCKED, &zfcp_sdev->status)) in zfcp_erp_lun_unblock()
502 atomic_set_mask(ZFCP_STATUS_COMMON_UNBLOCKED, &zfcp_sdev->status); in zfcp_erp_lun_unblock()
951 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_strategy_clearstati() local
955 &zfcp_sdev->status); in zfcp_erp_lun_strategy_clearstati()
983 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_strategy() local
988 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
992 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
999 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
1007 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_strategy_check_lun() local
1011 atomic_set(&zfcp_sdev->erp_counter, 0); in zfcp_erp_strategy_check_lun()
1015 atomic_inc(&zfcp_sdev->erp_counter); in zfcp_erp_strategy_check_lun()
1016 if (atomic_read(&zfcp_sdev->erp_counter) > ZFCP_MAX_ERPS) { in zfcp_erp_strategy_check_lun()
1017 dev_err(&zfcp_sdev->port->adapter->ccw_device->dev, in zfcp_erp_strategy_check_lun()
1021 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_erp_strategy_check_lun()
1028 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { in zfcp_erp_strategy_check_lun()
1140 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_strategy_statechange() local
1164 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_strategy_statechange()
1165 if (zfcp_erp_strat_change_det(&zfcp_sdev->status, erp_status)) { in zfcp_erp_strategy_statechange()
1179 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_action_dequeue() local
1192 zfcp_sdev = sdev_to_zfcp(erp_action->sdev); in zfcp_erp_action_dequeue()
1194 &zfcp_sdev->status); in zfcp_erp_action_dequeue()
1540 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_set_lun_status() local
1542 atomic_set_mask(mask, &zfcp_sdev->status); in zfcp_erp_set_lun_status()
1552 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_clear_lun_status() local
1554 atomic_clear_mask(mask, &zfcp_sdev->status); in zfcp_erp_clear_lun_status()
1557 atomic_set(&zfcp_sdev->erp_counter, 0); in zfcp_erp_clear_lun_status()