Lines Matching refs:obj

276 bool net_socket_is_tls(void *obj)  in net_socket_is_tls()  argument
278 return PART_OF_ARRAY(tls_contexts, (struct tls_context *)obj); in net_socket_is_tls()
3001 void *obj; in ztls_poll_prepare_ctx() local
3011 (*pev)->obj = &ctx->tls_established; in ztls_poll_prepare_ctx()
3023 obj = zvfs_get_fd_obj_and_vtable( in ztls_poll_prepare_ctx()
3025 if (obj == NULL) { in ztls_poll_prepare_ctx()
3032 ret = zvfs_fdtable_call_ioctl(vtable, obj, ZFD_IOCTL_POLL_PREPARE, in ztls_poll_prepare_ctx()
3214 void *obj; in ztls_poll_update_ctx() local
3218 obj = zvfs_get_fd_obj_and_vtable( in ztls_poll_update_ctx()
3220 if (obj == NULL) { in ztls_poll_update_ctx()
3228 ((*pev)->obj == &ctx->tls_established)) { in ztls_poll_update_ctx()
3233 ret = zvfs_fdtable_call_ioctl(vtable, obj, in ztls_poll_update_ctx()
3255 ret = zvfs_fdtable_call_ioctl(vtable, obj, ZFD_IOCTL_POLL_UPDATE, in ztls_poll_update_ctx()
3678 static ssize_t tls_sock_read_vmeth(void *obj, void *buffer, size_t count) in tls_sock_read_vmeth() argument
3680 return ztls_recvfrom_ctx(obj, buffer, count, 0, NULL, 0); in tls_sock_read_vmeth()
3683 static ssize_t tls_sock_write_vmeth(void *obj, const void *buffer, in tls_sock_write_vmeth() argument
3686 return ztls_sendto_ctx(obj, buffer, count, 0, NULL, 0); in tls_sock_write_vmeth()
3689 static int tls_sock_ioctl_vmeth(void *obj, unsigned int request, va_list args) in tls_sock_ioctl_vmeth() argument
3691 struct tls_context *ctx = obj; in tls_sock_ioctl_vmeth()
3724 ctx_set_lock(obj, lock); in tls_sock_ioctl_vmeth()
3738 return ztls_poll_prepare_ctx(obj, pfd, pev, pev_end); in tls_sock_ioctl_vmeth()
3748 return ztls_poll_update_ctx(obj, pfd, pev); in tls_sock_ioctl_vmeth()
3769 static int tls_sock_shutdown_vmeth(void *obj, int how) in tls_sock_shutdown_vmeth() argument
3771 struct tls_context *ctx = obj; in tls_sock_shutdown_vmeth()
3776 static int tls_sock_bind_vmeth(void *obj, const struct sockaddr *addr, in tls_sock_bind_vmeth() argument
3779 struct tls_context *ctx = obj; in tls_sock_bind_vmeth()
3784 static int tls_sock_connect_vmeth(void *obj, const struct sockaddr *addr, in tls_sock_connect_vmeth() argument
3787 return ztls_connect_ctx(obj, addr, addrlen); in tls_sock_connect_vmeth()
3790 static int tls_sock_listen_vmeth(void *obj, int backlog) in tls_sock_listen_vmeth() argument
3792 struct tls_context *ctx = obj; in tls_sock_listen_vmeth()
3799 static int tls_sock_accept_vmeth(void *obj, struct sockaddr *addr, in tls_sock_accept_vmeth() argument
3802 return ztls_accept_ctx(obj, addr, addrlen); in tls_sock_accept_vmeth()
3805 static ssize_t tls_sock_sendto_vmeth(void *obj, const void *buf, size_t len, in tls_sock_sendto_vmeth() argument
3810 return ztls_sendto_ctx(obj, buf, len, flags, dest_addr, addrlen); in tls_sock_sendto_vmeth()
3813 static ssize_t tls_sock_sendmsg_vmeth(void *obj, const struct msghdr *msg, in tls_sock_sendmsg_vmeth() argument
3816 return ztls_sendmsg_ctx(obj, msg, flags); in tls_sock_sendmsg_vmeth()
3819 static ssize_t tls_sock_recvfrom_vmeth(void *obj, void *buf, size_t max_len, in tls_sock_recvfrom_vmeth() argument
3823 return ztls_recvfrom_ctx(obj, buf, max_len, flags, in tls_sock_recvfrom_vmeth()
3827 static int tls_sock_getsockopt_vmeth(void *obj, int level, int optname, in tls_sock_getsockopt_vmeth() argument
3830 return ztls_getsockopt_ctx(obj, level, optname, optval, optlen); in tls_sock_getsockopt_vmeth()
3833 static int tls_sock_setsockopt_vmeth(void *obj, int level, int optname, in tls_sock_setsockopt_vmeth() argument
3836 return ztls_setsockopt_ctx(obj, level, optname, optval, optlen); in tls_sock_setsockopt_vmeth()
3839 static int tls_sock_close2_vmeth(void *obj, int sock) in tls_sock_close2_vmeth() argument
3841 return ztls_close_ctx(obj, sock); in tls_sock_close2_vmeth()
3844 static int tls_sock_getpeername_vmeth(void *obj, struct sockaddr *addr, in tls_sock_getpeername_vmeth() argument
3847 struct tls_context *ctx = obj; in tls_sock_getpeername_vmeth()
3852 static int tls_sock_getsockname_vmeth(void *obj, struct sockaddr *addr, in tls_sock_getsockname_vmeth() argument
3855 struct tls_context *ctx = obj; in tls_sock_getsockname_vmeth()