Home
last modified time | relevance | path

Searched refs:id_buf (Results 1 – 4 of 4) sorted by relevance

/drivers/firmware/meson/
Dmeson_sm.c245 uint8_t *id_buf; in serial_show() local
250 id_buf = kmalloc(SM_CHIP_ID_LENGTH, GFP_KERNEL); in serial_show()
251 if (!id_buf) in serial_show()
254 ret = meson_sm_call_read(fw, id_buf, SM_CHIP_ID_LENGTH, SM_GET_CHIP_ID, in serial_show()
257 kfree(id_buf); in serial_show()
261 ret = sprintf(buf, "%12phN\n", &id_buf[SM_CHIP_ID_OFFSET]); in serial_show()
263 kfree(id_buf); in serial_show()
/drivers/staging/rts5208/
Dxd.c74 static int xd_read_id(struct rtsx_chip *chip, u8 id_cmd, u8 *id_buf, u8 buf_len) in xd_read_id() argument
95 if (id_buf && buf_len) { in xd_read_id()
98 memcpy(id_buf, ptr, buf_len); in xd_read_id()
443 u8 *ptr, id_buf[4], redunt[11]; in reset_xd() local
570 retval = xd_read_id(chip, READ_ID, id_buf, 4); in reset_xd()
575 id_buf[0], id_buf[1], id_buf[2], id_buf[3]); in reset_xd()
577 xd_card->device_code = id_buf[1]; in reset_xd()
651 retval = xd_read_id(chip, READ_ID, id_buf, 4); in reset_xd()
655 if (id_buf[1] != xd_card->device_code) in reset_xd()
672 retval = xd_read_id(chip, READ_XD_ID, id_buf, 4); in reset_xd()
[all …]
/drivers/input/touchscreen/
Datmel_mxt_ts.c1771 void *id_buf, *buf; in mxt_read_info_block() local
1782 id_buf = kzalloc(size, GFP_KERNEL); in mxt_read_info_block()
1783 if (!id_buf) in mxt_read_info_block()
1786 error = __mxt_read_reg(client, 0, size, id_buf); in mxt_read_info_block()
1791 num_objects = ((struct mxt_info *)id_buf)->object_num; in mxt_read_info_block()
1795 buf = krealloc(id_buf, size, GFP_KERNEL); in mxt_read_info_block()
1800 id_buf = buf; in mxt_read_info_block()
1805 id_buf + MXT_OBJECT_START); in mxt_read_info_block()
1810 crc_ptr = id_buf + size - MXT_INFO_CHECKSUM_SIZE; in mxt_read_info_block()
1813 calculated_crc = mxt_calculate_crc(id_buf, 0, in mxt_read_info_block()
[all …]
/drivers/block/mtip32xx/
Dmtip32xx.c2170 char id_buf[42]; in show_device_status() local
2180 strlcpy(id_buf, in show_device_status()
2184 memset(id_buf, 0, 42); in show_device_status()
2193 id_buf, in show_device_status()
2199 id_buf); in show_device_status()
2210 strlcpy(id_buf, in show_device_status()
2214 memset(id_buf, 0, 42); in show_device_status()
2223 id_buf, in show_device_status()
2229 id_buf); in show_device_status()