/Linux-v4.19/drivers/nvmem/ |
D | core.c | 54 struct nvmem_device *nvmem; member 69 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_read() argument 72 if (nvmem->reg_read) in nvmem_reg_read() 73 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in nvmem_reg_read() 78 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_write() argument 81 if (nvmem->reg_write) in nvmem_reg_write() 82 return nvmem->reg_write(nvmem->priv, offset, val, bytes); in nvmem_reg_write() 92 struct nvmem_device *nvmem; in bin_attr_nvmem_read() local 99 nvmem = to_nvmem_device(dev); in bin_attr_nvmem_read() 102 if (pos >= nvmem->size) in bin_attr_nvmem_read() [all …]
|
D | Makefile | 10 obj-$(CONFIG_NVMEM_BCM_OCOTP) += nvmem-bcm-ocotp.o 11 nvmem-bcm-ocotp-y := bcm-ocotp.o 12 obj-$(CONFIG_NVMEM_IMX_IIM) += nvmem-imx-iim.o 13 nvmem-imx-iim-y := imx-iim.o 14 obj-$(CONFIG_NVMEM_IMX_OCOTP) += nvmem-imx-ocotp.o 15 nvmem-imx-ocotp-y := imx-ocotp.o 20 obj-$(CONFIG_NVMEM_MXS_OCOTP) += nvmem-mxs-ocotp.o 21 nvmem-mxs-ocotp-y := mxs-ocotp.o 30 obj-$(CONFIG_UNIPHIER_EFUSE) += nvmem-uniphier-efuse.o 31 nvmem-uniphier-efuse-y := uniphier-efuse.o [all …]
|
D | sunxi_sid.c | 155 struct nvmem_device *nvmem; in sunxi_sid_probe() local 184 nvmem = nvmem_register(&econfig); in sunxi_sid_probe() 185 if (IS_ERR(nvmem)) in sunxi_sid_probe() 186 return PTR_ERR(nvmem); in sunxi_sid_probe() 200 platform_set_drvdata(pdev, nvmem); in sunxi_sid_probe() 205 nvmem_unregister(nvmem); in sunxi_sid_probe() 211 struct nvmem_device *nvmem = platform_get_drvdata(pdev); in sunxi_sid_remove() local 213 return nvmem_unregister(nvmem); in sunxi_sid_remove()
|
D | mxs-ocotp.c | 43 struct nvmem_device *nvmem; member 180 otp->nvmem = nvmem_register(&ocotp_config); in mxs_ocotp_probe() 181 if (IS_ERR(otp->nvmem)) { in mxs_ocotp_probe() 182 ret = PTR_ERR(otp->nvmem); in mxs_ocotp_probe() 202 return nvmem_unregister(otp->nvmem); in mxs_ocotp_remove()
|
D | meson-efuse.c | 47 struct nvmem_device *nvmem; in meson_efuse_probe() local 66 nvmem = devm_nvmem_register(&pdev->dev, econfig); in meson_efuse_probe() 68 return PTR_ERR_OR_ZERO(nvmem); in meson_efuse_probe()
|
D | uniphier-efuse.c | 44 struct nvmem_device *nvmem; in uniphier_efuse_probe() local 64 nvmem = devm_nvmem_register(dev, &econfig); in uniphier_efuse_probe() 66 return PTR_ERR_OR_ZERO(nvmem); in uniphier_efuse_probe()
|
D | lpc18xx_otp.c | 72 struct nvmem_device *nvmem; in lpc18xx_otp_probe() local 89 nvmem = devm_nvmem_register(&pdev->dev, &lpc18xx_otp_nvmem_config); in lpc18xx_otp_probe() 91 return PTR_ERR_OR_ZERO(nvmem); in lpc18xx_otp_probe()
|
D | qfprom.c | 63 struct nvmem_device *nvmem; in qfprom_probe() local 79 nvmem = devm_nvmem_register(dev, &econfig); in qfprom_probe() 81 return PTR_ERR_OR_ZERO(nvmem); in qfprom_probe()
|
/Linux-v4.19/Documentation/devicetree/bindings/nvmem/ |
D | nvmem.txt | 22 information like offset and size in nvmem provider. 63 Are device nodes which consume nvmem data cells/providers. 66 nvmem-cells: list of phandle to the nvmem data cells. 67 nvmem-cell-names: names for the each nvmem-cells specified. Required if 68 nvmem-cells is used. 71 nvmem : list of phandles to nvmem providers. 72 nvmem-names: names for the each nvmem provider. required if nvmem is used. 78 nvmem-cells = <&tsens_calibration>; 79 nvmem-cell-names = "calibration";
|
D | amlogic-efuse.txt | 8 bindings/nvmem/nvmem.txt 31 Are device nodes which consume nvmem data cells. 37 nvmem-cells = <ð_mac>; 38 nvmem-cell-names = "eth_mac";
|
D | qfprom.txt | 11 bindings/nvmem/nvmem.txt 27 Are device nodes which consume nvmem data cells. 33 nvmem-cells = <&tsens_calibration>; 34 nvmem-cell-names = "calibration";
|
D | mtk-efuse.txt | 14 bindings/nvmem/nvmem.txt 31 Are device nodes which consume nvmem data cells. 37 nvmem-cells = <&thermal_calibration>; 38 nvmem-cell-names = "calibration";
|
D | uniphier-efuse.txt | 11 bindings/nvmem/nvmem.txt 41 Are device nodes which consume nvmem data cells. 47 nvmem-cells = <&usb_mon>; 48 nvmem-cell-names = "usb_mon";
|
D | sc27xx-efuse.txt | 15 bindings/nvmem/nvmem.txt 44 Are device nodes which consume nvmem data cells. 50 nvmem-cells = <&thermal_calib>; 51 nvmem-cell-names = "calibration";
|
D | rockchip-efuse.txt | 27 bindings/nvmem/nvmem.txt 46 Are device nodes which consume nvmem data cells. 52 nvmem-cells = <&cpu_leakage>; 53 nvmem-cell-names = "cpu_leakage";
|
/Linux-v4.19/include/linux/ |
D | nvmem-consumer.h | 47 void nvmem_device_put(struct nvmem_device *nvmem); 48 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem); 49 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, 51 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, 53 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, 55 int nvmem_device_cell_write(struct nvmem_device *nvmem, 110 static inline void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put() argument 115 struct nvmem_device *nvmem) in devm_nvmem_device_put() argument 119 static inline ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read() argument 126 static inline int nvmem_device_cell_write(struct nvmem_device *nvmem, in nvmem_device_cell_write() argument [all …]
|
D | nvmem-provider.h | 73 int nvmem_unregister(struct nvmem_device *nvmem); 78 int devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem); 80 int nvmem_add_cells(struct nvmem_device *nvmem, 90 static inline int nvmem_unregister(struct nvmem_device *nvmem) in nvmem_unregister() argument 102 devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_unregister() argument 104 return nvmem_unregister(nvmem); in devm_nvmem_unregister() 108 static inline int nvmem_add_cells(struct nvmem_device *nvmem, in nvmem_add_cells() argument
|
/Linux-v4.19/drivers/rtc/ |
D | nvmem.c | 32 return nvmem_device_read(rtc->nvmem, off, count, buf); in rtc_nvram_read() 44 return nvmem_device_write(rtc->nvmem, off, count, buf); in rtc_nvram_write() 88 if (!IS_ERR_OR_NULL(rtc->nvmem)) in rtc_nvmem_register() 96 rtc->nvmem = nvmem_register(nvmem_config); in rtc_nvmem_register() 97 if (IS_ERR(rtc->nvmem)) in rtc_nvmem_register() 98 return PTR_ERR(rtc->nvmem); in rtc_nvmem_register() 110 if (IS_ERR_OR_NULL(rtc->nvmem)) in rtc_nvmem_unregister() 117 nvmem_unregister(rtc->nvmem); in rtc_nvmem_unregister()
|
/Linux-v4.19/Documentation/nvmem/ |
D | nvmem.txt | 38 nvmem configuration to nvmem_register(), on success core would return a valid 41 nvmem_unregister(nvmem) is used to unregister a previously registered provider. 54 nvmem = nvmem_register(&econfig); 82 *nvmem_cell_get() apis will get a reference to nvmem cell for a given id, 96 void nvmem_device_put(struct nvmem_device *nvmem); 97 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, 99 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, 101 int nvmem_device_cell_read(struct nvmem_device *nvmem, 103 int nvmem_device_cell_write(struct nvmem_device *nvmem, 121 void nvmem_device_put(struct nvmem_device *nvmem); [all …]
|
/Linux-v4.19/Documentation/ABI/stable/ |
D | sysfs-bus-nvmem | 1 What: /sys/bus/nvmem/devices/.../nvmem 7 Permissions for write to this file depends on the nvmem 11 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
|
/Linux-v4.19/Documentation/devicetree/bindings/net/ |
D | nixge.txt | 10 - nvmem-cells: Phandle of nvmem cell containing the MAC address 11 - nvmem-cell-names: Should be "address" 18 nvmem-cells = <ð1_addr>; 19 nvmem-cell-names = "address";
|
D | ti-bluetooth.txt | 44 - nvmem-cells: phandle to nvmem data cell that contains a 6 byte BD address 46 - nvmem-cell-names: "bd-address" (required when nvmem-cells is specified) 58 nvmem-cells = <&bd_address>; 59 nvmem-cell-names = "bd-address";
|
/Linux-v4.19/Documentation/devicetree/bindings/watchdog/ |
D | zii,rave-sp-wdt.txt | 18 - wdt-timeout: Two byte nvmem cell specified as per 19 Documentation/devicetree/bindings/nvmem/nvmem.txt 35 nvmem-cells = <&wdt_timeout>; 36 nvmem-cell-names = "wdt-timeout";
|
/Linux-v4.19/Documentation/devicetree/bindings/thermal/ |
D | qcom-tsens.txt | 22 - Refer to Documentation/devicetree/bindings/nvmem/nvmem.txt to know how to specify 23 nvmem cells 29 nvmem-cells = <&tsens_caldata>, <&tsens_calsel>; 30 nvmem-cell-names = "caldata", "calsel";
|
D | mediatek-thermal.txt | 28 - nvmem-cells: A phandle to the calibration data provided by a nvmem device. If 30 - nvmem-cell-names: Should be "calibration-data" 45 nvmem-cells = <&thermal_calibration_data>; 46 nvmem-cell-names = "calibration-data";
|