Lines Matching refs:optval
348 void *optval, socklen_t *optlen) in zcan_getsockopt_ctx() argument
350 if (!optval || !optlen) { in zcan_getsockopt_ctx()
356 optval, optlen); in zcan_getsockopt_ctx()
360 const void *optval, socklen_t optlen) in zcan_setsockopt_ctx() argument
363 optval, optlen); in zcan_setsockopt_ctx()
515 void *optval, socklen_t *optlen) in can_sock_getsockopt_vmeth() argument
522 if (optval == NULL) { 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()
625 const void *optval, socklen_t optlen) in can_sock_setsockopt_vmeth() argument
633 return zcan_setsockopt_ctx(obj, level, optname, optval, optlen); in can_sock_setsockopt_vmeth()
644 if (optval == NULL) { in can_sock_setsockopt_vmeth()
668 ret = can_register_filters(iface, obj, optval, count); in can_sock_setsockopt_vmeth()
679 sfilter = &((struct socketcan_filter *)optval)[i]; 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()