Lines Matching refs:session
30 #define A2DP_AVDTP(_avdtp) CONTAINER_OF(_avdtp, struct bt_a2dp, session)
61 struct bt_avdtp session; member
82 if (a2dp->session.br_chan.chan.conn == NULL) { in a2dp_get_connection()
90 static void a2dp_connected(struct bt_avdtp *session) in a2dp_connected() argument
92 struct bt_a2dp *a2dp = A2DP_AVDTP(session); in a2dp_connected()
102 static void a2dp_disconnected(struct bt_avdtp *session) in a2dp_disconnected() argument
104 struct bt_a2dp *a2dp = A2DP_AVDTP(session); in a2dp_disconnected()
113 static struct net_buf *a2dp_alloc_buf(struct bt_avdtp *session) in a2dp_alloc_buf() argument
118 static int a2dp_discovery_ind(struct bt_avdtp *session, uint8_t *errcode) in a2dp_discovery_ind() argument
124 static int a2dp_get_capabilities_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, in a2dp_get_capabilities_ind() argument
148 static int a2dp_process_config_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, in a2dp_process_config_ind() argument
152 struct bt_a2dp *a2dp = A2DP_AVDTP(session); 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
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
264 return a2dp_process_config_ind(session, sep, int_seid, buf, errcode, true); in a2dp_re_config_ind()
291 static int a2dp_ctrl_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t *errcode, in a2dp_ctrl_ind() argument
329 static int a2dp_open_ind(struct bt_avdtp *session, struct bt_avdtp_sep *sep, uint8_t *errcode) in a2dp_open_ind() argument
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
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
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
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
389 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, true); in a2dp_abort_ind()
504 err = bt_avdtp_get_capabilities(&a2dp->session, in bt_a2dp_get_sep_caps()
586 err = bt_avdtp_discover(&a2dp->session, &a2dp->discover_param); in bt_a2dp_discover()
642 return bt_avdtp_set_configuration(&a2dp->session, &a2dp->set_config_param); in bt_a2dp_stream_config()
753 return bt_avdtp_open(&a2dp->session, &a2dp->ctrl_param); in bt_a2dp_stream_establish()
765 return bt_avdtp_close(&a2dp->session, &a2dp->ctrl_param); in bt_a2dp_stream_release()
777 return bt_avdtp_start(&a2dp->session, &a2dp->ctrl_param); in bt_a2dp_stream_start()
789 return bt_avdtp_suspend(&a2dp->session, &a2dp->ctrl_param); in bt_a2dp_stream_suspend()
801 return bt_avdtp_abort(&a2dp->session, &a2dp->ctrl_param); in bt_a2dp_stream_abort()
817 return bt_avdtp_reconfigure(&stream->a2dp->session, &stream->a2dp->set_config_param); in bt_a2dp_stream_reconfig()
856 int a2dp_stream_l2cap_disconnected(struct bt_avdtp *session, struct bt_avdtp_sep *sep) in a2dp_stream_l2cap_disconnected() argument
896 int a2dp_accept(struct bt_conn *conn, struct bt_avdtp **session) in a2dp_accept() argument
905 *session = &(a2dp->session); in a2dp_accept()
906 a2dp->session.ops = &signaling_avdtp_ops; in a2dp_accept()
907 LOG_DBG("session: %p", &(a2dp->session)); in a2dp_accept()
949 a2dp->session.ops = &signaling_avdtp_ops; in bt_a2dp_connect()
950 err = bt_avdtp_connect(conn, &(a2dp->session)); in bt_a2dp_connect()
963 return bt_avdtp_disconnect(&a2dp->session); in bt_a2dp_disconnect()