Lines Matching refs:fcport

406 	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()
1837 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_dif_start_scsi()
1838 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_dif_start_scsi()
1839 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_dif_start_scsi()
1840 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_dif_start_scsi()
1914 struct scsi_qla_host *vha = sp->fcport->vha; in qla2xxx_start_scsi_mq()
1918 if (sp->fcport->edif.enable && (sp->fcport->flags & FCF_FCSP_DEVICE)) in qla2xxx_start_scsi_mq()
1998 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla2xxx_start_scsi_mq()
1999 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla2xxx_start_scsi_mq()
2000 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla2xxx_start_scsi_mq()
2001 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla2xxx_start_scsi_mq()
2002 cmd_pkt->vp_index = sp->fcport->vha->vp_idx; in qla2xxx_start_scsi_mq()
2075 struct scsi_qla_host *vha = sp->fcport->vha; in qla2xxx_dif_start_scsi_mq()
2218 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla2xxx_dif_start_scsi_mq()
2219 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla2xxx_dif_start_scsi_mq()
2220 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla2xxx_dif_start_scsi_mq()
2221 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla2xxx_dif_start_scsi_mq()
2403 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_prli_iocb()
2404 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_prli_iocb()
2405 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_prli_iocb()
2406 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_prli_iocb()
2433 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_login_iocb()
2434 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_login_iocb()
2435 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_login_iocb()
2436 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_login_iocb()
2448 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); in qla2x00_login_iocb()
2453 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id); in qla2x00_login_iocb()
2456 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts); in qla2x00_login_iocb()
2458 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); in qla2x00_login_iocb()
2459 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 | in qla2x00_login_iocb()
2460 sp->fcport->d_id.b.al_pa); in qla2x00_login_iocb()
2470 if (sp->fcport->explicit_logout) { in qla24xx_logout_iocb()
2475 if (!sp->fcport->keep_nport_handle) in qla24xx_logout_iocb()
2480 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_logout_iocb()
2481 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_logout_iocb()
2482 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_logout_iocb()
2483 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_logout_iocb()
2493 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); in qla2x00_logout_iocb()
2496 cpu_to_le16(sp->fcport->loop_id) : in qla2x00_logout_iocb()
2497 cpu_to_le16(sp->fcport->loop_id << 8); in qla2x00_logout_iocb()
2498 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); in qla2x00_logout_iocb()
2499 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 | in qla2x00_logout_iocb()
2500 sp->fcport->d_id.b.al_pa); in qla2x00_logout_iocb()
2510 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_adisc_iocb()
2520 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); in qla2x00_adisc_iocb()
2523 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id); in qla2x00_adisc_iocb()
2526 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | BIT_0); in qla2x00_adisc_iocb()
2540 struct fc_port *fcport = sp->fcport; in qla24xx_tm_iocb() local
2541 scsi_qla_host_t *vha = fcport->vha; in qla24xx_tm_iocb()
2552 tsk->nport_handle = cpu_to_le16(fcport->loop_id); in qla24xx_tm_iocb()
2555 tsk->port_id[0] = fcport->d_id.b.al_pa; in qla24xx_tm_iocb()
2556 tsk->port_id[1] = fcport->d_id.b.area; in qla24xx_tm_iocb()
2557 tsk->port_id[2] = fcport->d_id.b.domain; in qla24xx_tm_iocb()
2558 tsk->vp_index = fcport->vha->vp_idx; in qla24xx_tm_iocb()
2608 kfree(sp->fcport); in qla2x00_els_dcmd_sp_free()
2623 fc_port_t *fcport = sp->fcport; in qla2x00_els_dcmd_iocb_timeout() local
2631 sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area, in qla2x00_els_dcmd_iocb_timeout()
2632 fcport->d_id.b.al_pa); in qla2x00_els_dcmd_iocb_timeout()
2656 fc_port_t *fcport = sp->fcport; in qla2x00_els_dcmd_sp_done() local
2662 sp->name, sp->handle, fcport->d_id.b.domain, in qla2x00_els_dcmd_sp_done()
2663 fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla2x00_els_dcmd_sp_done()
2673 fc_port_t *fcport = NULL; in qla24xx_els_dcmd_iocb() local
2679 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla24xx_els_dcmd_iocb()
2680 if (!fcport) { in qla24xx_els_dcmd_iocb()
2688 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qla24xx_els_dcmd_iocb()
2690 kfree(fcport); in qla24xx_els_dcmd_iocb()
2697 fcport->loop_id = 0xFFFF; in qla24xx_els_dcmd_iocb()
2698 fcport->d_id.b.domain = remote_did.b.domain; in qla24xx_els_dcmd_iocb()
2699 fcport->d_id.b.area = remote_did.b.area; in qla24xx_els_dcmd_iocb()
2700 fcport->d_id.b.al_pa = remote_did.b.al_pa; in qla24xx_els_dcmd_iocb()
2703 fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla24xx_els_dcmd_iocb()
2707 sp->fcport = fcport; in qla24xx_els_dcmd_iocb()
2750 sp->name, sp->handle, fcport->loop_id, fcport->d_id.b.domain, in qla24xx_els_dcmd_iocb()
2751 fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla24xx_els_dcmd_iocb()
2771 els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_els_logo_iocb()
2778 els_iocb->d_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_els_logo_iocb()
2779 els_iocb->d_id[1] = sp->fcport->d_id.b.area; in qla24xx_els_logo_iocb()
2780 els_iocb->d_id[2] = sp->fcport->d_id.b.domain; in qla24xx_els_logo_iocb()
2830 fc_port_t *fcport = sp->fcport; in qla2x00_els_dcmd2_iocb_timeout() local
2837 sp->name, sp->handle, fcport->port_name, fcport->d_id.b24); in qla2x00_els_dcmd2_iocb_timeout()
2874 fc_port_t *fcport = sp->fcport; in qla2x00_els_dcmd2_sp_done() local
2886 sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name); in qla2x00_els_dcmd2_sp_done()
2888 fcport->flags &= ~(FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE); in qla2x00_els_dcmd2_sp_done()
2890 fcport->logout_on_delete = 1; in qla2x00_els_dcmd2_sp_done()
2891 fcport->chip_reset = vha->hw->base_qpair->chip_reset; in qla2x00_els_dcmd2_sp_done()
2900 ea.fcport = fcport; in qla2x00_els_dcmd2_sp_done()
2910 wwn_to_u64(fcport->port_name), in qla2x00_els_dcmd2_sp_done()
2911 fcport->d_id, lid, &conflict_fcport); in qla2x00_els_dcmd2_sp_done()
2920 conflict_fcport->conflict = fcport; in qla2x00_els_dcmd2_sp_done()
2921 fcport->login_pause = 1; in qla2x00_els_dcmd2_sp_done()
2925 fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2926 fcport->d_id.b24, lid); in qla2x00_els_dcmd2_sp_done()
2931 fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2932 fcport->d_id.b24, lid); in qla2x00_els_dcmd2_sp_done()
2933 qla2x00_clear_loop_id(fcport); in qla2x00_els_dcmd2_sp_done()
2935 fcport->loop_id = lid; in qla2x00_els_dcmd2_sp_done()
2936 fcport->keep_nport_handle = 0; in qla2x00_els_dcmd2_sp_done()
2937 qlt_schedule_sess_for_deletion(fcport); in qla2x00_els_dcmd2_sp_done()
2951 __func__, __LINE__, fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2952 fcport->loop_id, cid.b24); in qla2x00_els_dcmd2_sp_done()
2953 set_bit(fcport->loop_id, in qla2x00_els_dcmd2_sp_done()
2955 fcport->loop_id = FC_NO_LOOP_ID; in qla2x00_els_dcmd2_sp_done()
2956 qla24xx_post_gnl_work(vha, fcport); in qla2x00_els_dcmd2_sp_done()
2974 __func__, sp->fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2977 fcport->flags &= ~FCF_ASYNC_SENT; in qla2x00_els_dcmd2_sp_done()
2978 qlt_schedule_sess_for_deletion(fcport); in qla2x00_els_dcmd2_sp_done()
2986 __func__, sp->fcport->port_name, in qla2x00_els_dcmd2_sp_done()
2989 sp->fcport->flags &= ~FCF_ASYNC_SENT; in qla2x00_els_dcmd2_sp_done()
2990 qlt_schedule_sess_for_deletion(fcport); in qla2x00_els_dcmd2_sp_done()
3010 fc_port_t *fcport, bool wait) in qla24xx_els_dcmd2_iocb() argument
3021 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qla24xx_els_dcmd2_iocb()
3025 fcport->flags &= ~FCF_ASYNC_ACTIVE; in qla24xx_els_dcmd2_iocb()
3029 fcport->flags |= FCF_ASYNC_SENT; in qla24xx_els_dcmd2_iocb()
3030 qla2x00_set_fcport_disc_state(fcport, DSC_LOGIN_PEND); in qla24xx_els_dcmd2_iocb()
3033 "%s Enter: PLOGI portid=%06x\n", __func__, fcport->d_id.b24); in qla24xx_els_dcmd2_iocb()
3040 sp->fcport = fcport; in qla24xx_els_dcmd2_iocb()
3093 sp->name, sp->handle, fcport->loop_id, in qla24xx_els_dcmd2_iocb()
3094 fcport->d_id.b24, vha->d_id.b24); in qla24xx_els_dcmd2_iocb()
3107 fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE); in qla24xx_els_dcmd2_iocb()
3163 els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_els_iocb()
3173 els_iocb->d_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_els_iocb()
3174 els_iocb->d_id[1] = sp->fcport->d_id.b.area; in qla24xx_els_iocb()
3175 els_iocb->d_id[2] = sp->fcport->d_id.b.domain; in qla24xx_els_iocb()
3212 SET_TARGET_ID(ha, ct_iocb->loop_id, sp->fcport->loop_id); in qla2x00_ct_iocb()
3281 ct_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_ct_iocb()
3504 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla82xx_start_scsi()
3505 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla82xx_start_scsi()
3506 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla82xx_start_scsi()
3507 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla82xx_start_scsi()
3529 sp->fcport->fcp_prio << 3; in qla82xx_start_scsi()
3575 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla82xx_start_scsi()
3576 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla82xx_start_scsi()
3577 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla82xx_start_scsi()
3578 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla82xx_start_scsi()
3587 cmd_pkt->task |= sp->fcport->fcp_prio << 3; in qla82xx_start_scsi()
3673 if (sp->fcport) { in qla24xx_abort_iocb()
3674 abt_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_abort_iocb()
3675 abt_iocb->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_abort_iocb()
3676 abt_iocb->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_abort_iocb()
3677 abt_iocb->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_abort_iocb()
3746 sp->name, sp->handle, sp->fcport->loop_id, in qla2x00_send_notify_ack_iocb()
3747 sp->fcport->d_id.b24); in qla2x00_send_notify_ack_iocb()
3766 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla_nvme_ls()
3767 cmd_pkt->vp_index = sp->fcport->vha->vp_idx; in qla_nvme_ls()
3807 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_prlo_iocb()
3808 logio->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_prlo_iocb()
3809 logio->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_prlo_iocb()
3810 logio->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_prlo_iocb()
3811 logio->vp_index = sp->fcport->vha->vp_idx; in qla24xx_prlo_iocb()