Lines Matching refs:tbuf

153 	unsigned char tbuf[CMD_BUFSIZE];  in ili922x_read_status()  local
159 xfer.tx_buf = tbuf; in ili922x_read_status()
164 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_read_status()
171 tbuf[i] = set_tx_byte(0); /* dummy */ in ili922x_read_status()
196 unsigned char tbuf[CMD_BUFSIZE]; in ili922x_read() local
203 xfer_regindex.tx_buf = tbuf; in ili922x_read()
208 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_read()
210 tbuf[1] = set_tx_byte(0); in ili922x_read()
211 tbuf[2] = set_tx_byte(reg); in ili922x_read()
218 tbuf[len++] = set_tx_byte(START_BYTE(ili922x_id, START_RS_REG, in ili922x_read()
220 tbuf[len++] = set_tx_byte(0); in ili922x_read()
221 tbuf[len] = set_tx_byte(0); in ili922x_read()
225 xfer_regvalue.tx_buf = &tbuf[send_bytes]; in ili922x_read()
250 unsigned char tbuf[CMD_BUFSIZE]; in ili922x_write() local
258 xfer_regindex.tx_buf = tbuf; in ili922x_write()
263 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_write()
265 tbuf[1] = set_tx_byte(0); in ili922x_write()
266 tbuf[2] = set_tx_byte(reg); in ili922x_write()
274 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_REG, in ili922x_write()
276 tbuf[1] = set_tx_byte((value & 0xFF00) >> 8); in ili922x_write()
277 tbuf[2] = set_tx_byte(value & 0x00FF); in ili922x_write()
281 xfer_regvalue.tx_buf = tbuf; in ili922x_write()
325 unsigned char tbuf[CMD_BUFSIZE]; in set_write_to_gram_reg() local
330 xfer.tx_buf = tbuf; in set_write_to_gram_reg()
334 tbuf[0] = START_BYTE(ili922x_id, START_RS_INDEX, START_RW_WRITE); in set_write_to_gram_reg()
335 tbuf[1] = 0; in set_write_to_gram_reg()
336 tbuf[2] = REG_WRITE_DATA_TO_GRAM; in set_write_to_gram_reg()