Lines Matching refs:rfc
2499 struct l2cap_conf_rfc rfc = { .mode = pi->mode };
2515 pi->mode = l2cap_select_mode(rfc.mode, pi->conn->feat_mask);
2529 rfc.mode = L2CAP_MODE_BASIC;
2530 rfc.txwin_size = 0;
2531 rfc.max_transmit = 0;
2532 rfc.retrans_timeout = 0;
2533 rfc.monitor_timeout = 0;
2534 rfc.max_pdu_size = 0;
2536 l2cap_add_conf_opt(&ptr, L2CAP_CONF_RFC, sizeof(rfc),
2537 (unsigned long) &rfc);
2541 rfc.mode = L2CAP_MODE_ERTM;
2542 rfc.txwin_size = pi->tx_win;
2543 rfc.max_transmit = pi->max_tx;
2544 rfc.retrans_timeout = 0;
2545 rfc.monitor_timeout = 0;
2546 rfc.max_pdu_size = cpu_to_le16(L2CAP_DEFAULT_MAX_PDU_SIZE);
2548 rfc.max_pdu_size = cpu_to_le16(pi->conn->mtu - 10);
2550 l2cap_add_conf_opt(&ptr, L2CAP_CONF_RFC, sizeof(rfc),
2551 (unsigned long) &rfc);
2564 rfc.mode = L2CAP_MODE_STREAMING;
2565 rfc.txwin_size = 0;
2566 rfc.max_transmit = 0;
2567 rfc.retrans_timeout = 0;
2568 rfc.monitor_timeout = 0;
2569 rfc.max_pdu_size = cpu_to_le16(L2CAP_DEFAULT_MAX_PDU_SIZE);
2571 rfc.max_pdu_size = cpu_to_le16(pi->conn->mtu - 10);
2573 l2cap_add_conf_opt(&ptr, L2CAP_CONF_RFC, sizeof(rfc),
2574 (unsigned long) &rfc);
2605 struct l2cap_conf_rfc rfc = { .mode = L2CAP_MODE_BASIC };
2630 if (olen == sizeof(rfc))
2631 memcpy(&rfc, (void *) val, olen);
2657 pi->mode = l2cap_select_mode(rfc.mode,
2662 if (pi->mode != rfc.mode)
2669 if (pi->mode != rfc.mode) {
2671 rfc.mode = pi->mode;
2677 sizeof(rfc), (unsigned long) &rfc);
2693 switch (rfc.mode) {
2700 pi->remote_tx_win = rfc.txwin_size;
2701 pi->remote_max_tx = rfc.max_transmit;
2703 if (le16_to_cpu(rfc.max_pdu_size) > pi->conn->mtu - 10)
2704 rfc.max_pdu_size = cpu_to_le16(pi->conn->mtu - 10);
2706 pi->remote_mps = le16_to_cpu(rfc.max_pdu_size);
2708 rfc.retrans_timeout =
2710 rfc.monitor_timeout =
2716 sizeof(rfc), (unsigned long) &rfc);
2721 if (le16_to_cpu(rfc.max_pdu_size) > pi->conn->mtu - 10)
2722 rfc.max_pdu_size = cpu_to_le16(pi->conn->mtu - 10);
2724 pi->remote_mps = le16_to_cpu(rfc.max_pdu_size);
2729 sizeof(rfc), (unsigned long) &rfc);
2736 memset(&rfc, 0, sizeof(rfc));
2737 rfc.mode = pi->mode;
2757 struct l2cap_conf_rfc rfc;
2781 if (olen == sizeof(rfc))
2782 memcpy(&rfc, (void *)val, olen);
2785 rfc.mode != pi->mode)
2791 sizeof(rfc), (unsigned long) &rfc);
2796 if (pi->mode == L2CAP_MODE_BASIC && pi->mode != rfc.mode)
2799 pi->mode = rfc.mode;
2802 switch (rfc.mode) {
2804 pi->retrans_timeout = le16_to_cpu(rfc.retrans_timeout);
2805 pi->monitor_timeout = le16_to_cpu(rfc.monitor_timeout);
2806 pi->mps = le16_to_cpu(rfc.max_pdu_size);
2809 pi->mps = le16_to_cpu(rfc.max_pdu_size);
2838 struct l2cap_conf_rfc rfc;
2850 if (olen == sizeof(rfc))
2851 memcpy(&rfc, (void *)val, olen);
2857 switch (rfc.mode) {
2859 pi->retrans_timeout = le16_to_cpu(rfc.retrans_timeout);
2860 pi->monitor_timeout = le16_to_cpu(rfc.monitor_timeout);
2861 pi->mps = le16_to_cpu(rfc.max_pdu_size);
2864 pi->mps = le16_to_cpu(rfc.max_pdu_size);