/linux-4.4.14/drivers/nvmem/ |
D | core.c | 49 struct nvmem_device *nvmem; member 66 struct nvmem_device *nvmem = to_nvmem_device(dev); in bin_attr_nvmem_read() local 70 if (pos >= nvmem->size) in bin_attr_nvmem_read() 73 if (pos + count > nvmem->size) in bin_attr_nvmem_read() 74 count = nvmem->size - pos; in bin_attr_nvmem_read() 76 count = round_down(count, nvmem->word_size); in bin_attr_nvmem_read() 78 rc = regmap_raw_read(nvmem->regmap, pos, buf, count); in bin_attr_nvmem_read() 91 struct nvmem_device *nvmem = to_nvmem_device(dev); in bin_attr_nvmem_write() local 95 if (pos >= nvmem->size) in bin_attr_nvmem_write() 98 if (pos + count > nvmem->size) in bin_attr_nvmem_write() [all …]
|
D | qfprom.c | 33 struct nvmem_device *nvmem = platform_get_drvdata(pdev); in qfprom_remove() local 35 return nvmem_unregister(nvmem); in qfprom_remove() 42 struct nvmem_device *nvmem; in qfprom_probe() local 59 nvmem = nvmem_register(&econfig); in qfprom_probe() 60 if (IS_ERR(nvmem)) in qfprom_probe() 61 return PTR_ERR(nvmem); in qfprom_probe() 63 platform_set_drvdata(pdev, nvmem); in qfprom_probe()
|
D | Makefile | 9 obj-$(CONFIG_NVMEM_IMX_OCOTP) += nvmem-imx-ocotp.o 10 nvmem-imx-ocotp-y := imx-ocotp.o 11 obj-$(CONFIG_NVMEM_MXS_OCOTP) += nvmem-mxs-ocotp.o 12 nvmem-mxs-ocotp-y := mxs-ocotp.o 19 obj-$(CONFIG_NVMEM_VF610_OCOTP) += nvmem-vf610-ocotp.o 20 nvmem-vf610-ocotp-y := vf610-ocotp.o
|
D | sunxi_sid.c | 103 struct nvmem_device *nvmem; in sunxi_sid_probe() local 129 nvmem = nvmem_register(&econfig); in sunxi_sid_probe() 130 if (IS_ERR(nvmem)) in sunxi_sid_probe() 131 return PTR_ERR(nvmem); in sunxi_sid_probe() 145 platform_set_drvdata(pdev, nvmem); in sunxi_sid_probe() 150 nvmem_unregister(nvmem); in sunxi_sid_probe() 156 struct nvmem_device *nvmem = platform_get_drvdata(pdev); in sunxi_sid_remove() local 158 return nvmem_unregister(nvmem); in sunxi_sid_remove()
|
D | imx-ocotp.c | 104 struct nvmem_device *nvmem; in imx_ocotp_probe() local 126 nvmem = nvmem_register(&imx_ocotp_nvmem_config); in imx_ocotp_probe() 127 if (IS_ERR(nvmem)) in imx_ocotp_probe() 128 return PTR_ERR(nvmem); in imx_ocotp_probe() 130 platform_set_drvdata(pdev, nvmem); in imx_ocotp_probe() 137 struct nvmem_device *nvmem = platform_get_drvdata(pdev); in imx_ocotp_remove() local 139 return nvmem_unregister(nvmem); in imx_ocotp_remove()
|
D | rockchip-efuse.c | 126 struct nvmem_device *nvmem; in rockchip_efuse_probe() local 159 nvmem = nvmem_register(&econfig); in rockchip_efuse_probe() 160 if (IS_ERR(nvmem)) in rockchip_efuse_probe() 161 return PTR_ERR(nvmem); in rockchip_efuse_probe() 163 platform_set_drvdata(pdev, nvmem); in rockchip_efuse_probe() 170 struct nvmem_device *nvmem = platform_get_drvdata(pdev); in rockchip_efuse_remove() local 172 return nvmem_unregister(nvmem); in rockchip_efuse_remove()
|
D | mxs-ocotp.c | 44 struct nvmem_device *nvmem; member 220 otp->nvmem = nvmem_register(&ocotp_config); in mxs_ocotp_probe() 221 if (IS_ERR(otp->nvmem)) { in mxs_ocotp_probe() 222 ret = PTR_ERR(otp->nvmem); in mxs_ocotp_probe() 242 return nvmem_unregister(otp->nvmem); in mxs_ocotp_remove()
|
D | vf610-ocotp.c | 102 struct nvmem_device *nvmem; member 243 return nvmem_unregister(ocotp_dev->nvmem); in vf610_ocotp_remove() 279 ocotp_dev->nvmem = nvmem_register(&ocotp_config); in vf610_ocotp_probe() 280 if (IS_ERR(ocotp_dev->nvmem)) in vf610_ocotp_probe() 281 return PTR_ERR(ocotp_dev->nvmem); in vf610_ocotp_probe()
|
D | Kconfig | 26 will be called nvmem-imx-ocotp. 37 will be called nvmem-mxs-ocotp. 45 functions for QFPROM data to rest of the drivers via nvmem interface. 79 be called nvmem-vf610-ocotp.
|
/linux-4.4.14/include/linux/ |
D | nvmem-consumer.h | 43 void nvmem_device_put(struct nvmem_device *nvmem); 44 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem); 45 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, 47 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, 49 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, 51 int nvmem_device_cell_write(struct nvmem_device *nvmem, 100 static inline void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put() argument 105 struct nvmem_device *nvmem) in devm_nvmem_device_put() argument 109 static inline ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read() argument 116 static inline int nvmem_device_cell_write(struct nvmem_device *nvmem, in nvmem_device_cell_write() argument [all …]
|
D | nvmem-provider.h | 31 int nvmem_unregister(struct nvmem_device *nvmem); 40 static inline int nvmem_unregister(struct nvmem_device *nvmem) in nvmem_unregister() argument
|
/linux-4.4.14/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 | 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 | rockchip-efuse.txt | 11 bindings/nvmem/nvmem.txt 30 Are device nodes which consume nvmem data cells. 36 nvmem-cells = <&cpu_leakage>; 37 nvmem-cell-names = "cpu_leakage";
|
D | allwinner,sunxi-sid.txt | 9 bindings/nvmem/nvmem.txt
|
D | mxs-ocotp.txt | 14 bindings/nvmem/nvmem.txt
|
/linux-4.4.14/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-4.4.14/drivers/ |
D | Makefile | 173 obj-$(CONFIG_NVMEM) += nvmem/
|
D | Kconfig | 193 source "drivers/nvmem/Kconfig"
|
/linux-4.4.14/ |
D | MAINTAINERS | 7619 F: drivers/nvmem/ 7620 F: Documentation/devicetree/bindings/nvmem/ 7621 F: include/linux/nvmem-consumer.h 7622 F: include/linux/nvmem-provider.h
|