Lines Matching refs:num_regs
70 static int wm8350_phys_read(struct wm8350 *wm8350, u8 reg, int num_regs,
74 int bytes = num_regs * 2;
79 for (i = reg; i < reg + num_regs; i++) {
87 dump(num_regs, dest);
92 static int wm8350_read(struct wm8350 *wm8350, u8 reg, int num_regs, u16 *dest)
95 int end = reg + num_regs;
97 int bytes = num_regs * 2;
102 if ((reg + num_regs - 1) > WM8350_MAX_REGISTER) {
104 reg + num_regs - 1);
109 "%s R%d(0x%2.2x) %d regs\n", __func__, reg, reg, num_regs);
123 return wm8350_phys_read(wm8350, reg, num_regs, dest);
128 dump(num_regs, dest);
146 static int wm8350_write(struct wm8350 *wm8350, u8 reg, int num_regs, u16 *src)
149 int end = reg + num_regs;
150 int bytes = num_regs * 2;
155 if ((reg + num_regs - 1) > WM8350_MAX_REGISTER) {
157 reg + num_regs - 1);