Lines Matching refs:rdbuf
303 u8 rdbuf[63]; in edt_ft5x06_ts_isr() local
307 memset(rdbuf, 0, sizeof(rdbuf)); in edt_ft5x06_ts_isr()
308 error = regmap_bulk_read(tsdata->regmap, tsdata->tdata_cmd, rdbuf, in edt_ft5x06_ts_isr()
317 u8 *buf = &rdbuf[i * tsdata->point_len + tsdata->tdata_offset]; in edt_ft5x06_ts_isr()
749 u8 *rdbuf; in edt_ft5x06_debugfs_raw_data_read() local
789 rdbuf = tsdata->raw_buffer; in edt_ft5x06_debugfs_raw_data_read()
793 rdbuf[0] = i; /* column index */ in edt_ft5x06_debugfs_raw_data_read()
794 error = regmap_bulk_read(tsdata->regmap, 0xf5, rdbuf, colbytes); in edt_ft5x06_debugfs_raw_data_read()
798 rdbuf += colbytes; in edt_ft5x06_debugfs_raw_data_read()
859 u8 rdbuf[EDT_NAME_LEN]; in edt_ft5x06_ts_identify() local
869 memset(rdbuf, 0, sizeof(rdbuf)); in edt_ft5x06_ts_identify()
870 error = regmap_bulk_read(tsdata->regmap, 0xBB, rdbuf, EDT_NAME_LEN - 1); in edt_ft5x06_ts_identify()
878 if (!strncasecmp(rdbuf + 1, "EP0", 3)) { in edt_ft5x06_ts_identify()
882 rdbuf[EDT_NAME_LEN - 1] = '\0'; in edt_ft5x06_ts_identify()
883 if (rdbuf[EDT_NAME_LEN - 2] == '$') in edt_ft5x06_ts_identify()
884 rdbuf[EDT_NAME_LEN - 2] = '\0'; in edt_ft5x06_ts_identify()
887 p = strchr(rdbuf, '*'); in edt_ft5x06_ts_identify()
890 strscpy(model_name, rdbuf + 1, EDT_NAME_LEN); in edt_ft5x06_ts_identify()
900 } else if (!strncasecmp(rdbuf, "EP0", 3)) { in edt_ft5x06_ts_identify()
904 rdbuf[EDT_NAME_LEN - 2] = '\0'; in edt_ft5x06_ts_identify()
905 if (rdbuf[EDT_NAME_LEN - 3] == '$') in edt_ft5x06_ts_identify()
906 rdbuf[EDT_NAME_LEN - 3] = '\0'; in edt_ft5x06_ts_identify()
909 p = strchr(rdbuf, '*'); in edt_ft5x06_ts_identify()
912 strscpy(model_name, rdbuf, EDT_NAME_LEN); in edt_ft5x06_ts_identify()
926 error = regmap_bulk_read(tsdata->regmap, 0xA6, rdbuf, 2); in edt_ft5x06_ts_identify()
930 strscpy(fw_version, rdbuf, 2); in edt_ft5x06_ts_identify()
932 error = regmap_bulk_read(tsdata->regmap, 0xA8, rdbuf, 1); in edt_ft5x06_ts_identify()
940 switch (rdbuf[0]) { in edt_ft5x06_ts_identify()
949 rdbuf[0] >> 4, rdbuf[0] & 0x0F); in edt_ft5x06_ts_identify()
954 rdbuf[0] >> 4, rdbuf[0] & 0x0F); in edt_ft5x06_ts_identify()
961 error = regmap_bulk_read(tsdata->regmap, 0x53, rdbuf, 1); in edt_ft5x06_ts_identify()
964 strscpy(fw_version, rdbuf, 1); in edt_ft5x06_ts_identify()
971 rdbuf[0]); in edt_ft5x06_ts_identify()