Lines Matching defs:buf
47 char buf[256];
66 memset(buf, 0x0, sizeof(buf));
88 res = ioctl(fd, HIDIOCGRAWNAME(256), buf);
92 printf("Raw Name: %s\n", buf);
95 res = ioctl(fd, HIDIOCGRAWPHYS(256), buf);
99 printf("Raw Phys: %s\n", buf);
114 buf[0] = 0x9; /* Report Number */
115 buf[1] = 0xff;
116 buf[2] = 0xff;
117 buf[3] = 0xff;
118 res = ioctl(fd, HIDIOCSFEATURE(4), buf);
125 buf[0] = 0x9; /* Report Number */
126 res = ioctl(fd, HIDIOCGFEATURE(256), buf);
133 printf("%hhx ", buf[i]);
138 buf[0] = 0x1; /* Report Number */
139 buf[1] = 0x77;
140 res = write(fd, buf, 2);
149 res = read(fd, buf, 16);
155 printf("%hhx ", buf[i]);