Home | History | Annotate | Download | only in hw

Lines Matching refs:opt

501     l2cap_conf_opt *opt;
509 opt = (void *) data;
512 len < L2CAP_CONF_OPT_SIZE + opt->len) {
516 data += L2CAP_CONF_OPT_SIZE + opt->len;
517 len -= L2CAP_CONF_OPT_SIZE + opt->len;
519 switch (opt->type & 0x7f) {
521 if (opt->len != 2) {
527 val = le16_to_cpup((void *) opt->val);
529 cpu_to_le16w((void *) opt->val, ch->min_mtu);
538 if (opt->len != 2) {
544 val = le16_to_cpup((void *) opt->val);
546 opt->val[0] = 0xff;
547 opt->val[1] = 0xff;
554 if (opt->len != L2CAP_CONF_OPT_QOS_SIZE) {
558 qos = (void *) opt->val;
596 if (opt->len != 9) {
602 val = opt->val[0];
620 val = opt->val[1];
622 opt->val[1] = 32;
628 val = opt->val[2];
630 opt->val[2] = 1;
640 val = (opt->val[6] << 8) | opt->val[5];
642 opt->val[5] = 100 & 0xff;
643 opt->val[6] = 100 >> 8;
651 val = (opt->val[8] << 8) | opt->val[7];
653 opt->val[7] = ch->min_mtu & 0xff;
654 opt->val[8] = ch->min_mtu >> 8;
668 if (!(opt->type >> 7))