Lines Matching refs:obj
284 struct spair *obj[2] = {}; in z_impl_zsock_socketpair() local
314 obj[i] = spair_new(); in z_impl_zsock_socketpair()
315 if (!obj[i]) { in z_impl_zsock_socketpair()
322 swap32(&obj[0]->remote, &obj[1]->remote); in z_impl_zsock_socketpair()
325 sv[i] = obj[i]->remote; in z_impl_zsock_socketpair()
326 k_sem_give(&obj[0]->sem); in z_impl_zsock_socketpair()
335 spair_delete(obj[i]); in z_impl_zsock_socketpair()
402 static ssize_t spair_write(void *obj, const void *buffer, size_t count) in spair_write() argument
411 struct spair *const spair = (struct spair *)obj; in spair_write()
414 if (obj == NULL || buffer == NULL || count == 0) { in spair_write()
612 static ssize_t spair_read(void *obj, void *buffer, size_t count) in spair_read() argument
621 struct spair *const spair = (struct spair *)obj; in spair_read()
623 if (obj == NULL || buffer == NULL || count == 0) { in spair_read()
775 (*pev)->obj = &spair->readable; in zsock_poll_prepare_ctx()
805 (*pev)->obj = &remote->writeable; in zsock_poll_prepare_ctx()
912 static int spair_ioctl(void *obj, unsigned int request, va_list args) in spair_ioctl() argument
920 struct spair *const spair = (struct spair *)obj; in spair_ioctl()
981 res = zsock_poll_prepare_ctx(obj, pfd, pev, pev_end); in spair_ioctl()
989 res = zsock_poll_update_ctx(obj, pfd, pev); in spair_ioctl()
1008 static int spair_bind(void *obj, const struct sockaddr *addr, in spair_bind() argument
1011 ARG_UNUSED(obj); in spair_bind()
1019 static int spair_connect(void *obj, const struct sockaddr *addr, in spair_connect() argument
1022 ARG_UNUSED(obj); in spair_connect()
1030 static int spair_listen(void *obj, int backlog) in spair_listen() argument
1032 ARG_UNUSED(obj); in spair_listen()
1039 static int spair_accept(void *obj, struct sockaddr *addr, in spair_accept() argument
1042 ARG_UNUSED(obj); in spair_accept()
1050 static ssize_t spair_sendto(void *obj, const void *buf, size_t len, in spair_sendto() argument
1058 return spair_write(obj, buf, len); in spair_sendto()
1061 static ssize_t spair_sendmsg(void *obj, const struct msghdr *msg, in spair_sendmsg() argument
1071 struct spair *const spair = (struct spair *)obj; in spair_sendmsg()
1120 static ssize_t spair_recvfrom(void *obj, void *buf, size_t max_len, in spair_recvfrom() argument
1141 return spair_read(obj, buf, max_len); in spair_recvfrom()
1144 static int spair_getsockopt(void *obj, int level, int optname, in spair_getsockopt() argument
1147 ARG_UNUSED(obj); in spair_getsockopt()
1157 static int spair_setsockopt(void *obj, int level, int optname, in spair_setsockopt() argument
1160 ARG_UNUSED(obj); in spair_setsockopt()
1170 static int spair_close(void *obj) in spair_close() argument
1172 struct spair *const spair = (struct spair *)obj; in spair_close()