Lines Matching refs:opts
678 struct l2cap_options opts; in l2cap_sock_setsockopt() local
688 opts.imtu = l2cap_pi(sk)->imtu; in l2cap_sock_setsockopt()
689 opts.omtu = l2cap_pi(sk)->omtu; in l2cap_sock_setsockopt()
690 opts.flush_to = l2cap_pi(sk)->flush_to; in l2cap_sock_setsockopt()
692 len = MIN(sizeof(opts), optlen); in l2cap_sock_setsockopt()
693 if (copy_from_user((char *)&opts, optval, len)) { in l2cap_sock_setsockopt()
697 l2cap_pi(sk)->imtu = opts.imtu; in l2cap_sock_setsockopt()
698 l2cap_pi(sk)->omtu = opts.omtu; in l2cap_sock_setsockopt()
722 struct l2cap_options opts; in l2cap_sock_getsockopt() local
733 opts.imtu = l2cap_pi(sk)->imtu; in l2cap_sock_getsockopt()
734 opts.omtu = l2cap_pi(sk)->omtu; in l2cap_sock_getsockopt()
735 opts.flush_to = l2cap_pi(sk)->flush_to; in l2cap_sock_getsockopt()
737 len = MIN(len, sizeof(opts)); in l2cap_sock_getsockopt()
738 if (copy_to_user(optval, (char *)&opts, len)) in l2cap_sock_getsockopt()