zfcp_sdev 85 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 87 drivers/s390/scsi/zfcp_erp.c if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_INUSE) zfcp_sdev 88 drivers/s390/scsi/zfcp_erp.c zfcp_erp_action_dismiss(&zfcp_sdev->erp_action); zfcp_sdev 167 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 171 drivers/s390/scsi/zfcp_erp.c zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 172 drivers/s390/scsi/zfcp_erp.c l_status = atomic_read(&zfcp_sdev->status); zfcp_sdev 219 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 229 drivers/s390/scsi/zfcp_erp.c zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 234 drivers/s390/scsi/zfcp_erp.c &zfcp_sdev->status); zfcp_sdev 235 drivers/s390/scsi/zfcp_erp.c erp_action = &zfcp_sdev->erp_action; zfcp_sdev 238 drivers/s390/scsi/zfcp_erp.c if (!(atomic_read(&zfcp_sdev->status) & zfcp_sdev 461 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 462 drivers/s390/scsi/zfcp_erp.c struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; zfcp_sdev 467 drivers/s390/scsi/zfcp_erp.c zfcp_sdev->port, sdev, dbftag, act_status); zfcp_sdev 481 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 482 drivers/s390/scsi/zfcp_erp.c struct zfcp_port *port = zfcp_sdev->port; zfcp_sdev 515 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 516 drivers/s390/scsi/zfcp_erp.c struct zfcp_port *port = zfcp_sdev->port; zfcp_sdev 550 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 553 drivers/s390/scsi/zfcp_erp.c &zfcp_sdev->status)) zfcp_sdev 555 drivers/s390/scsi/zfcp_erp.c atomic_or(ZFCP_STATUS_COMMON_UNBLOCKED, &zfcp_sdev->status); zfcp_sdev 1047 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 1050 drivers/s390/scsi/zfcp_erp.c &zfcp_sdev->status); zfcp_sdev 1081 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 1086 drivers/s390/scsi/zfcp_erp.c if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) zfcp_sdev 1091 drivers/s390/scsi/zfcp_erp.c if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) zfcp_sdev 1098 drivers/s390/scsi/zfcp_erp.c if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_OPEN) zfcp_sdev 1113 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 1117 drivers/s390/scsi/zfcp_erp.c atomic_set(&zfcp_sdev->erp_counter, 0); zfcp_sdev 1121 drivers/s390/scsi/zfcp_erp.c atomic_inc(&zfcp_sdev->erp_counter); zfcp_sdev 1122 drivers/s390/scsi/zfcp_erp.c if (atomic_read(&zfcp_sdev->erp_counter) > ZFCP_MAX_ERPS) { zfcp_sdev 1123 drivers/s390/scsi/zfcp_erp.c dev_err(&zfcp_sdev->port->adapter->ccw_device->dev, zfcp_sdev 1127 drivers/s390/scsi/zfcp_erp.c (unsigned long long)zfcp_sdev->port->wwpn); zfcp_sdev 1140 drivers/s390/scsi/zfcp_erp.c if (atomic_read(&zfcp_sdev->status) & ZFCP_STATUS_COMMON_ERP_FAILED) { zfcp_sdev 1266 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 1290 drivers/s390/scsi/zfcp_erp.c zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 1291 drivers/s390/scsi/zfcp_erp.c if (zfcp_erp_strat_change_det(&zfcp_sdev->status, erp_status)) { zfcp_sdev 1305 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 1318 drivers/s390/scsi/zfcp_erp.c zfcp_sdev = sdev_to_zfcp(erp_action->sdev); zfcp_sdev 1320 drivers/s390/scsi/zfcp_erp.c &zfcp_sdev->status); zfcp_sdev 1751 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 1753 drivers/s390/scsi/zfcp_erp.c atomic_or(mask, &zfcp_sdev->status); zfcp_sdev 1763 drivers/s390/scsi/zfcp_erp.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 1765 drivers/s390/scsi/zfcp_erp.c atomic_andnot(mask, &zfcp_sdev->status); zfcp_sdev 1768 drivers/s390/scsi/zfcp_erp.c atomic_set(&zfcp_sdev->erp_counter, 0); zfcp_sdev 850 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 856 drivers/s390/scsi/zfcp_fsf.c zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 861 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, zfcp_sdev 868 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fsafch2"); zfcp_sdev 876 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_set_port_status(zfcp_sdev->port, zfcp_sdev 878 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_port_reopen(zfcp_sdev->port, zfcp_sdev 891 drivers/s390/scsi/zfcp_fsf.c zfcp_fc_test_link(zfcp_sdev->port); zfcp_sdev 914 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 915 drivers/s390/scsi/zfcp_fsf.c struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; zfcp_sdev 929 drivers/s390/scsi/zfcp_fsf.c if (unlikely(!(atomic_read(&zfcp_sdev->status) & zfcp_sdev 937 drivers/s390/scsi/zfcp_fsf.c req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; zfcp_sdev 938 drivers/s390/scsi/zfcp_fsf.c req->qtcb->header.port_handle = zfcp_sdev->port->handle; zfcp_sdev 1834 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 1841 drivers/s390/scsi/zfcp_fsf.c zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 1845 drivers/s390/scsi/zfcp_fsf.c &zfcp_sdev->status); zfcp_sdev 1855 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_set_port_status(zfcp_sdev->port, zfcp_sdev 1857 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_port_reopen(zfcp_sdev->port, zfcp_sdev 1863 drivers/s390/scsi/zfcp_fsf.c dev_warn(&zfcp_sdev->port->adapter->ccw_device->dev, zfcp_sdev 1867 drivers/s390/scsi/zfcp_fsf.c (unsigned long long)zfcp_sdev->port->wwpn, zfcp_sdev 1880 drivers/s390/scsi/zfcp_fsf.c (unsigned long long)zfcp_sdev->port->wwpn); zfcp_sdev 1889 drivers/s390/scsi/zfcp_fsf.c zfcp_fc_test_link(zfcp_sdev->port); zfcp_sdev 1898 drivers/s390/scsi/zfcp_fsf.c zfcp_sdev->lun_handle = header->lun_handle; zfcp_sdev 1899 drivers/s390/scsi/zfcp_fsf.c atomic_or(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); zfcp_sdev 1957 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 1962 drivers/s390/scsi/zfcp_fsf.c zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 1966 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_adapter_reopen(zfcp_sdev->port->adapter, 0, "fscuh_1"); zfcp_sdev 1970 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fscuh_2"); zfcp_sdev 1974 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_set_port_status(zfcp_sdev->port, zfcp_sdev 1976 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_port_reopen(zfcp_sdev->port, zfcp_sdev 1983 drivers/s390/scsi/zfcp_fsf.c zfcp_fc_test_link(zfcp_sdev->port); zfcp_sdev 1991 drivers/s390/scsi/zfcp_fsf.c atomic_andnot(ZFCP_STATUS_COMMON_OPEN, &zfcp_sdev->status); zfcp_sdev 2004 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(erp_action->sdev); zfcp_sdev 2025 drivers/s390/scsi/zfcp_fsf.c req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; zfcp_sdev 2054 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 2069 drivers/s390/scsi/zfcp_fsf.c zfcp_sdev = sdev_to_zfcp(scsi->device); zfcp_sdev 2078 drivers/s390/scsi/zfcp_fsf.c lat = &zfcp_sdev->latencies.read; zfcp_sdev 2083 drivers/s390/scsi/zfcp_fsf.c lat = &zfcp_sdev->latencies.write; zfcp_sdev 2086 drivers/s390/scsi/zfcp_fsf.c lat = &zfcp_sdev->latencies.cmd; zfcp_sdev 2091 drivers/s390/scsi/zfcp_fsf.c spin_lock(&zfcp_sdev->latencies.lock); zfcp_sdev 2095 drivers/s390/scsi/zfcp_fsf.c spin_unlock(&zfcp_sdev->latencies.lock); zfcp_sdev 2111 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 2117 drivers/s390/scsi/zfcp_fsf.c zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 2127 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_port_reopen(zfcp_sdev->port, 0, "fssfch2"); zfcp_sdev 2139 drivers/s390/scsi/zfcp_fsf.c (unsigned long long)zfcp_sdev->port->wwpn); zfcp_sdev 2151 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_set_port_status(zfcp_sdev->port, zfcp_sdev 2153 drivers/s390/scsi/zfcp_fsf.c zfcp_erp_port_reopen(zfcp_sdev->port, zfcp_sdev 2166 drivers/s390/scsi/zfcp_fsf.c zfcp_fc_test_link(zfcp_sdev->port); zfcp_sdev 2276 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 2277 drivers/s390/scsi/zfcp_fsf.c struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; zfcp_sdev 2282 drivers/s390/scsi/zfcp_fsf.c if (unlikely(!(atomic_read(&zfcp_sdev->status) & zfcp_sdev 2309 drivers/s390/scsi/zfcp_fsf.c req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; zfcp_sdev 2310 drivers/s390/scsi/zfcp_fsf.c req->qtcb->header.port_handle = zfcp_sdev->port->handle; zfcp_sdev 2390 drivers/s390/scsi/zfcp_fsf.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 2391 drivers/s390/scsi/zfcp_fsf.c struct zfcp_qdio *qdio = zfcp_sdev->port->adapter->qdio; zfcp_sdev 2393 drivers/s390/scsi/zfcp_fsf.c if (unlikely(!(atomic_read(&zfcp_sdev->status) & zfcp_sdev 2413 drivers/s390/scsi/zfcp_fsf.c req->qtcb->header.lun_handle = zfcp_sdev->lun_handle; zfcp_sdev 2414 drivers/s390/scsi/zfcp_fsf.c req->qtcb->header.port_handle = zfcp_sdev->port->handle; zfcp_sdev 42 drivers/s390/scsi/zfcp_scsi.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 45 drivers/s390/scsi/zfcp_scsi.c if (!zfcp_sdev->port) zfcp_sdev 49 drivers/s390/scsi/zfcp_scsi.c put_device(&zfcp_sdev->port->dev); zfcp_sdev 69 drivers/s390/scsi/zfcp_scsi.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scpnt->device); zfcp_sdev 85 drivers/s390/scsi/zfcp_scsi.c status = atomic_read(&zfcp_sdev->status); zfcp_sdev 87 drivers/s390/scsi/zfcp_scsi.c !(atomic_read(&zfcp_sdev->port->status) & zfcp_sdev 118 drivers/s390/scsi/zfcp_scsi.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 123 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->erp_action.adapter = adapter; zfcp_sdev 124 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->erp_action.sdev = sdev; zfcp_sdev 130 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->erp_action.port = port; zfcp_sdev 150 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->port = port; zfcp_sdev 151 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->latencies.write.channel.min = 0xFFFFFFFF; zfcp_sdev 152 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->latencies.write.fabric.min = 0xFFFFFFFF; zfcp_sdev 153 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->latencies.read.channel.min = 0xFFFFFFFF; zfcp_sdev 154 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->latencies.read.fabric.min = 0xFFFFFFFF; zfcp_sdev 155 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->latencies.cmd.channel.min = 0xFFFFFFFF; zfcp_sdev 156 drivers/s390/scsi/zfcp_scsi.c zfcp_sdev->latencies.cmd.fabric.min = 0xFFFFFFFF; zfcp_sdev 157 drivers/s390/scsi/zfcp_scsi.c spin_lock_init(&zfcp_sdev->latencies.lock); zfcp_sdev 291 drivers/s390/scsi/zfcp_scsi.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 292 drivers/s390/scsi/zfcp_scsi.c struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; zfcp_sdev 329 drivers/s390/scsi/zfcp_scsi.c zfcp_scsi_forget_cmnds(zfcp_sdev, tm_flags); zfcp_sdev 376 drivers/s390/scsi/zfcp_scsi.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scpnt->device); zfcp_sdev 377 drivers/s390/scsi/zfcp_scsi.c struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; zfcp_sdev 423 drivers/s390/scsi/zfcp_sysfs.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); \ zfcp_sdev 424 drivers/s390/scsi/zfcp_sysfs.c struct zfcp_latencies *lat = &zfcp_sdev->latencies; \ zfcp_sdev 425 drivers/s390/scsi/zfcp_sysfs.c struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; \ zfcp_sdev 454 drivers/s390/scsi/zfcp_sysfs.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); \ zfcp_sdev 455 drivers/s390/scsi/zfcp_sysfs.c struct zfcp_latencies *lat = &zfcp_sdev->latencies; \ zfcp_sdev 484 drivers/s390/scsi/zfcp_sysfs.c struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); \ zfcp_sdev 491 drivers/s390/scsi/zfcp_sysfs.c dev_name(&zfcp_sdev->port->adapter->ccw_device->dev)); zfcp_sdev 493 drivers/s390/scsi/zfcp_sysfs.c (unsigned long long) zfcp_sdev->port->wwpn); zfcp_sdev 506 drivers/s390/scsi/zfcp_sysfs.c (atomic_read(&zfcp_sdev->status) & zfcp_sdev 542 drivers/s390/scsi/zfcp_sysfs.c (atomic_read(&zfcp_sdev->status) & zfcp_sdev 546 drivers/s390/scsi/zfcp_sysfs.c atomic_read(&zfcp_sdev->status)); zfcp_sdev 218 drivers/s390/scsi/zfcp_unit.c struct zfcp_scsi_dev *zfcp_sdev; zfcp_sdev 222 drivers/s390/scsi/zfcp_unit.c zfcp_sdev = sdev_to_zfcp(sdev); zfcp_sdev 223 drivers/s390/scsi/zfcp_unit.c status = atomic_read(&zfcp_sdev->status);