Home
last modified time | relevance | path

Searched refs:nvmem_cell (Results 1 – 24 of 24) sorted by relevance

/linux/include/linux/
H A Dnvmem-consumer.h19 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 Dmacsmc-reboot.c18 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 Drtc-pm8xxx.c79 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 Drtc-macsmc.c27 struct nvmem_cell *rtc_offset;
/linux/Documentation/driver-api/
H A Dnvmem.rst99 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 Dcore.c41 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 Dof_net.c64 struct nvmem_cell *cell; in of_get_mac_address_nvmem()
/linux/drivers/phy/mediatek/
H A Dphy-mtk-mipi-dsi.c69 struct nvmem_cell *cell; in mtk_mipi_tx_get_calibration_datal()
/linux/drivers/cpufreq/
H A Dsun50i-cpufreq-nvmem.c194 struct nvmem_cell *speedbin_nvmem; in sun50i_cpufreq_get_efuse()
/linux/drivers/watchdog/
H A Drave-sp-wdt.c258 struct nvmem_cell *cell; in rave_sp_wdt_probe()
/linux/drivers/net/wireless/ath/ath9k/
H A Dath9k_pci_owl_loader.c28 struct nvmem_cell *cell;
H A Dinit.c574 struct nvmem_cell *cell; in ath9k_nvmem_request_eeprom()
/linux/drivers/phy/sunplus/
H A Dphy-sunplus-usb2.c80 struct nvmem_cell *cell; in update_disc_vol()
/linux/drivers/phy/socionext/
H A Dphy-uniphier-usb3hs.c104 struct nvmem_cell *cell; in uniphier_u3hsphy_get_nvparam()
/linux/net/ethernet/
H A Deth.c534 struct nvmem_cell *cell; in nvmem_get_mac_address()
/linux/drivers/ufs/host/
H A Dufs-renesas.c451 struct nvmem_cell *cell = NULL; in ufs_renesas_init()
/linux/drivers/bluetooth/
H A Dhci_ll.c696 struct nvmem_cell *bdaddr_cell; in hci_ti_probe()
/linux/drivers/extcon/
H A Dextcon-rtk-type-c.c876 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 Dphy-qcom-qusb2.c463 struct nvmem_cell *cell;
/linux/drivers/thermal/mediatek/
H A Dauxadc_thermal.c1076 struct nvmem_cell *cell; in mtk_thermal_get_calibration_data()
/linux/drivers/net/phy/mediatek/
H A Dmtk-ge-soc.c1157 struct nvmem_cell *cell; in mt798x_phy_calibration()
/linux/drivers/iio/adc/
H A Dmeson_saradc.c791 struct nvmem_cell *temperature_calib; in meson_sar_adc_temp_sensor_init()
H A Dat91-sama5d2_adc.c2253 struct nvmem_cell *temp_calib; in at91_adc_temp_sensor_init()
/linux/drivers/thermal/qcom/
H A Dtsens.c60 struct nvmem_cell *cell; in qfprom_read()