Lines Matching full:ep
173 void bt_bap_iso_configure_data_path(struct bt_bap_ep *ep, struct bt_audio_codec_cfg *codec_cfg) in bt_bap_iso_configure_data_path() argument
175 struct bt_bap_iso *bap_iso = ep->iso; in bt_bap_iso_configure_data_path()
178 IS_ENABLED(CONFIG_BT_BAP_UNICAST_CLIENT) && bt_bap_ep_is_unicast_client(ep); in bt_bap_iso_configure_data_path()
179 struct bt_bap_iso_dir *iso_dir = bap_iso_get_iso_dir(is_unicast_client, bap_iso, ep->dir); in bt_bap_iso_configure_data_path()
210 static bool is_unicast_client_ep(struct bt_bap_ep *ep) in is_unicast_client_ep() argument
212 return IS_ENABLED(CONFIG_BT_BAP_UNICAST_CLIENT) && bt_bap_ep_is_unicast_client(ep); in is_unicast_client_ep()
215 void bt_bap_iso_bind_ep(struct bt_bap_iso *iso, struct bt_bap_ep *ep) in bt_bap_iso_bind_ep() argument
219 __ASSERT_NO_MSG(ep != NULL); in bt_bap_iso_bind_ep()
221 __ASSERT(ep->iso == NULL, "ep %p bound with iso %p already", ep, ep->iso); in bt_bap_iso_bind_ep()
222 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_bind_ep()
223 "invalid dir: %u", ep->dir); in bt_bap_iso_bind_ep()
225 LOG_DBG("iso %p ep %p dir %s", iso, ep, bt_audio_dir_str(ep->dir)); in bt_bap_iso_bind_ep()
227 iso_dir = bap_iso_get_iso_dir(is_unicast_client_ep(ep), iso, ep->dir); in bt_bap_iso_bind_ep()
228 __ASSERT(iso_dir->ep == NULL, "iso %p bound with ep %p", iso, iso_dir); in bt_bap_iso_bind_ep()
229 iso_dir->ep = ep; in bt_bap_iso_bind_ep()
231 ep->iso = bt_bap_iso_ref(iso); in bt_bap_iso_bind_ep()
234 void bt_bap_iso_unbind_ep(struct bt_bap_iso *iso, struct bt_bap_ep *ep) in bt_bap_iso_unbind_ep() argument
238 __ASSERT_NO_MSG(ep != NULL); in bt_bap_iso_unbind_ep()
240 __ASSERT(ep->iso == iso, "ep %p not bound with iso %p, was bound to %p", in bt_bap_iso_unbind_ep()
241 ep, iso, ep->iso); in bt_bap_iso_unbind_ep()
242 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_unbind_ep()
243 "Invalid dir: %u", ep->dir); in bt_bap_iso_unbind_ep()
245 LOG_DBG("iso %p ep %p dir %s", iso, ep, bt_audio_dir_str(ep->dir)); in bt_bap_iso_unbind_ep()
247 iso_dir = bap_iso_get_iso_dir(is_unicast_client_ep(ep), iso, ep->dir); in bt_bap_iso_unbind_ep()
248 __ASSERT(iso_dir->ep == ep, "iso %p not bound with ep %p", iso, ep); in bt_bap_iso_unbind_ep()
249 iso_dir->ep = NULL; in bt_bap_iso_unbind_ep()
251 bt_bap_iso_unref(ep->iso); in bt_bap_iso_unbind_ep()
252 ep->iso = NULL; in bt_bap_iso_unbind_ep()
267 return iso_dir->ep; in bt_bap_iso_get_ep()
270 struct bt_bap_ep *bt_bap_iso_get_paired_ep(const struct bt_bap_ep *ep) in bt_bap_iso_get_paired_ep() argument
272 if (ep->iso->rx.ep == ep) { in bt_bap_iso_get_paired_ep()
273 return ep->iso->tx.ep; in bt_bap_iso_get_paired_ep()
275 return ep->iso->rx.ep; in bt_bap_iso_get_paired_ep()