Home | History | Annotate | Download | only in btattach

Lines Matching refs:iov

368 	struct iovec iov[2];
377 iov[0].iov_base = &hdr;
378 iov[0].iov_len = sizeof(hdr);
379 iov[1].iov_base = buf;
380 iov[1].iov_len = len;
384 hexdump(iov[0].iov_base, iov[0].iov_len);
385 hexdump(iov[1].iov_base, iov[1].iov_len);
390 if (writev(fd, iov, __arraycount(iov)) < 0)
411 uart_getc(int fd, struct iovec *iov, int ioc, size_t *count)
429 if (iov->iov_len > off) {
430 b = iov->iov_base;
436 off -= iov->iov_len;
437 iov++;
448 uart_recv_pkt(int fd, struct iovec *iov, int ioc)
457 type = uart_getc(fd, iov, ioc, &count);
460 (void)uart_getc(fd, iov, ioc, &count); /* event */
461 want = uart_getc(fd, iov, ioc, &count);
465 (void)uart_getc(fd, iov, ioc, &count); /* handle LSB */
466 (void)uart_getc(fd, iov, ioc, &count); /* handle MSB */
467 want = uart_getc(fd, iov, ioc, &count) | /* LSB */
468 uart_getc(fd, iov, ioc, &count) << 8; /* MSB */
472 (void)uart_getc(fd, iov, ioc, &count); /* handle LSB */
473 (void)uart_getc(fd, iov, ioc, &count); /* handle MSB */
474 want = uart_getc(fd, iov, ioc, &count);
482 (void)uart_getc(fd, iov, ioc, &count);
496 struct iovec iov[2];
500 iov[0].iov_base = &hdr;
501 iov[0].iov_len = sizeof(hdr);
502 iov[1].iov_base = buf;
503 iov[1].iov_len = len;
506 n = uart_recv_pkt(fd, iov, __arraycount(iov));
525 struct iovec iov[3];
530 iov[0].iov_base = &hdr;
531 iov[0].iov_len = sizeof(hdr);
532 iov[1].iov_base = &cc;
533 iov[1].iov_len = sizeof(cc);
534 iov[2].iov_base = buf;
535 iov[2].iov_len = len;
538 n = uart_recv_pkt(fd, iov, __arraycount(iov));