Lines Matching refs:fcf_rec
1609 fcf_pri->fcf_rec.flag = 0; in lpfc_sli4_clear_fcf_rr_bmask()
1768 fcf_pri->fcf_rec.fcf_index = fcf_index; in __lpfc_update_fcf_record_pri()
1770 fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; in __lpfc_update_fcf_record_pri()
1783 lpfc_copy_fcf_record(struct lpfc_fcf_rec *fcf_rec, in lpfc_copy_fcf_record() argument
1787 fcf_rec->fabric_name[0] = in lpfc_copy_fcf_record()
1789 fcf_rec->fabric_name[1] = in lpfc_copy_fcf_record()
1791 fcf_rec->fabric_name[2] = in lpfc_copy_fcf_record()
1793 fcf_rec->fabric_name[3] = in lpfc_copy_fcf_record()
1795 fcf_rec->fabric_name[4] = in lpfc_copy_fcf_record()
1797 fcf_rec->fabric_name[5] = in lpfc_copy_fcf_record()
1799 fcf_rec->fabric_name[6] = in lpfc_copy_fcf_record()
1801 fcf_rec->fabric_name[7] = in lpfc_copy_fcf_record()
1804 fcf_rec->mac_addr[0] = bf_get(lpfc_fcf_record_mac_0, new_fcf_record); in lpfc_copy_fcf_record()
1805 fcf_rec->mac_addr[1] = bf_get(lpfc_fcf_record_mac_1, new_fcf_record); in lpfc_copy_fcf_record()
1806 fcf_rec->mac_addr[2] = bf_get(lpfc_fcf_record_mac_2, new_fcf_record); in lpfc_copy_fcf_record()
1807 fcf_rec->mac_addr[3] = bf_get(lpfc_fcf_record_mac_3, new_fcf_record); in lpfc_copy_fcf_record()
1808 fcf_rec->mac_addr[4] = bf_get(lpfc_fcf_record_mac_4, new_fcf_record); in lpfc_copy_fcf_record()
1809 fcf_rec->mac_addr[5] = bf_get(lpfc_fcf_record_mac_5, new_fcf_record); in lpfc_copy_fcf_record()
1811 fcf_rec->fcf_indx = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); in lpfc_copy_fcf_record()
1813 fcf_rec->priority = new_fcf_record->fip_priority; in lpfc_copy_fcf_record()
1815 fcf_rec->switch_name[0] = in lpfc_copy_fcf_record()
1817 fcf_rec->switch_name[1] = in lpfc_copy_fcf_record()
1819 fcf_rec->switch_name[2] = in lpfc_copy_fcf_record()
1821 fcf_rec->switch_name[3] = in lpfc_copy_fcf_record()
1823 fcf_rec->switch_name[4] = in lpfc_copy_fcf_record()
1825 fcf_rec->switch_name[5] = in lpfc_copy_fcf_record()
1827 fcf_rec->switch_name[6] = in lpfc_copy_fcf_record()
1829 fcf_rec->switch_name[7] = in lpfc_copy_fcf_record()
1847 __lpfc_update_fcf_record(struct lpfc_hba *phba, struct lpfc_fcf_rec *fcf_rec, in __lpfc_update_fcf_record() argument
1854 lpfc_copy_fcf_record(fcf_rec, new_fcf_record); in __lpfc_update_fcf_record()
1856 fcf_rec->addr_mode = addr_mode; in __lpfc_update_fcf_record()
1857 fcf_rec->vlan_id = vlan_id; in __lpfc_update_fcf_record()
1858 fcf_rec->flag |= (flag | RECORD_VALID); in __lpfc_update_fcf_record()
2357 struct lpfc_fcf_rec *fcf_rec, in lpfc_sli4_fcf_record_match() argument
2362 if (!lpfc_vlan_id_match(fcf_rec->vlan_id, new_vlan_id)) in lpfc_sli4_fcf_record_match()
2364 if (!lpfc_mac_addr_match(fcf_rec->mac_addr, new_fcf_record)) in lpfc_sli4_fcf_record_match()
2366 if (!lpfc_sw_name_match(fcf_rec->switch_name, new_fcf_record)) in lpfc_sli4_fcf_record_match()
2368 if (!lpfc_fab_name_match(fcf_rec->fabric_name, new_fcf_record)) in lpfc_sli4_fcf_record_match()
2370 if (fcf_rec->priority != new_fcf_record->fip_priority) in lpfc_sli4_fcf_record_match()
2470 fcf_index, new_fcf_pri->fcf_rec.priority, in lpfc_sli4_fcf_pri_list_del()
2471 new_fcf_pri->fcf_rec.flag); in lpfc_sli4_fcf_pri_list_del()
2473 if (new_fcf_pri->fcf_rec.flag & LPFC_FCF_ON_PRI_LIST) { in lpfc_sli4_fcf_pri_list_del()
2475 new_fcf_pri->fcf_rec.priority) in lpfc_sli4_fcf_pri_list_del()
2478 new_fcf_pri->fcf_rec.flag &= ~LPFC_FCF_ON_PRI_LIST; in lpfc_sli4_fcf_pri_list_del()
2499 new_fcf_pri->fcf_rec.flag |= LPFC_FCF_FLOGI_FAILED; in lpfc_sli4_set_fcf_flogi_fail()
2534 new_fcf_pri->fcf_rec.flag); in lpfc_sli4_fcf_pri_list_add()
2536 if (new_fcf_pri->fcf_rec.flag & LPFC_FCF_ON_PRI_LIST) in lpfc_sli4_fcf_pri_list_add()
2538 new_fcf_pri->fcf_rec.fcf_index = fcf_index; in lpfc_sli4_fcf_pri_list_add()
2539 new_fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; in lpfc_sli4_fcf_pri_list_add()
2543 new_fcf_pri->fcf_rec.fcf_index); in lpfc_sli4_fcf_pri_list_add()
2553 current_fcf_pri = phba->fcf.fcf_pri[last_index].fcf_rec.priority; in lpfc_sli4_fcf_pri_list_add()
2554 if (new_fcf_pri->fcf_rec.priority <= current_fcf_pri) { in lpfc_sli4_fcf_pri_list_add()
2556 if (new_fcf_pri->fcf_rec.priority < current_fcf_pri) { in lpfc_sli4_fcf_pri_list_add()
2565 new_fcf_pri->fcf_rec.fcf_index); in lpfc_sli4_fcf_pri_list_add()
2571 if (new_fcf_pri->fcf_rec.priority <= in lpfc_sli4_fcf_pri_list_add()
2572 fcf_pri->fcf_rec.priority) { in lpfc_sli4_fcf_pri_list_add()
2583 || new_fcf_pri->fcf_rec.priority < in lpfc_sli4_fcf_pri_list_add()
2584 next_fcf_pri->fcf_rec.priority) { in lpfc_sli4_fcf_pri_list_add()
2589 if (new_fcf_pri->fcf_rec.priority > fcf_pri->fcf_rec.priority) in lpfc_sli4_fcf_pri_list_add()
2596 new_fcf_pri->fcf_rec.flag = LPFC_FCF_ON_PRI_LIST; in lpfc_sli4_fcf_pri_list_add()
2622 struct lpfc_fcf_rec *fcf_rec = NULL; in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() local
2774 fcf_rec = &phba->fcf.failover_rec; in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2776 fcf_rec = &phba->fcf.current_rec; in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2784 if (boot_flag && !(fcf_rec->flag & BOOT_ENABLE)) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2789 fcf_rec->fcf_indx, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2792 __lpfc_update_fcf_record(phba, fcf_rec, new_fcf_record, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2802 if (!boot_flag && (fcf_rec->flag & BOOT_ENABLE)) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2810 if (new_fcf_record->fip_priority < fcf_rec->priority) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2815 fcf_rec->fcf_indx, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2818 __lpfc_update_fcf_record(phba, fcf_rec, new_fcf_record, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2822 } else if (new_fcf_record->fip_priority == fcf_rec->priority) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2831 fcf_rec->fcf_indx, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2835 __lpfc_update_fcf_record(phba, fcf_rec, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2847 if (fcf_rec) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2853 __lpfc_update_fcf_record(phba, fcf_rec, new_fcf_record, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()