Lines Matching refs:new_fcf_record
1665 lpfc_fab_name_match(uint8_t *fab_name, struct fcf_record *new_fcf_record) in lpfc_fab_name_match() argument
1667 if (fab_name[0] != bf_get(lpfc_fcf_record_fab_name_0, new_fcf_record)) in lpfc_fab_name_match()
1669 if (fab_name[1] != bf_get(lpfc_fcf_record_fab_name_1, new_fcf_record)) in lpfc_fab_name_match()
1671 if (fab_name[2] != bf_get(lpfc_fcf_record_fab_name_2, new_fcf_record)) in lpfc_fab_name_match()
1673 if (fab_name[3] != bf_get(lpfc_fcf_record_fab_name_3, new_fcf_record)) in lpfc_fab_name_match()
1675 if (fab_name[4] != bf_get(lpfc_fcf_record_fab_name_4, new_fcf_record)) in lpfc_fab_name_match()
1677 if (fab_name[5] != bf_get(lpfc_fcf_record_fab_name_5, new_fcf_record)) in lpfc_fab_name_match()
1679 if (fab_name[6] != bf_get(lpfc_fcf_record_fab_name_6, new_fcf_record)) in lpfc_fab_name_match()
1681 if (fab_name[7] != bf_get(lpfc_fcf_record_fab_name_7, new_fcf_record)) in lpfc_fab_name_match()
1696 lpfc_sw_name_match(uint8_t *sw_name, struct fcf_record *new_fcf_record) in lpfc_sw_name_match() argument
1698 if (sw_name[0] != bf_get(lpfc_fcf_record_switch_name_0, new_fcf_record)) in lpfc_sw_name_match()
1700 if (sw_name[1] != bf_get(lpfc_fcf_record_switch_name_1, new_fcf_record)) in lpfc_sw_name_match()
1702 if (sw_name[2] != bf_get(lpfc_fcf_record_switch_name_2, new_fcf_record)) in lpfc_sw_name_match()
1704 if (sw_name[3] != bf_get(lpfc_fcf_record_switch_name_3, new_fcf_record)) in lpfc_sw_name_match()
1706 if (sw_name[4] != bf_get(lpfc_fcf_record_switch_name_4, new_fcf_record)) in lpfc_sw_name_match()
1708 if (sw_name[5] != bf_get(lpfc_fcf_record_switch_name_5, new_fcf_record)) in lpfc_sw_name_match()
1710 if (sw_name[6] != bf_get(lpfc_fcf_record_switch_name_6, new_fcf_record)) in lpfc_sw_name_match()
1712 if (sw_name[7] != bf_get(lpfc_fcf_record_switch_name_7, new_fcf_record)) in lpfc_sw_name_match()
1727 lpfc_mac_addr_match(uint8_t *mac_addr, struct fcf_record *new_fcf_record) in lpfc_mac_addr_match() argument
1729 if (mac_addr[0] != bf_get(lpfc_fcf_record_mac_0, new_fcf_record)) in lpfc_mac_addr_match()
1731 if (mac_addr[1] != bf_get(lpfc_fcf_record_mac_1, new_fcf_record)) in lpfc_mac_addr_match()
1733 if (mac_addr[2] != bf_get(lpfc_fcf_record_mac_2, new_fcf_record)) in lpfc_mac_addr_match()
1735 if (mac_addr[3] != bf_get(lpfc_fcf_record_mac_3, new_fcf_record)) in lpfc_mac_addr_match()
1737 if (mac_addr[4] != bf_get(lpfc_fcf_record_mac_4, new_fcf_record)) in lpfc_mac_addr_match()
1739 if (mac_addr[5] != bf_get(lpfc_fcf_record_mac_5, new_fcf_record)) in lpfc_mac_addr_match()
1762 struct fcf_record *new_fcf_record in __lpfc_update_fcf_record_pri() argument
1770 fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; in __lpfc_update_fcf_record_pri()
1784 struct fcf_record *new_fcf_record) in lpfc_copy_fcf_record() argument
1788 bf_get(lpfc_fcf_record_fab_name_0, new_fcf_record); in lpfc_copy_fcf_record()
1790 bf_get(lpfc_fcf_record_fab_name_1, new_fcf_record); in lpfc_copy_fcf_record()
1792 bf_get(lpfc_fcf_record_fab_name_2, new_fcf_record); in lpfc_copy_fcf_record()
1794 bf_get(lpfc_fcf_record_fab_name_3, new_fcf_record); in lpfc_copy_fcf_record()
1796 bf_get(lpfc_fcf_record_fab_name_4, new_fcf_record); in lpfc_copy_fcf_record()
1798 bf_get(lpfc_fcf_record_fab_name_5, new_fcf_record); in lpfc_copy_fcf_record()
1800 bf_get(lpfc_fcf_record_fab_name_6, new_fcf_record); in lpfc_copy_fcf_record()
1802 bf_get(lpfc_fcf_record_fab_name_7, new_fcf_record); 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()
1816 bf_get(lpfc_fcf_record_switch_name_0, new_fcf_record); in lpfc_copy_fcf_record()
1818 bf_get(lpfc_fcf_record_switch_name_1, new_fcf_record); in lpfc_copy_fcf_record()
1820 bf_get(lpfc_fcf_record_switch_name_2, new_fcf_record); in lpfc_copy_fcf_record()
1822 bf_get(lpfc_fcf_record_switch_name_3, new_fcf_record); in lpfc_copy_fcf_record()
1824 bf_get(lpfc_fcf_record_switch_name_4, new_fcf_record); in lpfc_copy_fcf_record()
1826 bf_get(lpfc_fcf_record_switch_name_5, new_fcf_record); in lpfc_copy_fcf_record()
1828 bf_get(lpfc_fcf_record_switch_name_6, new_fcf_record); in lpfc_copy_fcf_record()
1830 bf_get(lpfc_fcf_record_switch_name_7, new_fcf_record); in lpfc_copy_fcf_record()
1848 struct fcf_record *new_fcf_record, uint32_t addr_mode, in __lpfc_update_fcf_record() argument
1854 lpfc_copy_fcf_record(fcf_rec, new_fcf_record); in __lpfc_update_fcf_record()
1860 bf_get(lpfc_fcf_record_fcf_index, new_fcf_record), in __lpfc_update_fcf_record()
1861 new_fcf_record); in __lpfc_update_fcf_record()
1941 struct fcf_record *new_fcf_record, in lpfc_match_fcf_conn_list() argument
1950 if (new_fcf_record->vlan_bitmap[i]) { in lpfc_match_fcf_conn_list()
1953 while (!((new_fcf_record->vlan_bitmap[i] >> j) & 1)) { in lpfc_match_fcf_conn_list()
1962 if (!bf_get(lpfc_fcf_record_fcf_avail, new_fcf_record) || in lpfc_match_fcf_conn_list()
1963 !bf_get(lpfc_fcf_record_fcf_valid, new_fcf_record) || in lpfc_match_fcf_conn_list()
1964 bf_get(lpfc_fcf_record_fcf_sol, new_fcf_record)) in lpfc_match_fcf_conn_list()
1970 new_fcf_record); in lpfc_match_fcf_conn_list()
1985 new_fcf_record); in lpfc_match_fcf_conn_list()
2009 new_fcf_record)) in lpfc_match_fcf_conn_list()
2013 new_fcf_record)) in lpfc_match_fcf_conn_list()
2020 if (!(new_fcf_record->vlan_bitmap in lpfc_match_fcf_conn_list()
2030 if (!(bf_get(lpfc_fcf_record_mac_addr_prov, new_fcf_record) in lpfc_match_fcf_conn_list()
2046 new_fcf_record) & LPFC_FCF_SPMA)) in lpfc_match_fcf_conn_list()
2054 new_fcf_record) & LPFC_FCF_FPMA)) in lpfc_match_fcf_conn_list()
2072 new_fcf_record); in lpfc_match_fcf_conn_list()
2231 struct fcf_record *new_fcf_record; in lpfc_sli4_fcf_rec_mbox_parse() local
2271 new_fcf_record = (struct fcf_record *)(virt_addr + in lpfc_sli4_fcf_rec_mbox_parse()
2273 lpfc_sli_pcimem_bcopy(new_fcf_record, new_fcf_record, in lpfc_sli4_fcf_rec_mbox_parse()
2275 new_fcf_record->word137 = le32_to_cpu(new_fcf_record->word137); in lpfc_sli4_fcf_rec_mbox_parse()
2276 new_fcf_record->word138 = le32_to_cpu(new_fcf_record->word138); in lpfc_sli4_fcf_rec_mbox_parse()
2278 return new_fcf_record; in lpfc_sli4_fcf_rec_mbox_parse()
2358 struct fcf_record *new_fcf_record, in lpfc_sli4_fcf_record_match() argument
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()
2521 struct fcf_record *new_fcf_record) in lpfc_sli4_fcf_pri_list_add() argument
2533 fcf_index, new_fcf_record->fip_priority, 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()
2619 struct fcf_record *new_fcf_record; in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() local
2634 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2636 if (!new_fcf_record) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2647 rc = lpfc_match_fcf_conn_list(phba, new_fcf_record, &boot_flag, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2651 lpfc_sli4_log_fcf_record_info(phba, new_fcf_record, vlan_id, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2662 new_fcf_record)); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2667 new_fcf_record), in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2669 new_fcf_record), in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2671 new_fcf_record), in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2673 new_fcf_record)); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2676 new_fcf_record, LPFC_FCOE_IGNORE_VID)) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2677 if (bf_get(lpfc_fcf_record_fcf_index, new_fcf_record) != in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2684 new_fcf_record), in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2712 fcf_index = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2714 new_fcf_record); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2729 new_fcf_record, vlan_id)) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2730 if (bf_get(lpfc_fcf_record_fcf_index, new_fcf_record) == in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2754 new_fcf_record), in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2791 new_fcf_record)); 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()
2810 if (new_fcf_record->fip_priority < fcf_rec->priority) { in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2817 new_fcf_record)); 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()
2833 new_fcf_record)); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2836 new_fcf_record, in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2852 new_fcf_record)); 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()
2881 new_fcf_record)); in lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2993 struct fcf_record *new_fcf_record; in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() local
3010 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
3012 if (!new_fcf_record) { in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
3023 rc = lpfc_match_fcf_conn_list(phba, new_fcf_record, &boot_flag, in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
3027 lpfc_sli4_log_fcf_record_info(phba, new_fcf_record, vlan_id, in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
3030 fcf_index = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
3062 new_fcf_record, addr_mode, vlan_id, in lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
3099 struct fcf_record *new_fcf_record; in lpfc_mbx_cmpl_read_fcf_rec() local
3114 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, in lpfc_mbx_cmpl_read_fcf_rec()
3116 if (!new_fcf_record) { in lpfc_mbx_cmpl_read_fcf_rec()
3124 rc = lpfc_match_fcf_conn_list(phba, new_fcf_record, &boot_flag, in lpfc_mbx_cmpl_read_fcf_rec()
3128 lpfc_sli4_log_fcf_record_info(phba, new_fcf_record, vlan_id, in lpfc_mbx_cmpl_read_fcf_rec()
3135 fcf_index = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); in lpfc_mbx_cmpl_read_fcf_rec()
3137 rc = lpfc_sli4_fcf_pri_list_add(phba, fcf_index, new_fcf_record); in lpfc_mbx_cmpl_read_fcf_rec()