Lines Matching refs:obj
366 static ssize_t can_sock_read_vmeth(void *obj, void *buffer, size_t count) in can_sock_read_vmeth() argument
368 return zcan_recvfrom_ctx(obj, buffer, count, 0, NULL, 0); in can_sock_read_vmeth()
371 static ssize_t can_sock_write_vmeth(void *obj, const void *buffer, in can_sock_write_vmeth() argument
374 return zcan_sendto_ctx(obj, buffer, count, 0, NULL, 0); in can_sock_write_vmeth()
446 static int can_sock_close_vmeth(void *obj) in can_sock_close_vmeth() argument
450 ret = can_close_socket(obj); in can_sock_close_vmeth()
452 NET_DBG("Cannot detach net_context %p (%d)", obj, ret); in can_sock_close_vmeth()
461 static int can_sock_ioctl_vmeth(void *obj, unsigned int request, va_list args) in can_sock_ioctl_vmeth() argument
463 return sock_fd_op_vtable.fd_vtable.ioctl(obj, request, args); in can_sock_ioctl_vmeth()
469 static int can_sock_bind_vmeth(void *obj, const struct sockaddr *addr, in can_sock_bind_vmeth() argument
472 return zcan_bind_ctx(obj, addr, addrlen); in can_sock_bind_vmeth()
476 static int can_sock_connect_vmeth(void *obj, const struct sockaddr *addr, in can_sock_connect_vmeth() argument
487 static int can_sock_listen_vmeth(void *obj, int backlog) in can_sock_listen_vmeth() argument
492 static int can_sock_accept_vmeth(void *obj, struct sockaddr *addr, in can_sock_accept_vmeth() argument
498 static ssize_t can_sock_sendto_vmeth(void *obj, const void *buf, size_t len, in can_sock_sendto_vmeth() argument
503 return zcan_sendto_ctx(obj, buf, len, flags, dest_addr, addrlen); in can_sock_sendto_vmeth()
506 static ssize_t can_sock_recvfrom_vmeth(void *obj, void *buf, size_t max_len, in can_sock_recvfrom_vmeth() argument
510 return zcan_recvfrom_ctx(obj, buf, max_len, flags, in can_sock_recvfrom_vmeth()
514 static int can_sock_getsockopt_vmeth(void *obj, int level, int optname, in can_sock_getsockopt_vmeth() argument
527 iface = net_context_get_iface(obj); in can_sock_getsockopt_vmeth()
536 return api->getsockopt(dev, obj, level, optname, optval, in can_sock_getsockopt_vmeth()
540 return zcan_getsockopt_ctx(obj, level, optname, optval, optlen); in can_sock_getsockopt_vmeth()
624 static int can_sock_setsockopt_vmeth(void *obj, int level, int optname, in can_sock_setsockopt_vmeth() argument
633 return zcan_setsockopt_ctx(obj, level, optname, optval, optlen); in can_sock_setsockopt_vmeth()
649 iface = net_context_get_iface(obj); in can_sock_setsockopt_vmeth()
668 ret = can_register_filters(iface, obj, optval, count); in can_sock_setsockopt_vmeth()
684 duplicate = is_already_attached(sfilter, iface, obj); in can_sock_setsockopt_vmeth()
691 ret = api->setsockopt(dev, obj, level, optname, in can_sock_setsockopt_vmeth()
699 can_unregister_filters(iface, obj, optval, count); in can_sock_setsockopt_vmeth()
708 return api->setsockopt(dev, obj, level, optname, optval, optlen); in can_sock_setsockopt_vmeth()