Lines Matching refs:buf
20 uint8_t *buf; in sigmadsp_write_i2c() local
23 buf = kzalloc(2 + len, GFP_KERNEL | GFP_DMA); in sigmadsp_write_i2c()
24 if (!buf) in sigmadsp_write_i2c()
27 put_unaligned_be16(addr, buf); in sigmadsp_write_i2c()
28 memcpy(buf + 2, data, len); in sigmadsp_write_i2c()
30 ret = i2c_master_send(control_data, buf, len + 2); in sigmadsp_write_i2c()
32 kfree(buf); in sigmadsp_write_i2c()
45 uint8_t buf[2]; in sigmadsp_read_i2c() local
48 put_unaligned_be16(addr, buf); in sigmadsp_read_i2c()
51 msgs[0].len = sizeof(buf); in sigmadsp_read_i2c()
52 msgs[0].buf = buf; in sigmadsp_read_i2c()
57 msgs[1].buf = data; in sigmadsp_read_i2c()