Lines Matching refs:obj
46 static ssize_t offload_read(void *obj, void *buffer, size_t count) in offload_read() argument
48 ARG_UNUSED(obj); in offload_read()
55 static ssize_t offload_write(void *obj, const void *buffer, size_t count) in offload_write() argument
57 ARG_UNUSED(obj); in offload_write()
64 static int offload_close(void *obj) in offload_close() argument
66 struct test_socket_calls *ctx = obj; in offload_close()
73 static int offload_ioctl(void *obj, unsigned int request, va_list args) in offload_ioctl() argument
75 struct test_socket_calls *ctx = obj; in offload_ioctl()
85 static int offload_shutdown(void *obj, int how) in offload_shutdown() argument
87 struct test_socket_calls *ctx = obj; in offload_shutdown()
96 static int offload_bind(void *obj, const struct sockaddr *addr, in offload_bind() argument
99 struct test_socket_calls *ctx = obj; in offload_bind()
109 static int offload_connect(void *obj, const struct sockaddr *addr, in offload_connect() argument
112 struct test_socket_calls *ctx = obj; in offload_connect()
122 static int offload_listen(void *obj, int backlog) in offload_listen() argument
124 struct test_socket_calls *ctx = obj; in offload_listen()
133 static int offload_accept(void *obj, struct sockaddr *addr, socklen_t *addrlen) in offload_accept() argument
135 struct test_socket_calls *ctx = obj; in offload_accept()
145 static ssize_t offload_sendto(void *obj, const void *buf, size_t len, in offload_sendto() argument
149 struct test_socket_calls *ctx = obj; in offload_sendto()
162 static ssize_t offload_sendmsg(void *obj, const struct msghdr *msg, int flags) in offload_sendmsg() argument
164 struct test_socket_calls *ctx = obj; in offload_sendmsg()
174 static ssize_t offload_recvfrom(void *obj, void *buf, size_t max_len, in offload_recvfrom() argument
178 struct test_socket_calls *ctx = obj; in offload_recvfrom()
191 static int offload_getsockopt(void *obj, int level, int optname, in offload_getsockopt() argument
194 struct test_socket_calls *ctx = obj; in offload_getsockopt()
206 static int offload_setsockopt(void *obj, int level, int optname, in offload_setsockopt() argument
209 struct test_socket_calls *ctx = obj; in offload_setsockopt()
221 static int offload_getpeername(void *obj, struct sockaddr *addr, in offload_getpeername() argument
224 struct test_socket_calls *ctx = obj; in offload_getpeername()
234 static int offload_getsockname(void *obj, struct sockaddr *addr, in offload_getsockname() argument
237 struct test_socket_calls *ctx = obj; in offload_getsockname()
759 void *obj; in ZTEST() local
778 obj = zvfs_get_fd_obj_and_vtable(test_sock, &vtable, NULL); in ZTEST()
779 zassert_not_null(obj, "No obj found"); in ZTEST()
780 zassert_true(net_socket_is_tls(obj), "Socket is not a native TLS sock"); in ZTEST()
806 void *obj; in ZTEST() local
825 obj = zvfs_get_fd_obj_and_vtable(test_sock, &vtable, NULL); in ZTEST()
826 zassert_not_null(obj, "No obj found"); in ZTEST()
827 zassert_true(net_socket_is_tls(obj), "Socket is not a native TLS sock"); in ZTEST()