Lines Matching refs:reg
16 int rl6347a_hw_write(void *context, unsigned int reg, unsigned int value) in rl6347a_hw_write() argument
24 if (reg <= 0xff) { in rl6347a_hw_write()
25 rl6347a_hw_write(client, RL6347A_COEF_INDEX, reg); in rl6347a_hw_write()
27 if (reg == rl6347a->index_cache[i].reg) { in rl6347a_hw_write()
33 reg = RL6347A_PROC_COEF; in rl6347a_hw_write()
36 data[0] = (reg >> 24) & 0xff; in rl6347a_hw_write()
37 data[1] = (reg >> 16) & 0xff; in rl6347a_hw_write()
43 data[2] = ((reg >> 8) & 0xff) | ((value >> 8) & 0xff); in rl6347a_hw_write()
59 int rl6347a_hw_read(void *context, unsigned int reg, unsigned int *value) in rl6347a_hw_read() argument
68 if (reg <= 0xff) { in rl6347a_hw_read()
69 rl6347a_hw_write(client, RL6347A_COEF_INDEX, reg); in rl6347a_hw_read()
70 reg = RL6347A_PROC_COEF; in rl6347a_hw_read()
73 reg = reg | 0x80000; in rl6347a_hw_read()
74 vid = (reg >> 8) & 0xfff; in rl6347a_hw_read()
77 index = (reg >> 8) & 0xf; in rl6347a_hw_read()
78 reg = (reg & ~0xf0f) | index; in rl6347a_hw_read()
80 be_reg = cpu_to_be32(reg); in rl6347a_hw_read()