Lines Matching refs:buf
193 int keyboard_fill_report(char report[8], char buf[BUF_LEN], int *hold)
195 char *tok = strtok(buf, " ");
246 int mouse_fill_report(char report[8], char buf[BUF_LEN], int *hold)
248 char *tok = strtok(buf, " ");
297 int joystick_fill_report(char report[8], char buf[BUF_LEN], int *hold)
299 char *tok = strtok(buf, " ");
372 char buf[BUF_LEN];
413 cmd_len = read(fd, buf, BUF_LEN - 1);
416 printf(" %02x", buf[i]);
422 cmd_len = read(STDIN_FILENO, buf, BUF_LEN - 1);
427 buf[cmd_len - 1] = '\0';
432 to_send = keyboard_fill_report(report, buf, &hold);
434 to_send = mouse_fill_report(report, buf, &hold);
436 to_send = joystick_fill_report(report, buf, &hold);