Searched refs:offset_buf (Results 1 – 5 of 5) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/input/sensors/accel/ |
| H A D | mc3230.c | 127 static unsigned char offset_buf[9]; variable 453 memset(offset_buf, 0, 9); in init_3230_ctl_data() 454 offset_buf[0] = 0x21; in init_3230_ctl_data() 455 err = sensor_rx_data(client, offset_buf, 9); in init_3230_ctl_data() 461 tmp = ((offset_buf[1] & 0x3f) << 8) + offset_buf[0]; in init_3230_ctl_data() 466 tmp = ((offset_buf[3] & 0x3f) << 8) + offset_buf[2]; in init_3230_ctl_data() 471 tmp = ((offset_buf[5] & 0x3f) << 8) + offset_buf[4]; in init_3230_ctl_data() 477 x_gain = ((offset_buf[1] >> 7) << 8) + offset_buf[6]; in init_3230_ctl_data() 478 y_gain = ((offset_buf[3] >> 7) << 8) + offset_buf[7]; in init_3230_ctl_data() 479 z_gain = ((offset_buf[5] >> 7) << 8) + offset_buf[8]; in init_3230_ctl_data() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/smiapp/ |
| H A D | smiapp-regs.c | 75 unsigned char offset_buf[sizeof(u16)]; in ____smiapp_read() local 83 msg.len = sizeof(offset_buf); in ____smiapp_read() 84 msg.buf = offset_buf; in ____smiapp_read() 85 put_unaligned_be16(reg, offset_buf); in ____smiapp_read()
|
| /OK3568_Linux_fs/u-boot/drivers/i2c/ |
| H A D | i2c-uclass.c | 46 uint8_t offset_buf[], struct i2c_msg *msg) in i2c_setup_offset() argument 53 msg->buf = offset_buf; in i2c_setup_offset() 59 *offset_buf++ = offset >> (8 * offset_len); in i2c_setup_offset() 71 uint8_t offset_buf[I2C_MAX_OFFSET_LEN]; in i2c_read_bytewise() local 76 if (i2c_setup_offset(chip, offset + i, offset_buf, msg)) in i2c_read_bytewise() 123 uint8_t offset_buf[I2C_MAX_OFFSET_LEN]; in dm_i2c_read() local 131 if (!i2c_setup_offset(chip, offset, offset_buf, ptr)) in dm_i2c_read()
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | adv7604.c | 1042 u8 offset_buf[4]; in adv76xx_set_offset() local 1054 offset_buf[0] = (cp_read(sd, 0x77) & 0xc0) | ((offset_a & 0x3f0) >> 4); in adv76xx_set_offset() 1055 offset_buf[1] = ((offset_a & 0x00f) << 4) | ((offset_b & 0x3c0) >> 6); in adv76xx_set_offset() 1056 offset_buf[2] = ((offset_b & 0x03f) << 2) | ((offset_c & 0x300) >> 8); in adv76xx_set_offset() 1057 offset_buf[3] = offset_c & 0x0ff; in adv76xx_set_offset() 1061 0x77, offset_buf, 4)) in adv76xx_set_offset()
|
| H A D | adv7842.c | 1120 u8 offset_buf[4]; in adv7842_set_offset() local 1132 offset_buf[0]= (cp_read(sd, 0x77) & 0xc0) | ((offset_a & 0x3f0) >> 4); in adv7842_set_offset() 1133 offset_buf[1] = ((offset_a & 0x00f) << 4) | ((offset_b & 0x3c0) >> 6); in adv7842_set_offset() 1134 offset_buf[2] = ((offset_b & 0x03f) << 2) | ((offset_c & 0x300) >> 8); in adv7842_set_offset() 1135 offset_buf[3] = offset_c & 0x0ff; in adv7842_set_offset() 1138 if (adv_smbus_write_i2c_block_data(state->i2c_cp, 0x77, 4, offset_buf)) in adv7842_set_offset()
|