Lines Matching refs:loop_id
332 fcport->loop_id == FC_NO_LOOP_ID) { in qla2x00_async_login()
375 fcport->port_name, sp->handle, fcport->loop_id, in qla2x00_async_login()
430 sp->handle, fcport->loop_id, fcport->d_id.b.domain, in qla2x00_async_logout()
490 sp->handle, fcport->loop_id, fcport->d_id.b.domain, in qla2x00_async_prlo()
517 fcport->rscn_gen, ea->sp->gen1, fcport->loop_id); in qla24xx_handle_adisc_event()
638 sp->handle, fcport->loop_id, fcport->d_id.b24, fcport->port_name); in qla2x00_async_adisc()
655 static bool qla2x00_is_reserved_id(scsi_qla_host_t *vha, uint16_t loop_id) in qla2x00_is_reserved_id() argument
660 return loop_id > NPH_LAST_HANDLE; in qla2x00_is_reserved_id()
662 return (loop_id > ha->max_loop_id && loop_id < SNS_FIRST_LOOP_ID) || in qla2x00_is_reserved_id()
663 loop_id == MANAGEMENT_SERVER || loop_id == BROADCAST; in qla2x00_is_reserved_id()
687 dev->loop_id = find_first_zero_bit(ha->loop_id_map, LOOPID_MAP_SIZE); in qla2x00_find_new_loop_id()
688 if (dev->loop_id >= LOOPID_MAP_SIZE || in qla2x00_find_new_loop_id()
689 qla2x00_is_reserved_id(vha, dev->loop_id)) { in qla2x00_find_new_loop_id()
690 dev->loop_id = FC_NO_LOOP_ID; in qla2x00_find_new_loop_id()
693 set_bit(dev->loop_id, ha->loop_id_map); in qla2x00_find_new_loop_id()
700 dev->loop_id, dev->d_id.b24); in qla2x00_find_new_loop_id()
713 if (fcport->loop_id == FC_NO_LOOP_ID || in qla2x00_clear_loop_id()
714 qla2x00_is_reserved_id(fcport->vha, fcport->loop_id)) in qla2x00_clear_loop_id()
717 clear_bit(fcport->loop_id, ha->loop_id_map); in qla2x00_clear_loop_id()
718 fcport->loop_id = FC_NO_LOOP_ID; in qla2x00_clear_loop_id()
726 u16 i, n, found = 0, loop_id; in qla24xx_handle_gnl_done_event() local
738 fcport->rscn_gen, fcport->last_rscn_gen, vha->loop_id, fcport->edif.enable); in qla24xx_handle_gnl_done_event()
770 fcport->d_id.b.al_pa, fcport->loop_id); in qla24xx_handle_gnl_done_event()
788 loop_id = le16_to_cpu(e->nport_handle); in qla24xx_handle_gnl_done_event()
789 loop_id = (loop_id & 0x7fff); in qla24xx_handle_gnl_done_event()
807 loop_id, fcport->loop_id); in qla24xx_handle_gnl_done_event()
816 fcport->loop_id != FC_NO_LOOP_ID) || in qla24xx_handle_gnl_done_event()
817 (fcport->loop_id != FC_NO_LOOP_ID && in qla24xx_handle_gnl_done_event()
818 fcport->loop_id != loop_id)) { in qla24xx_handle_gnl_done_event()
830 fcport->loop_id = loop_id; in qla24xx_handle_gnl_done_event()
836 id, loop_id, &conflict_fcport); in qla24xx_handle_gnl_done_event()
873 if (fcport->loop_id == FC_NO_LOOP_ID) { in qla24xx_handle_gnl_done_event()
919 if (fcport->loop_id != FC_NO_LOOP_ID) in qla24xx_handle_gnl_done_event()
922 fcport->loop_id = loop_id; in qla24xx_handle_gnl_done_event()
931 if (fcport->loop_id != FC_NO_LOOP_ID) in qla24xx_handle_gnl_done_event()
934 fcport->loop_id = loop_id; in qla24xx_handle_gnl_done_event()
954 loop_id = le16_to_cpu(e->nport_handle); in qla24xx_handle_gnl_done_event()
974 if (fcport->loop_id == loop_id) in qla24xx_handle_gnl_done_event()
975 fcport->loop_id = FC_NO_LOOP_ID; in qla24xx_handle_gnl_done_event()
1028 u16 i, n = 0, loop_id; in qla24xx_async_gnl_sp_done() local
1055 loop_id = le16_to_cpu(e->nport_handle); in qla24xx_async_gnl_sp_done()
1057 loop_id = (loop_id & 0x7fff); in qla24xx_async_gnl_sp_done()
1058 set_bit(loop_id, vha->hw->loop_id_map); in qla24xx_async_gnl_sp_done()
1065 (loop_id & 0x7fff)); in qla24xx_async_gnl_sp_done()
1339 fcport->port_name, sp->handle, fcport->loop_id, fcport->d_id.b24, in qla24xx_async_prli()
1421 mb[1] = fcport->loop_id; in qla24xx_async_gpdb()
1619 fcport->fw_login_state, fcport->loop_id, fcport->login_retry); in qla_chk_n2n_b4_login()
1646 if (fcport->loop_id == FC_NO_LOOP_ID) { in qla_chk_n2n_b4_login()
1675 fcport->login_gen, fcport->loop_id, fcport->scan_state, in qla24xx_fcport_handle_login()
1682 if ((fcport->loop_id != FC_NO_LOOP_ID) && in qla24xx_fcport_handle_login()
1712 if (fcport->loop_id == FC_NO_LOOP_ID) { in qla24xx_fcport_handle_login()
1730 if (fcport->loop_id == FC_NO_LOOP_ID) { in qla24xx_fcport_handle_login()
2092 fcport->loop_id, fcport->d_id.b24, in qla26xx_marker()
2114 tm_iocb->u.tmf.loop_id = fcport->loop_id; in qla26xx_marker()
2121 sp->handle, fcport->loop_id, fcport->d_id.b24, in qla26xx_marker()
2136 sp->handle, fcport->loop_id, fcport->d_id.b24, in qla26xx_marker()
2181 fcport->loop_id, fcport->d_id.b24, in __qla2x00_async_tm_cmd()
2210 sp->handle, fcport->loop_id, fcport->d_id.b24, in __qla2x00_async_tm_cmd()
2515 set_bit(ea->fcport->loop_id, vha->hw->loop_id_map); in qla24xx_handle_plogi_done_event()
2534 fcport->loop_id, fcport->d_id.b24); in qla24xx_handle_plogi_done_event()
2536 set_bit(fcport->loop_id, vha->hw->loop_id_map); in qla24xx_handle_plogi_done_event()
2564 ea->fcport->loop_id, cid.b24); in qla24xx_handle_plogi_done_event()
2566 set_bit(ea->fcport->loop_id, vha->hw->loop_id_map); in qla24xx_handle_plogi_done_event()
2567 ea->fcport->loop_id = FC_NO_LOOP_ID; in qla24xx_handle_plogi_done_event()
2597 ea->fcport->loop_id = lid; in qla24xx_handle_plogi_done_event()
3082 uint16_t loop_id, topo, sw_cap; in qla2x00_isp_firmware() local
3096 rval = qla2x00_get_adapter_id(vha, &loop_id, &al_pa, in qla2x00_isp_firmware()
5021 uint16_t loop_id; in qla2x00_configure_hba() local
5035 &loop_id, &al_pa, &area, &domain, &topo, &sw_cap); in qla2x00_configure_hba()
5039 (rval == QLA_COMMAND_ERROR && loop_id == 0x7)) { in qla2x00_configure_hba()
5046 (rval == QLA_COMMAND_ERROR && loop_id == 0x1b)) { in qla2x00_configure_hba()
5063 vha->loop_id = loop_id; in qla2x00_configure_hba()
5126 connect_type, vha->loop_id); in qla2x00_configure_hba()
5561 fcport->loop_id = FC_NO_LOOP_ID; in qla2x00_alloc_fcport()
5844 uint16_t loop_id; in qla2x00_configure_local_loop() local
5915 loop_id = gid->loop_id_2100; in qla2x00_configure_local_loop()
5917 loop_id = le16_to_cpu(gid->loop_id); in qla2x00_configure_local_loop()
5932 if (loop_id > LAST_LOCAL_LOOP_ID) in qla2x00_configure_local_loop()
5941 new_fcport->loop_id = loop_id; in qla2x00_configure_local_loop()
5949 rval2, new_fcport->loop_id); in qla2x00_configure_local_loop()
5969 fcport->loop_id = new_fcport->loop_id; in qla2x00_configure_local_loop()
5979 fcport->port_name, fcport->loop_id, in qla2x00_configure_local_loop()
6023 if (fcport->loop_id != FC_NO_LOOP_ID && in qla2x00_configure_local_loop()
6070 rval = qla2x00_set_idma_speed(vha, fcport->loop_id, fcport->fp_speed, in qla2x00_iidma_fcport()
6307 uint16_t loop_id; in qla2x00_configure_fabric() local
6313 loop_id = NPH_F_PORT; in qla2x00_configure_fabric()
6315 loop_id = SNS_FL_PORT; in qla2x00_configure_fabric()
6316 rval = qla2x00_get_port_name(vha, loop_id, vha->fabric_node_name, 1); in qla2x00_configure_fabric()
6326 rval = qla2x00_get_port_name(vha, loop_id, vha->fabric_port_name, 0); in qla2x00_configure_fabric()
6343 loop_id = NPH_SNS_LID(ha); in qla2x00_configure_fabric()
6344 rval = ha->isp_ops->fabric_login(vha, loop_id, 0xff, 0xff, in qla2x00_configure_fabric()
6349 loop_id, mb[0], mb[1], mb[2], mb[6], mb[7], rval); in qla2x00_configure_fabric()
6448 uint16_t loop_id; in qla2x00_find_all_fabric_devs() local
6513 loop_id = ha->min_external_loopid; in qla2x00_find_all_fabric_devs()
6514 for (; loop_id <= ha->max_loop_id; loop_id++) { in qla2x00_find_all_fabric_devs()
6515 if (qla2x00_is_reserved_id(vha, loop_id)) in qla2x00_find_all_fabric_devs()
6658 fcport->loop_id, in qla2x00_find_all_fabric_devs()
6720 if (fcport->loop_id != FC_NO_LOOP_ID && in qla2x00_find_all_fabric_devs()
6745 int loop_id = FC_NO_LOOP_ID; in qla2x00_reserve_mgmt_server_loop_id() local
6760 loop_id = lid; in qla2x00_reserve_mgmt_server_loop_id()
6766 return loop_id; in qla2x00_reserve_mgmt_server_loop_id()
6800 fcport->loop_id, fcport->d_id.b.domain, in qla2x00_fabric_login()
6804 rval = ha->isp_ops->fabric_login(vha, fcport->loop_id, in qla2x00_fabric_login()
6819 tmp_loopid = fcport->loop_id; in qla2x00_fabric_login()
6820 fcport->loop_id = mb[1]; in qla2x00_fabric_login()
6825 fcport->loop_id, fcport->d_id.b.domain, in qla2x00_fabric_login()
6840 *next_loopid = (fcport->loop_id + 1); in qla2x00_fabric_login()
6869 fcport->loop_id++; in qla2x00_fabric_login()
6881 *next_loopid = fcport->loop_id; in qla2x00_fabric_login()
6882 ha->isp_ops->fabric_logout(vha, fcport->loop_id, in qla2x00_fabric_login()
6897 fcport->loop_id, jiffies); in qla2x00_fabric_login()
6899 *next_loopid = fcport->loop_id; in qla2x00_fabric_login()
6900 ha->isp_ops->fabric_logout(vha, fcport->loop_id, in qla2x00_fabric_login()
9604 fcport->loop_id == FC_NO_LOOP_ID) in qla24xx_update_fcport_fcp_prio()
9616 ret = qla24xx_set_fcp_prio(vha, fcport->loop_id, priority, mb); in qla24xx_update_fcport_fcp_prio()
9622 fcport->loop_id, fcport->d_id.b.domain, in qla24xx_update_fcport_fcp_prio()
9628 "loop_id=%d port_id=%02x%02x%02x.\n", ret, fcport->loop_id, in qla24xx_update_fcport_fcp_prio()