Lines Matching refs:buffer
103 unsigned char buffer[1024]; variable
367 read_event(int fd, unsigned char *buffer) in read_event() argument
373 while ((count = read(fd, &buffer[i], len)) < len) { in read_event()
379 len = buffer[2]; in read_event()
381 while ((count = read(fd, &buffer[i], len)) < len) { in read_event()
390 dump(buffer, count); in read_event()
422 read_event(uart_fd, buffer); in proc_reset()
434 read_event(uart_fd, buffer); in proc_patchram()
436 read(uart_fd, &buffer[0], 2); in proc_patchram()
438 while (read(hcdfile_fd, &buffer[1], 3)) { in proc_patchram()
439 buffer[0] = 0x01; in proc_patchram()
441 len = buffer[3]; in proc_patchram()
443 read(hcdfile_fd, &buffer[4], len); in proc_patchram()
445 hci_send_cmd(buffer, len + 4); in proc_patchram()
447 read_event(uart_fd, buffer); in proc_patchram()
458 read_event(uart_fd, buffer); in proc_baudrate()
474 read_event(uart_fd, buffer); in proc_bdaddr()
482 read_event(uart_fd, buffer); in proc_enable_lpm()