Lines Matching refs:fcport

407 	SET_TARGET_ID(ha, cmd_pkt->target, sp->fcport->loop_id);  in qla2x00_start_scsi()
1555 if (sp->fcport->edif.enable && (sp->fcport->flags & FCF_FCSP_DEVICE)) in qla24xx_start_scsi()
1633 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_start_scsi()
1634 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_start_scsi()
1635 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_start_scsi()
1636 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_start_scsi()
1839 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_dif_start_scsi()
1840 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_dif_start_scsi()
1841 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_dif_start_scsi()
1842 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_dif_start_scsi()
1916 struct scsi_qla_host *vha = sp->fcport->vha; in qla2xxx_start_scsi_mq()
1920 if (sp->fcport->edif.enable && (sp->fcport->flags & FCF_FCSP_DEVICE)) in qla2xxx_start_scsi_mq()
2000 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla2xxx_start_scsi_mq()
2001 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla2xxx_start_scsi_mq()
2002 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla2xxx_start_scsi_mq()
2003 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla2xxx_start_scsi_mq()
2004 cmd_pkt->vp_index = sp->fcport->vha->vp_idx; in qla2xxx_start_scsi_mq()
2077 struct scsi_qla_host *vha = sp->fcport->vha; in qla2xxx_dif_start_scsi_mq()
2222 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla2xxx_dif_start_scsi_mq()
2223 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla2xxx_dif_start_scsi_mq()
2224 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla2xxx_dif_start_scsi_mq()
2225 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla2xxx_dif_start_scsi_mq()
2407 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_prli_iocb()
2408 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_prli_iocb()
2409 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_prli_iocb()
2410 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_prli_iocb()
2437 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_login_iocb()
2438 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_login_iocb()
2439 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_login_iocb()
2440 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_login_iocb()
2452 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); in qla2x00_login_iocb()
2457 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id); in qla2x00_login_iocb()
2460 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts); in qla2x00_login_iocb()
2462 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); in qla2x00_login_iocb()
2463 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 | in qla2x00_login_iocb()
2464 sp->fcport->d_id.b.al_pa); in qla2x00_login_iocb()
2474 if (sp->fcport->explicit_logout) { in qla24xx_logout_iocb()
2479 if (!sp->fcport->keep_nport_handle) in qla24xx_logout_iocb()
2484 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_logout_iocb()
2485 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_logout_iocb()
2486 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_logout_iocb()
2487 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_logout_iocb()
2497 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); in qla2x00_logout_iocb()
2500 cpu_to_le16(sp->fcport->loop_id) : in qla2x00_logout_iocb()
2501 cpu_to_le16(sp->fcport->loop_id << 8); in qla2x00_logout_iocb()
2502 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); in qla2x00_logout_iocb()
2503 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 | in qla2x00_logout_iocb()
2504 sp->fcport->d_id.b.al_pa); in qla2x00_logout_iocb()
2514 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_adisc_iocb()
2524 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); in qla2x00_adisc_iocb()
2527 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id); in qla2x00_adisc_iocb()
2530 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | BIT_0); in qla2x00_adisc_iocb()
2544 struct fc_port *fcport = sp->fcport; in qla24xx_tm_iocb() local
2545 scsi_qla_host_t *vha = fcport->vha; in qla24xx_tm_iocb()
2556 tsk->nport_handle = cpu_to_le16(fcport->loop_id); in qla24xx_tm_iocb()
2559 tsk->port_id[0] = fcport->d_id.b.al_pa; in qla24xx_tm_iocb()
2560 tsk->port_id[1] = fcport->d_id.b.area; in qla24xx_tm_iocb()
2561 tsk->port_id[2] = fcport->d_id.b.domain; in qla24xx_tm_iocb()
2562 tsk->vp_index = fcport->vha->vp_idx; in qla24xx_tm_iocb()
2613 kfree(sp->fcport); in qla2x00_els_dcmd_sp_free()
2628 fc_port_t *fcport = sp->fcport; in qla2x00_els_dcmd_iocb_timeout() local
2636 sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area, in qla2x00_els_dcmd_iocb_timeout()
2637 fcport->d_id.b.al_pa); in qla2x00_els_dcmd_iocb_timeout()
2661 fc_port_t *fcport = sp->fcport; in qla2x00_els_dcmd_sp_done() local
2667 sp->name, sp->handle, fcport->d_id.b.domain, in qla2x00_els_dcmd_sp_done()
2668 fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla2x00_els_dcmd_sp_done()
2678 fc_port_t *fcport = NULL; in qla24xx_els_dcmd_iocb() local
2684 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla24xx_els_dcmd_iocb()
2685 if (!fcport) { in qla24xx_els_dcmd_iocb()
2693 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qla24xx_els_dcmd_iocb()
2695 kfree(fcport); in qla24xx_els_dcmd_iocb()
2702 fcport->loop_id = 0xFFFF; in qla24xx_els_dcmd_iocb()
2703 fcport->d_id.b.domain = remote_did.b.domain; in qla24xx_els_dcmd_iocb()
2704 fcport->d_id.b.area = remote_did.b.area; in qla24xx_els_dcmd_iocb()
2705 fcport->d_id.b.al_pa = remote_did.b.al_pa; in qla24xx_els_dcmd_iocb()
2708 fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla24xx_els_dcmd_iocb()
2712 sp->fcport = fcport; in qla24xx_els_dcmd_iocb()
2755 sp->name, sp->handle, fcport->loop_id, fcport->d_id.b.domain, in qla24xx_els_dcmd_iocb()
2756 fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla24xx_els_dcmd_iocb()
2776 els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_els_logo_iocb()
2783 els_iocb->d_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_els_logo_iocb()
2784 els_iocb->d_id[1] = sp->fcport->d_id.b.area; in qla24xx_els_logo_iocb()
2785 els_iocb->d_id[2] = sp->fcport->d_id.b.domain; in qla24xx_els_logo_iocb()
2835 fc_port_t *fcport = sp->fcport; in qla2x00_els_dcmd2_iocb_timeout() local
2842 sp->name, sp->handle, fcport->port_name, fcport->d_id.b24); in qla2x00_els_dcmd2_iocb_timeout()
2879 fc_port_t *fcport = sp->fcport; in qla2x00_els_dcmd2_sp_done() local
2891 sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name); in qla2x00_els_dcmd2_sp_done()
2893 fcport->flags &= ~(FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE); in qla2x00_els_dcmd2_sp_done()
2895 fcport->logout_on_delete = 1; in qla2x00_els_dcmd2_sp_done()
2896 fcport->chip_reset = vha->hw->base_qpair->chip_reset; in qla2x00_els_dcmd2_sp_done()
2905 ea.fcport = fcport; in qla2x00_els_dcmd2_sp_done()
2915 wwn_to_u64(fcport->port_name), in qla2x00_els_dcmd2_sp_done()
2916 fcport->d_id, lid, &conflict_fcport); in qla2x00_els_dcmd2_sp_done()
2925 conflict_fcport->conflict = fcport; in qla2x00_els_dcmd2_sp_done()
2926 fcport->login_pause = 1; in qla2x00_els_dcmd2_sp_done()
2930 fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2931 fcport->d_id.b24, lid); in qla2x00_els_dcmd2_sp_done()
2936 fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2937 fcport->d_id.b24, lid); in qla2x00_els_dcmd2_sp_done()
2938 qla2x00_clear_loop_id(fcport); in qla2x00_els_dcmd2_sp_done()
2940 fcport->loop_id = lid; in qla2x00_els_dcmd2_sp_done()
2941 fcport->keep_nport_handle = 0; in qla2x00_els_dcmd2_sp_done()
2942 qlt_schedule_sess_for_deletion(fcport); in qla2x00_els_dcmd2_sp_done()
2956 __func__, __LINE__, fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2957 fcport->loop_id, cid.b24); in qla2x00_els_dcmd2_sp_done()
2958 set_bit(fcport->loop_id, in qla2x00_els_dcmd2_sp_done()
2960 fcport->loop_id = FC_NO_LOOP_ID; in qla2x00_els_dcmd2_sp_done()
2961 qla24xx_post_gnl_work(vha, fcport); in qla2x00_els_dcmd2_sp_done()
2979 __func__, sp->fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2982 fcport->flags &= ~FCF_ASYNC_SENT; in qla2x00_els_dcmd2_sp_done()
2983 qlt_schedule_sess_for_deletion(fcport); in qla2x00_els_dcmd2_sp_done()
2991 __func__, sp->fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2994 sp->fcport->flags &= ~FCF_ASYNC_SENT; in qla2x00_els_dcmd2_sp_done()
2995 qlt_schedule_sess_for_deletion(fcport); in qla2x00_els_dcmd2_sp_done()
3015 fc_port_t *fcport, bool wait) in qla24xx_els_dcmd2_iocb() argument
3026 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qla24xx_els_dcmd2_iocb()
3030 fcport->flags &= ~FCF_ASYNC_ACTIVE; in qla24xx_els_dcmd2_iocb()
3034 fcport->flags |= FCF_ASYNC_SENT; in qla24xx_els_dcmd2_iocb()
3035 qla2x00_set_fcport_disc_state(fcport, DSC_LOGIN_PEND); in qla24xx_els_dcmd2_iocb()
3038 "%s Enter: PLOGI portid=%06x\n", __func__, fcport->d_id.b24); in qla24xx_els_dcmd2_iocb()
3045 sp->fcport = fcport; in qla24xx_els_dcmd2_iocb()
3099 sp->name, sp->handle, fcport->loop_id, in qla24xx_els_dcmd2_iocb()
3100 fcport->d_id.b24, vha->d_id.b24); in qla24xx_els_dcmd2_iocb()
3113 fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE); in qla24xx_els_dcmd2_iocb()
3169 els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_els_iocb()
3179 els_iocb->d_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_els_iocb()
3180 els_iocb->d_id[1] = sp->fcport->d_id.b.area; in qla24xx_els_iocb()
3181 els_iocb->d_id[2] = sp->fcport->d_id.b.domain; in qla24xx_els_iocb()
3218 SET_TARGET_ID(ha, ct_iocb->loop_id, sp->fcport->loop_id); in qla2x00_ct_iocb()
3287 ct_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_ct_iocb()
3511 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla82xx_start_scsi()
3512 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla82xx_start_scsi()
3513 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla82xx_start_scsi()
3514 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla82xx_start_scsi()
3536 sp->fcport->fcp_prio << 3; in qla82xx_start_scsi()
3582 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla82xx_start_scsi()
3583 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla82xx_start_scsi()
3584 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla82xx_start_scsi()
3585 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla82xx_start_scsi()
3594 cmd_pkt->task |= sp->fcport->fcp_prio << 3; in qla82xx_start_scsi()
3680 if (sp->fcport) { in qla24xx_abort_iocb()
3681 abt_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_abort_iocb()
3682 abt_iocb->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_abort_iocb()
3683 abt_iocb->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_abort_iocb()
3684 abt_iocb->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_abort_iocb()
3753 sp->name, sp->handle, sp->fcport->loop_id, in qla2x00_send_notify_ack_iocb()
3754 sp->fcport->d_id.b24); in qla2x00_send_notify_ack_iocb()
3771 cmd_pkt->vp_index = sp->fcport->vha->vp_idx; in qla_nvme_ls()
3781 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla_nvme_ls()
3821 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_prlo_iocb()
3822 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_prlo_iocb()
3823 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_prlo_iocb()
3824 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_prlo_iocb()
3825 logio->vp_index = sp->fcport->vha->vp_idx; in qla24xx_prlo_iocb()
4229 struct scsi_qla_host *vha = sp->fcport->vha; in qla_start_scsi_type6()
4388 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla_start_scsi_type6()
4389 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla_start_scsi_type6()
4390 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla_start_scsi_type6()
4391 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla_start_scsi_type6()
4412 sp->fcport->fcp_prio << 3; in qla_start_scsi_type6()