Lines Matching refs:mps

538 	req->mps = sys_cpu_to_le16(ch->rx.mps);  in l2cap_le_conn_req()
578 req->mps = sys_cpu_to_le16(ch->rx.mps); in l2cap_ecred_conn_req()
863 return MIN(buf->len, lechan->tx.mps); in get_pdu_len()
1199 if (chan->rx.mps > BT_L2CAP_RX_MTU) { in l2cap_chan_seg_recv_rx_init()
1201 chan->rx.mps = BT_L2CAP_RX_MTU; in l2cap_chan_seg_recv_rx_init()
1232 chan->rx.mps = MIN(chan->rx.mtu + BT_L2CAP_SDU_HDR_SIZE, in l2cap_chan_rx_init()
1239 (chan->rx.mps < chan->rx.mtu + BT_L2CAP_SDU_HDR_SIZE)) { in l2cap_chan_rx_init()
1241 chan->rx.mtu = chan->rx.mps - BT_L2CAP_SDU_HDR_SIZE; in l2cap_chan_rx_init()
1347 uint16_t mtu, uint16_t mps, uint16_t credits, in l2cap_chan_accept() argument
1395 le_chan->tx.mps = mps; in l2cap_chan_accept()
1447 uint16_t psm, scid, mtu, mps, credits; in le_conn_req() local
1458 mps = sys_le16_to_cpu(req->mps); in le_conn_req()
1461 LOG_DBG("psm 0x%02x scid 0x%04x mtu %u mps %u credits %u", psm, scid, mtu, mps, credits); in le_conn_req()
1463 if (mtu < L2CAP_LE_MIN_MTU || mps < L2CAP_LE_MIN_MTU) { in le_conn_req()
1464 LOG_ERR("Invalid LE-Conn Req params: mtu %u mps %u", mtu, mps); in le_conn_req()
1490 result = l2cap_chan_accept(conn, server, scid, mtu, mps, credits, in le_conn_req()
1500 rsp->mps = sys_cpu_to_le16(le_chan->rx.mps); in le_conn_req()
1529 uint16_t mtu, mps, credits, result = BT_L2CAP_LE_SUCCESS; in le_ecred_conn_req() local
1557 mps = sys_le16_to_cpu(req->mps); in le_ecred_conn_req()
1560 LOG_DBG("psm 0x%02x mtu %u mps %u credits %u", psm, mtu, mps, credits); in le_ecred_conn_req()
1562 if (mtu < BT_L2CAP_ECRED_MIN_MTU || mps < BT_L2CAP_ECRED_MIN_MTU) { in le_ecred_conn_req()
1563 LOG_ERR("Invalid ecred conn req params. mtu %u mps %u", mtu, mps); in le_ecred_conn_req()
1585 rc = l2cap_chan_accept(conn, server, scid, mtu, mps, in le_ecred_conn_req()
1620 rsp->mps = sys_cpu_to_le16(ch->rx.mps); in le_ecred_conn_req()
1655 uint16_t mtu, mps; in le_ecred_reconf_req() local
1668 mps = sys_le16_to_cpu(req->mps); in le_ecred_reconf_req()
1670 if (mps < BT_L2CAP_ECRED_MIN_MTU) { in le_ecred_reconf_req()
1702 if (BT_L2CAP_LE_CHAN(chan)->tx.mps > mps) { in le_ecred_reconf_req()
1721 BT_L2CAP_LE_CHAN(chans[i])->tx.mps = mps; in le_ecred_reconf_req()
1728 LOG_DBG("mtu %u mps %u", mtu, mps); in le_ecred_reconf_req()
1899 uint16_t dcid, mtu, mps, credits, result, psm; in le_ecred_conn_rsp() local
1910 mps = sys_le16_to_cpu(rsp->mps); in le_ecred_conn_rsp()
1914 LOG_DBG("mtu 0x%04x mps 0x%04x credits 0x%04x result %u", mtu, mps, credits, result); in le_ecred_conn_rsp()
1993 chan->tx.mps = mps; in le_ecred_conn_rsp()
2029 uint16_t dcid, mtu, mps, credits, result; in le_conn_rsp() local
2038 mps = sys_le16_to_cpu(rsp->mps); in le_conn_rsp()
2042 LOG_DBG("dcid 0x%04x mtu %u mps %u credits %u result 0x%04x", dcid, mtu, mps, credits, in le_conn_rsp()
2069 chan->tx.mps = mps; in le_conn_rsp()
2583 if (buf->len > chan->rx.mps) { in l2cap_chan_le_recv()
2584 LOG_WRN("PDU size > MPS (%u > %u)", buf->len, chan->rx.mps); in l2cap_chan_le_recv()
2632 chan->rx.mps); in l2cap_chan_le_recv()
2639 chan->rx.mps); in l2cap_chan_le_recv()
2897 LOG_DBG("ch %p psm 0x%02x mtu %u mps %u credits 1", ch, ch->psm, ch->rx.mtu, ch->rx.mps); in l2cap_ecred_init()
3020 req->mps = sys_cpu_to_le16(MIN(mtu + BT_L2CAP_SDU_HDR_SIZE, in bt_l2cap_ecred_chan_reconfigure()
3043 uint16_t mtu, uint16_t mps) in bt_l2cap_ecred_chan_reconfigure_explicit() argument
3050 LOG_DBG("chans %p chan_count %u mtu 0x%04x mps 0x%04x", chans, chan_count, mtu, mps); in bt_l2cap_ecred_chan_reconfigure_explicit()
3056 if (!IN_RANGE(mps, BT_L2CAP_ECRED_MIN_MPS, BT_L2CAP_RX_MTU)) { in bt_l2cap_ecred_chan_reconfigure_explicit()
3078 if (chan_count > 1 && mps < BT_L2CAP_LE_CHAN(chans[i])->rx.mps) { in bt_l2cap_ecred_chan_reconfigure_explicit()
3106 req->mps = sys_cpu_to_le16(mps); in bt_l2cap_ecred_chan_reconfigure_explicit()