Lines Matching refs:optlen

556 			  sockptr_t optval, unsigned int optlen)  in raw_setsockopt()  argument
573 if (optlen % sizeof(struct can_filter) != 0) in raw_setsockopt()
576 if (optlen > CAN_RAW_FILTER_MAX * sizeof(struct can_filter)) in raw_setsockopt()
579 count = optlen / sizeof(struct can_filter); in raw_setsockopt()
583 filter = memdup_sockptr(optval, optlen); in raw_setsockopt()
643 if (optlen != sizeof(err_mask)) in raw_setsockopt()
646 if (copy_from_sockptr(&err_mask, optval, optlen)) in raw_setsockopt()
686 if (optlen != sizeof(flag)) in raw_setsockopt()
689 if (copy_from_sockptr(&flag, optval, optlen)) in raw_setsockopt()
696 if (optlen != sizeof(flag)) in raw_setsockopt()
699 if (copy_from_sockptr(&flag, optval, optlen)) in raw_setsockopt()
706 if (optlen != sizeof(flag)) in raw_setsockopt()
709 if (copy_from_sockptr(&flag, optval, optlen)) in raw_setsockopt()
720 if (optlen != sizeof(flag)) in raw_setsockopt()
723 if (copy_from_sockptr(&flag, optval, optlen)) in raw_setsockopt()
734 if (optlen != sizeof(ro->raw_vcid_opts)) in raw_setsockopt()
737 if (copy_from_sockptr(&ro->raw_vcid_opts, optval, optlen)) in raw_setsockopt()
747 if (optlen != sizeof(flag)) in raw_setsockopt()
750 if (copy_from_sockptr(&flag, optval, optlen)) in raw_setsockopt()
763 char __user *optval, int __user *optlen) in raw_getsockopt() argument
773 if (get_user(len, optlen)) in raw_getsockopt()
790 if (put_user(fsize, optlen)) in raw_getsockopt()
804 err = put_user(len, optlen); in raw_getsockopt()
848 if (put_user(sizeof(ro->raw_vcid_opts), optlen)) in raw_getsockopt()
857 err = put_user(len, optlen); in raw_getsockopt()
871 if (put_user(len, optlen)) in raw_getsockopt()