Lines Matching refs:obj
34 #define OBJ_TO_SD(obj) (((int)obj) - 1) argument
36 static int simplelink_socket_accept(void *obj, struct sockaddr *addr,
307 static int simplelink_close(void *obj) in simplelink_close() argument
309 int sd = OBJ_TO_SD(obj); in simplelink_close()
416 static int simplelink_accept(void *obj, struct sockaddr *addr, in simplelink_accept() argument
419 int sd = OBJ_TO_SD(obj); in simplelink_accept()
455 static int simplelink_bind(void *obj, const struct sockaddr *addr, in simplelink_bind() argument
458 int sd = OBJ_TO_SD(obj); in simplelink_bind()
489 static int simplelink_listen(void *obj, int backlog) in simplelink_listen() argument
491 int sd = OBJ_TO_SD(obj); in simplelink_listen()
503 static int simplelink_connect(void *obj, const struct sockaddr *addr, in simplelink_connect() argument
506 int sd = OBJ_TO_SD(obj); in simplelink_connect()
566 void *obj; in simplelink_poll() local
591 obj = zvfs_get_fd_obj(fds[i].fd, in simplelink_poll()
595 if (obj != NULL) { in simplelink_poll()
597 sd = OBJ_TO_SD(obj); in simplelink_poll()
620 obj = zvfs_get_fd_obj( in simplelink_poll()
625 sd = OBJ_TO_SD(obj); in simplelink_poll()
715 static int simplelink_setsockopt(void *obj, int level, int optname, in simplelink_setsockopt() argument
718 int sd = OBJ_TO_SD(obj); in simplelink_setsockopt()
809 static int simplelink_getsockopt(void *obj, int level, int optname, in simplelink_getsockopt() argument
812 int sd = OBJ_TO_SD(obj); in simplelink_getsockopt()
905 static ssize_t simplelink_recvfrom(void *obj, void *buf, size_t len, int flags, in simplelink_recvfrom() argument
908 int sd = OBJ_TO_SD(obj); in simplelink_recvfrom()
951 static ssize_t simplelink_sendto(void *obj, const void *buf, size_t len, in simplelink_sendto() argument
955 int sd = OBJ_TO_SD(obj); in simplelink_sendto()
986 static ssize_t simplelink_sendmsg(void *obj, const struct msghdr *msg, in simplelink_sendmsg() argument
1178 static int simplelink_ioctl(void *obj, unsigned int request, va_list args) in simplelink_ioctl() argument
1180 int sd = OBJ_TO_SD(obj); in simplelink_ioctl()
1209 static ssize_t simplelink_read(void *obj, void *buffer, size_t count) in simplelink_read() argument
1211 return simplelink_recvfrom(obj, buffer, count, 0, NULL, 0); in simplelink_read()
1214 static ssize_t simplelink_write(void *obj, const void *buffer, in simplelink_write() argument
1217 return simplelink_sendto(obj, buffer, count, 0, NULL, 0); in simplelink_write()
1283 static int simplelink_socket_accept(void *obj, struct sockaddr *addr, in simplelink_socket_accept() argument
1293 sock = simplelink_accept(obj, addr, addrlen); in simplelink_socket_accept()