Lines Matching refs:remaining
55 static struct net_buf *bt_rpmsg_evt_recv(uint8_t *data, size_t remaining) in bt_rpmsg_evt_recv() argument
61 if (remaining < sizeof(hdr)) { in bt_rpmsg_evt_recv()
70 remaining -= sizeof(hdr); in bt_rpmsg_evt_recv()
72 if (remaining != hdr.len) { in bt_rpmsg_evt_recv()
89 net_buf_add_mem(buf, data, remaining); in bt_rpmsg_evt_recv()
94 static struct net_buf *bt_rpmsg_acl_recv(uint8_t *data, size_t remaining) in bt_rpmsg_acl_recv() argument
99 if (remaining < sizeof(hdr)) { in bt_rpmsg_acl_recv()
108 remaining -= sizeof(hdr); in bt_rpmsg_acl_recv()
116 if (remaining != sys_le16_to_cpu(hdr.len)) { in bt_rpmsg_acl_recv()
122 BT_DBG("len %u", remaining); in bt_rpmsg_acl_recv()
123 net_buf_add_mem(buf, data, remaining); in bt_rpmsg_acl_recv()
128 static struct net_buf *bt_rpmsg_iso_recv(uint8_t *data, size_t remaining) in bt_rpmsg_iso_recv() argument
133 if (remaining < sizeof(hdr)) { in bt_rpmsg_iso_recv()
142 remaining -= sizeof(hdr); in bt_rpmsg_iso_recv()
150 if (remaining != sys_le16_to_cpu(hdr.len)) { in bt_rpmsg_iso_recv()
156 BT_DBG("len %zu", remaining); in bt_rpmsg_iso_recv()
157 net_buf_add_mem(buf, data, remaining); in bt_rpmsg_iso_recv()
166 size_t remaining = len; in bt_rpmsg_rx() local
171 remaining -= sizeof(pkt_indicator); in bt_rpmsg_rx()
175 buf = bt_rpmsg_evt_recv(data, remaining); in bt_rpmsg_rx()
179 buf = bt_rpmsg_acl_recv(data, remaining); in bt_rpmsg_rx()
183 buf = bt_rpmsg_iso_recv(data, remaining); in bt_rpmsg_rx()