Lines Matching refs:cmd_buf
64 uint8_t cmd_buf = IST3931_CMD_POWER_CONTROL | config->vc | config->vf << 1; in ist3931_set_power() local
66 return ist3931_write_bus(dev, &cmd_buf, 1, 1); in ist3931_set_power()
72 uint8_t cmd_buf = IST3931_CMD_BIAS | config->bias; in ist3931_set_bias() local
74 return ist3931_write_bus(dev, &cmd_buf, 1, 1); in ist3931_set_bias()
80 uint8_t cmd_buf[2] = {IST3931_CMD_CT, config->ct}; in ist3931_set_ct() local
82 return ist3931_write_bus(dev, cmd_buf, 1, 2); in ist3931_set_ct()
88 uint8_t cmd_buf[3] = {IST3931_CMD_FRAME_CONTROL, config->fr & 0x00FF, config->fr >> 8}; in ist3931_set_fr() local
90 return ist3931_write_bus(dev, cmd_buf, 1, 3); in ist3931_set_fr()
96 uint8_t cmd_buf[2] = {(IST3931_CMD_SET_DUTY_LSB | (config->duty & 0x0F)), in ist3931_set_duty() local
99 return ist3931_write_bus(dev, cmd_buf, 1, 2); in ist3931_set_duty()
105 uint8_t cmd_buf = IST3931_CMD_DRIVER_DISPLAY_CONTROL | config->shl << 3 | config->adc << 2 | in ist3931_driver_display_control() local
108 return ist3931_write_bus(dev, &cmd_buf, 1, 1); in ist3931_driver_display_control()
113 uint8_t cmd_buf = IST3931_CMD_DISPLAY_ON_OFF | 1; in ist3931_driver_set_display_on() local
115 return ist3931_write_bus(dev, &cmd_buf, 1, 1); in ist3931_driver_set_display_on()
120 uint8_t cmd_buf = IST3931_CMD_SLEEP_MODE | sleep; in ist3931_driver_sleep_on_off() local
122 return ist3931_write_bus(dev, &cmd_buf, 1, 1); in ist3931_driver_sleep_on_off()
127 uint8_t cmd_buf[5] = { in ist3931_driver_set_com_pad_map() local
134 ist3931_write_bus(dev, &cmd_buf[0], 1, 5); in ist3931_driver_set_com_pad_map()
145 uint8_t cmd_buf[2] = {cmd_buf1, cmd_buf2}; in ist3931_driver_set_ay() local
147 return ist3931_write_bus(dev, &cmd_buf[0], 1, 2); in ist3931_driver_set_ay()
153 uint8_t cmd_buf = IST3931_CMD_SET_AX_ADD | (config->x_offset + x); in ist3931_driver_set_ax() local
155 return ist3931_write_bus(dev, &cmd_buf, 1, 1); in ist3931_driver_set_ax()