Searched refs:fcf_rec (Results 1 - 3 of 3) sorted by relevance
/linux-4.4.14/drivers/scsi/lpfc/ |
H A D | lpfc_hbadisc.c | 1155 fcf_pri->fcf_rec.flag = 0; lpfc_sli4_clear_fcf_rr_bmask() 1318 fcf_pri->fcf_rec.fcf_index = fcf_index; __lpfc_update_fcf_record_pri() 1320 fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; __lpfc_update_fcf_record_pri() 1333 lpfc_copy_fcf_record(struct lpfc_fcf_rec *fcf_rec, lpfc_copy_fcf_record() argument 1337 fcf_rec->fabric_name[0] = lpfc_copy_fcf_record() 1339 fcf_rec->fabric_name[1] = lpfc_copy_fcf_record() 1341 fcf_rec->fabric_name[2] = lpfc_copy_fcf_record() 1343 fcf_rec->fabric_name[3] = lpfc_copy_fcf_record() 1345 fcf_rec->fabric_name[4] = lpfc_copy_fcf_record() 1347 fcf_rec->fabric_name[5] = lpfc_copy_fcf_record() 1349 fcf_rec->fabric_name[6] = lpfc_copy_fcf_record() 1351 fcf_rec->fabric_name[7] = 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() 1365 fcf_rec->switch_name[0] = lpfc_copy_fcf_record() 1367 fcf_rec->switch_name[1] = lpfc_copy_fcf_record() 1369 fcf_rec->switch_name[2] = lpfc_copy_fcf_record() 1371 fcf_rec->switch_name[3] = lpfc_copy_fcf_record() 1373 fcf_rec->switch_name[4] = lpfc_copy_fcf_record() 1375 fcf_rec->switch_name[5] = lpfc_copy_fcf_record() 1377 fcf_rec->switch_name[6] = lpfc_copy_fcf_record() 1379 fcf_rec->switch_name[7] = lpfc_copy_fcf_record() 1386 * @fcf_rec: pointer to driver fcf record. 1397 __lpfc_update_fcf_record(struct lpfc_hba *phba, struct lpfc_fcf_rec *fcf_rec, __lpfc_update_fcf_record() argument 1402 lpfc_copy_fcf_record(fcf_rec, new_fcf_record); __lpfc_update_fcf_record() 1404 fcf_rec->addr_mode = addr_mode; __lpfc_update_fcf_record() 1405 fcf_rec->vlan_id = vlan_id; __lpfc_update_fcf_record() 1406 fcf_rec->flag |= (flag | RECORD_VALID); __lpfc_update_fcf_record() 1893 * @fcf_rec: pointer to an existing FCF record. 1905 struct lpfc_fcf_rec *fcf_rec, lpfc_sli4_fcf_record_match() 1910 if (!lpfc_vlan_id_match(fcf_rec->vlan_id, new_vlan_id)) 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() 1999 fcf_index, new_fcf_pri->fcf_rec.priority, lpfc_sli4_fcf_pri_list_del() 2000 new_fcf_pri->fcf_rec.flag); lpfc_sli4_fcf_pri_list_del() 2002 if (new_fcf_pri->fcf_rec.flag & LPFC_FCF_ON_PRI_LIST) { lpfc_sli4_fcf_pri_list_del() 2004 new_fcf_pri->fcf_rec.priority) lpfc_sli4_fcf_pri_list_del() 2007 new_fcf_pri->fcf_rec.flag &= ~LPFC_FCF_ON_PRI_LIST; lpfc_sli4_fcf_pri_list_del() 2028 new_fcf_pri->fcf_rec.flag |= LPFC_FCF_FLOGI_FAILED; lpfc_sli4_set_fcf_flogi_fail() 2062 new_fcf_pri->fcf_rec.flag); lpfc_sli4_fcf_pri_list_add() 2064 if (new_fcf_pri->fcf_rec.flag & LPFC_FCF_ON_PRI_LIST) lpfc_sli4_fcf_pri_list_add() 2066 new_fcf_pri->fcf_rec.fcf_index = fcf_index; lpfc_sli4_fcf_pri_list_add() 2067 new_fcf_pri->fcf_rec.priority = new_fcf_record->fip_priority; lpfc_sli4_fcf_pri_list_add() 2071 new_fcf_pri->fcf_rec.fcf_index); lpfc_sli4_fcf_pri_list_add() 2081 current_fcf_pri = phba->fcf.fcf_pri[last_index].fcf_rec.priority; lpfc_sli4_fcf_pri_list_add() 2082 if (new_fcf_pri->fcf_rec.priority <= current_fcf_pri) { lpfc_sli4_fcf_pri_list_add() 2084 if (new_fcf_pri->fcf_rec.priority < current_fcf_pri) { lpfc_sli4_fcf_pri_list_add() 2093 new_fcf_pri->fcf_rec.fcf_index); lpfc_sli4_fcf_pri_list_add() 2099 if (new_fcf_pri->fcf_rec.priority <= lpfc_sli4_fcf_pri_list_add() 2100 fcf_pri->fcf_rec.priority) { lpfc_sli4_fcf_pri_list_add() 2111 || new_fcf_pri->fcf_rec.priority < lpfc_sli4_fcf_pri_list_add() 2112 next_fcf_pri->fcf_rec.priority) { lpfc_sli4_fcf_pri_list_add() 2117 if (new_fcf_pri->fcf_rec.priority > fcf_pri->fcf_rec.priority) lpfc_sli4_fcf_pri_list_add() 2124 new_fcf_pri->fcf_rec.flag = LPFC_FCF_ON_PRI_LIST; lpfc_sli4_fcf_pri_list_add() 2150 struct lpfc_fcf_rec *fcf_rec = NULL; lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() local 2303 fcf_rec = &phba->fcf.failover_rec; lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2305 fcf_rec = &phba->fcf.current_rec; lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2313 if (boot_flag && !(fcf_rec->flag & BOOT_ENABLE)) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2318 fcf_rec->fcf_indx, 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() 2331 if (!boot_flag && (fcf_rec->flag & BOOT_ENABLE)) { 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() 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() 2351 } else if (new_fcf_record->fip_priority == fcf_rec->priority) { lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2360 fcf_rec->fcf_indx, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2364 __lpfc_update_fcf_record(phba, fcf_rec, lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2376 if (fcf_rec) { 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() 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
|
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 | 16222 if (fcf_pri->fcf_rec.flag & LPFC_FCF_FLOGI_FAILED) lpfc_check_next_fcf_pri_level() 16229 next_fcf_pri = fcf_pri->fcf_rec.priority; lpfc_check_next_fcf_pri_level() 16231 if (fcf_pri->fcf_rec.priority == next_fcf_pri) { lpfc_check_next_fcf_pri_level() 16233 fcf_pri->fcf_rec.fcf_index); lpfc_check_next_fcf_pri_level() 16246 fcf_pri->fcf_rec.flag &= ~LPFC_FCF_FLOGI_FAILED; lpfc_check_next_fcf_pri_level() 16252 next_fcf_pri = fcf_pri->fcf_rec.priority; lpfc_check_next_fcf_pri_level() 16254 if (fcf_pri->fcf_rec.priority == next_fcf_pri) { lpfc_check_next_fcf_pri_level() 16256 fcf_pri->fcf_rec.fcf_index); lpfc_check_next_fcf_pri_level() 16325 phba->fcf.fcf_pri[next_fcf_index].fcf_rec.flag); lpfc_sli4_fcf_rr_next_index_get() 16331 phba->fcf.fcf_pri[next_fcf_index].fcf_rec.flag & lpfc_sli4_fcf_rr_next_index_get() 16398 if (fcf_pri->fcf_rec.fcf_index == fcf_index) { lpfc_sli4_fcf_rr_index_clear()
|
Completed in 231 milliseconds