Lines Matching +full:chip +full:- +full:select
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright by Michał Mirosław, 2008-2009
24 unsigned mask = (1 << bits/8) - 1; in allow_reg_read()
31 u##t *reg, unsigned select) \
36 if (!(select & (1 << i))) \
55 const u##t *reg, unsigned select) \
57 const char *const xp = &cb710_xes[8 - t/4]; \
64 if (!(select & (1 << i))) \
81 static void cb710_read_and_dump_regs_##t(struct cb710_chip *chip, \
82 unsigned select) \
87 cb710_read_regs_##t(chip->iobase, regs, select); \
88 cb710_dump_regs_##t(cb710_chip_dev(chip), regs, select); \
100 void cb710_dump_regs(struct cb710_chip *chip, unsigned select) in cb710_dump_regs() argument
102 if (!(select & CB710_DUMP_REGS_MASK)) in cb710_dump_regs()
103 select = CB710_DUMP_REGS_ALL; in cb710_dump_regs()
104 if (!(select & CB710_DUMP_ACCESS_MASK)) in cb710_dump_regs()
105 select |= CB710_DUMP_ACCESS_8; in cb710_dump_regs()
107 if (select & CB710_DUMP_ACCESS_32) in cb710_dump_regs()
108 cb710_read_and_dump_regs_32(chip, select); in cb710_dump_regs()
109 if (select & CB710_DUMP_ACCESS_16) in cb710_dump_regs()
110 cb710_read_and_dump_regs_16(chip, select); in cb710_dump_regs()
111 if (select & CB710_DUMP_ACCESS_8) in cb710_dump_regs()
112 cb710_read_and_dump_regs_8(chip, select); in cb710_dump_regs()