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

Lines Matching defs:fcport

353 qla2x00_get_new_sp(scsi_qla_host_t *ha, fc_port_t *fcport,
363 sp->fcport = fcport;
376 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
387 /* Close window on fcport/rport state-transitioning. */
393 if (atomic_read(&fcport->state) != FCS_ONLINE) {
394 if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
404 sp = qla2x00_get_new_sp(ha, fcport, cmd, done);
437 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
448 /* Close window on fcport/rport state-transitioning. */
454 if (atomic_read(&fcport->state) != FCS_ONLINE) {
455 if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
465 sp = qla2x00_get_new_sp(ha, fcport, cmd, done);
784 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
797 if (!fcport)
807 if (qla2x00_device_reset(ha, fcport) == 0)
812 if (fcport->flags & FC_FABRIC_DEVICE) {
813 ha->isp_ops.fabric_logout(ha, fcport->loop_id);
814 qla2x00_mark_device_lost(ha, fcport, 0, 0);
915 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
928 if (!fcport)
976 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
989 if (!fcport)
1035 struct fc_port *fcport;
1060 list_for_each_entry(fcport, &ha->fcports, list) {
1061 if (fcport->port_type != FCT_TARGET)
1064 ret = qla2x00_device_reset(ha, fcport);
1068 ha->host_no, ret, fcport->d_id.b24));
1746 qla2x00_schedule_rport_del(struct scsi_qla_host *ha, fc_port_t *fcport,
1752 if (!fcport->rport)
1755 rport = fcport->rport;
1757 spin_lock_irqsave(&fcport->rport_lock, flags);
1758 fcport->drport = rport;
1759 fcport->rport = NULL;
1761 spin_unlock_irqrestore(&fcport->rport_lock, flags);
1764 spin_lock_irqsave(&fcport->rport_lock, flags);
1765 fcport->rport = NULL;
1767 spin_unlock_irqrestore(&fcport->rport_lock, flags);
1773 * qla2x00_mark_device_lost Updates fcport state when device goes offline.
1775 * Input: ha = adapter block pointer. fcport = port structure pointer.
1781 void qla2x00_mark_device_lost(scsi_qla_host_t *ha, fc_port_t *fcport,
1784 if (atomic_read(&fcport->state) == FCS_ONLINE)
1785 qla2x00_schedule_rport_del(ha, fcport, defer);
1791 if (atomic_read(&fcport->state) != FCS_DEVICE_DEAD)
1792 atomic_set(&fcport->state, FCS_DEVICE_LOST);
1797 if (fcport->login_retry == 0) {
1798 fcport->login_retry = ha->login_retry_count;
1805 fcport->port_name[0],
1806 fcport->port_name[1],
1807 fcport->port_name[2],
1808 fcport->port_name[3],
1809 fcport->port_name[4],
1810 fcport->port_name[5],
1811 fcport->port_name[6],
1812 fcport->port_name[7],
1813 fcport->loop_id,
1814 fcport->login_retry));
1820 * Updates fcport state when device goes offline.
1824 * fcport = port structure pointer.
1834 fc_port_t *fcport;
1836 list_for_each_entry(fcport, &ha->fcports, list) {
1837 if (fcport->port_type != FCT_TARGET)
1844 if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD)
1846 if (atomic_read(&fcport->state) == FCS_ONLINE)
1847 qla2x00_schedule_rport_del(ha, fcport, defer);
1848 atomic_set(&fcport->state, FCS_DEVICE_LOST);
2051 fc_port_t *fcport;
2125 fcport = list_entry(fcpl, fc_port_t, list);
2128 list_del_init(&fcport->list);
2129 kfree(fcport);
2195 fc_port_t *fcport;
2272 list_for_each_entry(fcport, &ha->fcports, list) {
2277 if (atomic_read(&fcport->state) != FCS_ONLINE &&
2278 fcport->login_retry) {
2280 fcport->login_retry--;
2281 if (fcport->flags & FCF_FABRIC_DEVICE) {
2282 if (fcport->flags &
2285 ha, fcport->loop_id,
2286 fcport->d_id.b.domain,
2287 fcport->d_id.b.area,
2288 fcport->d_id.b.al_pa);
2290 ha, fcport, &next_loopid);
2294 ha, fcport);
2297 fcport->old_loop_id = fcport->loop_id;
2300 ha->host_no, fcport->loop_id));
2303 fcport);
2309 fcport->login_retry, fcport->loop_id));
2311 fcport->login_retry = 0;
2457 fc_port_t *fcport;
2471 list_for_each_entry(fcport, &ha->fcports, list) {
2472 if (fcport->port_type != FCT_TARGET)
2475 if (atomic_read(&fcport->state) == FCS_DEVICE_LOST) {
2477 if (atomic_read(&fcport->port_down_timer) == 0)
2480 if (atomic_dec_and_test(&fcport->port_down_timer) != 0)
2481 atomic_set(&fcport->state, FCS_DEVICE_DEAD);
2483 DEBUG(printk("scsi(%ld): fcport-%d - port retry count: "
2486 t, atomic_read(&fcport->port_down_timer)));
2489 } /* End of for fcport */
2515 sfcp = sp->fcport;