Home
last modified time | relevance | path

Searched refs:first_packet (Results 1 – 2 of 2) sorted by relevance

/aosp12/system/bt/gd/rust/link/src/acl/
H A Dfragment.rs80 fn get_l2cap_pdu_size(first_packet: &Bytes) -> usize { in get_l2cap_pdu_size()
81 if first_packet.len() <= L2CAP_BASIC_FRAME_HEADER_LEN { in get_l2cap_pdu_size()
86 (&first_packet[..]).get_u16_le() as usize in get_l2cap_pdu_size()
/aosp12/system/bt/btif/src/
H A Dbtif_sock_l2cap.cc57 struct packet* first_packet; // fist packet to be delivered to app member
102 struct packet* p = sock->first_packet; in packet_get_head_l()
106 if (data) *data = sock->first_packet->data; in packet_get_head_l()
107 if (len) *len = sock->first_packet->len; in packet_get_head_l()
108 sock->first_packet = p->next; in packet_get_head_l()
109 if (sock->first_packet) in packet_get_head_l()
110 sock->first_packet->prev = NULL; in packet_get_head_l()
146 p->next = sock->first_packet; in packet_put_head_l()
147 sock->first_packet = p; in packet_put_head_l()
174 sock->first_packet = p; in packet_put_tail_l()
[all …]