Lines Matching refs:ch
316 #define SYS_REG_ENC_ROW_3_4(n, ch) ((n) << (30 + (ch))) argument
317 #define SYS_REG_DEC_ROW_3_4(n, ch) (((n) >> (30 + (ch))) & 0x1) argument
318 #define SYS_REG_ENC_CHINFO(ch) (1 << (28 + (ch))) argument
319 #define SYS_REG_DEC_CHINFO(n, ch) (((n) >> (28 + (ch))) & 0x1) argument
324 #define SYS_REG_ENC_RANK(n, ch) (((n) - 1) << (11 + ((ch) * 16))) argument
325 #define SYS_REG_DEC_RANK(n, ch) (1 + (((n) >> (11 + 16 * (ch))) & 0x1)) argument
326 #define SYS_REG_ENC_COL(n, ch) (((n) - 9) << (9 + ((ch) * 16))) argument
327 #define SYS_REG_DEC_COL(n, ch) (9 + (((n) >> (9 + 16 * (ch))) & 0x3)) argument
328 #define SYS_REG_ENC_BK(n, ch) (((n) == 3 ? 0 : 1) << \ argument
329 (8 + ((ch) * 16)))
330 #define SYS_REG_DEC_BK(n, ch) (3 - (((n) >> (8 + 16 * (ch))) & 0x1)) argument
331 #define SYS_REG_ENC_BW(n, ch) ((2 >> (n)) << (2 + ((ch) * 16))) argument
332 #define SYS_REG_DEC_BW(n, ch) (2 >> (((n) >> (2 + 16 * (ch))) & 0x3)) argument
333 #define SYS_REG_ENC_DBW(n, ch) ((2 >> (n)) << (0 + ((ch) * 16))) argument
334 #define SYS_REG_DEC_DBW(n, ch) (2 >> (((n) >> (0 + 16 * (ch))) & 0x3)) argument
338 #define SYS_REG_ENC_CS0_ROW(n, os_reg2, os_reg3, ch) do { \ argument
339 (os_reg2) &= (~(0x3 << (6 + 16 * (ch)))); \
340 (os_reg3) &= (~(0x1 << (5 + 2 * (ch)))); \
341 (os_reg2) |= (((n) - 13) & 0x3) << (6 + 16 * (ch)); \
343 (5 + 2 * (ch)); \
346 #define SYS_REG_DEC_CS0_ROW(os_reg2, os_reg3, ch) \ argument
347 ((((((os_reg2) >> (6 + 16 * (ch)) & 0x3) | \
348 ((((os_reg3) >> (5 + 2 * (ch))) & 0x1) << 2)) + 1) & 0x7) + 12)
350 #define SYS_REG_ENC_CS1_ROW(n, os_reg2, os_reg3, ch) do { \ argument
351 (os_reg2) &= (~(0x3 << (4 + 16 * (ch)))); \
352 (os_reg3) &= (~(0x1 << (4 + 2 * (ch)))); \
353 (os_reg2) |= (((n) - 13) & 0x3) << (4 + 16 * (ch)); \
355 (4 + 2 * (ch)); \
358 #define SYS_REG_DEC_CS1_ROW(os_reg2, os_reg3, ch) \ argument
359 ((((((os_reg2) >> (4 + 16 * (ch)) & 0x3) | \
360 ((((os_reg3) >> (4 + 2 * (ch))) & 0x1) << 2)) + 1) & 0x7) + 12)
362 #define SYS_REG_ENC_CS1_COL(n, ch) (((n) - 9) << (0 + 2 * (ch))) argument
363 #define SYS_REG_DEC_CS1_COL(n, ch) (9 + (((n) >> (0 + 2 * (ch))) & 0x3)) argument
367 #define SYS_REG_ENC_ROW_3_4_V3(row3_4, ch) SYS_REG_ENC_ROW_3_4(row3_4, ch) argument
368 #define SYS_REG_DEC_ROW_3_4_V3(reg2, ch) SYS_REG_DEC_ROW_3_4(reg2, ch) argument
369 #define SYS_REG_ENC_CHINFO_V3(ch) SYS_REG_ENC_CHINFO(ch) argument
370 #define SYS_REG_DEC_CHINFO_V3(reg2, ch) SYS_REG_DEC_CHINFO(reg2, ch) argument
393 #define SYS_REG_ENC_COL_V3(col, ch) SYS_REG_ENC_COL(col, ch) argument
394 #define SYS_REG_DEC_COL_V3(reg2, ch) SYS_REG_DEC_COL(reg2, ch) argument
395 #define SYS_REG_ENC_BK_V3(bk, ch) SYS_REG_ENC_BK(bk, ch) argument
396 #define SYS_REG_DEC_BK_V3(reg2, ch) SYS_REG_DEC_BK(reg2, ch) argument
397 #define SYS_REG_ENC_BW_V3(bw, ch) SYS_REG_ENC_BW(bw, ch) argument
398 #define SYS_REG_DEC_BW_V3(reg2, ch) SYS_REG_DEC_BW(reg2, ch) argument
399 #define SYS_REG_ENC_DBW_V3(dbw, ch) SYS_REG_ENC_DBW(dbw, ch) argument
400 #define SYS_REG_DEC_DBW_V3(reg2, ch) SYS_REG_DEC_DBW(reg2, ch) argument
403 #define SYS_REG_ENC_CS0_ROW_V3(row, reg2, reg3, ch) \ argument
404 SYS_REG_ENC_CS0_ROW(row, reg2, reg3, ch)
405 #define SYS_REG_DEC_CS0_ROW_V3(reg2, reg3, ch) \ argument
406 SYS_REG_DEC_CS0_ROW(reg2, reg3, ch)
407 #define SYS_REG_ENC_CS1_ROW_V3(row, reg2, reg3, ch) \ argument
408 SYS_REG_ENC_CS1_ROW(row, reg2, reg3, ch)
409 #define SYS_REG_DEC_CS1_ROW_V3(reg2, reg3, ch) \ argument
410 SYS_REG_DEC_CS1_ROW(reg2, reg3, ch)
416 #define SYS_REG_ENC_CS1_COL_V3(col, ch) SYS_REG_ENC_CS1_COL(col, ch) argument
417 #define SYS_REG_DEC_CS1_COL_V3(reg3, ch) SYS_REG_DEC_CS1_COL(reg3, ch) argument