Lines Matching refs:buf

445 static TEEC_Result write_with_timeout(int fd, const void *buf, size_t *blen,  in write_with_timeout()  argument
456 r = write(fd, buf, *blen); in write_with_timeout()
473 void *buf = NULL; in tee_socket_send() local
488 buf = tee_supp_param_to_va(params + 1); in tee_socket_send()
490 res = write_with_timeout(fd, buf, &bytes, params[2].a); in tee_socket_send()
496 static ssize_t recv_with_out_flags(int fd, void *buf, size_t len, int inflags, in recv_with_out_flags() argument
502 struct iovec iov = { .iov_base = buf, .iov_len = len, }; in recv_with_out_flags()
521 static TEEC_Result read_with_timeout(int fd, void *buf, size_t *blen, in read_with_timeout() argument
571 r = recv_with_out_flags(fd, buf, *blen, MSG_DONTWAIT, &out_flags); in read_with_timeout()
612 void *buf = NULL; in tee_socket_recv() local
627 buf = tee_supp_param_to_va(params + 1); in tee_socket_recv()
630 res = read_with_timeout(fd, buf, &bytes, params[2].a); in tee_socket_recv()
638 void *buf, size_t *blen) in tee_socket_ioctl_tcp() argument
642 if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, buf, *blen)) in tee_socket_ioctl_tcp()
646 if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, buf, *blen)) in tee_socket_ioctl_tcp()
740 void *buf, size_t *blen) in tee_socket_ioctl_udp() argument
759 if (!blen || *((char *)buf + *blen - 1) != '\0') in tee_socket_ioctl_udp()
762 return udp_changeaddr(fd, sa->sa_family, buf, port); in tee_socket_ioctl_udp()
766 memcpy(&port, buf, sizeof(port)); in tee_socket_ioctl_udp()
786 void *buf = NULL; in tee_socket_ioctl() local
808 buf = tee_supp_param_to_va(params + 1); in tee_socket_ioctl()
813 res = tee_socket_ioctl_tcp(fd, command, buf, &sz); in tee_socket_ioctl()
818 res = tee_socket_ioctl_udp(fd, command, buf, &sz); in tee_socket_ioctl()