Lines Matching +full:one +full:- +full:cell
1 .. SPDX-License-Identifier: GPL-2.0
20 register a sysfs file, allow in-kernel users to access the content of the
23 This was also a problem as far as other in-kernel users were involved, since
24 the solutions used were pretty much different from one driver to another, there
35 and write the non-volatile memory.
51 .name = "brcm-nvram",
55 config.dev = &pdev->dev;
62 Device drivers can define and register an nvmem cell using the nvmem_cell_info
75 Additionally it is possible to create nvmem cell lookup entries and register
79 .nvmem_name = "i2c-eeprom",
82 .con_id = "mac-address",
93 3. NVMEM cell based consumer APIs
102 void nvmem_cell_put(struct nvmem_cell *cell);
103 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
105 void *nvmem_cell_read(struct nvmem_cell *cell, ssize_t *len);
106 int nvmem_cell_write(struct nvmem_cell *cell, void *buf, ssize_t len);
108 `*nvmem_cell_get()` apis will get a reference to nvmem cell for a given id,
109 and nvmem_cell_read/write() can then read or write to the cell.
110 Once the usage of the cell is finished the consumer should call
111 `*nvmem_cell_put()` to free all the allocation memory for the cell.
135 of nvmem_controller from one of the `*nvmem_device_get()` api.
137 The difference between these apis and cell based apis is that these apis always
147 void nvmem_cell_put(struct nvmem_cell *cell);
148 void devm_nvmem_cell_put(struct device *dev, struct nvmem_cell *cell);
189 the content is still well defined, e.g. tag-length-values. In this case,
195 it is possible to associate a custom post processing hook to a cell. It
201 .. kernel-doc:: drivers/nvmem/core.c