Searched refs:nvmem (Results 1 - 25 of 130) sorted by last modified time

123456

/linux-master/drivers/iio/pressure/
H A Dbmp280-core.c32 #include <linux/nvmem-provider.h>
1627 /* Register nvmem device */
/linux-master/drivers/misc/eeprom/
H A Dat24.c20 #include <linux/nvmem-provider.h>
87 struct nvmem_device *nvmem; member in struct:at24_data
776 at24->nvmem = devm_nvmem_register(dev, &nvmem_config);
777 if (IS_ERR(at24->nvmem)) {
781 return dev_err_probe(dev, PTR_ERR(at24->nvmem),
782 "failed to register nvmem\n");
H A Deeprom_93xx46.c19 #include <linux/nvmem-provider.h>
62 struct nvmem_device *nvmem; member in struct:eeprom_93xx46_dev
539 edev->nvmem = devm_nvmem_register(&spi->dev, &edev->nvmem_config);
540 if (IS_ERR(edev->nvmem))
541 return PTR_ERR(edev->nvmem);
/linux-master/net/ethernet/
H A Deth.c46 #include <linux/nvmem-consumer.h>
529 * nvmem_get_mac_address - Obtain the MAC address from an nvmem cell named
/linux-master/drivers/soc/mediatek/
H A Dmtk-svs.c22 #include <linux/nvmem-consumer.h>
/linux-master/drivers/net/phy/
H A Dmediatek-ge-soc.c6 #include <linux/nvmem-consumer.h>
/linux-master/drivers/mtd/
H A Dmtdcore.c31 #include <linux/nvmem-provider.h>
115 nvmem_unregister(mtd->nvmem);
556 config.add_legacy_fixed_of_cells = of_device_is_compatible(node, "nvmem-cells");
566 mtd->nvmem = nvmem_register(&config);
567 if (IS_ERR(mtd->nvmem)) {
569 if (PTR_ERR(mtd->nvmem) == -EOPNOTSUPP)
570 mtd->nvmem = NULL;
572 return dev_err_probe(&mtd->dev, PTR_ERR(mtd->nvmem),
754 /* Add the nvmem provider */
891 struct nvmem_device *nvmem local
953 struct nvmem_device *nvmem; local
[all...]
/linux-master/drivers/thunderbolt/
H A Dtb.h12 #include <linux/nvmem-provider.h>
H A Dswitch.c12 #include <linux/nvmem-provider.h>
H A Dnvm.c431 struct nvmem_device *nvmem; local
446 nvmem = nvmem_register(&config);
447 if (IS_ERR(nvmem))
448 return PTR_ERR(nvmem);
450 nvm->active = nvmem;
496 struct nvmem_device *nvmem; local
511 nvmem = nvmem_register(&config);
512 if (IS_ERR(nvmem))
513 return PTR_ERR(nvmem);
515 nvm->non_active = nvmem;
[all...]
/linux-master/include/linux/
H A Drtc.h18 #include <linux/nvmem-provider.h>
/linux-master/drivers/phy/realtek/
H A Dphy-rtk-usb2.c15 #include <linux/nvmem-consumer.h>
H A Dphy-rtk-usb3.c15 #include <linux/nvmem-consumer.h>
/linux-master/drivers/nvmem/
H A Dmtk-efuse.c11 #include <linux/nvmem-provider.h>
48 static void mtk_efuse_fixup_dt_cell_info(struct nvmem_device *nvmem, argument
67 struct nvmem_device *nvmem; local
91 nvmem = devm_nvmem_register(dev, &econfig);
92 if (IS_ERR(nvmem))
93 return PTR_ERR(nvmem);
H A Dzynqmp_nvmem.c9 #include <linux/nvmem-provider.h>
201 { .compatible = "xlnx,zynqmp-nvmem-fw", },
211 econfig.name = "zynqmp-nvmem";
226 .name = "zynqmp-nvmem",
H A Dmeson-efuse.c11 #include <linux/nvmem-provider.h>
46 struct nvmem_device *nvmem; local
85 nvmem = devm_nvmem_register(&pdev->dev, econfig);
87 return PTR_ERR_OR_ZERO(nvmem);
H A Dcore.c3 * nvmem framework core.
16 #include <linux/nvmem-consumer.h>
17 #include <linux/nvmem-provider.h>
37 struct nvmem_device *nvmem; member in struct:nvmem_cell_entry
58 static int __nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, argument
61 if (nvmem->reg_read)
62 return nvmem->reg_read(nvmem->priv, offset, val, bytes);
67 static int __nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, argument
72 if (nvmem
82 nvmem_access_with_keepouts(struct nvmem_device *nvmem, unsigned int offset, void *val, size_t bytes, int write) argument
146 nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, void *val, size_t bytes) argument
155 nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, void *val, size_t bytes) argument
180 struct nvmem_device *nvmem = to_nvmem_device(dev); local
197 struct nvmem_device *nvmem; local
237 struct nvmem_device *nvmem; local
272 nvmem_bin_attr_get_umode(struct nvmem_device *nvmem) argument
295 struct nvmem_device *nvmem = to_nvmem_device(dev); local
388 nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, const struct nvmem_config *config) argument
423 nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, const struct nvmem_config *config) argument
430 nvmem_populate_sysfs_cells(struct nvmem_device *nvmem) argument
495 nvmem_sysfs_setup_compat(struct nvmem_device *nvmem, const struct nvmem_config *config) argument
500 nvmem_sysfs_remove_compat(struct nvmem_device *nvmem, const struct nvmem_config *config) argument
509 struct nvmem_device *nvmem = to_nvmem_device(dev); local
535 nvmem_device_remove_all_cells(const struct nvmem_device *nvmem) argument
551 nvmem_cell_info_to_nvmem_cell_entry_nodup(struct nvmem_device *nvmem, const struct nvmem_cell_info *info, struct nvmem_cell_entry *cell) argument
581 nvmem_cell_info_to_nvmem_cell_entry(struct nvmem_device *nvmem, const struct nvmem_cell_info *info, struct nvmem_cell_entry *cell) argument
606 nvmem_add_one_cell(struct nvmem_device *nvmem, const struct nvmem_cell_info *info) argument
637 nvmem_add_cells(struct nvmem_device *nvmem, const struct nvmem_cell_info *info, int ncells) argument
678 nvmem_add_cells_from_table(struct nvmem_device *nvmem) argument
714 nvmem_find_cell_entry_by_name(struct nvmem_device *nvmem, const char *cell_id) argument
730 nvmem_validate_keepouts(struct nvmem_device *nvmem) argument
783 nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_node *np) argument
833 nvmem_add_cells_from_legacy_of(struct nvmem_device *nvmem) argument
838 nvmem_add_cells_from_fixed_layout(struct nvmem_device *nvmem) argument
897 struct nvmem_device *nvmem; local
1050 struct nvmem_device *nvmem; local
1069 nvmem_unregister(struct nvmem_device *nvmem) argument
1076 devm_nvmem_unregister(void *nvmem) argument
1095 struct nvmem_device *nvmem; local
1113 struct nvmem_device *nvmem = NULL; local
1138 __nvmem_device_put(struct nvmem_device *nvmem) argument
1159 struct nvmem_device *nvmem; local
1188 struct nvmem_device *nvmem; local
1219 struct nvmem_device **nvmem = res; local
1239 devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem) argument
1255 nvmem_device_put(struct nvmem_device *nvmem) argument
1273 struct nvmem_device **ptr, *nvmem; local
1322 struct nvmem_device *nvmem; local
1362 nvmem_layout_module_put(struct nvmem_device *nvmem) argument
1370 nvmem_find_cell_entry_by_node(struct nvmem_device *nvmem, struct device_node *np) argument
1386 nvmem_layout_module_get_optional(struct nvmem_device *nvmem) argument
1413 struct nvmem_device *nvmem; local
1589 struct nvmem_device *nvmem = cell->entry->nvmem; local
1633 __nvmem_cell_read(struct nvmem_device *nvmem, struct nvmem_cell_entry *cell, void *buf, size_t *len, const char *id, int index) argument
1674 struct nvmem_device *nvmem = entry->nvmem; local
1698 struct nvmem_device *nvmem = cell->nvmem; local
1750 struct nvmem_device *nvmem = cell->nvmem; local
1992 nvmem_device_cell_read(struct nvmem_device *nvmem, struct nvmem_cell_info *info, void *buf) argument
2023 nvmem_device_cell_write(struct nvmem_device *nvmem, struct nvmem_cell_info *info, void *buf) argument
2051 nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, size_t bytes, void *buf) argument
2079 nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, size_t bytes, void *buf) argument
2166 nvmem_dev_name(struct nvmem_device *nvmem) argument
2179 nvmem_dev_size(struct nvmem_device *nvmem) argument
[all...]
H A Dlayouts.c11 #include <linux/nvmem-consumer.h>
12 #include <linux/nvmem-provider.h>
49 .name = "nvmem-layout",
77 static int nvmem_layout_create_device(struct nvmem_device *nvmem, argument
89 layout->nvmem = nvmem;
90 nvmem->layout = layout;
95 dev->parent = &nvmem->dev;
118 static int nvmem_layout_bus_populate(struct nvmem_device *nvmem, argument
144 ret = nvmem_layout_create_device(nvmem, layout_d
153 of_nvmem_layout_get_container(struct nvmem_device *nvmem) argument
163 nvmem_populate_layout(struct nvmem_device *nvmem) argument
181 nvmem_destroy_layout(struct nvmem_device *nvmem) argument
[all...]
/linux-master/drivers/mtd/ubi/
H A Dnvmem.c8 #include <linux/nvmem-provider.h>
16 struct nvmem_device *nvmem; member in struct:ubi_nvmem
71 if (!of_get_child_by_name(np, "nvmem-layout"))
99 unv->nvmem = nvmem_register(&config);
100 if (IS_ERR(unv->nvmem)) {
101 ret = dev_err_probe(vi->dev, PTR_ERR(unv->nvmem),
132 nvmem_unregister(unv->nvmem);
178 nvmem_unregister(unv->nvmem);
H A DMakefile10 obj-$(CONFIG_MTD_UBI_NVMEM) += nvmem.o
/linux-master/drivers/thermal/
H A Dsun8i_thermal.c16 #include <linux/nvmem-consumer.h>
/linux-master/drivers/thermal/mediatek/
H A Dlvts_thermal.c15 #include <linux/nvmem-consumer.h>
701 of_property_for_each_string(np, "nvmem-cell-names", prop, cell_name) {
H A Dauxadc_thermal.c15 #include <linux/nvmem-consumer.h>
/linux-master/include/linux/mtd/
H A Dmtd.h15 #include <linux/nvmem-provider.h>
384 struct nvmem_device *nvmem; member in struct:mtd_info
/linux-master/drivers/phy/mediatek/
H A Dphy-mtk-tphy.c15 #include <linux/nvmem-consumer.h>
1281 instance->efuse_sw_en = device_property_read_bool(dev, "nvmem-cells");

Completed in 419 milliseconds

123456