Lines Matching refs:sep
124 static int a2dp_get_capabilities_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, in a2dp_get_capabilities_ind() argument
129 __ASSERT(sep, "Invalid sep"); in a2dp_get_capabilities_ind()
136 ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_get_capabilities_ind()
140 net_buf_add_u8(rsp_buf, sep->sep_info.media_type << 4U); in a2dp_get_capabilities_ind()
148 static int a2dp_process_config_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, in a2dp_process_config_ind() argument
166 __ASSERT(sep, "Invalid sep"); in a2dp_process_config_ind()
168 ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_process_config_ind()
253 static int a2dp_set_config_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t int_seid, in a2dp_set_config_ind() argument
256 __ASSERT(sep, "Invalid sep"); in a2dp_set_config_ind()
257 return a2dp_process_config_ind(session, sep, int_seid, buf, errcode, false); in a2dp_set_config_ind()
260 static int a2dp_re_config_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t int_seid, in a2dp_re_config_ind() argument
263 __ASSERT(sep, "Invalid sep"); in a2dp_re_config_ind()
264 return a2dp_process_config_ind(session, sep, int_seid, buf, errcode, true); in a2dp_re_config_ind()
268 static void bt_a2dp_media_data_callback(struct bt_avdtp_sep *sep, struct net_buf *buf) in bt_a2dp_media_data_callback() argument
274 __ASSERT(sep, "Invalid sep"); in bt_a2dp_media_data_callback()
275 ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in bt_a2dp_media_data_callback()
291 static int a2dp_ctrl_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t *errcode, in a2dp_ctrl_ind() argument
299 ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_ctrl_ind()
329 static int a2dp_open_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t *errcode) in a2dp_open_ind() argument
331 struct bt_a2dp_ep *ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_open_ind()
335 __ASSERT(sep, "Invalid sep"); in a2dp_open_ind()
339 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, false); in a2dp_open_ind()
342 static int a2dp_start_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t *errcode) in a2dp_start_ind() argument
344 struct bt_a2dp_ep *ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_start_ind()
348 __ASSERT(sep, "Invalid sep"); in a2dp_start_ind()
351 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, false); in a2dp_start_ind()
354 static int a2dp_suspend_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t *errcode) in a2dp_suspend_ind() argument
356 struct bt_a2dp_ep *ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_suspend_ind()
360 __ASSERT(sep, "Invalid sep"); in a2dp_suspend_ind()
364 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, false); in a2dp_suspend_ind()
367 static int a2dp_close_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t *errcode) in a2dp_close_ind() argument
369 struct bt_a2dp_ep *ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_close_ind()
373 __ASSERT(sep, "Invalid sep"); in a2dp_close_ind()
377 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, true); in a2dp_close_ind()
380 static int a2dp_abort_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t *errcode) in a2dp_abort_ind() argument
382 struct bt_a2dp_ep *ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_abort_ind()
386 __ASSERT(sep, "Invalid sep"); in a2dp_abort_ind()
389 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, true); in a2dp_abort_ind()
399 ep = CONTAINER_OF(a2dp->set_config_param.sep, struct bt_a2dp_ep, sep); in bt_a2dp_set_config_cb()
465 ep->sep.sep_info = info->sep_info; in bt_a2dp_get_capabilities_cb()
607 struct bt_avdtp_sep *sep) in bt_a2dp_stream_config_set_param() argument
616 a2dp->set_config_param.sep = sep; in bt_a2dp_stream_config_set_param()
628 if ((local_ep->sep.sep_info.tsep == remote_ep->sep.sep_info.tsep) || in bt_a2dp_stream_config()
635 stream->remote_ep_id = remote_ep->sep.sep_info.id; in bt_a2dp_stream_config()
640 remote_ep->sep.sep_info.id, local_ep->sep.sep_info.id, in bt_a2dp_stream_config()
641 local_ep->codec_type, &local_ep->sep); in bt_a2dp_stream_config()
655 ep = CONTAINER_OF(a2dp->ctrl_param.sep, struct bt_a2dp_ep, sep); in bt_a2dp_ctrl_cb()
678 struct bt_a2dp_ep *ep = CONTAINER_OF(CTRL_REQ(req)->sep, struct bt_a2dp_ep, sep); in bt_a2dp_open_cb()
689 struct bt_a2dp_ep *ep = CONTAINER_OF(CTRL_REQ(req)->sep, struct bt_a2dp_ep, sep); in bt_a2dp_start_cb()
699 struct bt_a2dp_ep *ep = CONTAINER_OF(CTRL_REQ(req)->sep, struct bt_a2dp_ep, sep); in bt_a2dp_suspend_cb()
709 struct bt_a2dp_ep *ep = CONTAINER_OF(CTRL_REQ(req)->sep, struct bt_a2dp_ep, sep); in bt_a2dp_close_cb()
719 struct bt_a2dp_ep *ep = CONTAINER_OF(CTRL_REQ(req)->sep, struct bt_a2dp_ep, sep); in bt_a2dp_abort_cb()
738 ? stream->remote_ep->sep.sep_info.id in bt_a2dp_stream_ctrl_pre()
740 a2dp->ctrl_param.sep = &stream->local_ep->sep; in bt_a2dp_stream_ctrl_pre()
812 remote_id = stream->remote_ep != NULL ? stream->remote_ep->sep.sep_info.id in bt_a2dp_stream_reconfig()
815 stream->local_ep->sep.sep_info.id, in bt_a2dp_stream_reconfig()
816 stream->local_ep->codec_type, &stream->local_ep->sep); in bt_a2dp_stream_reconfig()
826 return bt_avdtp_get_media_mtu(&stream->local_ep->sep); in bt_a2dp_get_mtu()
852 return bt_avdtp_send_media_data(&stream->local_ep->sep, buf); in bt_a2dp_stream_send()
856 int a2dp_stream_l2cap_disconnected(struct bt_avdtp *session, struct bt_avdtp_sep *sep) in a2dp_stream_l2cap_disconnected() argument
860 __ASSERT(sep, "Invalid sep"); in a2dp_stream_l2cap_disconnected()
861 ep = CONTAINER_OF(sep, struct bt_a2dp_ep, sep); in a2dp_stream_l2cap_disconnected()
974 ep->sep.media_data_cb = bt_a2dp_media_data_callback; in bt_a2dp_register_ep()
976 ep->sep.media_data_cb = NULL; in bt_a2dp_register_ep()
979 ep->sep.media_data_cb = NULL; in bt_a2dp_register_ep()
981 err = bt_avdtp_register_sep(media_type, sep_type, &(ep->sep)); in bt_a2dp_register_ep()