Searched refs:offset_buf (Results 1 – 4 of 4) sorted by relevance
/openbmc/u-boot/drivers/i2c/ |
H A D | i2c-uclass.c | 53 uint8_t offset_buf[], struct i2c_msg *msg) in i2c_setup_offset() argument 63 msg->buf = offset_buf; in i2c_setup_offset() 69 *offset_buf++ = offset >> (8 * offset_len); in i2c_setup_offset() 81 uint8_t offset_buf[I2C_MAX_OFFSET_LEN]; in i2c_read_bytewise() local 86 if (i2c_setup_offset(chip, offset + i, offset_buf, msg)) in i2c_read_bytewise() 133 uint8_t offset_buf[I2C_MAX_OFFSET_LEN]; in dm_i2c_read() local 141 if (!i2c_setup_offset(chip, offset, offset_buf, ptr)) in dm_i2c_read()
|
/openbmc/linux/drivers/media/i2c/ccs/ |
H A D | ccs-reg-access.c | 75 unsigned char offset_buf[sizeof(u16)]; in ____ccs_read_addr() local 83 msg.len = sizeof(offset_buf); in ____ccs_read_addr() 84 msg.buf = offset_buf; in ____ccs_read_addr() 85 put_unaligned_be16(reg, offset_buf); in ____ccs_read_addr()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | adv7604.c | 1056 u8 offset_buf[4]; in adv76xx_set_offset() local 1068 offset_buf[0] = (cp_read(sd, 0x77) & 0xc0) | ((offset_a & 0x3f0) >> 4); in adv76xx_set_offset() 1069 offset_buf[1] = ((offset_a & 0x00f) << 4) | ((offset_b & 0x3c0) >> 6); in adv76xx_set_offset() 1070 offset_buf[2] = ((offset_b & 0x03f) << 2) | ((offset_c & 0x300) >> 8); in adv76xx_set_offset() 1071 offset_buf[3] = offset_c & 0x0ff; in adv76xx_set_offset() 1075 0x77, offset_buf, 4)) in adv76xx_set_offset()
|
H A D | adv7842.c | 1108 u8 offset_buf[4]; in adv7842_set_offset() local 1120 offset_buf[0]= (cp_read(sd, 0x77) & 0xc0) | ((offset_a & 0x3f0) >> 4); in adv7842_set_offset() 1121 offset_buf[1] = ((offset_a & 0x00f) << 4) | ((offset_b & 0x3c0) >> 6); in adv7842_set_offset() 1122 offset_buf[2] = ((offset_b & 0x03f) << 2) | ((offset_c & 0x300) >> 8); in adv7842_set_offset() 1123 offset_buf[3] = offset_c & 0x0ff; in adv7842_set_offset() 1126 if (i2c_smbus_write_i2c_block_data(state->i2c_cp, 0x77, 4, offset_buf)) in adv7842_set_offset()
|