Home
last modified time | relevance | path

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

12

/openbmc/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 …]
/openbmc/linux/drivers/rtc/
H A Drtc-pm8xxx.c67 struct nvmem_cell *nvmem_cell; member
77 buf = nvmem_cell_read(rtc_dd->nvmem_cell, &len); in pm8xxx_rtc_read_nvmem_offset()
104 rc = nvmem_cell_write(rtc_dd->nvmem_cell, buf, sizeof(buf)); in pm8xxx_rtc_write_nvmem_offset()
115 if (!rtc_dd->nvmem_cell) in pm8xxx_rtc_read_offset()
158 if (!rtc_dd->nvmem_cell) in pm8xxx_rtc_update_offset()
483 rtc_dd->nvmem_cell = devm_nvmem_cell_get(&pdev->dev, "offset"); in pm8xxx_rtc_probe()
484 if (IS_ERR(rtc_dd->nvmem_cell)) { in pm8xxx_rtc_probe()
485 rc = PTR_ERR(rtc_dd->nvmem_cell); in pm8xxx_rtc_probe()
488 rtc_dd->nvmem_cell = NULL; in pm8xxx_rtc_probe()
/openbmc/linux/Documentation/driver-api/
H A Dnvmem.rst105 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *name);
106 struct nvmem_cell *devm_nvmem_cell_get(struct device *dev, const char *name);
108 void nvmem_cell_put(struct nvmem_cell *cell);
109 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
111 void *nvmem_cell_read(struct nvmem_cell *cell, ssize_t *len);
112 int nvmem_cell_write(struct nvmem_cell *cell, void *buf, ssize_t len);
153 void nvmem_cell_put(struct nvmem_cell *cell);
154 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
/openbmc/linux/drivers/nvmem/
H A Dcore.c41 struct nvmem_cell { struct
1263 static struct nvmem_cell *nvmem_create_cell(struct nvmem_cell_entry *entry, in nvmem_create_cell()
1266 struct nvmem_cell *cell; in nvmem_create_cell()
1288 static struct nvmem_cell *
1292 struct nvmem_cell *cell = ERR_PTR(-ENOENT); in nvmem_cell_get_from_lookup()
1364 struct nvmem_cell *of_nvmem_cell_get(struct device_node *np, const char *id) in of_nvmem_cell_get()
1369 struct nvmem_cell *cell; in of_nvmem_cell_get()
1442 struct nvmem_cell *nvmem_cell_get(struct device *dev, const char *id) in nvmem_cell_get()
1444 struct nvmem_cell *cell; in nvmem_cell_get()
1462 nvmem_cell_put(*(struct nvmem_cell **)res); in devm_nvmem_cell_release()
[all …]
/openbmc/linux/drivers/cpufreq/
H A Dqcom-cpufreq-nvmem.c37 struct nvmem_cell *speedbin_nvmem,
134 struct nvmem_cell *speedbin_nvmem, in qcom_cpufreq_kryo_name_version()
171 struct nvmem_cell *speedbin_nvmem, in qcom_cpufreq_krait_name_version()
227 struct nvmem_cell *speedbin_nvmem; in qcom_cpufreq_probe()
H A Dsun50i-cpufreq-nvmem.c36 struct nvmem_cell *speedbin_nvmem; in sun50i_cpufreq_get_efuse()
/openbmc/linux/drivers/power/reset/
H A Dnvmem-reboot-mode.c16 struct nvmem_cell *cell;
/openbmc/linux/net/core/
H A Dof_net.c64 struct nvmem_cell *cell; in of_get_mac_address_nvmem()
/openbmc/linux/drivers/phy/mediatek/
H A Dphy-mtk-mipi-dsi.c69 struct nvmem_cell *cell; in mtk_mipi_tx_get_calibration_datal()
/openbmc/linux/drivers/watchdog/
H A Drave-sp-wdt.c258 struct nvmem_cell *cell; in rave_sp_wdt_probe()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dath9k_pci_owl_loader.c29 struct nvmem_cell *cell;
/openbmc/linux/drivers/phy/sunplus/
H A Dphy-sunplus-usb2.c80 struct nvmem_cell *cell; in update_disc_vol()
/openbmc/linux/drivers/thermal/
H A Dimx8mm_thermal.c202 struct nvmem_cell *cell; in imx8mm_tmu_probe_set_calib_v2()
H A Dsprd_thermal.c124 struct nvmem_cell *cell; in sprd_thm_cal_read()
H A Dsun8i_thermal.c281 struct nvmem_cell *calcell; in sun8i_ths_calibrate()
/openbmc/linux/net/ethernet/
H A Deth.c539 struct nvmem_cell *cell; in nvmem_get_mac_address()
/openbmc/linux/drivers/phy/socionext/
H A Dphy-uniphier-usb3hs.c104 struct nvmem_cell *cell; in uniphier_u3hsphy_get_nvparam()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Deeprom.c112 struct nvmem_cell *cell; in mt76_get_of_eeprom_from_nvmem()
/openbmc/linux/drivers/net/ethernet/sunplus/
H A Dspl2sw_driver.c224 struct nvmem_cell *cell; in spl2sw_nvmem_get_mac_address()
/openbmc/linux/drivers/bluetooth/
H A Dhci_ll.c689 struct nvmem_cell *bdaddr_cell; in hci_ti_probe()
/openbmc/linux/drivers/iio/adc/
H A Dsc27xx_adc.c167 struct nvmem_cell *cell; in adc_nvmem_cell_calib_data()
/openbmc/linux/drivers/net/phy/
H A Ddp83867.c539 struct nvmem_cell *cell; in dp83867_of_init_io_impedance()
/openbmc/linux/drivers/phy/qualcomm/
H A Dphy-qcom-qusb2.c439 struct nvmem_cell *cell;
/openbmc/linux/drivers/thermal/mediatek/
H A Dlvts_thermal.c657 struct nvmem_cell *cell; in lvts_calibration_read()
H A Dauxadc_thermal.c1076 struct nvmem_cell *cell; in mtk_thermal_get_calibration_data()

12