Home
last modified time | relevance | path

Searched refs:nvmem_device (Results 1 – 25 of 52) sorted by relevance

123

/linux/include/linux/
H A Dnvmem-consumer.h20 struct nvmem_device;
69 struct nvmem_device *nvmem_device_get(struct device *dev, const char *name);
70 struct nvmem_device *devm_nvmem_device_get(struct device *dev,
72 void nvmem_device_put(struct nvmem_device *nvmem);
73 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem);
74 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset,
76 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset,
78 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem,
80 int nvmem_device_cell_write(struct nvmem_device *nvmem,
83 const char *nvmem_dev_name(struct nvmem_device *nvmem);
[all …]
H A Dnvmem-provider.h18 struct nvmem_device;
119 void (*fixup_dt_cell_info)(struct nvmem_device *nvmem,
156 struct nvmem_device *nvmem;
168 struct nvmem_device *nvmem_register(const struct nvmem_config *cfg);
169 void nvmem_unregister(struct nvmem_device *nvmem);
171 struct nvmem_device *devm_nvmem_register(struct device *dev,
174 int nvmem_add_one_cell(struct nvmem_device *nvmem,
191 static inline struct nvmem_device *nvmem_register(const struct nvmem_config *c) in nvmem_register()
196 static inline void nvmem_unregister(struct nvmem_device *nvmem) {} in nvmem_unregister()
198 static inline struct nvmem_device *
[all …]
/linux/drivers/nvmem/
H A Dcore.c24 #define to_nvmem_device(d) container_of(d, struct nvmem_device, dev)
37 struct nvmem_device *nvmem;
55 static int __nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_read()
64 static int __nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_write()
79 static int nvmem_access_with_keepouts(struct nvmem_device *nvmem, in nvmem_access_with_keepouts()
143 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_read()
152 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_write()
177 struct nvmem_device *nvmem = to_nvmem_device(dev); in type_show()
187 struct nvmem_device *nvmem = to_nvmem_device(dev); in force_ro_show()
195 struct nvmem_device *nvmem = to_nvmem_device(dev); in force_ro_store()
[all …]
H A Dinternals.h10 struct nvmem_device { struct
26 void (*fixup_dt_cell_info)(struct nvmem_device *nvmem, argument
41 int nvmem_populate_layout(struct nvmem_device *nvmem); argument
42 void nvmem_destroy_layout(struct nvmem_device *nvmem);
51 static inline int nvmem_populate_layout(struct nvmem_device *nvmem) in nvmem_populate_layout()
56 static inline void nvmem_destroy_layout(struct nvmem_device *nvmem) { } in nvmem_destroy_layout()
H A Dlayouts.c92 static int nvmem_layout_create_device(struct nvmem_device *nvmem, in nvmem_layout_create_device()
133 static int nvmem_layout_bus_populate(struct nvmem_device *nvmem, in nvmem_layout_bus_populate()
168 struct device_node *of_nvmem_layout_get_container(struct nvmem_device *nvmem) in of_nvmem_layout_get_container()
178 int nvmem_populate_layout(struct nvmem_device *nvmem) in nvmem_populate_layout()
196 void nvmem_destroy_layout(struct nvmem_device *nvmem) in nvmem_destroy_layout()
H A Dmtk-efuse.c48 static void mtk_efuse_fixup_dt_cell_info(struct nvmem_device *nvmem, in mtk_efuse_fixup_dt_cell_info()
67 struct nvmem_device *nvmem; in mtk_efuse_probe()
H A Dimx-ocotp-ele.c131 static void imx_ocotp_fixup_dt_cell_info(struct nvmem_device *nvmem, in imx_ocotp_fixup_dt_cell_info()
141 struct nvmem_device *nvmem; in imx_ele_ocotp_probe()
H A Dqoriq-efuse.c43 struct nvmem_device *nvmem; in qoriq_efuse_probe()
H A Duniphier-efuse.c36 struct nvmem_device *nvmem; in uniphier_efuse_probe()
H A Dsec-qfprom.c57 struct nvmem_device *nvmem; in sec_qfprom_probe()
H A Dlayerscape-sfp.c50 struct nvmem_device *nvmem; in layerscape_sfp_probe()
H A Dmeson-efuse.c51 struct nvmem_device *nvmem; in meson_efuse_probe()
H A Dnintendo-otp.c79 struct nvmem_device *nvmem; in nintendo_otp_probe()
H A Du-boot-env.c18 struct nvmem_device *nvmem;
H A Dqnap-mcu-eeprom.c78 struct nvmem_device *ndev; in qnap_mcu_eeprom_probe()
H A Drcar-efuse.c19 struct nvmem_device *nvmem;
H A Dqfprom.c339 static void qfprom_fixup_dt_cell_info(struct nvmem_device *nvmem, in qfprom_fixup_dt_cell_info()
382 struct nvmem_device *nvmem; in qfprom_probe()
/linux/Documentation/driver-api/
H A Dnvmem.rst42 nvmem_device pointer.
119 struct nvmem_device *nvmem_device_get(struct device *dev, const char *name);
120 struct nvmem_device *devm_nvmem_device_get(struct device *dev,
122 struct nvmem_device *nvmem_device_find(void *data,
124 void nvmem_device_put(struct nvmem_device *nvmem);
125 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset,
127 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset,
129 int nvmem_device_cell_read(struct nvmem_device *nvmem,
131 int nvmem_device_cell_write(struct nvmem_device *nvmem,
138 take nvmem_device as parameter.
[all …]
/linux/drivers/soc/tegra/fuse/
H A Dfuse.h17 struct nvmem_device;
66 struct nvmem_device *nvmem;
/linux/drivers/nvmem/layouts/
H A Du-boot-env.h12 int u_boot_env_parse(struct device *dev, struct nvmem_device *nvmem,
H A Du-boot-env.c54 static int u_boot_env_parse_cells(struct device *dev, struct nvmem_device *nvmem, uint8_t *buf, in u_boot_env_parse_cells()
89 int u_boot_env_parse(struct device *dev, struct nvmem_device *nvmem, in u_boot_env_parse()
/linux/drivers/rtc/
H A Dnvmem.c17 struct nvmem_device *nvmem; in devm_rtc_nvmem_register()
/linux/drivers/soc/ti/
H A Dpm33xx.c276 struct nvmem_device *nvmem; in am33xx_pm_begin()
306 struct nvmem_device *nvmem; in am33xx_pm_end()
430 struct nvmem_device *nvmem; in am33xx_pm_rtc_setup()
/linux/drivers/soc/atmel/
H A Dsfr.c45 struct nvmem_device *nvmem; in atmel_sfr_probe()
/linux/include/linux/mtd/
H A Dmtd.h384 struct nvmem_device *nvmem;
385 struct nvmem_device *otp_user_nvmem;
386 struct nvmem_device *otp_factory_nvmem;

123