Lines Matching +full:nvmem +full:- +full:cell +full:- +full:names
27 .Nm nvmem ,
35 .Cd "device nvmem"
40 .Fn nvmem_read_cell_by_name "phandle_t node" "const char *name" "void *cell" "size_t buflen"
42 .Fn nvmem_read_cell_by_idx "phandle_t node" "int idx" "void *cell" "size_t buflen"
44 .Fn nvmem_write_cell_by_name "phandle_t node" "const char *name" "void *cell" "size_t buflen"
46 .Fn nvmem_write_cell_by_idx "phandle_t node" "int idx" "void *cell" "size_t buflen"
48 On some embedded boards, the manufacturer stored some data on a NVMEM
49 (Non-Volatile Memory), this is generally stored in some eeprom or fuses.
56 .Bl -tag -width indent
58 Get the size of the cell base on the reg property on the node.
59 Return the size or ENOENT if the cell name wasn't found
60 .It Fn nvmem_read_cell_by_name "phandle_t node" "const char *name" "void *cell" "size_t buflen"
61 Get the cell content based on the name.
62 Return 0 on sucess or ENOENT if the cell doesn't exists, ENXIO if no provider device was found,
64 .It Fn nvmem_read_cell_by_idx "phandle_t node" "int idx" "void *cell" "size_t buflen"
65 Get the cell content based on the id.
66 Return 0 on sucess or ENOENT if the cell doesn't exists, ENXIO if no provider device was found,
68 .It Fn nvmem_write_cell_by_name "phandle_t node" "const char *name" "void *cell" "size_t buflen"
69 Write the cell content based on the name.
70 Return 0 on sucess or ENOENT if the cell doesn't exists, ENXIO if no provider device was found,
72 .It Fn nvmem_write_cell_by_idx "phandle_t node" "int idx" "void *cell" "size_t buflen"
73 Write the cell content based on the id.
74 Return 0 on sucess or ENOENT if the cell doesn't exists, ENXIO if no provider device was found,
78 .Bl -tag -width indent
80 Provider device method to read a cell content.
82 Provider device method to write a cell content.
86 .Bd -literal
97 nvmem-cells = <&board_id>
98 nvmem-cell-names = "boardid";
103 .Bd -literal
128 /* nvmem interface */
136 The consumer device driver for device@30000 can now read the nvmem data
137 .Bd -literal
151 The nvmem related function first appear in
153 The nvmem interface and manual page was written by