Lines Matching refs:zfcp_sdev
105 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_action_dismiss_lun() local
107 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_INUSE) in zfcp_erp_action_dismiss_lun()
108 zfcp_erp_action_dismiss(&zfcp_sdev->erp_action); in zfcp_erp_action_dismiss_lun()
186 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_required_act() local
190 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_required_act()
191 l_status = atomic_read(&zfcp_sdev->status); in zfcp_erp_required_act()
237 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_setup_act() local
247 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_setup_act()
252 &zfcp_sdev->status); in zfcp_erp_setup_act()
253 erp_action = &zfcp_sdev->erp_action; in zfcp_erp_setup_act()
256 if (!(atomic_read(&zfcp_sdev->status) & in zfcp_erp_setup_act()
477 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in _zfcp_erp_lun_reopen() local
478 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in _zfcp_erp_lun_reopen()
483 zfcp_sdev->port, sdev, id, act_status); in _zfcp_erp_lun_reopen()
497 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_reopen() local
498 struct zfcp_port *port = zfcp_sdev->port; in zfcp_erp_lun_reopen()
531 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_shutdown_wait() local
532 struct zfcp_port *port = zfcp_sdev->port; in zfcp_erp_lun_shutdown_wait()
566 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_unblock() local
569 &zfcp_sdev->status)) in zfcp_erp_lun_unblock()
571 atomic_or(ZFCP_STATUS_COMMON_UNBLOCKED, &zfcp_sdev->status); in zfcp_erp_lun_unblock()
1040 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_strategy_clearstati() local
1043 &zfcp_sdev->status); in zfcp_erp_lun_strategy_clearstati()
1071 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_lun_strategy() local
1076 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
1080 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
1087 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) in zfcp_erp_lun_strategy()
1095 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_strategy_check_lun() local
1099 atomic_set(&zfcp_sdev->erp_counter, 0); in zfcp_erp_strategy_check_lun()
1103 atomic_inc(&zfcp_sdev->erp_counter); in zfcp_erp_strategy_check_lun()
1104 if (atomic_read(&zfcp_sdev->erp_counter) > ZFCP_MAX_ERPS) { in zfcp_erp_strategy_check_lun()
1105 dev_err(&zfcp_sdev->port->adapter->ccw_device->dev, in zfcp_erp_strategy_check_lun()
1109 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_erp_strategy_check_lun()
1116 if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { in zfcp_erp_strategy_check_lun()
1228 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_strategy_statechange() local
1252 zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_strategy_statechange()
1253 if (zfcp_erp_strat_change_det(&zfcp_sdev->status, erp_status)) { in zfcp_erp_strategy_statechange()
1267 struct zfcp_scsi_dev *zfcp_sdev; in zfcp_erp_action_dequeue() local
1280 zfcp_sdev = sdev_to_zfcp(erp_action->sdev); in zfcp_erp_action_dequeue()
1282 &zfcp_sdev->status); in zfcp_erp_action_dequeue()
1704 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_set_lun_status() local
1706 atomic_or(mask, &zfcp_sdev->status); in zfcp_erp_set_lun_status()
1716 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_erp_clear_lun_status() local
1718 atomic_andnot(mask, &zfcp_sdev->status); in zfcp_erp_clear_lun_status()
1721 atomic_set(&zfcp_sdev->erp_counter, 0); in zfcp_erp_clear_lun_status()