Home
last modified time | relevance | path

Searched refs:nvmem (Results 1 – 25 of 169) sorted by relevance

1234567

/linux/drivers/nvmem/
H A Dlayouts.c79 static int nvmem_layout_create_device(struct nvmem_device *nvmem, in nvmem_layout_create_device() argument
91 layout->nvmem = nvmem; in nvmem_layout_create_device()
92 nvmem->layout = layout; in nvmem_layout_create_device()
97 dev->parent = &nvmem->dev; in nvmem_layout_create_device()
120 static int nvmem_layout_bus_populate(struct nvmem_device *nvmem, in nvmem_layout_bus_populate() argument
146 ret = nvmem_layout_create_device(nvmem, layout_dn); in nvmem_layout_bus_populate()
155 struct device_node *of_nvmem_layout_get_container(struct nvmem_device *nvmem) in of_nvmem_layout_get_container() argument
157 return of_get_child_by_name(nvmem->dev.of_node, "nvmem-layout"); in of_nvmem_layout_get_container()
165 int nvmem_populate_layout(struct nvmem_device *nvmem) in nvmem_populate_layout() argument
170 layout_dn = of_nvmem_layout_get_container(nvmem); in nvmem_populate_layout()
[all …]
H A Dinternals.h26 void (*fixup_dt_cell_info)(struct nvmem_device *nvmem,
41 int nvmem_populate_layout(struct nvmem_device *nvmem);
42 void nvmem_destroy_layout(struct nvmem_device *nvmem);
51 static inline int nvmem_populate_layout(struct nvmem_device *nvmem) in nvmem_populate_layout() argument
56 static inline void nvmem_destroy_layout(struct nvmem_device *nvmem) { } in nvmem_destroy_layout() argument
H A Du-boot-env.c18 struct nvmem_device *nvmem; member
73 priv->nvmem = devm_nvmem_register(dev, &config); in u_boot_env_probe()
74 if (IS_ERR(priv->nvmem)) in u_boot_env_probe()
75 return PTR_ERR(priv->nvmem); in u_boot_env_probe()
77 return u_boot_env_parse(dev, priv->nvmem, priv->format); in u_boot_env_probe()
H A Dmtk-efuse.c48 static void mtk_efuse_fixup_dt_cell_info(struct nvmem_device *nvmem, in mtk_efuse_fixup_dt_cell_info() argument
67 struct nvmem_device *nvmem; in mtk_efuse_probe() local
91 nvmem = devm_nvmem_register(dev, &econfig); in mtk_efuse_probe()
92 if (IS_ERR(nvmem)) in mtk_efuse_probe()
93 return PTR_ERR(nvmem); in mtk_efuse_probe()
/linux/include/linux/
H A Dnvmem-consumer.h72 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);
84 size_t nvmem_dev_size(struct nvmem_device *nvmem);
181 static inline void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put() argument
186 struct nvmem_device *nvmem) in devm_nvmem_device_put() argument
[all …]
/linux/arch/arm64/boot/dts/freescale/
H A Dfsl-ls1028a-kontron-kbox-a-230-ls.dts59 nvmem-cells = <&base_mac_address 2>;
60 nvmem-cell-names = "mac-address";
65 nvmem-cells = <&base_mac_address 3>;
66 nvmem-cell-names = "mac-address";
87 nvmem-cells = <&base_mac_address 4>;
88 nvmem-cell-names = "mac-address";
97 nvmem-cells = <&base_mac_address 5>;
98 nvmem-cell-names = "mac-address";
107 nvmem-cells = <&base_mac_address 6>;
108 nvmem-cell-names = "mac-address";
[all …]
H A Dfsl-ls1028a-kontron-sl28-var2.dts39 nvmem-cells = <&base_mac_address 2>;
40 nvmem-cell-names = "mac-address";
45 nvmem-cells = <&base_mac_address 3>;
46 nvmem-cell-names = "mac-address";
59 nvmem-cells = <&base_mac_address 0>;
60 nvmem-cell-names = "mac-address";
69 nvmem-cells = <&base_mac_address 1>;
70 nvmem-cell-names = "mac-address";
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm47094-asus-rt-ac3100.dts16 #nvmem-cell-cells = <1>;
22 nvmem-cells = <&et0macaddr 0>;
23 nvmem-cell-names = "mac-address";
27 nvmem-cells = <&et0macaddr 1>;
28 nvmem-cell-names = "mac-address";
32 nvmem-cells = <&et0macaddr 2>;
33 nvmem-cell-names = "mac-address";
H A Dbcm4709-asus-rt-ac3200.dts28 #nvmem-cell-cells = <1>;
79 nvmem-cells = <&et0macaddr 0>;
80 nvmem-cell-names = "mac-address";
84 nvmem-cells = <&et0macaddr 1>;
85 nvmem-cell-names = "mac-address";
89 nvmem-cells = <&et0macaddr 2>;
90 nvmem-cell-names = "mac-address";
H A Dbcm47094-asus-rt-ac5300.dts28 #nvmem-cell-cells = <1>;
85 nvmem-cells = <&et1macaddr 0>;
86 nvmem-cell-names = "mac-address";
90 nvmem-cells = <&et1macaddr 1>;
91 nvmem-cell-names = "mac-address";
95 nvmem-cells = <&et1macaddr 2>;
96 nvmem-cell-names = "mac-address";
H A Dbcm47094-luxul-abr-4500.dts30 #nvmem-cell-cells = <1>;
69 nvmem-cells = <&et0macaddr 0>;
70 nvmem-cell-names = "mac-address";
87 nvmem-cells = <&et0macaddr 1>;
88 nvmem-cell-names = "mac-address";
H A Dbcm47094-luxul-xbr-4500.dts30 #nvmem-cell-cells = <1>;
69 nvmem-cells = <&et0macaddr 0>;
70 nvmem-cell-names = "mac-address";
87 nvmem-cells = <&et0macaddr 1>;
88 nvmem-cell-names = "mac-address";
H A Dbcm47094-asus-rt-ac88u.dts16 #nvmem-cell-cells = <1>;
101 nvmem-cells = <&et1macaddr 0>;
102 nvmem-cell-names = "mac-address";
106 nvmem-cells = <&et1macaddr 1>;
107 nvmem-cell-names = "mac-address";
H A Dbcm47094-luxul-xwr-3100.dts30 #nvmem-cell-cells = <1>;
109 nvmem-cells = <&et0macaddr 0>;
110 nvmem-cell-names = "mac-address";
143 nvmem-cells = <&et0macaddr 5>;
144 nvmem-cell-names = "mac-address";
/linux/Documentation/driver-api/
H A Dnvmem.rst41 nvmem configuration to nvmem_register(), on success core would return a valid
62 Users of board files can define and register nvmem cells using the
81 Additionally it is possible to create nvmem cell lookup entries and register
82 them with the nvmem framework from machine code as shown in the example below::
114 `*nvmem_cell_get()` apis will get a reference to nvmem cell for a given id,
130 void nvmem_device_put(struct nvmem_device *nvmem);
131 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset,
133 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset,
135 int nvmem_device_cell_read(struct nvmem_device *nvmem,
137 int nvmem_device_cell_write(struct nvmem_device *nvmem,
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dnixge.txt15 - nvmem-cells: Phandle of nvmem cell containing the MAC address
16 - nvmem-cell-names: Should be "address"
31 nvmem-cells = <&eth1_addr>;
32 nvmem-cell-names = "address";
54 nvmem-cells = <&eth1_addr>;
55 nvmem-cell-names = "address";
70 nvmem-cells = <&eth1_addr>;
71 nvmem-cell-names = "address";
/linux/drivers/soc/ti/
H A Dpm33xx.c276 struct nvmem_device *nvmem; in am33xx_pm_begin() local
279 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_begin()
281 if (!IS_ERR(nvmem)) in am33xx_pm_begin()
282 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, 4, in am33xx_pm_begin()
306 struct nvmem_device *nvmem; in am33xx_pm_end() local
308 nvmem = devm_nvmem_device_get(&omap_rtc->dev, "omap_rtc_scratch0"); in am33xx_pm_end()
309 if (IS_ERR(nvmem)) in am33xx_pm_end()
327 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, 4, in am33xx_pm_end()
430 struct nvmem_device *nvmem; in am33xx_pm_rtc_setup() local
455 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_rtc_setup()
[all …]
/linux/Documentation/ABI/stable/
H A Dsysfs-bus-nvmem1 What: /sys/bus/nvmem/devices/.../force_ro
18 What: /sys/bus/nvmem/devices/.../nvmem
24 Permissions for write to this file depends on the nvmem
31 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
41 What: /sys/bus/nvmem/devices/.../type
/linux/drivers/rtc/
H A Dnvmem.c17 struct nvmem_device *nvmem; in devm_rtc_nvmem_register() local
25 nvmem = devm_nvmem_register(dev, nvmem_config); in devm_rtc_nvmem_register()
26 if (IS_ERR(nvmem)) in devm_rtc_nvmem_register()
29 return PTR_ERR_OR_ZERO(nvmem); in devm_rtc_nvmem_register()
/linux/drivers/nvmem/layouts/
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() argument
83 nvmem_add_one_cell(nvmem, &info); in u_boot_env_parse_cells()
89 int u_boot_env_parse(struct device *dev, struct nvmem_device *nvmem, in u_boot_env_parse() argument
105 dev_size = nvmem_dev_size(nvmem); in u_boot_env_parse()
113 bytes = nvmem_device_read(nvmem, 0, dev_size, buf); in u_boot_env_parse()
159 err = u_boot_env_parse_cells(dev, nvmem, buf, data_offset, data_len); in u_boot_env_parse()
175 return u_boot_env_parse(dev, layout->nvmem, format); in u_boot_env_add_cells()
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt7986a-acelink-ew-7886cax.dts72 nvmem-cells = <&macaddr>;
73 nvmem-cell-names = "mac-address";
124 compatible = "nvmem-cells";
129 nvmem-layout {
170 nvmem-cells = <&eeprom>;
171 nvmem-cell-names = "eeprom";
/linux/drivers/mtd/ubi/
H A Dnvmem.c15 struct nvmem_device *nvmem; member
99 unv->nvmem = nvmem_register(&config); in ubi_nvmem_add()
100 if (IS_ERR(unv->nvmem)) { in ubi_nvmem_add()
101 ret = dev_err_probe(vi->dev, PTR_ERR(unv->nvmem), in ubi_nvmem_add()
132 nvmem_unregister(unv->nvmem); in ubi_nvmem_remove()
178 nvmem_unregister(unv->nvmem); in ubi_nvmem_exit()
/linux/arch/arm64/boot/dts/marvell/
H A Darmada-3720-gl-mv1000.dts182 nvmem-cells = <&macaddr_factory_6>;
183 nvmem-cell-names = "mac-address";
191 nvmem-cells = <&macaddr_factory_6>;
192 nvmem-cell-names = "mac-address";
214 nvmem-cells = <&macaddr_factory_0>;
215 nvmem-cell-names = "mac-address";
226 compatible = "nvmem-cells";
/linux/drivers/soc/atmel/
H A Dsfr.c45 struct nvmem_device *nvmem; in atmel_sfr_probe() local
63 nvmem = devm_nvmem_register(dev, &atmel_sfr_nvmem_config); in atmel_sfr_probe()
64 if (IS_ERR(nvmem)) { in atmel_sfr_probe()
66 return PTR_ERR(nvmem); in atmel_sfr_probe()
/linux/drivers/thunderbolt/
H A Dnvm.c431 struct nvmem_device *nvmem; in tb_nvm_add_active() local
446 nvmem = nvmem_register(&config); in tb_nvm_add_active()
447 if (IS_ERR(nvmem)) in tb_nvm_add_active()
448 return PTR_ERR(nvmem); in tb_nvm_add_active()
450 nvm->active = nvmem; in tb_nvm_add_active()
496 struct nvmem_device *nvmem; in tb_nvm_add_non_active() local
511 nvmem = nvmem_register(&config); in tb_nvm_add_non_active()
512 if (IS_ERR(nvmem)) in tb_nvm_add_non_active()
513 return PTR_ERR(nvmem); in tb_nvm_add_non_active()
515 nvm->non_active = nvmem; in tb_nvm_add_non_active()

1234567