Lines Matching refs:eeprom_size
203 static u16 iwl_eeprom_query16(const u8 *eeprom, size_t eeprom_size, int offset) in iwl_eeprom_query16() argument
205 if (WARN_ON(offset + sizeof(u16) > eeprom_size)) in iwl_eeprom_query16()
210 static u32 eeprom_indirect_address(const u8 *eeprom, size_t eeprom_size, in eeprom_indirect_address() argument
220 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address()
224 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address()
228 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address()
232 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address()
236 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address()
240 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address()
244 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address()
248 offset = iwl_eeprom_query16(eeprom, eeprom_size, in eeprom_indirect_address()
260 static const u8 *iwl_eeprom_query_addr(const u8 *eeprom, size_t eeprom_size, in iwl_eeprom_query_addr() argument
263 u32 address = eeprom_indirect_address(eeprom, eeprom_size, offset); in iwl_eeprom_query_addr()
265 if (WARN_ON(address >= eeprom_size)) in iwl_eeprom_query_addr()
271 static int iwl_eeprom_read_calib(const u8 *eeprom, size_t eeprom_size, in iwl_eeprom_read_calib() argument
276 hdr = (void *)iwl_eeprom_query_addr(eeprom, eeprom_size, in iwl_eeprom_read_calib()
414 const u8 *eeprom, size_t eeprom_size, in iwl_eeprom_enhanced_txpower() argument
425 txp_len = (__le16 *)iwl_eeprom_query_addr(eeprom, eeprom_size, in iwl_eeprom_enhanced_txpower()
429 txp_array = (void *)iwl_eeprom_query_addr(eeprom, eeprom_size, in iwl_eeprom_enhanced_txpower()
474 const u8 *eeprom, size_t eeprom_size, in iwl_init_band_reference() argument
483 *ch_info = (void *)iwl_eeprom_query_addr(eeprom, eeprom_size, offset); in iwl_init_band_reference()
569 const u8 *eeprom, size_t eeprom_size) in iwl_init_channel_map() argument
583 iwl_init_band_reference(cfg, eeprom, eeprom_size, band, in iwl_init_channel_map()
654 iwl_eeprom_enhanced_txpower(dev, data, eeprom, eeprom_size, in iwl_init_channel_map()
679 iwl_init_band_reference(cfg, eeprom, eeprom_size, band, in iwl_init_channel_map()
811 const u8 *eeprom, size_t eeprom_size) in iwl_init_sbands() argument
815 eeprom, eeprom_size); in iwl_init_sbands()
846 const u8 *eeprom, size_t eeprom_size) in iwl_parse_eeprom_data() argument
862 tmp = iwl_eeprom_query_addr(eeprom, eeprom_size, EEPROM_MAC_ADDRESS); in iwl_parse_eeprom_data()
866 data->n_hw_addrs = iwl_eeprom_query16(eeprom, eeprom_size, in iwl_parse_eeprom_data()
869 if (iwl_eeprom_read_calib(eeprom, eeprom_size, data)) in iwl_parse_eeprom_data()
872 tmp = iwl_eeprom_query_addr(eeprom, eeprom_size, EEPROM_XTAL); in iwl_parse_eeprom_data()
877 tmp = iwl_eeprom_query_addr(eeprom, eeprom_size, in iwl_parse_eeprom_data()
883 tmp = iwl_eeprom_query_addr(eeprom, eeprom_size, in iwl_parse_eeprom_data()
890 radio_cfg = iwl_eeprom_query16(eeprom, eeprom_size, in iwl_parse_eeprom_data()
899 sku = iwl_eeprom_query16(eeprom, eeprom_size, in iwl_parse_eeprom_data()
909 data->nvm_version = iwl_eeprom_query16(eeprom, eeprom_size, in iwl_parse_eeprom_data()
924 iwl_init_sbands(trans, cfg, data, eeprom, eeprom_size); in iwl_parse_eeprom_data()