| /linux/include/linux/ |
| H A D | nvmem-consumer.h | 19 struct nvmem_cell; 53 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *id); 54 struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *id); 55 void nvmem_cell_put(struct nvmem_cell *cell); 56 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell); 57 void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len); 58 int nvmem_cell_write(struct nvmem_cell *cell, void *buf, size_t len); 99 static inline struct nvmem_cell *nvmem_cell_get(struct device *dev, in nvmem_cell_get() 105 static inline struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, in devm_nvmem_cell_get() 112 struct nvmem_cell *cell) in devm_nvmem_cell_put() [all …]
|
| /linux/drivers/power/reset/ |
| H A D | macsmc-reboot.c | 18 struct nvmem_cell *shutdown_flag; 19 struct nvmem_cell *boot_stage; 20 struct nvmem_cell *boot_error_count; 21 struct nvmem_cell *panic_count; 44 struct nvmem_cell *nvm_cells[ARRAY_SIZE(nvmem_names)]; 49 static int nvmem_cell_get_u8(struct nvmem_cell *cell) in nvmem_cell_get_u8() 69 static int nvmem_cell_set_u8(struct nvmem_cell *cell, u8 val) in nvmem_cell_set_u8() 218 struct nvmem_cell *cell; in macsmc_reboot_probe()
|
| /linux/drivers/rtc/ |
| H A D | rtc-pm8xxx.c | 79 struct nvmem_cell *nvmem_cell; member 176 buf = nvmem_cell_read(rtc_dd->nvmem_cell, &len); in pm8xxx_rtc_read_nvmem_offset() 203 rc = nvmem_cell_write(rtc_dd->nvmem_cell, buf, sizeof(buf)); in pm8xxx_rtc_write_nvmem_offset() 249 if (!rtc_dd->nvmem_cell && !rtc_dd->use_uefi) in pm8xxx_rtc_update_offset() 270 if (rtc_dd->nvmem_cell) in pm8xxx_rtc_update_offset() 568 rtc_dd->nvmem_cell = devm_nvmem_cell_get(rtc_dd->dev, "offset"); in pm8xxx_rtc_probe_offset() 569 if (IS_ERR(rtc_dd->nvmem_cell)) { in pm8xxx_rtc_probe_offset() 570 rc = PTR_ERR(rtc_dd->nvmem_cell); in pm8xxx_rtc_probe_offset() 573 rtc_dd->nvmem_cell = NULL; in pm8xxx_rtc_probe_offset() 668 if (rtc_dd->nvmem_cell) in pm8xxx_shutdown()
|
| H A D | rtc-macsmc.c | 27 struct nvmem_cell *rtc_offset;
|
| /linux/Documentation/driver-api/ |
| H A D | nvmem.rst | 99 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *name); 100 struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *name); 102 void nvmem_cell_put(struct nvmem_cell *cell); 103 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell); 105 void *nvmem_cell_read(struct nvmem_cell *cell, ssize_t *len); 106 int nvmem_cell_write(struct nvmem_cell *cell, void *buf, ssize_t len); 147 void nvmem_cell_put(struct nvmem_cell *cell); 148 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
|
| /linux/drivers/nvmem/ |
| H A D | core.c | 41 struct nvmem_cell { struct 336 static struct nvmem_cell *nvmem_create_cell(struct nvmem_cell_entry *entry, 344 struct nvmem_cell *cell = NULL; in nvmem_cell_attr_read() 1292 static struct nvmem_cell *nvmem_create_cell(struct nvmem_cell_entry *entry, in nvmem_create_cell() 1295 struct nvmem_cell *cell; in nvmem_create_cell() 1317 static struct nvmem_cell * 1321 struct nvmem_cell *cell = ERR_PTR(-ENOENT); in nvmem_cell_get_from_lookup() 1411 struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, const char *id) in of_nvmem_cell_get() 1416 struct nvmem_cell *cell; in of_nvmem_cell_get() 1502 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *id) in nvmem_cell_get() [all …]
|
| /linux/net/core/ |
| H A D | of_net.c | 64 struct nvmem_cell *cell; in of_get_mac_address_nvmem()
|
| /linux/drivers/phy/mediatek/ |
| H A D | phy-mtk-mipi-dsi.c | 69 struct nvmem_cell *cell; in mtk_mipi_tx_get_calibration_datal()
|
| /linux/drivers/cpufreq/ |
| H A D | sun50i-cpufreq-nvmem.c | 194 struct nvmem_cell *speedbin_nvmem; in sun50i_cpufreq_get_efuse()
|
| /linux/drivers/watchdog/ |
| H A D | rave-sp-wdt.c | 258 struct nvmem_cell *cell; in rave_sp_wdt_probe()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ath9k_pci_owl_loader.c | 28 struct nvmem_cell *cell;
|
| H A D | init.c | 574 struct nvmem_cell *cell; in ath9k_nvmem_request_eeprom()
|
| /linux/drivers/phy/sunplus/ |
| H A D | phy-sunplus-usb2.c | 80 struct nvmem_cell *cell; in update_disc_vol()
|
| /linux/drivers/phy/socionext/ |
| H A D | phy-uniphier-usb3hs.c | 104 struct nvmem_cell *cell; in uniphier_u3hsphy_get_nvparam()
|
| /linux/net/ethernet/ |
| H A D | eth.c | 534 struct nvmem_cell *cell; in nvmem_get_mac_address()
|
| /linux/drivers/ufs/host/ |
| H A D | ufs-renesas.c | 451 struct nvmem_cell *cell = NULL; in ufs_renesas_init()
|
| /linux/drivers/bluetooth/ |
| H A D | hci_ll.c | 696 struct nvmem_cell *bdaddr_cell; in hci_ti_probe()
|
| /linux/drivers/extcon/ |
| H A D | extcon-rtk-type-c.c | 876 struct nvmem_cell *cell; in __updated_type_c_parameter_by_efuse() 960 struct nvmem_cell *cell; in __updated_type_c_parameter_by_efuse_v2()
|
| /linux/drivers/phy/qualcomm/ |
| H A D | phy-qcom-qusb2.c | 463 struct nvmem_cell *cell;
|
| /linux/drivers/thermal/mediatek/ |
| H A D | auxadc_thermal.c | 1076 struct nvmem_cell *cell; in mtk_thermal_get_calibration_data()
|
| /linux/drivers/net/phy/mediatek/ |
| H A D | mtk-ge-soc.c | 1157 struct nvmem_cell *cell; in mt798x_phy_calibration()
|
| /linux/drivers/iio/adc/ |
| H A D | meson_saradc.c | 791 struct nvmem_cell *temperature_calib; in meson_sar_adc_temp_sensor_init()
|
| H A D | at91-sama5d2_adc.c | 2253 struct nvmem_cell *temp_calib; in at91_adc_temp_sensor_init()
|
| /linux/drivers/thermal/qcom/ |
| H A D | tsens.c | 60 struct nvmem_cell *cell; in qfprom_read()
|