Lines Matching defs:data

42  * @data: command buffer (size [bytes] = length)
51 void *data, bool last_command, bool read_shadow_ram,
77 return ice_aq_send_cmd(hw, &desc, data, length, cd);
85 * @data: buffer to return data in (sized to fit the specified length)
92 * Returns a status code on failure. Note that the data pointer may be
96 ice_read_flat_nvm(struct ice_hw *hw, u32 offset, u32 *length, u8 *data,
110 ice_debug(hw, ICE_DBG_NVM, "NVM error: requested data is beyond Shadow RAM limit\n");
134 data + bytes_read, last_cmd,
153 * @data: command buffer (size [bytes] = length)
162 u16 length, void *data, bool last_command, u8 command_flags,
190 return ice_aq_send_cmd(hw, &desc, data, length, cd);
235 * @data: buffer for result
240 * Reads single or multiple feature/field ID and data (0x0704)
243 ice_aq_read_nvm_cfg(struct ice_hw *hw, u8 cmd_flags, u16 field_id, void *data,
259 status = ice_aq_send_cmd(hw, &desc, data, buf_size, cd);
270 * @data: buffer for result
275 * Writes single or multiple feature/field ID and data (0x0705)
278 ice_aq_write_nvm_cfg(struct ice_hw *hw, u8 cmd_flags, void *data, u16 buf_size,
294 return ice_aq_send_cmd(hw, &desc, data, buf_size, cd);
332 * @data: word read from the Shadow RAM
336 int ice_read_sr_word_aq(struct ice_hw *hw, u16 offset, u16 *data)
353 *data = LE16_TO_CPU(data_local);
362 * @data: buffer with words to write to the Shadow RAM
368 ice_write_sr_aq(struct ice_hw *hw, u32 offset, u16 words, __le16 *data,
377 status = ice_aq_update_nvm(hw, 0, 2 * offset, 2 * words, data,
388 * @data: words read from the Shadow RAM
390 * Reads 16 bit words (data buf) from the Shadow RAM. Ownership of the NVM is
394 ice_read_sr_buf_aq(struct ice_hw *hw, u16 offset, u16 *words, u16 *data)
404 status = ice_read_flat_nvm(hw, offset * 2, &bytes, (u8 *)data, true);
411 data[i] = LE16_TO_CPU(((_FORCE_ __le16 *)data)[i]);
522 * @data: storage for the word read from the flash
523 * @length: bytes of data to read
525 * Read data from the specified flash module. The bank parameter indicates
530 * hw->flash.banks data being setup by ice_determine_active_flash_banks()
535 u32 offset, u8 *data, u32 length)
553 status = ice_read_flat_nvm(hw, start + offset, &length, data, false);
565 * @data: storage for returned word value
571 ice_read_nvm_module(struct ice_hw *hw, enum ice_bank_select bank, u32 offset, u16 *data)
579 *data = LE16_TO_CPU(data_local);
625 * @data: storage for returned word value
631 ice_read_nvm_sr_copy(struct ice_hw *hw, enum ice_bank_select bank, u32 offset, u16 *data)
642 return ice_read_nvm_module(hw, bank, hdr_len + offset, data);
650 * @data: storage for returned word value
653 * Note that unlike the NVM module, the CSS data is stored at the end of the
657 ice_read_orom_module(struct ice_hw *hw, enum ice_bank_select bank, u32 offset, u16 *data)
665 *data = LE16_TO_CPU(data_local);
671 * ice_read_netlist_module - Read data from the netlist module area
675 * @data: storage for returned word value
680 ice_read_netlist_module(struct ice_hw *hw, enum ice_bank_select bank, u32 offset, u16 *data)
688 *data = LE16_TO_CPU(data_local);
697 * @data: word read from the Shadow RAM
701 int ice_read_sr_word(struct ice_hw *hw, u16 offset, u16 *data)
707 status = ice_read_sr_word_aq(hw, offset, data);
836 ice_debug(hw, ICE_DBG_INIT, "Buffer too small for PBA data.\n");
932 * inactive NVM bank. Used to access version data for a pending update that
988 * @civd: storage for the Option ROM CIVD data.
990 * Searches through the Option ROM flash contents to locate the CIVD data for
1013 /* Scan the memory buffer to locate the CIVD data section */
1020 ice_debug(hw, ICE_DBG_NVM, "Unable to read Option ROM data\n");
1035 ice_debug(hw, ICE_DBG_NVM, "Unable to read CIVD data\n");
1044 ice_debug(hw, ICE_DBG_NVM, "Found CIVD data with invalid checksum of %u\n",
1056 ice_debug(hw, ICE_DBG_NVM, "Unable to locate CIVD data within the Option ROM\n");
1080 ice_debug(hw, ICE_DBG_NVM, "Failed to locate valid Option ROM CIVD data\n");
1104 * Reads the Option ROM version and security revision data for the inactive
1105 * section of flash. Used to access version data for a pending update that has
1207 * Read the netlist version data from the inactive netlist bank. Used to
1208 * extract version data of a pending flash update in order to display the
1209 * version data.
1238 u8 data;
1240 status = ice_read_flat_nvm(hw, offset, &len, &data, false);
1480 * @data: words read from the Shadow RAM
1482 * Reads 16 bit words (data buf) from the SR using the ice_read_nvm_buf_aq
1487 ice_read_sr_buf(struct ice_hw *hw, u16 offset, u16 *words, u16 *data)
1493 status = ice_read_sr_buf_aq(hw, offset, words, data);
1504 * @data: word to write to the Shadow RAM
1512 __ice_write_sr_word(struct ice_hw *hw, u32 offset, const u16 *data)
1514 __le16 data_local = CPU_TO_LE16(*data);
1527 * @data: words to write to the Shadow RAM
1535 __ice_write_sr_buf(struct ice_hw *hw, u32 offset, u16 words, const u16 *data)
1550 data_local[i] = CPU_TO_LE16(data[i]);
1579 u16 *data;
1587 data = (u16 *)vmem;
1608 status = ice_read_sr_buf_aq(hw, i, &words, data);
1625 checksum_local += data[i % ICE_SR_SECTOR_SIZE_IN_WORDS];
1810 struct ice_aqc_nvm_minsrev data;
1820 status = ice_aq_read_nvm(hw, ICE_AQC_NVM_MINSREV_MOD_ID, 0, sizeof(data),
1821 &data, true, false, NULL);
1828 valid = LE16_TO_CPU(data.validity);
1834 minsrev_l = LE16_TO_CPU(data.nvm_minsrev_l);
1835 minsrev_h = LE16_TO_CPU(data.nvm_minsrev_h);
1845 minsrev_l = LE16_TO_CPU(data.orom_minsrev_l);
1846 minsrev_h = LE16_TO_CPU(data.orom_minsrev_h);
1856 * ice_update_nvm_minsrevs - Update minimum security revision TLV data in flash
1868 struct ice_aqc_nvm_minsrev data;
1882 /* Get current data */
1883 status = ice_aq_read_nvm(hw, ICE_AQC_NVM_MINSREV_MOD_ID, 0, sizeof(data),
1884 &data, true, false, NULL);
1889 data.nvm_minsrev_l = CPU_TO_LE16(minsrevs->nvm & 0xFFFF);
1890 data.nvm_minsrev_h = CPU_TO_LE16(minsrevs->nvm >> 16);
1891 data.validity |= CPU_TO_LE16(ICE_AQC_NVM_MINSREV_NVM_VALID);
1895 data.orom_minsrev_l = CPU_TO_LE16(minsrevs->orom & 0xFFFF);
1896 data.orom_minsrev_h = CPU_TO_LE16(minsrevs->orom >> 16);
1897 data.validity |= CPU_TO_LE16(ICE_AQC_NVM_MINSREV_OROM_VALID);
1900 /* Update flash data */
1901 status = ice_aq_update_nvm(hw, ICE_AQC_NVM_MINSREV_MOD_ID, 0, sizeof(data), &data,
1918 * @data: storage for the driver NVM features
1920 * Fill in the data section of the NVM access request with a copy of the NVM
1925 union ice_nvm_access_data *data)
1935 /* Initialize the data buffer to zeros */
1936 ice_memset(data, 0, cmd->data_size, ICE_NONDMA_MEM);
1938 /* Fill in the features data */
1939 data->drv_features.major = ICE_NVM_ACCESS_MAJOR_VER;
1940 data->drv_features.minor = ICE_NVM_ACCESS_MINOR_VER;
1941 data->drv_features.size = sizeof(struct ice_nvm_features);
1942 data->drv_features.features[0] = ICE_NVM_FEATURES_0_REG_ACCESS;
2038 * @data: storage for the register value read
2044 union ice_nvm_access_data *data)
2050 /* Always initialize the output data, even on failure */
2051 ice_memset(data, 0, cmd->data_size, ICE_NONDMA_MEM);
2061 /* Read the register and store the contents in the data field */
2062 data->regval = rd32(hw, cmd->offset);
2071 * @data: NVM access data to write
2077 union ice_nvm_access_data *data)
2101 cmd->offset, data->regval);
2103 /* Write the data field to the specified register */
2104 wr32(hw, cmd->offset, data->regval);
2113 * @data: pointer to read or return data
2119 * For valid commands, perform the necessary function, copying the data into
2120 * the provided data buffer.
2124 union ice_nvm_access_data *data)
2151 return ice_nvm_access_get_features(cmd, data);
2153 return ice_nvm_access_read(hw, cmd, data);
2155 return ice_nvm_access_write(hw, cmd, data);
2162 * ice_nvm_sanitize_operate - Clear the user data
2165 * Clear user data from NVM using AQ command (0x070C).