/hardware/intel/img/psb_video/src/hwdefs/ |
D | reg_io2.h | 70 IMG_UINT32 REGIO_READ_FIELD(IMG_UINT32 ui32RegValue, group, reg, field); 96 …IMG_UINT32 REGIO_READ_REPEATED_FIELD(IMG_UINT32 ui32RegValue, group, reg, field, IMG_UINT32 ui… 117 IMG_UINT32 REGIO_READ_REGISTER(IMG_UINT32 ui32DevId, group, reg); 140 …IMG_UINT32 REGIO_READ_TABLE_REGISTER(IMG_UINT32 ui32DevId, group, reg, IMG_UINT32 ui32TabIndex… 166 …IMG_VOID REGIO_WRITE_FIELD(IMG_UINT32 ui32RegValue, group, reg, field, IMG_UINT32 ui32Va… 193 …IMG_VOID REGIO_WRITE_REPEATED_FIELD(IMG_UINT32 ui32RegValue, group, reg, field, IMG_UINT32 ui… 217 IMG_VOID REGIO_WRITE_REGISTER(IMG_UINT32 ui32DevId, group, reg, IMG_UINT32 ui32RegValue); 242 …IMG_VOID REGIO_WRITE_TABLE_REGISTER(IMG_UINT32 ui32DevId, group, reg, IMG_UINT32 ui32TabIndex… 267 …IMG_VOID REGIO_WRITE_TABLE_REGISTER(IMG_UINT32 ui32DevId, group, reg, IMG_UINT32 ui32Offset, … 278 #define REGIO_READ_FIELD(ui32RegValue, group, reg, field) … [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/h3lis331dl/ |
D | h3lis331dl.cxx | 149 uint8_t reg = m_i2c.readReg(REG_REG2); in setHPCF() local 151 reg &= ~(REG2_HPCF0 | REG2_HPCF1); in setHPCF() 152 reg |= (val << REG2_HPCF_SHIFT); in setHPCF() 154 if (m_i2c.writeReg(REG_REG2, reg)) in setHPCF() 166 uint8_t reg = m_i2c.readReg(REG_REG2); in setHPM() local 168 reg &= ~(REG2_HPM0 | REG2_HPM1); in setHPM() 169 reg |= (val << REG2_HPM_SHIFT); in setHPM() 171 if (m_i2c.writeReg(REG_REG2, reg)) in setHPM() 183 uint8_t reg = m_i2c.readReg(REG_REG2); in boot() local 185 reg |= REG2_BOOT; in boot() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/mpu9150/ |
D | mpu60x0.cxx | 139 uint8_t MPU60X0::readReg(uint8_t reg) in readReg() argument 141 return m_i2c.readReg(reg); in readReg() 144 void MPU60X0::readRegs(uint8_t reg, uint8_t *buffer, int len) in readRegs() argument 146 m_i2c.readBytesReg(reg, buffer, len); in readRegs() 149 bool MPU60X0::writeReg(uint8_t reg, uint8_t val) in writeReg() argument 152 if ((rv = m_i2c.writeReg(reg, val)) != mraa::SUCCESS) in writeReg() 164 uint8_t reg = readReg(REG_PWR_MGMT_1); in setSleep() local 167 reg |= PWR_SLEEP; in setSleep() 169 reg &= ~PWR_SLEEP; in setSleep() 171 return writeReg(REG_PWR_MGMT_1, reg); in setSleep() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/lsm9ds0/ |
D | lsm9ds0.cxx | 287 uint8_t LSM9DS0::readReg(DEVICE_T dev, uint8_t reg) in readReg() argument 301 return device->readReg(reg); in readReg() 304 void LSM9DS0::readRegs(DEVICE_T dev, uint8_t reg, uint8_t *buffer, int len) in readRegs() argument 320 device->readBytesReg(reg | m_autoIncrementMode, buffer, len); in readRegs() 323 bool LSM9DS0::writeReg(DEVICE_T dev, uint8_t reg, uint8_t val) in writeReg() argument 338 if ((rv = device->writeReg(reg, val)) != mraa::SUCCESS) in writeReg() 350 uint8_t reg = readReg(DEV_GYRO, REG_CTRL_REG1_G); in setGyroscopePowerDown() local 353 reg &= ~CTRL_REG1_G_PD; in setGyroscopePowerDown() 355 reg |= CTRL_REG1_G_PD; in setGyroscopePowerDown() 357 return writeReg(DEV_GYRO, REG_CTRL_REG1_G, reg); in setGyroscopePowerDown() [all …]
|
/hardware/bsp/intel/peripheral/libmraa/api/mraa/ |
D | i2c.hpp | 134 readReg(uint8_t reg) in readReg() argument 136 return mraa_i2c_read_byte_data(m_i2c, reg); in readReg() 146 readWordReg(uint8_t reg) in readWordReg() argument 148 return mraa_i2c_read_word_data(m_i2c, reg); in readWordReg() 161 readBytesReg(uint8_t reg, uint8_t* data, int length) in readBytesReg() argument 163 return mraa_i2c_read_bytes_data(m_i2c, reg, data, length); in readBytesReg() 200 writeReg(uint8_t reg, uint8_t data) in writeReg() argument 202 return (Result) mraa_i2c_write_byte_data(m_i2c, data, reg); in writeReg() 213 writeWordReg(uint8_t reg, uint16_t data) in writeWordReg() argument 215 return (Result) mraa_i2c_write_word_data(m_i2c, data, reg); in writeWordReg()
|
/hardware/bsp/intel/peripheral/libupm/src/am2315/ |
D | am2315.h | 138 int i2cWriteReg_32(int reg, uint32_t ival); 146 int i2cWriteReg_16(int reg, uint16_t ival); 154 int i2cWriteReg_8(int reg, uint8_t ival); 161 uint32_t i2cReadReg_32 (int reg); 168 uint16_t i2cReadReg_16 (int reg); 175 uint8_t i2cReadReg_8 (int reg); 186 uint8_t i2cReadReg(int reg, uint8_t* data, int ilen); 187 int i2cWriteReg(uint8_t reg, uint8_t* data, uint8_t ilen);
|
D | am2315.cpp | 189 AM2315::i2cWriteReg(uint8_t reg, uint8_t* data, uint8_t ilen) in i2cWriteReg() argument 191 uint8_t tdata[16] = { AM2315_WRITE, reg, ilen }; in i2cWriteReg() 218 (tdata[1] != reg) || in i2cWriteReg() 234 AM2315::i2cReadReg(int reg, uint8_t* data, int ilen) in i2cReadReg() argument 236 uint8_t tdata[16] = { AM2315_READ, reg, ilen }; in i2cReadReg() 273 AM2315::i2cWriteReg_32(int reg, uint32_t ival) { in i2cWriteReg_32() argument 279 return i2cWriteReg(reg, data, 4); in i2cWriteReg_32() 283 AM2315::i2cWriteReg_16(int reg, uint16_t ival) { in i2cWriteReg_16() argument 287 return i2cWriteReg(reg, data, 2); in i2cWriteReg_16() 291 AM2315::i2cWriteReg_8(int reg, uint8_t ival) { in i2cWriteReg_8() argument [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/mpl3115a2/ |
D | mpl3115a2.cpp | 185 MPL3115A2::getPressureReg(int reg) { in getPressureReg() argument 186 return ((i2cReadReg_16(reg) << 8)|(uint32_t)i2cReadReg_8(reg+2))*100/64; in getPressureReg() 190 MPL3115A2::getTempReg(int reg) { in getTempReg() argument 191 return (int32_t)((int16_t)i2cReadReg_16(reg)) * 1000 / 256; in getTempReg() 298 MPL3115A2::i2cWriteReg (uint8_t reg, uint8_t value) { in i2cWriteReg() argument 301 uint8_t data[2] = { reg, value }; in i2cWriteReg() 312 MPL3115A2::i2cReadReg_16 (int reg) { in i2cReadReg_16() argument 316 data = (uint16_t)m_i2ControlCtx.readReg(reg) << 8; in i2cReadReg_16() 317 data |= (uint16_t)m_i2ControlCtx.readReg(reg+1); in i2cReadReg_16() 323 MPL3115A2::i2cReadReg_8 (int reg) { in i2cReadReg_8() argument [all …]
|
D | mpl3115a2.h | 130 int32_t getPressureReg(int reg); 137 int32_t getTempReg(int reg); 227 mraa::Result i2cWriteReg (uint8_t reg, uint8_t value); 234 uint16_t i2cReadReg_16 (int reg); 241 uint8_t i2cReadReg_8 (int reg);
|
/hardware/bsp/intel/peripheral/libupm/src/mma7455/ |
D | mma7455.cxx | 119 if (xyz.reg.x_msb & 0x02) { in readData() 120 xyz.reg.x_msb |= 0xFC; in readData() 123 if (xyz.reg.y_msb & 0x02) { in readData() 124 xyz.reg.y_msb |= 0xFC; in readData() 127 if (xyz.reg.z_msb & 0x02) { in readData() 128 xyz.reg.z_msb |= 0xFC; in readData() 148 MMA7455::i2cReadReg (unsigned char reg, uint8_t *buffer, int len) { in i2cReadReg() argument 155 if (mraa::SUCCESS != m_i2ControlCtx.writeByte(reg)) { in i2cReadReg() 165 MMA7455::i2cWriteReg (unsigned char reg, uint8_t *buffer, int len) { in i2cWriteReg() argument 169 data[0] = reg; in i2cWriteReg()
|
/hardware/bsp/intel/peripheral/libupm/src/max44000/ |
D | max44000.cxx | 77 MAX44000::i2cReadReg_8 (int reg) { in i2cReadReg_8() argument 81 m_i2cMaxControlCtx.writeByte(reg); in i2cReadReg_8() 90 MAX44000::i2cReadReg_16 (int reg) { in i2cReadReg_16() argument 94 m_i2cMaxControlCtx.writeByte(reg); in i2cReadReg_16() 103 MAX44000::i2cWriteReg (uint8_t reg, uint8_t value) { in i2cWriteReg() argument 106 uint8_t data[2] = { reg, value }; in i2cWriteReg()
|
/hardware/bsp/intel/peripheral/libupm/src/adc121c021/ |
D | adc121c021.cxx | 65 mraa_result_t ADC121C021::writeByte(uint8_t reg, uint8_t byte) in writeByte() argument 67 return mraa_i2c_write_byte_data(m_i2c, byte, reg); in writeByte() 70 mraa_result_t ADC121C021::writeWord(uint8_t reg, uint16_t word) in writeWord() argument 77 return mraa_i2c_write_word_data(m_i2c, word, reg); in writeWord() 80 uint8_t ADC121C021::readByte(uint8_t reg) in readByte() argument 82 return mraa_i2c_read_byte_data(m_i2c, reg); in readByte() 85 uint16_t ADC121C021::readWord(uint8_t reg) in readWord() argument 87 uint16_t val = mraa_i2c_read_word_data(m_i2c, reg); in readWord()
|
D | adc121c021.h | 115 mraa_result_t writeByte(uint8_t reg, uint8_t byte); 124 mraa_result_t writeWord(uint8_t reg, uint16_t word); 132 uint8_t readByte(uint8_t reg); 140 uint16_t readWord(uint8_t reg);
|
/hardware/bsp/intel/peripheral/libupm/src/at42qt1070/ |
D | at42qt1070.cxx | 71 AT42QT1070::writeByte(uint8_t reg, uint8_t byte) in writeByte() argument 73 mraa_result_t rv = mraa_i2c_write_byte_data(m_i2c, byte, reg); in writeByte() 85 AT42QT1070::writeWord(uint8_t reg, uint16_t word) in writeWord() argument 87 mraa_result_t rv = mraa_i2c_write_word_data(m_i2c, word, reg); in writeWord() 99 AT42QT1070::readByte(uint8_t reg) in readByte() argument 101 return mraa_i2c_read_byte_data(m_i2c, reg); in readByte() 105 AT42QT1070::readWord(uint8_t reg) in readWord() argument 107 return mraa_i2c_read_word_data(m_i2c, reg); in readWord()
|
/hardware/bsp/intel/peripheral/libupm/src/si114x/ |
D | si114x.cxx | 78 bool SI114X::writeByte(uint8_t reg, uint8_t byte) in writeByte() argument 80 mraa_result_t rv = mraa_i2c_write_byte_data(m_i2c, byte, reg); in writeByte() 92 uint8_t SI114X::readByte(uint8_t reg) in readByte() argument 94 return mraa_i2c_read_byte_data(m_i2c, reg); in readByte() 97 uint16_t SI114X::readWord(uint8_t reg) in readWord() argument 99 return mraa_i2c_read_word_data(m_i2c, reg); in readWord()
|
/hardware/bsp/intel/peripheral/libupm/src/tcs3414cs/ |
D | tcs3414cs.cxx | 100 TCS3414CS::i2cReadReg_N (int reg, unsigned int len, uint8_t * buffer) { in i2cReadReg_N() argument 104 m_i2Ctx.writeByte(reg); in i2cReadReg_N() 112 TCS3414CS::i2cWriteReg_N (uint8_t reg, unsigned int len, uint8_t * buffer) { in i2cWriteReg_N() argument 116 error = m_i2Ctx.writeByte (reg); in i2cWriteReg_N() 123 TCS3414CS::i2cWriteReg (uint8_t reg, uint8_t data) { in i2cWriteReg() argument 127 error = m_i2Ctx.writeByte (reg); in i2cWriteReg()
|
/hardware/qcom/msm8960/original-kernel-headers/linux/mfd/wcd9xxx/ |
D | core.h | 142 int (*read_dev)(struct wcd9xxx *wcd9xxx, unsigned short reg, 144 int (*write_dev)(struct wcd9xxx *wcd9xxx, unsigned short reg, 163 int wcd9xxx_reg_read(struct wcd9xxx *wcd9xxx, unsigned short reg); 164 int wcd9xxx_reg_write(struct wcd9xxx *wcd9xxx, unsigned short reg, 166 int wcd9xxx_interface_reg_read(struct wcd9xxx *wcd9xxx, unsigned short reg); 167 int wcd9xxx_interface_reg_write(struct wcd9xxx *wcd9xxx, unsigned short reg, 169 int wcd9xxx_bulk_read(struct wcd9xxx *wcd9xxx, unsigned short reg, 171 int wcd9xxx_bulk_write(struct wcd9xxx *wcd9xxx, unsigned short reg,
|
/hardware/bsp/intel/peripheral/libupm/src/pca9685/ |
D | pca9685.cxx | 80 bool PCA9685::writeByte(uint8_t reg, uint8_t byte) in writeByte() argument 82 mraa_result_t rv = mraa_i2c_write_byte_data(m_i2c, byte, reg); in writeByte() 94 bool PCA9685::writeWord(uint8_t reg, uint16_t word) in writeWord() argument 96 mraa_result_t rv = mraa_i2c_write_word_data(m_i2c, word, reg); in writeWord() 108 uint8_t PCA9685::readByte(uint8_t reg) in readByte() argument 110 return mraa_i2c_read_byte_data(m_i2c, reg); in readByte() 113 uint16_t PCA9685::readWord(uint8_t reg) in readWord() argument 115 return mraa_i2c_read_word_data(m_i2c, reg); in readWord()
|
/hardware/bsp/intel/peripheral/libupm/src/htu21d/ |
D | htu21d.cpp | 209 HTU21D::i2cWriteReg (uint8_t reg, uint8_t value) { in i2cWriteReg() argument 212 uint8_t data[2] = { reg, value }; in i2cWriteReg() 223 HTU21D::i2cReadReg_16 (int reg) { in i2cReadReg_16() argument 226 data = (uint16_t)m_i2ControlCtx.readReg(reg) << 8; in i2cReadReg_16() 227 data |= (uint16_t)m_i2ControlCtx.readReg(reg+1); in i2cReadReg_16() 232 HTU21D::i2cReadReg_8 (int reg) { in i2cReadReg_8() argument 234 return m_i2ControlCtx.readReg(reg); in i2cReadReg_8()
|
/hardware/qcom/msm8996/kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 39 #define ADIE_CODEC_PACK_ENTRY(reg,mask,val) ((val) | (mask << 8) | (reg << 16)) argument 40 #define ADIE_CODEC_UNPACK_ENTRY(packed,reg,mask,val) do { ((reg) = ((packed >> 16) & (0xff))); ((ma… argument 61 u8 reg; member
|
/hardware/qcom/msm8x26/kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 39 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument 40 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) do { ((reg) = ((packed >> 16) & (0xff))… argument 61 u8 reg; member
|
/hardware/qcom/msm8994/kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 39 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument 40 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) do { ((reg) = ((packed >> 16) & (0xff))… argument 61 u8 reg; member
|
/hardware/qcom/msm8960/kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 39 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument 40 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) do { ((reg) = ((packed >> 16) & (0xff))… argument 61 u8 reg; member
|
/hardware/qcom/msm8x84/kernel-headers/linux/mfd/ |
D | msm-adie-codec.h | 39 #define ADIE_CODEC_PACK_ENTRY(reg, mask, val) ((val)|(mask << 8)|(reg << 16)) argument 40 #define ADIE_CODEC_UNPACK_ENTRY(packed, reg, mask, val) do { ((reg) = ((packed >> 16) & (0xff))… argument 61 u8 reg; member
|
/hardware/bsp/intel/peripheral/libupm/src/max31723/ |
D | max31723.cxx | 79 MAX31723::readRegister (uint8_t reg) { in readRegister() argument 84 data[0] = reg; in readRegister() 92 MAX31723::writeRegister (uint8_t reg, uint8_t data) { in writeRegister() argument 97 buffer[0] = reg; in writeRegister()
|