Lines Matching refs:id_buf
1814 void *id_buf, *buf; in mxt_read_info_block() local
1825 id_buf = kzalloc(size, GFP_KERNEL); in mxt_read_info_block()
1826 if (!id_buf) in mxt_read_info_block()
1829 error = __mxt_read_reg(client, 0, size, id_buf); in mxt_read_info_block()
1834 num_objects = ((struct mxt_info *)id_buf)->object_num; in mxt_read_info_block()
1838 buf = krealloc(id_buf, size, GFP_KERNEL); in mxt_read_info_block()
1843 id_buf = buf; in mxt_read_info_block()
1848 id_buf + MXT_OBJECT_START); in mxt_read_info_block()
1853 crc_ptr = id_buf + size - MXT_INFO_CHECKSUM_SIZE; in mxt_read_info_block()
1856 calculated_crc = mxt_calculate_crc(id_buf, 0, in mxt_read_info_block()
1871 data->raw_info_block = id_buf; in mxt_read_info_block()
1872 data->info = (struct mxt_info *)id_buf; in mxt_read_info_block()
1881 error = mxt_parse_object_table(data, id_buf + MXT_OBJECT_START); in mxt_read_info_block()
1888 data->object_table = (struct mxt_object *)(id_buf + MXT_OBJECT_START); in mxt_read_info_block()
1893 kfree(id_buf); in mxt_read_info_block()