Lines Matching refs:opts
440 struct l2cap_options opts;
479 memset(&opts, 0, sizeof(opts));
480 opts.imtu = chan->imtu;
481 opts.omtu = chan->omtu;
482 opts.flush_to = chan->flush_to;
483 opts.mode = chan->mode;
484 opts.fcs = chan->fcs;
485 opts.max_tx = chan->max_tx;
486 opts.txwin_size = chan->tx_win;
490 len = min(len, sizeof(opts));
491 if (copy_to_user(optval, (char *) &opts, len))
730 struct l2cap_options opts;
750 opts.imtu = chan->imtu;
751 opts.omtu = chan->omtu;
752 opts.flush_to = chan->flush_to;
753 opts.mode = chan->mode;
754 opts.fcs = chan->fcs;
755 opts.max_tx = chan->max_tx;
756 opts.txwin_size = chan->tx_win;
758 err = bt_copy_from_sockptr(&opts, sizeof(opts), optval, optlen);
762 if (opts.txwin_size > L2CAP_DEFAULT_EXT_WINDOW) {
767 if (!l2cap_valid_mtu(chan, opts.imtu)) {
773 switch (opts.mode) {
790 chan->mode = opts.mode;
794 chan->imtu = opts.imtu;
795 chan->omtu = opts.omtu;
796 chan->fcs = opts.fcs;
797 chan->max_tx = opts.max_tx;
798 chan->tx_win = opts.txwin_size;
799 chan->flush_to = opts.flush_to;