Searched refs:fcf_rec (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_hbadisc.c | 1181 fcf_pri->fcf_rec.flag = 0; lpfc_sli4_clear_fcf_rr_bmask() 1344 fcf_pri->fcf_rec.fcf_index = fcf_index; __lpfc_update_fcf_record_pri() 1346 fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; __lpfc_update_fcf_record_pri() 1359 lpfc_copy_fcf_record(struct lpfc_fcf_rec *fcf_rec, lpfc_copy_fcf_record() argument 1363 fcf_rec->fabric_name[0] = lpfc_copy_fcf_record() 1365 fcf_rec->fabric_name[1] = lpfc_copy_fcf_record() 1367 fcf_rec->fabric_name[2] = lpfc_copy_fcf_record() 1369 fcf_rec->fabric_name[3] = lpfc_copy_fcf_record() 1371 fcf_rec->fabric_name[4] = lpfc_copy_fcf_record() 1373 fcf_rec->fabric_name[5] = lpfc_copy_fcf_record() 1375 fcf_rec->fabric_name[6] = lpfc_copy_fcf_record() 1377 fcf_rec->fabric_name[7] = lpfc_copy_fcf_record() 1380 fcf_rec->mac_addr[0] = bf_get(lpfc_fcf_record_mac_0, new_fcf_record); lpfc_copy_fcf_record() 1381 fcf_rec->mac_addr[1] = bf_get(lpfc_fcf_record_mac_1, new_fcf_record); lpfc_copy_fcf_record() 1382 fcf_rec->mac_addr[2] = bf_get(lpfc_fcf_record_mac_2, new_fcf_record); lpfc_copy_fcf_record() 1383 fcf_rec->mac_addr[3] = bf_get(lpfc_fcf_record_mac_3, new_fcf_record); lpfc_copy_fcf_record() 1384 fcf_rec->mac_addr[4] = bf_get(lpfc_fcf_record_mac_4, new_fcf_record); lpfc_copy_fcf_record() 1385 fcf_rec->mac_addr[5] = bf_get(lpfc_fcf_record_mac_5, new_fcf_record); lpfc_copy_fcf_record() 1387 fcf_rec->fcf_indx = bf_get(lpfc_fcf_record_fcf_index, new_fcf_record); lpfc_copy_fcf_record() 1389 fcf_rec->priority = new_fcf_record->fip_priority; lpfc_copy_fcf_record() 1391 fcf_rec->switch_name[0] = lpfc_copy_fcf_record() 1393 fcf_rec->switch_name[1] = lpfc_copy_fcf_record() 1395 fcf_rec->switch_name[2] = lpfc_copy_fcf_record() 1397 fcf_rec->switch_name[3] = lpfc_copy_fcf_record() 1399 fcf_rec->switch_name[4] = lpfc_copy_fcf_record() 1401 fcf_rec->switch_name[5] = lpfc_copy_fcf_record() 1403 fcf_rec->switch_name[6] = lpfc_copy_fcf_record() 1405 fcf_rec->switch_name[7] = lpfc_copy_fcf_record() 1412 * @fcf_rec: pointer to driver fcf record. 1423 __lpfc_update_fcf_record(struct lpfc_hba *phba, struct lpfc_fcf_rec *fcf_rec, __lpfc_update_fcf_record() argument 1428 lpfc_copy_fcf_record(fcf_rec, new_fcf_record); __lpfc_update_fcf_record() 1430 fcf_rec->addr_mode = addr_mode; __lpfc_update_fcf_record() 1431 fcf_rec->vlan_id = vlan_id; __lpfc_update_fcf_record() 1432 fcf_rec->flag |= (flag | RECORD_VALID); __lpfc_update_fcf_record() 1919 * @fcf_rec: pointer to an existing FCF record. 1931 struct lpfc_fcf_rec *fcf_rec, lpfc_sli4_fcf_record_match() 1936 if (!lpfc_vlan_id_match(fcf_rec->vlan_id, new_vlan_id)) lpfc_sli4_fcf_record_match() 1938 if (!lpfc_mac_addr_match(fcf_rec->mac_addr, new_fcf_record)) lpfc_sli4_fcf_record_match() 1940 if (!lpfc_sw_name_match(fcf_rec->switch_name, new_fcf_record)) lpfc_sli4_fcf_record_match() 1942 if (!lpfc_fab_name_match(fcf_rec->fabric_name, new_fcf_record)) lpfc_sli4_fcf_record_match() 1944 if (fcf_rec->priority != new_fcf_record->fip_priority) lpfc_sli4_fcf_record_match() 2025 fcf_index, new_fcf_pri->fcf_rec.priority, lpfc_sli4_fcf_pri_list_del() 2026 new_fcf_pri->fcf_rec.flag); lpfc_sli4_fcf_pri_list_del() 2028 if (new_fcf_pri->fcf_rec.flag & LPFC_FCF_ON_PRI_LIST) { lpfc_sli4_fcf_pri_list_del() 2030 new_fcf_pri->fcf_rec.priority) lpfc_sli4_fcf_pri_list_del() 2033 new_fcf_pri->fcf_rec.flag &= ~LPFC_FCF_ON_PRI_LIST; lpfc_sli4_fcf_pri_list_del() 2054 new_fcf_pri->fcf_rec.flag |= LPFC_FCF_FLOGI_FAILED; lpfc_sli4_set_fcf_flogi_fail() 2088 new_fcf_pri->fcf_rec.flag); lpfc_sli4_fcf_pri_list_add() 2090 if (new_fcf_pri->fcf_rec.flag & LPFC_FCF_ON_PRI_LIST) lpfc_sli4_fcf_pri_list_add() 2092 new_fcf_pri->fcf_rec.fcf_index = fcf_index; lpfc_sli4_fcf_pri_list_add() 2093 new_fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; lpfc_sli4_fcf_pri_list_add() 2097 new_fcf_pri->fcf_rec.fcf_index); lpfc_sli4_fcf_pri_list_add() 2107 current_fcf_pri = phba->fcf.fcf_pri[last_index].fcf_rec.priority; lpfc_sli4_fcf_pri_list_add() 2108 if (new_fcf_pri->fcf_rec.priority <= current_fcf_pri) { lpfc_sli4_fcf_pri_list_add() 2110 if (new_fcf_pri->fcf_rec.priority < current_fcf_pri) { lpfc_sli4_fcf_pri_list_add() 2119 new_fcf_pri->fcf_rec.fcf_index); lpfc_sli4_fcf_pri_list_add() 2125 if (new_fcf_pri->fcf_rec.priority <= lpfc_sli4_fcf_pri_list_add() 2126 fcf_pri->fcf_rec.priority) { lpfc_sli4_fcf_pri_list_add() 2137 || new_fcf_pri->fcf_rec.priority < lpfc_sli4_fcf_pri_list_add() 2138 next_fcf_pri->fcf_rec.priority) { lpfc_sli4_fcf_pri_list_add() 2143 if (new_fcf_pri->fcf_rec.priority > fcf_pri->fcf_rec.priority) lpfc_sli4_fcf_pri_list_add() 2150 new_fcf_pri->fcf_rec.flag = LPFC_FCF_ON_PRI_LIST; lpfc_sli4_fcf_pri_list_add() 2176 struct lpfc_fcf_rec *fcf_rec = NULL; lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() local 2329 fcf_rec = &phba->fcf.failover_rec; lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2331 fcf_rec = &phba->fcf.current_rec; lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2339 if (boot_flag && !(fcf_rec->flag & BOOT_ENABLE)) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2344 fcf_rec->fcf_indx, 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() 2357 if (!boot_flag && (fcf_rec->flag & BOOT_ENABLE)) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2365 if (new_fcf_record->fip_priority < fcf_rec->priority) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2370 fcf_rec->fcf_indx, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2373 __lpfc_update_fcf_record(phba, fcf_rec, new_fcf_record, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2377 } else if (new_fcf_record->fip_priority == fcf_rec->priority) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2386 fcf_rec->fcf_indx, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2390 __lpfc_update_fcf_record(phba, fcf_rec, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2402 if (fcf_rec) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2408 __lpfc_update_fcf_record(phba, fcf_rec, new_fcf_record, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 1930 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
|
H A D | lpfc_sli4.h | 216 struct lpfc_fcf_pri_rec fcf_rec; member in struct:lpfc_fcf_pri
|
H A D | lpfc_sli.c | 16248 if (fcf_pri->fcf_rec.flag & LPFC_FCF_FLOGI_FAILED) lpfc_check_next_fcf_pri_level() 16255 next_fcf_pri = fcf_pri->fcf_rec.priority; lpfc_check_next_fcf_pri_level() 16257 if (fcf_pri->fcf_rec.priority == next_fcf_pri) { lpfc_check_next_fcf_pri_level() 16259 fcf_pri->fcf_rec.fcf_index); lpfc_check_next_fcf_pri_level() 16272 fcf_pri->fcf_rec.flag &= ~LPFC_FCF_FLOGI_FAILED; lpfc_check_next_fcf_pri_level() 16278 next_fcf_pri = fcf_pri->fcf_rec.priority; lpfc_check_next_fcf_pri_level() 16280 if (fcf_pri->fcf_rec.priority == next_fcf_pri) { lpfc_check_next_fcf_pri_level() 16282 fcf_pri->fcf_rec.fcf_index); lpfc_check_next_fcf_pri_level() 16351 phba->fcf.fcf_pri[next_fcf_index].fcf_rec.flag); lpfc_sli4_fcf_rr_next_index_get() 16357 phba->fcf.fcf_pri[next_fcf_index].fcf_rec.flag & lpfc_sli4_fcf_rr_next_index_get() 16424 if (fcf_pri->fcf_rec.fcf_index == fcf_index) { lpfc_sli4_fcf_rr_index_clear()
|
Completed in 294 milliseconds