Lines Matching refs:pdu_len
2363 size_t pdu_len; in l2cap_segment_sdu() local
2374 pdu_len = chan->conn->mtu; in l2cap_segment_sdu()
2377 pdu_len = min_t(size_t, pdu_len, L2CAP_BREDR_MAX_PAYLOAD); in l2cap_segment_sdu()
2381 pdu_len -= L2CAP_FCS_SIZE; in l2cap_segment_sdu()
2383 pdu_len -= __ertm_hdr_size(chan); in l2cap_segment_sdu()
2386 pdu_len = min_t(size_t, pdu_len, chan->remote_mps); in l2cap_segment_sdu()
2388 if (len <= pdu_len) { in l2cap_segment_sdu()
2391 pdu_len = len; in l2cap_segment_sdu()
2398 skb = l2cap_create_iframe_pdu(chan, msg, pdu_len, sdu_len); in l2cap_segment_sdu()
2408 len -= pdu_len; in l2cap_segment_sdu()
2412 if (len <= pdu_len) { in l2cap_segment_sdu()
2414 pdu_len = len; in l2cap_segment_sdu()
2471 size_t pdu_len; in l2cap_segment_le_sdu() local
2477 pdu_len = chan->remote_mps - L2CAP_SDULEN_SIZE; in l2cap_segment_le_sdu()
2480 if (len <= pdu_len) in l2cap_segment_le_sdu()
2481 pdu_len = len; in l2cap_segment_le_sdu()
2483 skb = l2cap_create_le_flowctl_pdu(chan, msg, pdu_len, sdu_len); in l2cap_segment_le_sdu()
2491 len -= pdu_len; in l2cap_segment_le_sdu()
2495 pdu_len += L2CAP_SDULEN_SIZE; in l2cap_segment_le_sdu()