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

Lines Matching defs:fcport

515 qla2x00_get_new_sp(scsi_qla_host_t *vha, fc_port_t *fcport,
526 sp->fcport = fcport;
540 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
561 /* Close window on fcport/rport state-transitioning. */
562 if (fcport->drport)
573 if (atomic_read(&fcport->state) != FCS_ONLINE) {
574 if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
584 sp = qla2x00_get_new_sp(base_vha, fcport, cmd, done);
932 if (vha->vp_idx != sp->fcport->vha->vp_idx)
971 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
976 if (!fcport)
989 if (do_reset(fcport, cmd->device->lun, cmd->request->cpu + 1)
1048 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
1059 if (!fcport)
1108 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
1121 if (!fcport)
1184 struct fc_port *fcport;
1188 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1189 if (fcport->port_type != FCT_TARGET)
1192 ret = ha->isp_ops->target_reset(fcport, 0, 0);
1196 vha->host_no, ret, fcport->d_id.b24));
1263 kfree(sp->fcport);
1317 fc_port_t *fcport = (struct fc_port *) sdev->hostdata;
1322 DEBUG2(qla_printk(KERN_INFO, fcport->vha->hw,
1324 fcport->vha->host_no, sdev->channel, sdev->id, sdev->lun,
1330 fc_port_t *fcport = sdev->hostdata;
1331 struct scsi_qla_host *vha = fcport->vha;
1349 fcport->vha->host_no, sdev->channel, sdev->id, sdev->lun,
2487 fc_port_t *fcport, *tfcport;
2489 list_for_each_entry_safe(fcport, tfcport, &vha->vp_fcports, list) {
2490 list_del(&fcport->list);
2491 kfree(fcport);
2492 fcport = NULL;
2497 qla2x00_schedule_rport_del(struct scsi_qla_host *vha, fc_port_t *fcport,
2503 if (!fcport->rport)
2506 rport = fcport->rport;
2510 fcport->drport = rport;
2519 * qla2x00_mark_device_lost Updates fcport state when device goes offline.
2521 * Input: ha = adapter block pointer. fcport = port structure pointer.
2527 void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport,
2530 if (atomic_read(&fcport->state) == FCS_ONLINE &&
2531 vha->vp_idx == fcport->vp_idx) {
2532 atomic_set(&fcport->state, FCS_DEVICE_LOST);
2533 qla2x00_schedule_rport_del(vha, fcport, defer);
2539 if (atomic_read(&fcport->state) != FCS_DEVICE_DEAD)
2540 atomic_set(&fcport->state, FCS_DEVICE_LOST);
2545 if (fcport->login_retry == 0) {
2546 fcport->login_retry = vha->hw->login_retry_count;
2553 fcport->port_name[0],
2554 fcport->port_name[1],
2555 fcport->port_name[2],
2556 fcport->port_name[3],
2557 fcport->port_name[4],
2558 fcport->port_name[5],
2559 fcport->port_name[6],
2560 fcport->port_name[7],
2561 fcport->loop_id,
2562 fcport->login_retry));
2568 * Updates fcport state when device goes offline.
2572 * fcport = port structure pointer.
2582 fc_port_t *fcport;
2584 list_for_each_entry(fcport, &vha->vp_fcports, list) {
2585 if (vha->vp_idx != 0 && vha->vp_idx != fcport->vp_idx)
2592 if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD)
2594 if (atomic_read(&fcport->state) == FCS_ONLINE) {
2596 qla2x00_schedule_rport_del(vha, fcport, defer);
2597 else if (vha->vp_idx == fcport->vp_idx)
2598 qla2x00_schedule_rport_del(vha, fcport, defer);
2600 atomic_set(&fcport->state, FCS_DEVICE_LOST);
3050 fc_port_t *fcport, uint16_t *data) \
3058 e->u.logio.fcport = fcport; \
3127 qla2x00_async_login(vha, e->u.logio.fcport,
3131 qla2x00_async_login_done(vha, e->u.logio.fcport,
3135 qla2x00_async_logout(vha, e->u.logio.fcport);
3138 qla2x00_async_logout_done(vha, e->u.logio.fcport,
3142 qla2x00_async_adisc(vha, e->u.logio.fcport,
3146 qla2x00_async_adisc_done(vha, e->u.logio.fcport,
3166 fc_port_t *fcport;
3172 list_for_each_entry(fcport, &vha->vp_fcports, list) {
3177 if (atomic_read(&fcport->state) != FCS_ONLINE &&
3178 fcport->login_retry && !(fcport->flags & FCF_ASYNC_SENT)) {
3179 fcport->login_retry--;
3180 if (fcport->flags & FCF_FABRIC_DEVICE) {
3181 if (fcport->flags & FCF_FCP2_DEVICE)
3183 fcport->loop_id,
3184 fcport->d_id.b.domain,
3185 fcport->d_id.b.area,
3186 fcport->d_id.b.al_pa);
3189 fcport->flags |= FCF_ASYNC_SENT;
3193 vha, fcport, data);
3200 fcport, &next_loopid);
3203 fcport);
3206 fcport->old_loop_id = fcport->loop_id;
3209 "in ID 0x%x\n", vha->host_no, fcport->loop_id));
3211 qla2x00_update_fcport(vha, fcport);
3218 vha->host_no, fcport->login_retry,
3219 fcport->loop_id));
3221 fcport->login_retry = 0;
3224 if (fcport->login_retry == 0 && status != QLA_SUCCESS)
3225 fcport->loop_id = FC_NO_LOOP_ID;
3469 struct qla_hw_data *ha = sp->fcport->vha->hw;
3545 fc_port_t *fcport;
3568 list_for_each_entry(fcport, &vha->vp_fcports, list) {
3569 if (fcport->port_type != FCT_TARGET)
3572 if (atomic_read(&fcport->state) == FCS_DEVICE_LOST) {
3574 if (atomic_read(&fcport->port_down_timer) == 0)
3577 if (atomic_dec_and_test(&fcport->port_down_timer) != 0)
3578 atomic_set(&fcport->state, FCS_DEVICE_DEAD);
3580 DEBUG(printk("scsi(%ld): fcport-%d - port retry count: "
3583 t, atomic_read(&fcport->port_down_timer)));
3586 } /* End of for fcport */
3623 sfcp = sp->fcport;