Lines Matching full:buf
55 struct net_buf *buf; in bt_b91_evt_recv() local
75 buf = bt_buf_get_evt(hdr.evt, discardable, K_NO_WAIT); in bt_b91_evt_recv()
76 if (!buf) { in bt_b91_evt_recv()
82 return buf; in bt_b91_evt_recv()
85 net_buf_add_mem(buf, &hdr, sizeof(hdr)); in bt_b91_evt_recv()
87 buf_tailroom = net_buf_tailroom(buf); in bt_b91_evt_recv()
90 net_buf_unref(buf); in bt_b91_evt_recv()
94 net_buf_add_mem(buf, data, len); in bt_b91_evt_recv()
96 return buf; in bt_b91_evt_recv()
102 struct net_buf *buf; in bt_b91_acl_recv() local
110 buf = bt_buf_get_rx(BT_BUF_ACL_IN, K_NO_WAIT); in bt_b91_acl_recv()
111 if (buf) { in bt_b91_acl_recv()
122 net_buf_unref(buf); in bt_b91_acl_recv()
126 net_buf_add_mem(buf, &hdr, sizeof(hdr)); in bt_b91_acl_recv()
127 buf_tailroom = net_buf_tailroom(buf); in bt_b91_acl_recv()
130 net_buf_unref(buf); in bt_b91_acl_recv()
135 net_buf_add_mem(buf, data, len); in bt_b91_acl_recv()
137 return buf; in bt_b91_acl_recv()
143 struct net_buf *buf; in hci_b91_host_rcv_pkt() local
152 buf = bt_b91_evt_recv(data, len); in hci_b91_host_rcv_pkt()
156 buf = bt_b91_acl_recv(data, len); in hci_b91_host_rcv_pkt()
160 buf = NULL; in hci_b91_host_rcv_pkt()
164 if (buf) { in hci_b91_host_rcv_pkt()
165 LOG_DBG("Calling bt_recv(%p)", buf); in hci_b91_host_rcv_pkt()
166 bt_recv(buf); in hci_b91_host_rcv_pkt()
180 static int bt_b91_send(struct net_buf *buf) in bt_b91_send() argument
185 LOG_DBG("buf %p type %u len %u", buf, bt_buf_get_type(buf), buf->len); in bt_b91_send()
187 switch (bt_buf_get_type(buf)) { in bt_b91_send()
197 LOG_ERR("Unknown type %u", bt_buf_get_type(buf)); in bt_b91_send()
201 LOG_HEXDUMP_DBG(buf->data, buf->len, "Final HCI buffer:"); in bt_b91_send()
204 b91_bt_host_send_packet(type, buf->data, buf->len); in bt_b91_send()
211 net_buf_unref(buf); in bt_b91_send()