Lines Matching refs:mbuf
195 u8 mbuf[sizeof(reg) + IQS5XX_WR_BYTES_MAX]; in iqs5xx_write_burst() local
200 put_unaligned_be16(reg, mbuf); in iqs5xx_write_burst()
201 memcpy(mbuf + sizeof(reg), val, len); in iqs5xx_write_burst()
209 ret = i2c_master_send(client, mbuf, mlen); in iqs5xx_write_burst()
251 u8 mbuf[sizeof(bl_cmd) + sizeof(bl_addr)]; in iqs5xx_bl_cmd() local
256 msg.buf = mbuf; in iqs5xx_bl_cmd()
258 *mbuf = bl_cmd; in iqs5xx_bl_cmd()
267 put_unaligned_be16(bl_addr, mbuf + sizeof(bl_cmd)); in iqs5xx_bl_cmd()
304 get_unaligned_be16(mbuf) != IQS5XX_BL_ID) { in iqs5xx_bl_cmd()
306 get_unaligned_be16(mbuf)); in iqs5xx_bl_cmd()
310 if (bl_cmd == IQS5XX_BL_CMD_CRC && *mbuf != IQS5XX_BL_CRC_PASS) { in iqs5xx_bl_cmd()
358 u8 mbuf[sizeof(bl_addr) + IQS5XX_BL_BLK_LEN_MAX]; in iqs5xx_bl_write() local
365 msg.len = sizeof(mbuf); in iqs5xx_bl_write()
366 msg.buf = mbuf; in iqs5xx_bl_write()
369 put_unaligned_be16(bl_addr + i, mbuf); in iqs5xx_bl_write()
370 memcpy(mbuf + sizeof(bl_addr), pmap_data + i, in iqs5xx_bl_write()
371 sizeof(mbuf) - sizeof(bl_addr)); in iqs5xx_bl_write()