Lines Matching refs:mps

536 	chan->mps = min_t(u16, chan->imtu, chan->conn->mtu - L2CAP_HDR_SIZE);  in l2cap_le_flowctl_init()
538 chan->rx_credits = (chan->imtu / chan->mps) + 1; in l2cap_le_flowctl_init()
548 if (chan->mps < L2CAP_ECRED_MIN_MPS) { in l2cap_ecred_init()
549 chan->mps = L2CAP_ECRED_MIN_MPS; in l2cap_ecred_init()
550 chan->rx_credits = (chan->imtu / chan->mps) + 1; in l2cap_ecred_init()
739 rsp.mps = cpu_to_le16(chan->mps); in l2cap_chan_le_connect_reject()
1375 req.mps = cpu_to_le16(chan->mps); in l2cap_le_connect()
1441 data.pdu.req.mps = cpu_to_le16(chan->mps); in l2cap_ecred_connect()
3878 chan->mps = le16_to_cpu(rfc.max_pdu_size); in l2cap_parse_conf_rsp()
3894 chan->mps = le16_to_cpu(rfc.max_pdu_size); in l2cap_parse_conf_rsp()
3928 rsp.mps = cpu_to_le16(chan->mps); in __l2cap_le_connect_rsp_defer()
3952 pdu.rsp.mps = cpu_to_le16(chan->mps); in __l2cap_ecred_conn_rsp_defer()
4048 chan->mps = le16_to_cpu(rfc.max_pdu_size); in l2cap_conf_rfc_get()
4056 chan->mps = le16_to_cpu(rfc.max_pdu_size); in l2cap_conf_rfc_get()
5586 u16 dcid, mtu, mps, credits, result; in l2cap_le_connect_rsp() local
5595 mps = __le16_to_cpu(rsp->mps); in l2cap_le_connect_rsp()
5599 if (result == L2CAP_CR_LE_SUCCESS && (mtu < 23 || mps < 23 || in l2cap_le_connect_rsp()
5605 dcid, mtu, mps, credits, result); in l2cap_le_connect_rsp()
5629 chan->remote_mps = mps; in l2cap_le_connect_rsp()
5754 u16 dcid, scid, credits, mtu, mps; in l2cap_le_connect_req() local
5763 mps = __le16_to_cpu(req->mps); in l2cap_le_connect_req()
5768 if (mtu < 23 || mps < 23) in l2cap_le_connect_req()
5772 scid, mtu, mps); in l2cap_le_connect_req()
5820 chan->remote_mps = mps; in l2cap_le_connect_req()
5858 rsp.mps = cpu_to_le16(chan->mps); in l2cap_le_connect_req()
5861 rsp.mps = 0; in l2cap_le_connect_req()
5929 u16 mtu, mps; in l2cap_ecred_conn_req() local
5952 mps = __le16_to_cpu(req->mps); in l2cap_ecred_conn_req()
5954 if (mtu < L2CAP_ECRED_MIN_MTU || mps < L2CAP_ECRED_MIN_MPS) { in l2cap_ecred_conn_req()
5961 BT_DBG("psm 0x%2.2x mtu %u mps %u", __le16_to_cpu(psm), mtu, mps); in l2cap_ecred_conn_req()
6017 chan->remote_mps = mps; in l2cap_ecred_conn_req()
6026 pdu.rsp.mps = cpu_to_le16(chan->mps); in l2cap_ecred_conn_req()
6068 u16 mtu, mps, credits, result; in l2cap_ecred_conn_rsp() local
6077 mps = __le16_to_cpu(rsp->mps); in l2cap_ecred_conn_rsp()
6081 BT_DBG("mtu %u mps %u credits %u result 0x%4.4x", mtu, mps, credits, in l2cap_ecred_conn_rsp()
6162 chan->remote_mps = mps; in l2cap_ecred_conn_rsp()
6182 u16 mtu, mps, result; in l2cap_ecred_reconf_req() local
6195 mps = __le16_to_cpu(req->mps); in l2cap_ecred_reconf_req()
6197 BT_DBG("mtu %u mps %u", mtu, mps); in l2cap_ecred_reconf_req()
6204 if (mps < L2CAP_ECRED_MIN_MPS) { in l2cap_ecred_reconf_req()
6235 chan->remote_mps = mps; in l2cap_ecred_reconf_req()
7314 if (len > chan->mps) { in l2cap_data_rcv()
7389 return_credits = (chan->imtu / chan->mps) + 1; in l2cap_chan_le_send_credits()
7478 if (skb->len + L2CAP_SDULEN_SIZE < chan->mps) { in l2cap_ecred_data_rcv()
7482 BT_DBG("chan->mps %u -> %u", chan->mps, mps_len); in l2cap_ecred_data_rcv()
7483 chan->mps = mps_len; in l2cap_ecred_data_rcv()
8008 pdu.req.mps = cpu_to_le16(chan->mps); in l2cap_ecred_reconfigure()