• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/s390/scsi/

Lines Matching refs:status

86 	act->status |= ZFCP_STATUS_ERP_DISMISSED;
93 if (atomic_read(&unit->status) & ZFCP_STATUS_COMMON_ERP_INUSE)
101 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_ERP_INUSE)
115 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_ERP_INUSE)
134 u_status = atomic_read(&unit->status);
137 p_status = atomic_read(&port->status);
145 p_status = atomic_read(&port->status);
150 p_status = atomic_read(&port->status);
153 a_status = atomic_read(&adapter->status);
161 a_status = atomic_read(&adapter->status);
178 u32 status = 0;
184 atomic_set_mask(ZFCP_STATUS_COMMON_ERP_INUSE, &unit->status);
186 if (!(atomic_read(&unit->status) & ZFCP_STATUS_COMMON_RUNNING))
187 status = ZFCP_STATUS_ERP_CLOSE_ONLY;
195 atomic_set_mask(ZFCP_STATUS_COMMON_ERP_INUSE, &port->status);
197 if (!(atomic_read(&port->status) & ZFCP_STATUS_COMMON_RUNNING))
198 status = ZFCP_STATUS_ERP_CLOSE_ONLY;
204 atomic_set_mask(ZFCP_STATUS_COMMON_ERP_INUSE, &adapter->status);
206 if (!(atomic_read(&adapter->status) &
208 status = ZFCP_STATUS_ERP_CLOSE_ONLY;
220 erp_action->status = status;
239 atomic_set_mask(ZFCP_STATUS_ADAPTER_ERP_PENDING, &adapter->status);
259 /* ensure propagation of failed status to new devices */
260 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_ERP_FAILED) {
284 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_ERP_FAILED)
347 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_ERP_FAILED)
377 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_ERP_FAILED) {
378 /* ensure propagation of failed status to new devices */
390 * @clear_mask: flags in port status to be cleared
421 if (atomic_read(&unit->status) & ZFCP_STATUS_COMMON_ERP_FAILED)
431 * @clear_mask: specifies flags in unit status to be cleared
446 static int status_change_set(unsigned long mask, atomic_t *status)
448 return (atomic_read(status) ^ mask) & mask;
451 static int status_change_clear(unsigned long mask, atomic_t *status)
453 return atomic_read(status) & mask;
458 if (status_change_set(ZFCP_STATUS_COMMON_UNBLOCKED, &adapter->status))
460 atomic_set_mask(ZFCP_STATUS_COMMON_UNBLOCKED, &adapter->status);
465 if (status_change_set(ZFCP_STATUS_COMMON_UNBLOCKED, &port->status))
467 atomic_set_mask(ZFCP_STATUS_COMMON_UNBLOCKED, &port->status);
472 if (status_change_set(ZFCP_STATUS_COMMON_UNBLOCKED, &unit->status))
474 atomic_set_mask(ZFCP_STATUS_COMMON_UNBLOCKED, &unit->status);
494 if (act->status & (ZFCP_STATUS_ERP_DISMISSED |
496 req->status |= ZFCP_STATUS_FSFREQ_DISMISSED;
500 if (act->status & ZFCP_STATUS_ERP_TIMEDOUT)
502 if (req->status & ZFCP_STATUS_FSFREQ_DISMISSED)
512 * @set_mask: ERP action status flags to set.
521 erp_action->status |= set_mask;
614 &adapter->status);
627 atomic_set_mask(ZFCP_STATUS_ADAPTER_QDIOUP, &act->adapter->status);
647 atomic_clear_mask(ZFCP_STATUS_ADAPTER_XCONFIG_OK, &adapter->status);
651 &adapter->status);
657 &adapter->status);
665 if (erp_action->status & ZFCP_STATUS_ERP_TIMEDOUT)
668 if (!(atomic_read(&adapter->status) &
677 &adapter->status);
679 if (!(atomic_read(&adapter->status) & ZFCP_STATUS_ADAPTER_XCONFIG_OK))
707 if (act->status & ZFCP_STATUS_ERP_TIMEDOUT)
750 ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED, &adapter->status);
760 &adapter->status);
769 atomic_set_mask(ZFCP_STATUS_COMMON_OPEN, &adapter->status);
778 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_OPEN) {
780 if (act->status & ZFCP_STATUS_ERP_CLOSE_ONLY)
808 atomic_clear_mask(ZFCP_STATUS_COMMON_ACCESS_DENIED, &port->status);
814 int status = atomic_read(&port->status);
819 if ((status & ZFCP_STATUS_PORT_PHYS_OPEN) &&
820 (status & ZFCP_STATUS_COMMON_OPEN))
826 if (!(status & ZFCP_STATUS_PORT_PHYS_OPEN))
875 int p_status = atomic_read(&port->status);
910 int p_status = atomic_read(&port->status);
930 if (erp_action->status & ZFCP_STATUS_ERP_CLOSE_ONLY)
941 &unit->status);
973 if (atomic_read(&unit->status) & ZFCP_STATUS_COMMON_OPEN)
977 if (atomic_read(&unit->status) & ZFCP_STATUS_COMMON_OPEN)
979 if (erp_action->status & ZFCP_STATUS_ERP_CLOSE_ONLY)
984 if (atomic_read(&unit->status) & ZFCP_STATUS_COMMON_OPEN)
1010 if (atomic_read(&unit->status) & ZFCP_STATUS_COMMON_ERP_FAILED) {
1026 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_NOESC) {
1040 if (atomic_read(&port->status) & ZFCP_STATUS_COMMON_ERP_FAILED) {
1067 if (atomic_read(&adapter->status) & ZFCP_STATUS_COMMON_ERP_FAILED) {
1101 int status = atomic_read(target_status);
1103 if ((status & ZFCP_STATUS_COMMON_RUNNING) &&
1107 if (!(status & ZFCP_STATUS_COMMON_RUNNING) &&
1120 u32 erp_status = act->status;
1124 if (zfcp_erp_strat_change_det(&adapter->status, erp_status)) {
1134 if (zfcp_erp_strat_change_det(&port->status, erp_status)) {
1143 if (zfcp_erp_strat_change_det(&unit->status, erp_status)) {
1159 if (erp_action->status & ZFCP_STATUS_ERP_LOWMEM) {
1161 erp_action->status &= ~ZFCP_STATUS_ERP_LOWMEM;
1170 &erp_action->unit->status);
1176 &erp_action->port->status);
1181 &erp_action->adapter->status);
1242 if (erp_action->status & ZFCP_STATUS_ERP_DISMISSED) {
1248 if (erp_action->status & ZFCP_STATUS_ERP_TIMEDOUT) {
1260 if (erp_action->status & ZFCP_STATUS_ERP_DISMISSED)
1265 if (!(erp_action->status & ZFCP_STATUS_ERP_LOWMEM)) {
1267 erp_action->status |= ZFCP_STATUS_ERP_LOWMEM;
1278 if (erp_action->status & ZFCP_STATUS_ERP_LOWMEM) {
1280 erp_action->status &= ~ZFCP_STATUS_ERP_LOWMEM;
1379 * zfcp_erp_adapter_failed - Set adapter status to failed.
1391 * zfcp_erp_port_failed - Set port status to failed.
1403 * zfcp_erp_unit_failed - Set unit status to failed.
1421 !(atomic_read(&adapter->status) &
1426 * zfcp_erp_modify_adapter_status - change adapter status bits
1427 * @adapter: adapter to change the status
1430 * @mask: status bits to change
1433 * Changes in common status bits are propagated to attached ports and units.
1443 if (status_change_set(mask, &adapter->status))
1445 atomic_set_mask(mask, &adapter->status);
1447 if (status_change_clear(mask, &adapter->status))
1449 atomic_clear_mask(mask, &adapter->status);
1464 * zfcp_erp_modify_port_status - change port status bits
1465 * @port: port to change the status bits
1468 * @mask: status bits to change
1471 * Changes in common status bits are propagated to attached units.
1481 if (status_change_set(mask, &port->status))
1483 atomic_set_mask(mask, &port->status);
1485 if (status_change_clear(mask, &port->status))
1487 atomic_clear_mask(mask, &port->status);
1502 * zfcp_erp_modify_unit_status - change unit status bits
1503 * @unit: unit to change the status bits
1506 * @mask: status bits to change
1513 if (status_change_set(mask, &unit->status))
1515 atomic_set_mask(mask, &unit->status);
1517 if (status_change_clear(mask, &unit->status))
1519 atomic_clear_mask(mask, &unit->status);
1586 int status = atomic_read(&unit->status);
1587 if (!(status & (ZFCP_STATUS_COMMON_ACCESS_DENIED |
1599 int status = atomic_read(&port->status);
1601 if (!(status & (ZFCP_STATUS_COMMON_ACCESS_DENIED |