Lines Matching refs:outbuf
49 u8 outbuf[2]; in mcp4725_suspend() local
51 outbuf[0] = (data->powerdown_mode + 1) << 4; in mcp4725_suspend()
52 outbuf[1] = 0; in mcp4725_suspend()
55 return i2c_master_send(data->client, outbuf, 2); in mcp4725_suspend()
62 u8 outbuf[2]; in mcp4725_resume() local
65 outbuf[0] = (data->dac_value >> 8) & 0xf; in mcp4725_resume()
66 outbuf[1] = data->dac_value & 0xff; in mcp4725_resume()
69 return i2c_master_send(data->client, outbuf, 2); in mcp4725_resume()
267 u8 outbuf[2]; in mcp4725_set_value() local
273 outbuf[0] = (val >> 8) & 0xf; in mcp4725_set_value()
274 outbuf[1] = val & 0xff; in mcp4725_set_value()
276 ret = i2c_master_send(data->client, outbuf, 2); in mcp4725_set_value()
288 u8 outbuf[3]; in mcp4726_set_cfg() local
291 outbuf[0] = 0x40; in mcp4726_set_cfg()
292 outbuf[0] |= data->ref_mode << 3; in mcp4726_set_cfg()
294 outbuf[0] |= data->powerdown << 1; in mcp4726_set_cfg()
295 outbuf[1] = data->dac_value >> 4; in mcp4726_set_cfg()
296 outbuf[2] = (data->dac_value & 0xf) << 4; in mcp4726_set_cfg()
298 ret = i2c_master_send(data->client, outbuf, 3); in mcp4726_set_cfg()