/kernel/linux/linux-5.10/drivers/thunderbolt/ |
D | nvm.c | 26 struct tb_nvm *nvm; in tb_nvm_alloc() local 29 nvm = kzalloc(sizeof(*nvm), GFP_KERNEL); in tb_nvm_alloc() 30 if (!nvm) in tb_nvm_alloc() 35 kfree(nvm); in tb_nvm_alloc() 39 nvm->id = ret; in tb_nvm_alloc() 40 nvm->dev = dev; in tb_nvm_alloc() 42 return nvm; in tb_nvm_alloc() 57 int tb_nvm_add_active(struct tb_nvm *nvm, size_t size, nvmem_reg_read_t reg_read) in tb_nvm_add_active() argument 67 config.id = nvm->id; in tb_nvm_add_active() 71 config.dev = nvm->dev; in tb_nvm_add_active() [all …]
|
D | retimer.c | 22 struct tb_nvm *nvm = priv; in tb_retimer_nvm_read() local 23 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in tb_retimer_nvm_read() 46 struct tb_nvm *nvm = priv; in tb_retimer_nvm_write() local 47 struct tb_retimer *rt = tb_to_retimer(nvm->dev); in tb_retimer_nvm_write() 53 ret = tb_nvm_write_buf(nvm, offset, val, bytes); in tb_retimer_nvm_write() 61 struct tb_nvm *nvm; in tb_retimer_nvm_add() local 65 nvm = tb_nvm_alloc(&rt->dev); in tb_retimer_nvm_add() 66 if (IS_ERR(nvm)) in tb_retimer_nvm_add() 67 return PTR_ERR(nvm); in tb_retimer_nvm_add() 74 nvm->major = val >> 16; in tb_retimer_nvm_add() [all …]
|
D | switch.c | 106 const u8 *buf = sw->nvm->buf; in nvm_validate_and_write() 113 image_size = sw->nvm->buf_data_size; in nvm_validate_and_write() 167 sw->nvm->flushed = true; in nvm_validate_and_write() 331 struct tb_nvm *nvm = priv; in tb_switch_nvm_read() local 332 struct tb_switch *sw = tb_to_switch(nvm->dev); in tb_switch_nvm_read() 355 struct tb_nvm *nvm = priv; in tb_switch_nvm_write() local 356 struct tb_switch *sw = tb_to_switch(nvm->dev); in tb_switch_nvm_write() 368 ret = tb_nvm_write_buf(nvm, offset, val, bytes); in tb_switch_nvm_write() 376 struct tb_nvm *nvm; in tb_switch_nvm_add() local 396 nvm = tb_nvm_alloc(&sw->dev); in tb_switch_nvm_add() [all …]
|
D | Makefile | 5 thunderbolt-objs += nvm.o retimer.o quirks.o
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
D | e1000_nvm.c | 22 udelay(hw->nvm.delay_usec); in igb_raise_eec_clk() 37 udelay(hw->nvm.delay_usec); in igb_lower_eec_clk() 52 struct e1000_nvm_info *nvm = &hw->nvm; in igb_shift_out_eec_bits() local 57 if (nvm->type == e1000_nvm_eeprom_spi) in igb_shift_out_eec_bits() 69 udelay(nvm->delay_usec); in igb_shift_out_eec_bits() 194 struct e1000_nvm_info *nvm = &hw->nvm; in igb_standby_nvm() local 197 if (nvm->type == e1000_nvm_eeprom_spi) { in igb_standby_nvm() 202 udelay(nvm->delay_usec); in igb_standby_nvm() 206 udelay(nvm->delay_usec); in igb_standby_nvm() 221 if (hw->nvm.type == e1000_nvm_eeprom_spi) { in e1000_stop_nvm() [all …]
|
D | e1000_i210.c | 25 s32 timeout = hw->nvm.word_size + 1; in igb_get_hw_semaphore_i210() 200 if (!(hw->nvm.ops.acquire(hw))) { in igb_read_nvm_srrd_i210() 203 hw->nvm.ops.release(hw); in igb_read_nvm_srrd_i210() 230 struct e1000_nvm_info *nvm = &hw->nvm; in igb_write_nvm_srwr() local 238 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in igb_write_nvm_srwr() 300 if (!(hw->nvm.ops.acquire(hw))) { in igb_write_nvm_srwr_i210() 303 hw->nvm.ops.release(hw); in igb_write_nvm_srwr_i210() 543 if (!(hw->nvm.ops.acquire(hw))) { in igb_validate_nvm_checksum_i210() 549 read_op_ptr = hw->nvm.ops.read; in igb_validate_nvm_checksum_i210() 550 hw->nvm.ops.read = igb_read_nvm_eerd; in igb_validate_nvm_checksum_i210() [all …]
|
D | e1000_82575.c | 329 struct e1000_nvm_info *nvm = &hw->nvm; in igb_init_nvm_params_82575() local 347 nvm->word_size = BIT(size); in igb_init_nvm_params_82575() 348 nvm->opcode_bits = 8; in igb_init_nvm_params_82575() 349 nvm->delay_usec = 1; in igb_init_nvm_params_82575() 351 switch (nvm->override) { in igb_init_nvm_params_82575() 353 nvm->page_size = 32; in igb_init_nvm_params_82575() 354 nvm->address_bits = 16; in igb_init_nvm_params_82575() 357 nvm->page_size = 8; in igb_init_nvm_params_82575() 358 nvm->address_bits = 8; in igb_init_nvm_params_82575() 361 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in igb_init_nvm_params_82575() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/ |
D | nvm.c | 18 udelay(hw->nvm.delay_usec); in e1000_raise_eec_clk() 33 udelay(hw->nvm.delay_usec); in e1000_lower_eec_clk() 48 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_shift_out_eec_bits() local 53 if (nvm->type == e1000_nvm_eeprom_spi) in e1000_shift_out_eec_bits() 65 udelay(nvm->delay_usec); in e1000_shift_out_eec_bits() 184 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_standby_nvm() local 187 if (nvm->type == e1000_nvm_eeprom_spi) { in e1000_standby_nvm() 192 udelay(nvm->delay_usec); in e1000_standby_nvm() 196 udelay(nvm->delay_usec); in e1000_standby_nvm() 211 if (hw->nvm.type == e1000_nvm_eeprom_spi) { in e1000_stop_nvm() [all …]
|
D | 82571.c | 122 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82571() local 126 nvm->opcode_bits = 8; in e1000_init_nvm_params_82571() 127 nvm->delay_usec = 1; in e1000_init_nvm_params_82571() 128 switch (nvm->override) { in e1000_init_nvm_params_82571() 130 nvm->page_size = 32; in e1000_init_nvm_params_82571() 131 nvm->address_bits = 16; in e1000_init_nvm_params_82571() 134 nvm->page_size = 8; in e1000_init_nvm_params_82571() 135 nvm->address_bits = 8; in e1000_init_nvm_params_82571() 138 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_82571() 139 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_82571() [all …]
|
D | ich8lan.c | 594 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_ich8lan() local 600 nvm->type = e1000_nvm_flash_sw; in e1000_init_nvm_params_ich8lan() 609 nvm->flash_base_addr = 0; in e1000_init_nvm_params_ich8lan() 612 nvm->flash_bank_size = nvm_size / 2; in e1000_init_nvm_params_ich8lan() 614 nvm->flash_bank_size /= sizeof(u16); in e1000_init_nvm_params_ich8lan() 634 nvm->flash_base_addr = sector_base_addr in e1000_init_nvm_params_ich8lan() 640 nvm->flash_bank_size = ((sector_end_addr - sector_base_addr) in e1000_init_nvm_params_ich8lan() 642 nvm->flash_bank_size /= 2; in e1000_init_nvm_params_ich8lan() 644 nvm->flash_bank_size /= sizeof(u16); in e1000_init_nvm_params_ich8lan() 647 nvm->word_size = E1000_ICH8_SHADOW_RAM_WORDS; in e1000_init_nvm_params_ich8lan() [all …]
|
D | 80003es2lan.c | 72 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_80003es2lan() local 76 nvm->opcode_bits = 8; in e1000_init_nvm_params_80003es2lan() 77 nvm->delay_usec = 1; in e1000_init_nvm_params_80003es2lan() 78 switch (nvm->override) { in e1000_init_nvm_params_80003es2lan() 80 nvm->page_size = 32; in e1000_init_nvm_params_80003es2lan() 81 nvm->address_bits = 16; in e1000_init_nvm_params_80003es2lan() 84 nvm->page_size = 8; in e1000_init_nvm_params_80003es2lan() 85 nvm->address_bits = 8; in e1000_init_nvm_params_80003es2lan() 88 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_80003es2lan() 89 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_80003es2lan() [all …]
|
D | Makefile | 11 mac.o manage.o nvm.o phy.o \
|
D | e1000.h | 549 return hw->nvm.ops.validate(hw); in e1000_validate_nvm_checksum() 554 return hw->nvm.ops.update(hw); in e1000e_update_nvm_checksum() 560 return hw->nvm.ops.read(hw, offset, words, data); in e1000_read_nvm() 566 return hw->nvm.ops.write(hw, offset, words, data); in e1000_write_nvm()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/ |
D | igc_i225.c | 42 s32 timeout = hw->nvm.word_size + 1; in igc_get_hw_semaphore_i225() 193 status = hw->nvm.ops.acquire(hw); in igc_read_nvm_srrd_i225() 198 hw->nvm.ops.release(hw); in igc_read_nvm_srrd_i225() 221 struct igc_nvm_info *nvm = &hw->nvm; in igc_write_nvm_srwr() local 229 if (offset >= nvm->word_size || (words > (nvm->word_size - offset)) || in igc_write_nvm_srwr() 291 status = hw->nvm.ops.acquire(hw); in igc_write_nvm_srwr_i225() 296 hw->nvm.ops.release(hw); in igc_write_nvm_srwr_i225() 317 status = hw->nvm.ops.acquire(hw); in igc_validate_nvm_checksum_i225() 325 read_op_ptr = hw->nvm.ops.read; in igc_validate_nvm_checksum_i225() 326 hw->nvm.ops.read = igc_read_nvm_eerd; in igc_validate_nvm_checksum_i225() [all …]
|
D | igc_nvm.c | 99 struct igc_nvm_info *nvm = &hw->nvm; in igc_read_nvm_eerd() local 106 if (offset >= nvm->word_size || (words > (nvm->word_size - offset)) || in igc_read_nvm_eerd() 168 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igc_validate_nvm_checksum() 201 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igc_update_nvm_checksum() 209 ret_val = hw->nvm.ops.write(hw, NVM_CHECKSUM_REG, 1, &checksum); in igc_update_nvm_checksum()
|
D | igc_base.c | 67 struct igc_nvm_info *nvm = &hw->nvm; in igc_init_nvm_params_base() local 85 nvm->type = igc_nvm_eeprom_spi; in igc_init_nvm_params_base() 86 nvm->word_size = BIT(size); in igc_init_nvm_params_base() 87 nvm->opcode_bits = 8; in igc_init_nvm_params_base() 88 nvm->delay_usec = 1; in igc_init_nvm_params_base() 90 nvm->page_size = eecd & IGC_EECD_ADDR_BITS ? 32 : 8; in igc_init_nvm_params_base() 91 nvm->address_bits = eecd & IGC_EECD_ADDR_BITS ? in igc_init_nvm_params_base() 94 if (nvm->word_size == BIT(15)) in igc_init_nvm_params_base() 95 nvm->page_size = 128; in igc_init_nvm_params_base()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_nvm.c | 27 cmd = &desc.params.nvm; in ice_aq_read_nvm() 75 if (read_shadow_ram && ((offset + inlen) > (hw->nvm.sr_words * 2u))) { in ice_read_flat_nvm() 131 cmd = &desc.params.nvm; in ice_aq_update_nvm() 168 cmd = &desc.params.nvm; in ice_aq_erase_nvm() 217 if (hw->nvm.blank_nvm_mode) in ice_acquire_nvm() 231 if (hw->nvm.blank_nvm_mode) in ice_release_nvm() 393 struct ice_orom_info *orom = &hw->nvm.orom; in ice_get_orom_ver_info() 564 hw->nvm.flash_size = max_size; in ice_discover_flash_size() 581 struct ice_nvm_info *nvm = &hw->nvm; in ice_init_nvm() local 594 nvm->sr_words = BIT(sr_size) * ICE_SR_WORDS_IN_1KB; in ice_init_nvm() [all …]
|
D | ice_devlink.c | 63 struct ice_orom_info *orom = &pf->hw.nvm.orom; in ice_info_orom_ver() 72 struct ice_nvm_info *nvm = &pf->hw.nvm; in ice_info_nvm_ver() local 74 snprintf(buf, len, "%x.%02x", nvm->major_ver, nvm->minor_ver); in ice_info_nvm_ver() 81 struct ice_nvm_info *nvm = &pf->hw.nvm; in ice_info_eetrack() local 83 snprintf(buf, len, "0x%08x", nvm->eetrack); in ice_info_eetrack() 453 nvm_size = hw->nvm.flash_size; in ice_devlink_nvm_snapshot() 553 nvm_size = pf->hw.nvm.flash_size; in ice_devlink_init_regions()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-nvm-parse.c | 1524 struct iwl_nvm_data *nvm; in iwl_get_nvm() local 1565 nvm = kzalloc(struct_size(nvm, channels, IWL_NUM_CHANNELS), GFP_KERNEL); in iwl_get_nvm() 1566 if (!nvm) { in iwl_get_nvm() 1571 iwl_set_hw_address_from_csr(trans, nvm); in iwl_get_nvm() 1574 if (!is_valid_ether_addr(nvm->hw_addr)) { in iwl_get_nvm() 1580 IWL_INFO(trans, "base HW address: %pM\n", nvm->hw_addr); in iwl_get_nvm() 1583 nvm->nvm_version = le16_to_cpu(rsp->general.nvm_version); in iwl_get_nvm() 1584 nvm->n_hw_addrs = rsp->general.n_hw_addrs; in iwl_get_nvm() 1585 if (nvm->n_hw_addrs == 0) in iwl_get_nvm() 1592 nvm->sku_cap_11ac_enable = in iwl_get_nvm() [all …]
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
D | ov2740.c | 935 static int ov2740_load_otp_data(struct i2c_client *client, struct nvm_data *nvm) in ov2740_load_otp_data() argument 982 ret = regmap_bulk_read(nvm->regmap, OV2740_REG_OTP_CUSTOMER, in ov2740_load_otp_data() 983 nvm->nvm_buffer, CUSTOMER_USE_OTP_SIZE); in ov2740_load_otp_data() 1001 struct nvm_data *nvm = priv; in ov2740_nvmem_read() local 1003 memcpy(val, nvm->nvm_buffer + off, count); in ov2740_nvmem_read() 1010 struct nvm_data *nvm; in ov2740_register_nvmem() local 1017 nvm = devm_kzalloc(dev, sizeof(*nvm), GFP_KERNEL); in ov2740_register_nvmem() 1018 if (!nvm) in ov2740_register_nvmem() 1021 nvm->nvm_buffer = devm_kzalloc(dev, CUSTOMER_USE_OTP_SIZE, GFP_KERNEL); in ov2740_register_nvmem() 1022 if (!nvm->nvm_buffer) in ov2740_register_nvmem() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_nvm.c | 18 struct i40e_nvm_info *nvm = &hw->nvm; in i40e_init_nvm() local 30 nvm->sr_size = BIT(sr_size) * I40E_SR_WORDS_IN_1KB; in i40e_init_nvm() 36 nvm->timeout = I40E_MAX_NVM_TIMEOUT; in i40e_init_nvm() 37 nvm->blank_nvm_mode = false; in i40e_init_nvm() 39 nvm->blank_nvm_mode = true; in i40e_init_nvm() 62 if (hw->nvm.blank_nvm_mode) in i40e_acquire_nvm() 71 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() 89 hw->nvm.hw_semaphore_timeout = in i40e_acquire_nvm() 95 hw->nvm.hw_semaphore_timeout = 0; in i40e_acquire_nvm() 117 if (hw->nvm.blank_nvm_mode) in i40e_release_nvm() [all …]
|
/kernel/linux/linux-5.10/Documentation/networking/devlink/ |
D | ice.rst | 132 * - ``nvm-flash`` 144 $ devlink region new pci/0000:01:00.0/nvm-flash snapshot 1 145 $ devlink region dump pci/0000:01:00.0/nvm-flash snapshot 1 147 $ devlink region dump pci/0000:01:00.0/nvm-flash snapshot 1 153 $ devlink region read pci/0000:01:00.0/nvm-flash snapshot 1 address 0 length 16 156 $ devlink region delete pci/0000:01:00.0/nvm-flash snapshot 1
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
D | qualcomm-bluetooth.txt | 23 - firmware-name: specify the name of nvm firmware to load 39 - firmware-name: specify the name of nvm firmware to load
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/ddr/ |
D | lpddr2.txt | 4 - compatible : Should be one of - "jedec,lpddr2-nvm", "jedec,lpddr2-s2", 11 "ti,jedec-lpddr2-nvm" should be listed if the memory part is LPDDR2-NVM type
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | Makefile | 3 iwlmvm-y += fw.o mac80211.o nvm.o ops.o phy-ctxt.o mac-ctxt.o
|