Lines Matching refs:mbuf
194 u8 mbuf[sizeof(reg) + IQS5XX_WR_BYTES_MAX]; in iqs5xx_write_burst() local
199 put_unaligned_be16(reg, mbuf); in iqs5xx_write_burst()
200 memcpy(mbuf + sizeof(reg), val, len); in iqs5xx_write_burst()
208 ret = i2c_master_send(client, mbuf, mlen); in iqs5xx_write_burst()
250 u8 mbuf[sizeof(bl_cmd) + sizeof(bl_addr)]; in iqs5xx_bl_cmd() local
255 msg.buf = mbuf; in iqs5xx_bl_cmd()
257 *mbuf = bl_cmd; in iqs5xx_bl_cmd()
266 put_unaligned_be16(bl_addr, mbuf + sizeof(bl_cmd)); in iqs5xx_bl_cmd()
303 get_unaligned_be16(mbuf) != IQS5XX_BL_ID) { in iqs5xx_bl_cmd()
305 get_unaligned_be16(mbuf)); in iqs5xx_bl_cmd()
309 if (bl_cmd == IQS5XX_BL_CMD_CRC && *mbuf != IQS5XX_BL_CRC_PASS) { in iqs5xx_bl_cmd()
362 u8 mbuf[sizeof(bl_addr) + IQS5XX_BL_BLK_LEN_MAX]; in iqs5xx_bl_write() local
369 msg.len = sizeof(mbuf); in iqs5xx_bl_write()
370 msg.buf = mbuf; in iqs5xx_bl_write()
373 put_unaligned_be16(bl_addr + i, mbuf); in iqs5xx_bl_write()
374 memcpy(mbuf + sizeof(bl_addr), pmap_data + i, in iqs5xx_bl_write()
375 sizeof(mbuf) - sizeof(bl_addr)); in iqs5xx_bl_write()