Lines Matching refs:GEN_MASK
92 #define GEN_MASK(val, mask, sb) (((val) << (sb)) & (mask)) macro
305 mcr |= GEN_MASK(dev->cli.slave_adr, I2C_MCR_A7, 1); in load_i2c_mcr_reg()
309 mcr |= GEN_MASK(2, I2C_MCR_AM, 12); in load_i2c_mcr_reg()
318 mcr |= GEN_MASK(slave_adr_3msb_bits, I2C_MCR_EA10, 8); in load_i2c_mcr_reg()
321 mcr |= GEN_MASK(1, I2C_MCR_AM, 12); in load_i2c_mcr_reg()
325 mcr |= GEN_MASK(0, I2C_MCR_SB, 11); in load_i2c_mcr_reg()
329 mcr |= GEN_MASK(I2C_WRITE, I2C_MCR_OP, 0); in load_i2c_mcr_reg()
331 mcr |= GEN_MASK(I2C_READ, I2C_MCR_OP, 0); in load_i2c_mcr_reg()
335 mcr |= GEN_MASK(1, I2C_MCR_STOP, 14); in load_i2c_mcr_reg()
337 mcr &= ~(GEN_MASK(1, I2C_MCR_STOP, 14)); in load_i2c_mcr_reg()
339 mcr |= GEN_MASK(dev->cli.count, I2C_MCR_LENGTH, 15); in load_i2c_mcr_reg()