Lines Matching refs:reg
19 int rl6347a_hw_write(void *context, unsigned int reg, unsigned int value) in rl6347a_hw_write() argument
27 if (reg <= 0xff) { in rl6347a_hw_write()
28 rl6347a_hw_write(client, RL6347A_COEF_INDEX, reg); in rl6347a_hw_write()
30 if (reg == rl6347a->index_cache[i].reg) { in rl6347a_hw_write()
36 reg = RL6347A_PROC_COEF; in rl6347a_hw_write()
39 data[0] = (reg >> 24) & 0xff; in rl6347a_hw_write()
40 data[1] = (reg >> 16) & 0xff; in rl6347a_hw_write()
46 data[2] = ((reg >> 8) & 0xff) | ((value >> 8) & 0xff); in rl6347a_hw_write()
62 int rl6347a_hw_read(void *context, unsigned int reg, unsigned int *value) in rl6347a_hw_read() argument
71 if (reg <= 0xff) { in rl6347a_hw_read()
72 rl6347a_hw_write(client, RL6347A_COEF_INDEX, reg); in rl6347a_hw_read()
73 reg = RL6347A_PROC_COEF; in rl6347a_hw_read()
76 reg = reg | 0x80000; in rl6347a_hw_read()
77 vid = (reg >> 8) & 0xfff; in rl6347a_hw_read()
80 index = (reg >> 8) & 0xf; in rl6347a_hw_read()
81 reg = (reg & ~0xf0f) | index; in rl6347a_hw_read()
83 be_reg = cpu_to_be32(reg); in rl6347a_hw_read()