• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/s390/scsi/

Lines Matching defs:port

27  * zfcp_sysfs_port_release - gets called when a struct device port is released
42 * Generates attributes for a port.
48 struct zfcp_port *port; \
50 port = dev_get_drvdata(dev); \
56 ZFCP_DEFINE_PORT_ATTR(status, "0x%08x\n", atomic_read(&port->status));
58 (ZFCP_STATUS_COMMON_ERP_INUSE, &port->status));
60 (ZFCP_STATUS_COMMON_ACCESS_DENIED, &port->status));
68 * Store function of the "unit_add" attribute of a port.
75 struct zfcp_port *port;
81 port = dev_get_drvdata(dev);
82 if (atomic_test_mask(ZFCP_STATUS_COMMON_REMOVE, &port->status)) {
91 unit = zfcp_unit_enqueue(port, fcp_lun);
98 zfcp_erp_wait(unit->port->adapter);
116 struct zfcp_port *port;
124 port = dev_get_drvdata(dev);
125 if (atomic_test_mask(ZFCP_STATUS_COMMON_REMOVE, &port->status)) {
137 unit = zfcp_get_unit_by_lun(port, fcp_lun);
141 list_move(&unit->list, &port->unit_remove_lh);
154 zfcp_erp_wait(unit->port->adapter);
165 * zfcp_sysfs_port_failed_store - failed state of port
170 * Store function of the "failed" attribute of a port.
172 * started for the belonging port.
177 struct zfcp_port *port;
184 port = dev_get_drvdata(dev);
185 if (atomic_test_mask(ZFCP_STATUS_COMMON_REMOVE, &port->status)) {
196 zfcp_erp_modify_port_status(port, ZFCP_STATUS_COMMON_RUNNING, ZFCP_SET);
197 zfcp_erp_port_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED);
198 zfcp_erp_wait(port->adapter);
205 * zfcp_sysfs_port_failed_show - failed state of port
209 * Show function of "failed" attribute of port. Will be
210 * "0" if port is working, otherwise "1".
215 struct zfcp_port *port;
217 port = dev_get_drvdata(dev);
218 if (atomic_test_mask(ZFCP_STATUS_COMMON_ERP_FAILED, &port->status))
258 * zfcp_sysfs_port_create_files - create sysfs port files
261 * Create all attributes of the sysfs representation of a port.
281 * zfcp_sysfs_port_remove_files - remove sysfs port files
284 * Remove all attributes of the sysfs representation of a port.