Lines Matching refs:imtu

555 		return (chan->imtu / chan->mps) + 1;  in l2cap_le_rx_credits()
573 chan->mps = min_t(u16, chan->imtu, chan->conn->mtu - L2CAP_HDR_SIZE); in l2cap_le_flowctl_init()
774 rsp.mtu = cpu_to_le16(chan->imtu); in l2cap_chan_le_connect_reject()
1267 if (!chan->imtu) in l2cap_le_connect()
1268 chan->imtu = chan->conn->mtu; in l2cap_le_connect()
1275 req.mtu = cpu_to_le16(chan->imtu); in l2cap_le_connect()
1342 data.pdu.req.mtu = cpu_to_le16(chan->imtu); in l2cap_ecred_connect()
3209 chan->imtu = L2CAP_DEFAULT_MIN_MTU; in l2cap_mtu_auto()
3215 chan->imtu = 54; in l2cap_mtu_auto()
3221 chan->imtu = 83; in l2cap_mtu_auto()
3227 chan->imtu = 367; in l2cap_mtu_auto()
3233 chan->imtu = 552; in l2cap_mtu_auto()
3239 chan->imtu = 679; in l2cap_mtu_auto()
3245 chan->imtu = 1021; in l2cap_mtu_auto()
3277 if (chan->imtu != L2CAP_DEFAULT_MTU) { in l2cap_build_conf_req()
3278 if (!chan->imtu) in l2cap_build_conf_req()
3280 l2cap_add_conf_opt(&ptr, L2CAP_CONF_MTU, 2, chan->imtu, in l2cap_build_conf_req()
3618 chan->imtu = L2CAP_DEFAULT_MIN_MTU; in l2cap_parse_conf_rsp()
3620 chan->imtu = val; in l2cap_parse_conf_rsp()
3621 l2cap_add_conf_opt(&ptr, L2CAP_CONF_MTU, 2, chan->imtu, in l2cap_parse_conf_rsp()
3735 rsp.mtu = cpu_to_le16(chan->imtu); in __l2cap_le_connect_rsp_defer()
3806 data.pdu.rsp.mtu = cpu_to_le16(chan->imtu); in __l2cap_ecred_conn_rsp_defer()
3865 .max_pdu_size = cpu_to_le16(chan->imtu), in l2cap_conf_rfc_get()
4934 rsp.mtu = cpu_to_le16(chan->imtu); in l2cap_le_connect_req()
5112 pdu->mtu = cpu_to_le16(chan->imtu); in l2cap_ecred_conn_req()
5650 if (chan->sdu_len > chan->imtu) { in l2cap_reassemble_sdu()
6579 if (chan->imtu < skb->len) { in l2cap_ecred_data_rcv()
6603 sdu_len, skb->len, chan->imtu); in l2cap_ecred_data_rcv()
6605 if (sdu_len > chan->imtu) { in l2cap_ecred_data_rcv()
6713 if (chan->imtu < skb->len) { in l2cap_data_channel()
6761 if (chan->imtu < skb->len) in l2cap_conless_channel()
7129 pdu->mtu = cpu_to_le16(chan->imtu); in l2cap_ecred_reconfigure()
7141 if (chan->imtu > mtu) in l2cap_chan_reconfigure()
7146 chan->imtu = mtu; in l2cap_chan_reconfigure()
7590 c->scid, c->dcid, c->imtu, c->omtu, in l2cap_debugfs_show()