Lines Matching refs:addr
84 static u16 ad7616_spi_rd_wr_cmd(int addr, char isWriteOp)
90 return ((addr & 0x7F) << 1) | ((isWriteOp & 0x1) << 7);
93 static u16 ad7606B_spi_rd_wr_cmd(int addr, char is_write_op)
100 return (addr & 0x3F) | (((~is_write_op) & 0x1) << 6);
123 static int ad7606_spi_reg_read(struct ad7606_state *st, unsigned int addr)
138 st->d16[0] = cpu_to_be16(st->bops->rd_wr_cmd(addr, 0) << 8);
148 unsigned int addr,
153 st->d16[0] = cpu_to_be16((st->bops->rd_wr_cmd(addr, 1) << 8) |
160 unsigned int addr,
166 readval = st->bops->reg_read(st, addr);
173 return st->bops->reg_write(st, addr, readval);