Lines Matching full:buf
8 #include <zephyr/bluetooth/buf.h>
60 struct net_buf *buf; in bt_buf_get_rx() local
73 buf = net_buf_alloc(&evt_pool, timeout); in bt_buf_get_rx()
75 buf = net_buf_alloc(&acl_in_pool, timeout); in bt_buf_get_rx()
78 buf = net_buf_alloc(&hci_rx_pool, timeout); in bt_buf_get_rx()
81 if (buf) { in bt_buf_get_rx()
82 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_buf_get_rx()
83 bt_buf_set_type(buf, type); in bt_buf_get_rx()
86 return buf; in bt_buf_get_rx()
91 struct net_buf *buf; in bt_buf_get_cmd_complete() local
93 buf = (struct net_buf *)atomic_ptr_clear((atomic_ptr_t *)&bt_dev.sent_cmd); in bt_buf_get_cmd_complete()
94 if (buf) { in bt_buf_get_cmd_complete()
95 bt_buf_set_type(buf, BT_BUF_EVT); in bt_buf_get_cmd_complete()
96 buf->len = 0U; in bt_buf_get_cmd_complete()
97 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_buf_get_cmd_complete()
99 return buf; in bt_buf_get_cmd_complete()
112 struct net_buf *buf; in bt_buf_get_evt() local
114 buf = net_buf_alloc(&num_complete_pool, timeout); in bt_buf_get_evt()
115 if (buf) { in bt_buf_get_evt()
116 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_buf_get_evt()
117 bt_buf_set_type(buf, BT_BUF_EVT); in bt_buf_get_evt()
120 return buf; in bt_buf_get_evt()
128 struct net_buf *buf; in bt_buf_get_evt() local
130 buf = net_buf_alloc(&discardable_pool, timeout); in bt_buf_get_evt()
131 if (buf) { in bt_buf_get_evt()
132 net_buf_reserve(buf, BT_BUF_RESERVE); in bt_buf_get_evt()
133 bt_buf_set_type(buf, BT_BUF_EVT); in bt_buf_get_evt()
136 return buf; in bt_buf_get_evt()