/openbmc/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 …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-pm8xxx.c | 67 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 D | nvmem.rst | 105 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 D | core.c | 41 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 D | qcom-cpufreq-nvmem.c | 37 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 D | sun50i-cpufreq-nvmem.c | 36 struct nvmem_cell *speedbin_nvmem; in sun50i_cpufreq_get_efuse()
|
/openbmc/linux/drivers/power/reset/ |
H A D | nvmem-reboot-mode.c | 16 struct nvmem_cell *cell;
|
/openbmc/linux/net/core/ |
H A D | of_net.c | 64 struct nvmem_cell *cell; in of_get_mac_address_nvmem()
|
/openbmc/linux/drivers/phy/mediatek/ |
H A D | phy-mtk-mipi-dsi.c | 69 struct nvmem_cell *cell; in mtk_mipi_tx_get_calibration_datal()
|
/openbmc/linux/drivers/watchdog/ |
H A D | rave-sp-wdt.c | 258 struct nvmem_cell *cell; in rave_sp_wdt_probe()
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ath9k_pci_owl_loader.c | 29 struct nvmem_cell *cell;
|
/openbmc/linux/drivers/phy/sunplus/ |
H A D | phy-sunplus-usb2.c | 80 struct nvmem_cell *cell; in update_disc_vol()
|
/openbmc/linux/drivers/thermal/ |
H A D | imx8mm_thermal.c | 202 struct nvmem_cell *cell; in imx8mm_tmu_probe_set_calib_v2()
|
H A D | sprd_thermal.c | 124 struct nvmem_cell *cell; in sprd_thm_cal_read()
|
H A D | sun8i_thermal.c | 281 struct nvmem_cell *calcell; in sun8i_ths_calibrate()
|
/openbmc/linux/net/ethernet/ |
H A D | eth.c | 539 struct nvmem_cell *cell; in nvmem_get_mac_address()
|
/openbmc/linux/drivers/phy/socionext/ |
H A D | phy-uniphier-usb3hs.c | 104 struct nvmem_cell *cell; in uniphier_u3hsphy_get_nvparam()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | eeprom.c | 112 struct nvmem_cell *cell; in mt76_get_of_eeprom_from_nvmem()
|
/openbmc/linux/drivers/net/ethernet/sunplus/ |
H A D | spl2sw_driver.c | 224 struct nvmem_cell *cell; in spl2sw_nvmem_get_mac_address()
|
/openbmc/linux/drivers/bluetooth/ |
H A D | hci_ll.c | 689 struct nvmem_cell *bdaddr_cell; in hci_ti_probe()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | sc27xx_adc.c | 167 struct nvmem_cell *cell; in adc_nvmem_cell_calib_data()
|
/openbmc/linux/drivers/net/phy/ |
H A D | dp83867.c | 539 struct nvmem_cell *cell; in dp83867_of_init_io_impedance()
|
/openbmc/linux/drivers/phy/qualcomm/ |
H A D | phy-qcom-qusb2.c | 439 struct nvmem_cell *cell;
|
/openbmc/linux/drivers/thermal/mediatek/ |
H A D | lvts_thermal.c | 657 struct nvmem_cell *cell; in lvts_calibration_read()
|
H A D | auxadc_thermal.c | 1076 struct nvmem_cell *cell; in mtk_thermal_get_calibration_data()
|