Lines Matching refs:fcport

404 	SET_TARGET_ID(ha, cmd_pkt->target, sp->fcport->loop_id);
1681 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
1682 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
1683 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
1684 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
1878 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
1879 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
1880 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
1881 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
1948 struct scsi_qla_host *vha = sp->fcport->vha;
2027 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
2028 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
2029 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
2030 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
2031 cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
2098 struct scsi_qla_host *vha = sp->fcport->vha;
2240 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
2241 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
2242 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
2243 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
2421 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
2422 logio->port_id[0] = sp->fcport->d_id.b.al_pa;
2423 logio->port_id[1] = sp->fcport->d_id.b.area;
2424 logio->port_id[2] = sp->fcport->d_id.b.domain;
2445 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
2446 logio->port_id[0] = sp->fcport->d_id.b.al_pa;
2447 logio->port_id[1] = sp->fcport->d_id.b.area;
2448 logio->port_id[2] = sp->fcport->d_id.b.domain;
2460 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
2465 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id);
2468 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts);
2470 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain);
2471 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 |
2472 sp->fcport->d_id.b.al_pa);
2482 if (sp->fcport->explicit_logout) {
2487 if (!sp->fcport->keep_nport_handle)
2492 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
2493 logio->port_id[0] = sp->fcport->d_id.b.al_pa;
2494 logio->port_id[1] = sp->fcport->d_id.b.area;
2495 logio->port_id[2] = sp->fcport->d_id.b.domain;
2505 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
2508 cpu_to_le16(sp->fcport->loop_id) :
2509 cpu_to_le16(sp->fcport->loop_id << 8);
2510 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain);
2511 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 |
2512 sp->fcport->d_id.b.al_pa);
2522 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
2532 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
2535 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id);
2538 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | BIT_0);
2552 struct fc_port *fcport = sp->fcport;
2553 scsi_qla_host_t *vha = fcport->vha;
2564 tsk->nport_handle = cpu_to_le16(fcport->loop_id);
2567 tsk->port_id[0] = fcport->d_id.b.al_pa;
2568 tsk->port_id[1] = fcport->d_id.b.area;
2569 tsk->port_id[2] = fcport->d_id.b.domain;
2570 tsk->vp_index = fcport->vha->vp_idx;
2593 kfree(sp->fcport);
2608 fc_port_t *fcport = sp->fcport;
2616 sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area,
2617 fcport->d_id.b.al_pa);
2641 fc_port_t *fcport = sp->fcport;
2647 sp->name, sp->handle, fcport->d_id.b.domain,
2648 fcport->d_id.b.area, fcport->d_id.b.al_pa);
2658 fc_port_t *fcport = NULL;
2664 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
2665 if (!fcport) {
2666 ql_log(ql_log_info, vha, 0x70e5, "fcport allocation failed\n");
2671 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
2673 kfree(fcport);
2680 fcport->loop_id = 0xFFFF;
2681 fcport->d_id.b.domain = remote_did.b.domain;
2682 fcport->d_id.b.area = remote_did.b.area;
2683 fcport->d_id.b.al_pa = remote_did.b.al_pa;
2686 fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa);
2690 sp->fcport = fcport;
2731 sp->name, sp->handle, fcport->loop_id, fcport->d_id.b.domain,
2732 fcport->d_id.b.area, fcport->d_id.b.al_pa);
2751 els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
2758 els_iocb->d_id[0] = sp->fcport->d_id.b.al_pa;
2759 els_iocb->d_id[1] = sp->fcport->d_id.b.area;
2760 els_iocb->d_id[2] = sp->fcport->d_id.b.domain;
2808 fc_port_t *fcport = sp->fcport;
2815 sp->name, sp->handle, fcport->port_name, fcport->d_id.b24);
2852 fc_port_t *fcport = sp->fcport;
2864 sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name);
2866 fcport->flags &= ~(FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE);
2876 ea.fcport = fcport;
2886 wwn_to_u64(fcport->port_name),
2887 fcport->d_id, lid, &conflict_fcport);
2890 * Another fcport shares the same
2892 * fcport needs to finish cleanup
2893 * before this fcport can proceed
2896 conflict_fcport->conflict = fcport;
2897 fcport->login_pause = 1;
2901 fcport->port_name,
2902 fcport->d_id.b24, lid);
2907 fcport->port_name,
2908 fcport->d_id.b24, lid);
2909 qla2x00_clear_loop_id(fcport);
2911 fcport->loop_id = lid;
2912 fcport->keep_nport_handle = 0;
2913 qlt_schedule_sess_for_deletion(fcport);
2927 __func__, __LINE__, fcport->port_name,
2928 fcport->loop_id, cid.b24);
2929 set_bit(fcport->loop_id,
2931 fcport->loop_id = FC_NO_LOOP_ID;
2932 qla24xx_post_gnl_work(vha, fcport);
2950 __func__, sp->fcport->port_name,
2953 fcport->flags &= ~FCF_ASYNC_SENT;
2954 qlt_schedule_sess_for_deletion(fcport);
2962 __func__, sp->fcport->port_name,
2965 sp->fcport->flags &= ~FCF_ASYNC_SENT;
2966 qlt_schedule_sess_for_deletion(fcport);
2985 fc_port_t *fcport, bool wait)
2994 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
2998 fcport->flags &= ~FCF_ASYNC_ACTIVE;
3002 fcport->flags |= FCF_ASYNC_SENT;
3003 qla2x00_set_fcport_disc_state(fcport, DSC_LOGIN_PEND);
3006 "Enter: PLOGI portid=%06x\n", fcport->d_id.b24);
3010 sp->fcport = fcport;
3061 sp->name, sp->handle, fcport->loop_id,
3062 fcport->d_id.b24, vha->d_id.b24);
3075 fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
3093 els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
3103 els_iocb->d_id[0] = sp->fcport->d_id.b.al_pa;
3104 els_iocb->d_id[1] = sp->fcport->d_id.b.area;
3105 els_iocb->d_id[2] = sp->fcport->d_id.b.domain;
3142 SET_TARGET_ID(ha, ct_iocb->loop_id, sp->fcport->loop_id);
3211 ct_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
3440 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
3441 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
3442 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
3443 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
3465 sp->fcport->fcp_prio << 3;
3511 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
3512 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
3513 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
3514 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
3523 cmd_pkt->task |= sp->fcport->fcp_prio << 3;
3608 if (sp->fcport) {
3609 abt_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
3610 abt_iocb->port_id[0] = sp->fcport->d_id.b.al_pa;
3611 abt_iocb->port_id[1] = sp->fcport->d_id.b.area;
3612 abt_iocb->port_id[2] = sp->fcport->d_id.b.domain;
3686 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
3687 cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
3727 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
3728 logio->port_id[0] = sp->fcport->d_id.b.al_pa;
3729 logio->port_id[1] = sp->fcport->d_id.b.area;
3730 logio->port_id[2] = sp->fcport->d_id.b.domain;
3731 logio->vp_index = sp->fcport->vha->vp_idx;