Lines Matching refs:optval
436 char __user *optval, int __user *optlen) in l2cap_sock_getsockopt_old() argument
491 if (copy_to_user(optval, (char *) &opts, len)) in l2cap_sock_getsockopt_old()
523 if (put_user(opt, (u32 __user *) optval)) in l2cap_sock_getsockopt_old()
541 if (copy_to_user(optval, (char *) &cinfo, len)) in l2cap_sock_getsockopt_old()
556 char __user *optval, int __user *optlen) in l2cap_sock_getsockopt() argument
568 return l2cap_sock_getsockopt_old(sock, optname, optval, optlen); in l2cap_sock_getsockopt()
598 if (copy_to_user(optval, (char *) &sec, len)) in l2cap_sock_getsockopt()
610 (u32 __user *) optval)) in l2cap_sock_getsockopt()
617 (u32 __user *) optval)) in l2cap_sock_getsockopt()
632 if (copy_to_user(optval, (char *) &pwr, len)) in l2cap_sock_getsockopt()
638 if (put_user(chan->chan_policy, (u32 __user *) optval)) in l2cap_sock_getsockopt()
653 if (put_user(chan->omtu, (u16 __user *) optval)) in l2cap_sock_getsockopt()
663 if (put_user(chan->imtu, (u16 __user *) optval)) in l2cap_sock_getsockopt()
675 if (put_user(phys, (u32 __user *) optval)) in l2cap_sock_getsockopt()
696 if (put_user(mode, (u8 __user *) optval)) in l2cap_sock_getsockopt()
726 sockptr_t optval, unsigned int optlen) in l2cap_sock_setsockopt_old() argument
758 err = copy_safe_from_sockptr(&opts, sizeof(opts), optval, in l2cap_sock_setsockopt_old()
804 err = copy_safe_from_sockptr(&opt, sizeof(opt), optval, optlen); in l2cap_sock_setsockopt_old()
880 sockptr_t optval, unsigned int optlen) in l2cap_sock_setsockopt() argument
895 return l2cap_sock_setsockopt_old(sock, optname, optval, optlen); in l2cap_sock_setsockopt()
913 err = copy_safe_from_sockptr(&sec, sizeof(sec), optval, optlen); in l2cap_sock_setsockopt()
960 err = copy_safe_from_sockptr(&opt, sizeof(opt), optval, optlen); in l2cap_sock_setsockopt()
974 err = copy_safe_from_sockptr(&opt, sizeof(opt), optval, optlen); in l2cap_sock_setsockopt()
1008 err = copy_safe_from_sockptr(&pwr, sizeof(pwr), optval, optlen); in l2cap_sock_setsockopt()
1019 err = copy_safe_from_sockptr(&opt, sizeof(opt), optval, optlen); in l2cap_sock_setsockopt()
1050 err = copy_safe_from_sockptr(&mtu, sizeof(mtu), optval, optlen); in l2cap_sock_setsockopt()
1080 err = copy_safe_from_sockptr(&mode, sizeof(mode), optval, in l2cap_sock_setsockopt()