Lines Matching refs:optlen
488 char __user *optval, unsigned int optlen) in raw_setsockopt() argument
504 if (optlen % sizeof(struct can_filter) != 0) in raw_setsockopt()
507 if (optlen > CAN_RAW_FILTER_MAX * sizeof(struct can_filter)) in raw_setsockopt()
510 count = optlen / sizeof(struct can_filter); in raw_setsockopt()
514 filter = memdup_user(optval, optlen); in raw_setsockopt()
568 if (optlen != sizeof(err_mask)) in raw_setsockopt()
571 if (copy_from_user(&err_mask, optval, optlen)) in raw_setsockopt()
607 if (optlen != sizeof(ro->loopback)) in raw_setsockopt()
610 if (copy_from_user(&ro->loopback, optval, optlen)) in raw_setsockopt()
616 if (optlen != sizeof(ro->recv_own_msgs)) in raw_setsockopt()
619 if (copy_from_user(&ro->recv_own_msgs, optval, optlen)) in raw_setsockopt()
625 if (optlen != sizeof(ro->fd_frames)) in raw_setsockopt()
628 if (copy_from_user(&ro->fd_frames, optval, optlen)) in raw_setsockopt()
634 if (optlen != sizeof(ro->join_filters)) in raw_setsockopt()
637 if (copy_from_user(&ro->join_filters, optval, optlen)) in raw_setsockopt()
649 char __user *optval, int __user *optlen) in raw_getsockopt() argument
659 if (get_user(len, optlen)) in raw_getsockopt()
680 err = put_user(len, optlen); in raw_getsockopt()
717 if (put_user(len, optlen)) in raw_getsockopt()