Lines Matching defs:buf
429 msg.buf = val;
452 msg.buf = (u8 *)val;
526 u8 buf[3];
529 if (mxt_bootloader_read(data, &buf[0], 3) != 0) {
534 dev_dbg(dev, "Bootloader ID:%d Version:%d\n", buf[1], buf[2]);
536 return buf[0];
610 u8 buf[2];
613 buf[0] = MXT_UNLOCK_CMD_LSB;
614 buf[1] = MXT_UNLOCK_CMD_MSB;
616 buf[0] = 0x01;
617 buf[1] = 0x01;
620 ret = mxt_bootloader_write(data, buf, 2);
631 u8 buf[2];
634 buf[0] = reg & 0xff;
635 buf[1] = (reg >> 8) & 0xff;
641 xfer[0].buf = buf;
647 xfer[1].buf = val;
665 u8 *buf;
670 buf = kmalloc(count, GFP_KERNEL);
671 if (!buf)
674 buf[0] = reg & 0xff;
675 buf[1] = (reg >> 8) & 0xff;
676 memcpy(&buf[2], val, len);
678 ret = i2c_master_send(client, buf, count);
688 kfree(buf);
1771 void *id_buf, *buf;
1795 buf = krealloc(id_buf, size, GFP_KERNEL);
1796 if (!buf) {
1800 id_buf = buf;
2717 struct device_attribute *attr, char *buf)
2721 return scnprintf(buf, PAGE_SIZE, "%u.%u.%02X\n",
2727 struct device_attribute *attr, char *buf)
2731 return scnprintf(buf, PAGE_SIZE, "%u.%u\n",
2735 static ssize_t mxt_show_instance(char *buf, int count,
2742 count += scnprintf(buf + count, PAGE_SIZE - count,
2746 count += scnprintf(buf + count, PAGE_SIZE - count,
2748 count += scnprintf(buf + count, PAGE_SIZE - count, "\n");
2754 struct device_attribute *attr, char *buf)
2775 count += scnprintf(buf + count, PAGE_SIZE - count,
2786 count = mxt_show_instance(buf, count, object, j, obuf);
2942 const char *buf, size_t count)