Lines Matching full:banks
249 struct ice_bank_info *banks = &hw->flash.banks; in ice_get_flash_bank_offset() local
256 offset = banks->nvm_ptr; in ice_get_flash_bank_offset()
257 size = banks->nvm_size; in ice_get_flash_bank_offset()
258 active_bank = banks->nvm_bank; in ice_get_flash_bank_offset()
261 offset = banks->orom_ptr; in ice_get_flash_bank_offset()
262 size = banks->orom_size; in ice_get_flash_bank_offset()
263 active_bank = banks->orom_bank; in ice_get_flash_bank_offset()
266 offset = banks->netlist_ptr; in ice_get_flash_bank_offset()
267 size = banks->netlist_size; in ice_get_flash_bank_offset()
268 active_bank = banks->netlist_bank; in ice_get_flash_bank_offset()
317 * hw->flash.banks data being setup by ice_determine_active_flash_banks()
637 orom_data = vzalloc(hw->flash.banks.orom_size); in ice_get_orom_civd_data()
642 orom_data, hw->flash.banks.orom_size); in ice_get_orom_civd_data()
650 for (offset = 0; (offset + 512) <= hw->flash.banks.orom_size; offset += 512) { in ice_get_orom_civd_data()
935 * Read the Shadow RAM control word and determine which banks are active for
943 struct ice_bank_info *banks = &hw->flash.banks; in ice_determine_active_flash_banks() local
960 banks->nvm_bank = ICE_1ST_FLASH_BANK; in ice_determine_active_flash_banks()
962 banks->nvm_bank = ICE_2ND_FLASH_BANK; in ice_determine_active_flash_banks()
965 banks->orom_bank = ICE_1ST_FLASH_BANK; in ice_determine_active_flash_banks()
967 banks->orom_bank = ICE_2ND_FLASH_BANK; in ice_determine_active_flash_banks()
970 banks->netlist_bank = ICE_1ST_FLASH_BANK; in ice_determine_active_flash_banks()
972 banks->netlist_bank = ICE_2ND_FLASH_BANK; in ice_determine_active_flash_banks()
974 status = ice_read_sr_pointer(hw, ICE_SR_1ST_NVM_BANK_PTR, &banks->nvm_ptr); in ice_determine_active_flash_banks()
980 status = ice_read_sr_area_size(hw, ICE_SR_NVM_BANK_SIZE, &banks->nvm_size); in ice_determine_active_flash_banks()
986 status = ice_read_sr_pointer(hw, ICE_SR_1ST_OROM_BANK_PTR, &banks->orom_ptr); in ice_determine_active_flash_banks()
992 status = ice_read_sr_area_size(hw, ICE_SR_OROM_BANK_SIZE, &banks->orom_size); in ice_determine_active_flash_banks()
998 status = ice_read_sr_pointer(hw, ICE_SR_NETLIST_BANK_PTR, &banks->netlist_ptr); in ice_determine_active_flash_banks()
1004 status = ice_read_sr_area_size(hw, ICE_SR_NETLIST_BANK_SIZE, &banks->netlist_size); in ice_determine_active_flash_banks()
1055 ice_debug(hw, ICE_DBG_NVM, "Failed to determine active flash banks.\n"); in ice_init_nvm()
1114 * Update the control word with the required banks' validity bits
1117 * cmd_flags controls which banks to activate, the preservation level to use