Searched refs:new_fcf_record (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_hbadisc.c1208 * @new_fcf_record: pointer to fcf record.
1215 lpfc_fab_name_match(uint8_t *fab_name, struct fcf_record *new_fcf_record) lpfc_fab_name_match() argument
1217 if (fab_name[0] != bf_get(lpfc_fcf_record_fab_name_0, new_fcf_record)) lpfc_fab_name_match()
1219 if (fab_name[1] != bf_get(lpfc_fcf_record_fab_name_1, new_fcf_record)) lpfc_fab_name_match()
1221 if (fab_name[2] != bf_get(lpfc_fcf_record_fab_name_2, new_fcf_record)) lpfc_fab_name_match()
1223 if (fab_name[3] != bf_get(lpfc_fcf_record_fab_name_3, new_fcf_record)) lpfc_fab_name_match()
1225 if (fab_name[4] != bf_get(lpfc_fcf_record_fab_name_4, new_fcf_record)) lpfc_fab_name_match()
1227 if (fab_name[5] != bf_get(lpfc_fcf_record_fab_name_5, new_fcf_record)) lpfc_fab_name_match()
1229 if (fab_name[6] != bf_get(lpfc_fcf_record_fab_name_6, new_fcf_record)) lpfc_fab_name_match()
1231 if (fab_name[7] != bf_get(lpfc_fcf_record_fab_name_7, new_fcf_record)) lpfc_fab_name_match()
1239 * @new_fcf_record: pointer to fcf record.
1246 lpfc_sw_name_match(uint8_t *sw_name, struct fcf_record *new_fcf_record) lpfc_sw_name_match() argument
1248 if (sw_name[0] != bf_get(lpfc_fcf_record_switch_name_0, new_fcf_record)) lpfc_sw_name_match()
1250 if (sw_name[1] != bf_get(lpfc_fcf_record_switch_name_1, new_fcf_record)) lpfc_sw_name_match()
1252 if (sw_name[2] != bf_get(lpfc_fcf_record_switch_name_2, new_fcf_record)) lpfc_sw_name_match()
1254 if (sw_name[3] != bf_get(lpfc_fcf_record_switch_name_3, new_fcf_record)) lpfc_sw_name_match()
1256 if (sw_name[4] != bf_get(lpfc_fcf_record_switch_name_4, new_fcf_record)) lpfc_sw_name_match()
1258 if (sw_name[5] != bf_get(lpfc_fcf_record_switch_name_5, new_fcf_record)) lpfc_sw_name_match()
1260 if (sw_name[6] != bf_get(lpfc_fcf_record_switch_name_6, new_fcf_record)) lpfc_sw_name_match()
1262 if (sw_name[7] != bf_get(lpfc_fcf_record_switch_name_7, new_fcf_record)) lpfc_sw_name_match()
1270 * @new_fcf_record: pointer to fcf record.
1277 lpfc_mac_addr_match(uint8_t *mac_addr, struct fcf_record *new_fcf_record) lpfc_mac_addr_match() argument
1279 if (mac_addr[0] != bf_get(lpfc_fcf_record_mac_0, new_fcf_record)) lpfc_mac_addr_match()
1281 if (mac_addr[1] != bf_get(lpfc_fcf_record_mac_1, new_fcf_record)) lpfc_mac_addr_match()
1283 if (mac_addr[2] != bf_get(lpfc_fcf_record_mac_2, new_fcf_record)) lpfc_mac_addr_match()
1285 if (mac_addr[3] != bf_get(lpfc_fcf_record_mac_3, new_fcf_record)) lpfc_mac_addr_match()
1287 if (mac_addr[4] != bf_get(lpfc_fcf_record_mac_4, new_fcf_record)) lpfc_mac_addr_match()
1289 if (mac_addr[5] != bf_get(lpfc_fcf_record_mac_5, new_fcf_record)) lpfc_mac_addr_match()
1305 * @new_fcf_record: pointer to hba fcf record.
1312 struct fcf_record *new_fcf_record __lpfc_update_fcf_record_pri()
1320 fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; __lpfc_update_fcf_record_pri()
1327 * @new_fcf_record: pointer to fcf record.
1334 struct fcf_record *new_fcf_record) lpfc_copy_fcf_record()
1338 bf_get(lpfc_fcf_record_fab_name_0, new_fcf_record); lpfc_copy_fcf_record()
1340 bf_get(lpfc_fcf_record_fab_name_1, new_fcf_record); lpfc_copy_fcf_record()
1342 bf_get(lpfc_fcf_record_fab_name_2, new_fcf_record); lpfc_copy_fcf_record()
1344 bf_get(lpfc_fcf_record_fab_name_3, new_fcf_record); lpfc_copy_fcf_record()
1346 bf_get(lpfc_fcf_record_fab_name_4, new_fcf_record); lpfc_copy_fcf_record()
1348 bf_get(lpfc_fcf_record_fab_name_5, new_fcf_record); lpfc_copy_fcf_record()
1350 bf_get(lpfc_fcf_record_fab_name_6, new_fcf_record); lpfc_copy_fcf_record()
1352 bf_get(lpfc_fcf_record_fab_name_7, new_fcf_record); lpfc_copy_fcf_record()
1354 fcf_rec->mac_addr[0] = bf_get(lpfc_fcf_record_mac_0, new_fcf_record); lpfc_copy_fcf_record()
1355 fcf_rec->mac_addr[1] = bf_get(lpfc_fcf_record_mac_1, new_fcf_record); lpfc_copy_fcf_record()
1356 fcf_rec->mac_addr[2] = bf_get(lpfc_fcf_record_mac_2, new_fcf_record); lpfc_copy_fcf_record()
1357 fcf_rec->mac_addr[3] = bf_get(lpfc_fcf_record_mac_3, new_fcf_record); lpfc_copy_fcf_record()
1358 fcf_rec->mac_addr[4] = bf_get(lpfc_fcf_record_mac_4, new_fcf_record); lpfc_copy_fcf_record()
1359 fcf_rec->mac_addr[5] = bf_get(lpfc_fcf_record_mac_5, new_fcf_record); lpfc_copy_fcf_record()
1361 fcf_rec->fcf_indx = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); lpfc_copy_fcf_record()
1363 fcf_rec->priority = new_fcf_record->fip_priority; lpfc_copy_fcf_record()
1366 bf_get(lpfc_fcf_record_switch_name_0, new_fcf_record); lpfc_copy_fcf_record()
1368 bf_get(lpfc_fcf_record_switch_name_1, new_fcf_record); lpfc_copy_fcf_record()
1370 bf_get(lpfc_fcf_record_switch_name_2, new_fcf_record); lpfc_copy_fcf_record()
1372 bf_get(lpfc_fcf_record_switch_name_3, new_fcf_record); lpfc_copy_fcf_record()
1374 bf_get(lpfc_fcf_record_switch_name_4, new_fcf_record); lpfc_copy_fcf_record()
1376 bf_get(lpfc_fcf_record_switch_name_5, new_fcf_record); lpfc_copy_fcf_record()
1378 bf_get(lpfc_fcf_record_switch_name_6, new_fcf_record); lpfc_copy_fcf_record()
1380 bf_get(lpfc_fcf_record_switch_name_7, new_fcf_record); lpfc_copy_fcf_record()
1387 * @new_fcf_record: pointer to hba fcf record.
1398 struct fcf_record *new_fcf_record, uint32_t addr_mode, __lpfc_update_fcf_record()
1402 lpfc_copy_fcf_record(fcf_rec, new_fcf_record); __lpfc_update_fcf_record()
1408 bf_get(lpfc_fcf_record_fcf_index, new_fcf_record), __lpfc_update_fcf_record()
1409 new_fcf_record); __lpfc_update_fcf_record()
1474 * @new_fcf_record: pointer to fcf record.
1491 struct fcf_record *new_fcf_record, lpfc_match_fcf_conn_list()
1500 if (new_fcf_record->vlan_bitmap[i]) { lpfc_match_fcf_conn_list()
1503 while (!((new_fcf_record->vlan_bitmap[i] >> j) & 1)) { lpfc_match_fcf_conn_list()
1512 if (!bf_get(lpfc_fcf_record_fcf_avail, new_fcf_record) || lpfc_match_fcf_conn_list()
1513 !bf_get(lpfc_fcf_record_fcf_valid, new_fcf_record) || lpfc_match_fcf_conn_list()
1514 bf_get(lpfc_fcf_record_fcf_sol, new_fcf_record)) lpfc_match_fcf_conn_list()
1520 new_fcf_record); lpfc_match_fcf_conn_list()
1535 new_fcf_record); lpfc_match_fcf_conn_list()
1559 new_fcf_record)) lpfc_match_fcf_conn_list()
1563 new_fcf_record)) lpfc_match_fcf_conn_list()
1570 if (!(new_fcf_record->vlan_bitmap lpfc_match_fcf_conn_list()
1580 if (!(bf_get(lpfc_fcf_record_mac_addr_prov, new_fcf_record) lpfc_match_fcf_conn_list()
1596 new_fcf_record) & LPFC_FCF_SPMA)) lpfc_match_fcf_conn_list()
1604 new_fcf_record) & LPFC_FCF_FPMA)) lpfc_match_fcf_conn_list()
1622 new_fcf_record); lpfc_match_fcf_conn_list()
1780 struct fcf_record *new_fcf_record; lpfc_sli4_fcf_rec_mbox_parse() local
1819 new_fcf_record = (struct fcf_record *)(virt_addr + lpfc_sli4_fcf_rec_mbox_parse()
1821 lpfc_sli_pcimem_bcopy(new_fcf_record, new_fcf_record, lpfc_sli4_fcf_rec_mbox_parse()
1823 new_fcf_record->word137 = le32_to_cpu(new_fcf_record->word137); lpfc_sli4_fcf_rec_mbox_parse()
1824 new_fcf_record->word138 = le32_to_cpu(new_fcf_record->word138); lpfc_sli4_fcf_rec_mbox_parse()
1826 return new_fcf_record; lpfc_sli4_fcf_rec_mbox_parse()
1894 * @new_fcf_record: pointer to a new FCF record.
1906 struct fcf_record *new_fcf_record, lpfc_sli4_fcf_record_match()
1912 if (!lpfc_mac_addr_match(fcf_rec->mac_addr, new_fcf_record)) lpfc_sli4_fcf_record_match()
1914 if (!lpfc_sw_name_match(fcf_rec->switch_name, new_fcf_record)) lpfc_sli4_fcf_record_match()
1916 if (!lpfc_fab_name_match(fcf_rec->fabric_name, new_fcf_record)) lpfc_sli4_fcf_record_match()
1918 if (fcf_rec->priority != new_fcf_record->fip_priority) lpfc_sli4_fcf_record_match()
2049 struct fcf_record *new_fcf_record) lpfc_sli4_fcf_pri_list_add()
2061 fcf_index, new_fcf_record->fip_priority, lpfc_sli4_fcf_pri_list_add()
2067 new_fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; lpfc_sli4_fcf_pri_list_add()
2147 struct fcf_record *new_fcf_record; lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() local
2162 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2164 if (!new_fcf_record) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2177 rc = lpfc_match_fcf_conn_list(phba, new_fcf_record, &boot_flag, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2181 lpfc_sli4_log_fcf_record_info(phba, new_fcf_record, vlan_id, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2192 new_fcf_record)); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2197 new_fcf_record), lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2199 new_fcf_record), lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2201 new_fcf_record), lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2203 new_fcf_record)); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2206 new_fcf_record, LPFC_FCOE_IGNORE_VID)) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2207 if (bf_get(lpfc_fcf_record_fcf_index, new_fcf_record) != lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2213 new_fcf_record), lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2241 fcf_index = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2243 new_fcf_record); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2258 new_fcf_record, vlan_id)) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2259 if (bf_get(lpfc_fcf_record_fcf_index, new_fcf_record) == lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2283 new_fcf_record), lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2320 new_fcf_record)); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2321 __lpfc_update_fcf_record(phba, fcf_rec, new_fcf_record, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2339 if (new_fcf_record->fip_priority < fcf_rec->priority) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2346 new_fcf_record)); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2347 __lpfc_update_fcf_record(phba, fcf_rec, new_fcf_record, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2351 } else if (new_fcf_record->fip_priority == fcf_rec->priority) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2362 new_fcf_record)); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2365 new_fcf_record, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2381 new_fcf_record)); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2382 __lpfc_update_fcf_record(phba, fcf_rec, new_fcf_record, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2410 new_fcf_record)); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
2523 struct fcf_record *new_fcf_record; lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() local
2540 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
2542 if (!new_fcf_record) { lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
2553 rc = lpfc_match_fcf_conn_list(phba, new_fcf_record, &boot_flag, lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
2557 lpfc_sli4_log_fcf_record_info(phba, new_fcf_record, vlan_id, lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
2560 fcf_index = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
2592 new_fcf_record, addr_mode, vlan_id, lpfc_mbx_cmpl_fcf_rr_read_fcf_rec()
2629 struct fcf_record *new_fcf_record; lpfc_mbx_cmpl_read_fcf_rec() local
2644 new_fcf_record = lpfc_sli4_fcf_rec_mbox_parse(phba, mboxq, lpfc_mbx_cmpl_read_fcf_rec()
2646 if (!new_fcf_record) { lpfc_mbx_cmpl_read_fcf_rec()
2654 rc = lpfc_match_fcf_conn_list(phba, new_fcf_record, &boot_flag, lpfc_mbx_cmpl_read_fcf_rec()
2658 lpfc_sli4_log_fcf_record_info(phba, new_fcf_record, vlan_id, lpfc_mbx_cmpl_read_fcf_rec()
2665 fcf_index = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); lpfc_mbx_cmpl_read_fcf_rec()
2667 rc = lpfc_sli4_fcf_pri_list_add(phba, fcf_index, new_fcf_record); lpfc_mbx_cmpl_read_fcf_rec()
1333 lpfc_copy_fcf_record(struct lpfc_fcf_rec *fcf_rec, struct fcf_record *new_fcf_record) lpfc_copy_fcf_record() argument
1397 __lpfc_update_fcf_record(struct lpfc_hba *phba, struct lpfc_fcf_rec *fcf_rec, struct fcf_record *new_fcf_record, uint32_t addr_mode, uint16_t vlan_id, uint32_t flag) __lpfc_update_fcf_record() argument
1490 lpfc_match_fcf_conn_list(struct lpfc_hba *phba, struct fcf_record *new_fcf_record, uint32_t *boot_flag, uint32_t *addr_mode, uint16_t *vlan_id) lpfc_match_fcf_conn_list() argument
1904 lpfc_sli4_fcf_record_match(struct lpfc_hba *phba, struct lpfc_fcf_rec *fcf_rec, struct fcf_record *new_fcf_record, uint16_t new_vlan_id) lpfc_sli4_fcf_record_match() argument
2047 lpfc_sli4_fcf_pri_list_add(struct lpfc_hba *phba, uint16_t fcf_index, struct fcf_record *new_fcf_record) lpfc_sli4_fcf_pri_list_add() argument

Completed in 82 milliseconds