/linux-master/drivers/iio/pressure/ |
H A D | bmp280-core.c | 32 #include <linux/nvmem-provider.h> 1627 /* Register nvmem device */
|
/linux-master/drivers/misc/eeprom/ |
H A D | at24.c | 20 #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 D | eeprom_93xx46.c | 19 #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 D | eth.c | 46 #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 D | mtk-svs.c | 22 #include <linux/nvmem-consumer.h>
|
/linux-master/drivers/net/phy/ |
H A D | mediatek-ge-soc.c | 6 #include <linux/nvmem-consumer.h>
|
/linux-master/drivers/mtd/ |
H A D | mtdcore.c | 31 #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 D | tb.h | 12 #include <linux/nvmem-provider.h>
|
H A D | switch.c | 12 #include <linux/nvmem-provider.h>
|
H A D | nvm.c | 431 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 D | rtc.h | 18 #include <linux/nvmem-provider.h>
|
/linux-master/drivers/phy/realtek/ |
H A D | phy-rtk-usb2.c | 15 #include <linux/nvmem-consumer.h>
|
H A D | phy-rtk-usb3.c | 15 #include <linux/nvmem-consumer.h>
|
/linux-master/drivers/nvmem/ |
H A D | mtk-efuse.c | 11 #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 D | zynqmp_nvmem.c | 9 #include <linux/nvmem-provider.h> 201 { .compatible = "xlnx,zynqmp-nvmem-fw", }, 211 econfig.name = "zynqmp-nvmem"; 226 .name = "zynqmp-nvmem",
|
H A D | meson-efuse.c | 11 #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 D | core.c | 3 * 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 D | layouts.c | 11 #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 D | nvmem.c | 8 #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 D | Makefile | 10 obj-$(CONFIG_MTD_UBI_NVMEM) += nvmem.o
|
/linux-master/drivers/thermal/ |
H A D | sun8i_thermal.c | 16 #include <linux/nvmem-consumer.h>
|
/linux-master/drivers/thermal/mediatek/ |
H A D | lvts_thermal.c | 15 #include <linux/nvmem-consumer.h> 701 of_property_for_each_string(np, "nvmem-cell-names", prop, cell_name) {
|
H A D | auxadc_thermal.c | 15 #include <linux/nvmem-consumer.h>
|
/linux-master/include/linux/mtd/ |
H A D | mtd.h | 15 #include <linux/nvmem-provider.h> 384 struct nvmem_device *nvmem; member in struct:mtd_info
|
/linux-master/drivers/phy/mediatek/ |
H A D | phy-mtk-tphy.c | 15 #include <linux/nvmem-consumer.h> 1281 instance->efuse_sw_en = device_property_read_bool(dev, "nvmem-cells");
|