Lines Matching full:read
11 * @length: length of the section to be read (in bytes from the offset)
14 * @read_shadow_ram: tell if this is a shadow RAM read
17 * Read the NVM using the admin queue commands (0x0701)
49 * ice_read_flat_nvm - Read portion of NVM by flat offset
52 * @length: (in) number of bytes to read; (out) number of bytes actually read
54 * @read_shadow_ram: if true, read from shadow RAM instead of NVM
57 * breaks read requests across Shadow RAM sectors and ensures that no single
58 * read request exceeds the maximum 4KB read for a single AdminQ command.
74 /* Verify the length of the read if this is for the Shadow RAM */ in ice_read_flat_nvm()
83 /* ice_aq_read_nvm cannot read more than 4KB at a time. in ice_read_flat_nvm()
84 * Additionally, a read from the Shadow RAM may not cross over in ice_read_flat_nvm()
182 * @offset: offset of the Shadow RAM word to read (0x000000 - 0x001FFF)
183 * @data: word read from the Shadow RAM
209 * @access: NVM access type (read or write)
239 * @bank: whether to read from the active or inactive flash bank
240 * @module: the module to read from
305 * ice_read_flash_module - Read a word from one of the main NVM modules
307 * @bank: which bank of the module to read
308 * @module: the module to read
310 * @data: storage for the word read from the flash
311 * @length: bytes of data to read
313 * Read data from the specified flash module. The bank parameter indicates
314 * whether or not to read from the active bank or the inactive bank of that
317 * The word will be read using flat NVM access, and relies on the
347 * ice_read_nvm_module - Read from the active main NVM module
349 * @bank: whether to read from active or inactive NVM module
350 * @offset: offset into the NVM module to read, in words
353 * Read the specified word from the active NVM module. This includes the CSS
371 * ice_read_nvm_sr_copy - Read a word from the Shadow RAM copy in the NVM bank
373 * @bank: whether to read from the active or inactive NVM module
374 * @offset: offset into the Shadow RAM copy to read, in words
377 * Read the specified word from the copy of the Shadow RAM found in the
387 * ice_read_netlist_module - Read data from the netlist module area
389 * @bank: whether to read from the active or inactive module
390 * @offset: offset into the netlist to read from
393 * Read a word from the specified netlist bank.
412 * @offset: offset of the Shadow RAM word to read (0x000000 - 0x001FFF)
413 * @data: word read from the Shadow RAM
439 * use these to read the variable length TLV value.
456 ice_debug(hw, ICE_DBG_INIT, "Failed to read PFA length.\n"); in ice_get_pfa_module_tlv()
467 /* Read TLV type */ in ice_get_pfa_module_tlv()
470 ice_debug(hw, ICE_DBG_INIT, "Failed to read TLV type.\n"); in ice_get_pfa_module_tlv()
473 /* Read TLV length */ in ice_get_pfa_module_tlv()
476 ice_debug(hw, ICE_DBG_INIT, "Failed to read TLV length.\n"); in ice_get_pfa_module_tlv()
515 ice_debug(hw, ICE_DBG_INIT, "Failed to read PBA Block TLV.\n"); in ice_read_pba_string()
522 ice_debug(hw, ICE_DBG_INIT, "Failed to read PBA Section size.\n"); in ice_read_pba_string()
543 ice_debug(hw, ICE_DBG_INIT, "Failed to read PBA Block word %d.\n", i); in ice_read_pba_string()
556 * ice_get_nvm_ver_info - Read NVM version information
558 * @bank: whether to read from the active or inactive flash bank
561 * Read the NVM EETRACK ID and map version of the main NVM image bank, filling
572 ice_debug(hw, ICE_DBG_NVM, "Failed to read DEV starter version.\n"); in ice_get_nvm_ver_info()
581 ice_debug(hw, ICE_DBG_NVM, "Failed to read EETRACK lo.\n"); in ice_get_nvm_ver_info()
586 ice_debug(hw, ICE_DBG_NVM, "Failed to read EETRACK hi.\n"); in ice_get_nvm_ver_info()
596 * ice_get_inactive_nvm_ver - Read Option ROM version from the inactive bank
612 * @bank: whether to read from the active or inactive flash module
637 ice_debug(hw, ICE_DBG_NVM, "Unable to read Option ROM CIVD data\n"); in ice_get_orom_civd_data()
664 * ice_get_orom_ver_info - Read Option ROM version information
666 * @bank: whether to read from the active or inactive flash module
669 * Read Option ROM version and security revision from the Option ROM flash
695 * ice_get_inactive_orom_ver - Read Option ROM version from the inactive bank
711 * @bank: whether to read from the active or inactive flash bank
756 /* Read out the entire Netlist ID Block at once. */ in ice_get_netlist_info()
775 /* Read the left most 4 bytes of SHA */ in ice_get_netlist_info()
790 * Read the netlist version data from the inactive netlist bank. Used to
849 * ice_read_sr_pointer - Read the value of a Shadow RAM pointer word
851 * @offset: the word offset of the Shadow RAM word to read
852 * @pointer: pointer value read from Shadow RAM
854 * Read the given Shadow RAM word, and convert it to a pointer value specified
882 * ice_read_sr_area_size - Read an area size from a Shadow RAM word
884 * @offset: the word offset of the Shadow RAM to read
885 * @size: size value read from the Shadow RAM
887 * Read the given Shadow RAM word, and convert it to an area size value
914 * Read the Shadow RAM control word and determine which banks are active for
915 * the NVM, OROM, and Netlist modules. Also read and calculate the associated
917 * structure for later use in order to calculate the correct offset to read
929 ice_debug(hw, ICE_DBG_NVM, "Failed to read the Shadow RAM control word\n"); in ice_determine_active_flash_banks()
956 ice_debug(hw, ICE_DBG_NVM, "Failed to read NVM bank pointer\n"); in ice_determine_active_flash_banks()
962 ice_debug(hw, ICE_DBG_NVM, "Failed to read NVM bank area size\n"); in ice_determine_active_flash_banks()
968 ice_debug(hw, ICE_DBG_NVM, "Failed to read OROM bank pointer\n"); in ice_determine_active_flash_banks()
974 ice_debug(hw, ICE_DBG_NVM, "Failed to read OROM bank area size\n"); in ice_determine_active_flash_banks()
980 ice_debug(hw, ICE_DBG_NVM, "Failed to read Netlist bank pointer\n"); in ice_determine_active_flash_banks()
986 ice_debug(hw, ICE_DBG_NVM, "Failed to read Netlist bank area size\n"); in ice_determine_active_flash_banks()
1041 ice_debug(hw, ICE_DBG_INIT, "Failed to read NVM info.\n"); in ice_init_nvm()
1047 ice_debug(hw, ICE_DBG_INIT, "Failed to read Option ROM info.\n"); in ice_init_nvm()
1049 /* read the netlist version information */ in ice_init_nvm()
1052 ice_debug(hw, ICE_DBG_INIT, "Failed to read netlist info.\n"); in ice_init_nvm()