Lines Matching full:regmap
17 * instantiate a regmap with a backend depending on the bus the device is
18 * attached to, and use the regmap API to access the register map through that
22 * arbitrary length from/to the regmap.
24 * The endianness of regmap accesses is selectable for each map through device
28 * Furthermore, the register map described by a regmap can be split into
38 * enum regmap_size_t - Access sizes for regmap reads and writes
53 * enum regmap_endianness_t - Endianness for regmap reads and writes
77 * struct regmap - a way of accessing hardware/bus registers
82 struct regmap { struct
94 * regmap_write() - Write a 32-bit value to a regmap argument
96 * @map: Regmap to write to
97 * @offset: Offset in the regmap to write to
98 * @val: Data to write to the regmap at the specified offset
101 * regmap; if the size of data to be read is different, the regmap_raw_write
106 int regmap_write(struct regmap *map, uint offset, uint val);
109 * regmap_read() - Read a 32-bit value from a regmap
111 * @map: Regmap to read from
112 * @offset: Offset in the regmap to read from
113 * @valp: Pointer to the buffer to receive the data read from the regmap
117 * regmap; if the size of data to be read is different, the regmap_raw_read
122 int regmap_read(struct regmap *map, uint offset, uint *valp);
125 * regmap_raw_write() - Write a value of specified length to a regmap
127 * @map: Regmap to write to
128 * @offset: Offset in the regmap to write to
129 * @val: Value to write to the regmap at the specified offset
130 * @val_len: Length of the data to be written to the regmap
133 * arbitrary length to the regmap, and not just 32-bit values, and is thus a
138 int regmap_raw_write(struct regmap *map, uint offset, const void *val,
142 * regmap_raw_read() - Read a value of specified length from a regmap
144 * @map: Regmap to read from
145 * @offset: Offset in the regmap to read from
146 * @valp: Pointer to the buffer to receive the data read from the regmap
148 * @val_len: Length of the data to be read from the regmap
151 * arbitrary length from the regmap, and not just 32-bit values, and is thus a
156 int regmap_raw_read(struct regmap *map, uint offset, void *valp,
161 * regmap
163 * @map: Regmap to write to
164 * @range_num: Number of the range in the regmap to write to
165 * @offset: Offset in the regmap to write to
166 * @val: Value to write to the regmap at the specified offset
167 * @val_len: Length of the data to be written to the regmap
171 int regmap_raw_write_range(struct regmap *map, uint range_num, uint offset,
176 * regmap
178 * @map: Regmap to read from
179 * @range_num: Number of the range in the regmap to write to
180 * @offset: Offset in the regmap to read from
181 * @valp: Pointer to the buffer to receive the data read from the regmap
183 * @val_len: Length of the data to be read from the regmap
187 int regmap_raw_read_range(struct regmap *map, uint range_num, uint offset,
191 * regmap_range_set() - Set a value in a regmap range described by a struct
192 * @map: Regmap in which a value should be set
193 * @range: Range of the regmap in which a value should be set
194 * @type: Structure type that describes the memory layout of the regmap range
195 * @member: Member of the describing structure that should be set in the regmap
197 * @val: Value which should be written to the regmap range
207 * regmap_set() - Set a value in a regmap described by a struct
208 * @map: Regmap in which a value should be set
209 * @type: Structure type that describes the memory layout of the regmap
210 * @member: Member of the describing structure that should be set in the regmap
211 * @val: Value which should be written to the regmap
217 * regmap_range_get() - Get a value from a regmap range described by a struct
218 * @map: Regmap from which a value should be read
219 * @range: Range of the regmap from which a value should be read
220 * @type: Structure type that describes the memory layout of the regmap
223 * regmap range
224 * @valp: Variable that receives the value read from the regmap range
231 * regmap_get() - Get a value from a regmap described by a struct
232 * @map: Regmap from which a value should be read
233 * @type: Structure type that describes the memory layout of the regmap
236 * regmap
237 * @valp: Variable that receives the value read from the regmap
245 * @map: Regmap to read from
301 int regmap_update_bits(struct regmap *map, uint offset, uint mask, uint val);
312 int regmap_init_mem(ofnode node, struct regmap **mapp);
320 * @count: Number of pairs (e.g. 1 if the regmap has a single entry)
324 * This creates a new regmap with a list of regions passed in, rather than
331 struct regmap **mapp);
334 * regmap_get_range() - Obtain the base memory address of a regmap range
336 * @map: Regmap to query
340 void *regmap_get_range(struct regmap *map, unsigned int range_num);
343 * regmap_uninit() - free a previously inited regmap
345 * @map: Regmap to free
348 int regmap_uninit(struct regmap *map);