Lines Matching refs:t
32 #define CB710_READ_REGS_TEMPLATE(t) \ argument
33 static void cb710_read_regs_##t(void __iomem *iobase, \
34 u##t *reg, unsigned select) \
38 for (i = 0; i < ARRAY_SIZE(allow); ++i, reg += 16/(t/8)) { \
42 for (j = 0; j < 0x10/(t/8); ++j) { \
43 if (!allow_reg_read(i, j, t)) \
45 reg[j] = ioread##t(iobase \
46 + (i << 4) + (j * (t/8))); \
56 #define CB710_DUMP_REGS_TEMPLATE(t) \ argument
57 static void cb710_dump_regs_##t(struct device *dev, \
58 const u##t *reg, unsigned select) \
60 const char *const xp = &cb710_xes[8 - t/4]; \
61 const char *const format = cb710_regf_##t; \
66 for (i = 0; i < ARRAY_SIZE(allow); ++i, reg += 16/(t/8)) { \
70 for (j = 0; j < 0x10/(t/8); ++j) { \
72 if (j == 8/(t/8)) \
74 if (allow_reg_read(i, j, t)) \
83 #define CB710_READ_AND_DUMP_REGS_TEMPLATE(t) \ argument
84 static void cb710_read_and_dump_regs_##t(struct cb710_chip *chip, \
87 u##t regs[CB710_REG_COUNT/sizeof(u##t)]; \
90 cb710_read_regs_##t(chip->iobase, regs, select); \
91 cb710_dump_regs_##t(cb710_chip_dev(chip), regs, select); \
94 #define CB710_REG_ACCESS_TEMPLATES(t) \ argument
95 CB710_READ_REGS_TEMPLATE(t) \
96 CB710_DUMP_REGS_TEMPLATE(t) \
97 CB710_READ_AND_DUMP_REGS_TEMPLATE(t)