Lines Matching full:reg
36 * REG ==> macro to location of register offset
37 * eg. aud110->regs->reg
40 dm_read_reg(CTX, REG(reg_name))
43 dm_write_reg(CTX, REG(reg_name), value)
56 REG(reg_name), \
67 #define REG_SET_2(reg, init_value, f1, v1, f2, v2) \ argument
68 REG_SET_N(reg, 2, init_value, \
69 FN(reg, f1), v1,\
70 FN(reg, f2), v2)
72 #define REG_SET_3(reg, init_value, f1, v1, f2, v2, f3, v3) \ argument
73 REG_SET_N(reg, 3, init_value, \
74 FN(reg, f1), v1,\
75 FN(reg, f2), v2,\
76 FN(reg, f3), v3)
78 #define REG_SET_4(reg, init_value, f1, v1, f2, v2, f3, v3, f4, v4) \ argument
79 REG_SET_N(reg, 4, init_value, \
80 FN(reg, f1), v1,\
81 FN(reg, f2), v2,\
82 FN(reg, f3), v3,\
83 FN(reg, f4), v4)
85 #define REG_SET_5(reg, init_value, f1, v1, f2, v2, f3, v3, f4, v4, \ argument
87 REG_SET_N(reg, 5, init_value, \
88 FN(reg, f1), v1,\
89 FN(reg, f2), v2,\
90 FN(reg, f3), v3,\
91 FN(reg, f4), v4,\
92 FN(reg, f5), v5)
94 #define REG_SET_6(reg, init_value, f1, v1, f2, v2, f3, v3, f4, v4, \ argument
96 REG_SET_N(reg, 6, init_value, \
97 FN(reg, f1), v1,\
98 FN(reg, f2), v2,\
99 FN(reg, f3), v3,\
100 FN(reg, f4), v4,\
101 FN(reg, f5), v5,\
102 FN(reg, f6), v6)
104 #define REG_SET_7(reg, init_value, f1, v1, f2, v2, f3, v3, f4, v4, \ argument
106 REG_SET_N(reg, 7, init_value, \
107 FN(reg, f1), v1,\
108 FN(reg, f2), v2,\
109 FN(reg, f3), v3,\
110 FN(reg, f4), v4,\
111 FN(reg, f5), v5,\
112 FN(reg, f6), v6,\
113 FN(reg, f7), v7)
115 #define REG_SET_8(reg, init_value, f1, v1, f2, v2, f3, v3, f4, v4, \ argument
117 REG_SET_N(reg, 8, init_value, \
118 FN(reg, f1), v1,\
119 FN(reg, f2), v2,\
120 FN(reg, f3), v3,\
121 FN(reg, f4), v4,\
122 FN(reg, f5), v5,\
123 FN(reg, f6), v6,\
124 FN(reg, f7), v7,\
125 FN(reg, f8), v8)
127 #define REG_SET_9(reg, init_value, f1, v1, f2, v2, f3, v3, f4, v4, f5, \ argument
129 REG_SET_N(reg, 9, init_value, \
130 FN(reg, f1), v1,\
131 FN(reg, f2), v2, \
132 FN(reg, f3), v3, \
133 FN(reg, f4), v4, \
134 FN(reg, f5), v5, \
135 FN(reg, f6), v6, \
136 FN(reg, f7), v7, \
137 FN(reg, f8), v8, \
138 FN(reg, f9), v9)
140 #define REG_SET_10(reg, init_value, f1, v1, f2, v2, f3, v3, f4, v4, f5, \ argument
142 REG_SET_N(reg, 10, init_value, \
143 FN(reg, f1), v1,\
144 FN(reg, f2), v2, \
145 FN(reg, f3), v3, \
146 FN(reg, f4), v4, \
147 FN(reg, f5), v5, \
148 FN(reg, f6), v6, \
149 FN(reg, f7), v7, \
150 FN(reg, f8), v8, \
151 FN(reg, f9), v9, \
152 FN(reg, f10), v10)
157 generic_reg_get(CTX, REG(reg_name), \
161 generic_reg_get2(CTX, REG(reg_name), \
166 generic_reg_get3(CTX, REG(reg_name), \
172 generic_reg_get4(CTX, REG(reg_name), \
179 generic_reg_get5(CTX, REG(reg_name), \
187 generic_reg_get6(CTX, REG(reg_name), \
196 generic_reg_get7(CTX, REG(reg_name), \
206 generic_reg_get8(CTX, REG(reg_name), \
220 REG(reg_name), FN(reg_name, field), val,\
227 REG(reg_name), \
234 #define REG_UPDATE_2(reg, f1, v1, f2, v2) \ argument
235 REG_UPDATE_N(reg, 2,\
236 FN(reg, f1), v1,\
237 FN(reg, f2), v2)
239 #define REG_UPDATE_3(reg, f1, v1, f2, v2, f3, v3) \ argument
240 REG_UPDATE_N(reg, 3, \
241 FN(reg, f1), v1,\
242 FN(reg, f2), v2, \
243 FN(reg, f3), v3)
245 #define REG_UPDATE_4(reg, f1, v1, f2, v2, f3, v3, f4, v4) \ argument
246 REG_UPDATE_N(reg, 4, \
247 FN(reg, f1), v1,\
248 FN(reg, f2), v2, \
249 FN(reg, f3), v3, \
250 FN(reg, f4), v4)
252 #define REG_UPDATE_5(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5) \ argument
253 REG_UPDATE_N(reg, 5, \
254 FN(reg, f1), v1,\
255 FN(reg, f2), v2, \
256 FN(reg, f3), v3, \
257 FN(reg, f4), v4, \
258 FN(reg, f5), v5)
260 #define REG_UPDATE_6(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5, f6, v6) \ argument
261 REG_UPDATE_N(reg, 6, \
262 FN(reg, f1), v1,\
263 FN(reg, f2), v2, \
264 FN(reg, f3), v3, \
265 FN(reg, f4), v4, \
266 FN(reg, f5), v5, \
267 FN(reg, f6), v6)
269 #define REG_UPDATE_7(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5, f6, v6, f7, v7) \ argument
270 REG_UPDATE_N(reg, 7, \
271 FN(reg, f1), v1,\
272 FN(reg, f2), v2, \
273 FN(reg, f3), v3, \
274 FN(reg, f4), v4, \
275 FN(reg, f5), v5, \
276 FN(reg, f6), v6, \
277 FN(reg, f7), v7)
279 #define REG_UPDATE_8(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5, f6, v6, f7, v7, f8, v8) \ argument
280 REG_UPDATE_N(reg, 8, \
281 FN(reg, f1), v1,\
282 FN(reg, f2), v2, \
283 FN(reg, f3), v3, \
284 FN(reg, f4), v4, \
285 FN(reg, f5), v5, \
286 FN(reg, f6), v6, \
287 FN(reg, f7), v7, \
288 FN(reg, f8), v8)
290 #define REG_UPDATE_9(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5, f6, v6, f7, v7, f8, v8, f9, v9) \ argument
291 REG_UPDATE_N(reg, 9, \
292 FN(reg, f1), v1,\
293 FN(reg, f2), v2, \
294 FN(reg, f3), v3, \
295 FN(reg, f4), v4, \
296 FN(reg, f5), v5, \
297 FN(reg, f6), v6, \
298 FN(reg, f7), v7, \
299 FN(reg, f8), v8, \
300 FN(reg, f9), v9)
302 #define REG_UPDATE_10(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5, f6, v6, f7, v7, f8, v8, f9, v9, … argument
303 REG_UPDATE_N(reg, 10, \
304 FN(reg, f1), v1,\
305 FN(reg, f2), v2, \
306 FN(reg, f3), v3, \
307 FN(reg, f4), v4, \
308 FN(reg, f5), v5, \
309 FN(reg, f6), v6, \
310 FN(reg, f7), v7, \
311 FN(reg, f8), v8, \
312 FN(reg, f9), v9, \
313 FN(reg, f10), v10)
315 #define REG_UPDATE_14(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5, f6, v6, f7, v7, f8, v8, f9, v9, … argument
317 REG_UPDATE_N(reg, 14, \
318 FN(reg, f1), v1,\
319 FN(reg, f2), v2, \
320 FN(reg, f3), v3, \
321 FN(reg, f4), v4, \
322 FN(reg, f5), v5, \
323 FN(reg, f6), v6, \
324 FN(reg, f7), v7, \
325 FN(reg, f8), v8, \
326 FN(reg, f9), v9, \
327 FN(reg, f10), v10, \
328 FN(reg, f11), v11, \
329 FN(reg, f12), v12, \
330 FN(reg, f13), v13, \
331 FN(reg, f14), v14)
333 #define REG_UPDATE_19(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5, f6, v6, f7, v7, f8, v8, f9, v9, … argument
335 REG_UPDATE_N(reg, 19, \
336 FN(reg, f1), v1,\
337 FN(reg, f2), v2, \
338 FN(reg, f3), v3, \
339 FN(reg, f4), v4, \
340 FN(reg, f5), v5, \
341 FN(reg, f6), v6, \
342 FN(reg, f7), v7, \
343 FN(reg, f8), v8, \
344 FN(reg, f9), v9, \
345 FN(reg, f10), v10, \
346 FN(reg, f11), v11, \
347 FN(reg, f12), v12, \
348 FN(reg, f13), v13, \
349 FN(reg, f14), v14, \
350 FN(reg, f15), v15, \
351 FN(reg, f16), v16, \
352 FN(reg, f17), v17, \
353 FN(reg, f18), v18, \
354 FN(reg, f19), v19)
356 #define REG_UPDATE_20(reg, f1, v1, f2, v2, f3, v3, f4, v4, f5, v5, f6, v6, f7, v7, f8, v8, f9, v9, … argument
358 REG_UPDATE_N(reg, 20, \
359 FN(reg, f1), v1,\
360 FN(reg, f2), v2, \
361 FN(reg, f3), v3, \
362 FN(reg, f4), v4, \
363 FN(reg, f5), v5, \
364 FN(reg, f6), v6, \
365 FN(reg, f7), v7, \
366 FN(reg, f8), v8, \
367 FN(reg, f9), v9, \
368 FN(reg, f10), v10, \
369 FN(reg, f11), v11, \
370 FN(reg, f12), v12, \
371 FN(reg, f13), v13, \
372 FN(reg, f14), v14, \
373 FN(reg, f15), v15, \
374 FN(reg, f16), v16, \
375 FN(reg, f17), v17, \
376 FN(reg, f18), v18, \
377 FN(reg, f19), v19, \
378 FN(reg, f20), v20)
382 #define REG_UPDATE_SEQ_2(reg, f1, v1, f2, v2) \ argument
383 { uint32_t val = REG_UPDATE(reg, f1, v1); \
384 REG_SET(reg, val, f2, v2); }
386 #define REG_UPDATE_SEQ_3(reg, f1, v1, f2, v2, f3, v3) \ argument
387 { uint32_t val = REG_UPDATE(reg, f1, v1); \
388 val = REG_SET(reg, val, f2, v2); \
389 REG_SET(reg, val, f3, v3); }
448 REG(index_reg_name), REG(data_reg_name), IND_REG(index), \
454 FN(reg, f1), v1,\
455 FN(reg, f2), v2)
459 generic_read_indirect_reg(CTX, REG(index_reg_name), REG(data_reg_name), IND_REG(index))
462 generic_indirect_reg_get(CTX, REG(index_reg_name), REG(data_reg_name), \
472 REG(index_reg_name), REG(data_reg_name), IND_REG(index), \
478 FN(reg, f1), v1,\
479 FN(reg, f2), v2)
513 FN(reg, f1), v1,\
514 FN(reg, f2), v2)