Lines Matching refs:outbuf

73 	int (*func)(struct ilitek_ts_data *ts, u16 cmd, u8 *inbuf, u8 *outbuf);
214 u16 idx, u8 *inbuf, u8 *outbuf) in api_protocol_set_cmd() argument
223 error = ts->ptl_cb_func[idx].func(ts, cmd, inbuf, outbuf); in api_protocol_set_cmd()
231 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_get_ptl_ver() argument
237 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 3); in api_protocol_get_ptl_ver()
241 ts->ptl.ver = get_unaligned_be16(outbuf); in api_protocol_get_ptl_ver()
242 ts->ptl.ver_major = outbuf[0]; in api_protocol_get_ptl_ver()
248 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_get_mcu_ver() argument
254 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 32); in api_protocol_get_mcu_ver()
258 ts->mcu_ver = get_unaligned_le16(outbuf); in api_protocol_get_mcu_ver()
260 memcpy(ts->product_id, outbuf + 6, 26); in api_protocol_get_mcu_ver()
266 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_get_fw_ver() argument
272 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 8); in api_protocol_get_fw_ver()
276 memcpy(ts->firmware_ver, outbuf, 8); in api_protocol_get_fw_ver()
282 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_get_scrn_res() argument
288 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 8); in api_protocol_get_scrn_res()
292 ts->screen_min_x = get_unaligned_le16(outbuf); in api_protocol_get_scrn_res()
293 ts->screen_min_y = get_unaligned_le16(outbuf + 2); in api_protocol_get_scrn_res()
294 ts->screen_max_x = get_unaligned_le16(outbuf + 4); in api_protocol_get_scrn_res()
295 ts->screen_max_y = get_unaligned_le16(outbuf + 6); in api_protocol_get_scrn_res()
301 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_get_tp_res() argument
307 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 15); in api_protocol_get_tp_res()
311 ts->max_tp = outbuf[8]; in api_protocol_get_tp_res()
322 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_get_ic_mode() argument
328 error = ilitek_i2c_write_and_read(ts, buf, 1, 5, outbuf, 2); in api_protocol_get_ic_mode()
332 ts->ic_mode = outbuf[0]; in api_protocol_get_ic_mode()
337 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_set_ic_sleep() argument
346 u16 cmd, u8 *inbuf, u8 *outbuf) in api_protocol_set_ic_wake() argument
404 u8 outbuf[64]; in ilitek_protocol_init() local
409 error = api_protocol_set_cmd(ts, GET_PTL_VER, NULL, outbuf); in ilitek_protocol_init()
424 u8 outbuf[256]; in ilitek_read_tp_info() local
427 error = api_protocol_set_cmd(ts, GET_PTL_VER, NULL, outbuf); in ilitek_read_tp_info()
431 error = api_protocol_set_cmd(ts, GET_MCU_VER, NULL, outbuf); in ilitek_read_tp_info()
435 error = api_protocol_set_cmd(ts, GET_FW_VER, NULL, outbuf); in ilitek_read_tp_info()
441 outbuf); in ilitek_read_tp_info()
446 error = api_protocol_set_cmd(ts, GET_TP_RES, NULL, outbuf); in ilitek_read_tp_info()
450 error = api_protocol_set_cmd(ts, GET_IC_MODE, NULL, outbuf); in ilitek_read_tp_info()