Lines Matching refs:bt_a2dp
30 #define A2DP_AVDTP(_avdtp) CONTAINER_OF(_avdtp, struct bt_a2dp, session)
33 CONTAINER_OF(_discover_param, struct bt_a2dp, discover_param)
36 CONTAINER_OF(_get_cap_param, struct bt_a2dp, get_capabilities_param)
39 CONTAINER_OF(_set_conf_param, struct bt_a2dp, set_config_param)
41 #define CTRL_PARAM(_ctrl_param) CONTAINER_OF(_ctrl_param, struct bt_a2dp, ctrl_param)
51 LOG_MODULE_REGISTER(bt_a2dp);
60 struct bt_a2dp { struct
74 static struct bt_a2dp connection[CONFIG_BT_MAX_CONN]; argument
76 static int bt_a2dp_get_sep_caps(struct bt_a2dp *a2dp);
78 static struct bt_a2dp *a2dp_get_connection(struct bt_conn *conn) in a2dp_get_connection()
80 struct bt_a2dp *a2dp = &connection[bt_conn_index(conn)]; in a2dp_get_connection()
84 (void)memset(a2dp, 0, sizeof(struct bt_a2dp)); in a2dp_get_connection()
92 struct bt_a2dp *a2dp = A2DP_AVDTP(session); in a2dp_connected()
104 struct bt_a2dp *a2dp = A2DP_AVDTP(session); in a2dp_disconnected()
152 struct bt_a2dp *a2dp = A2DP_AVDTP(session); in a2dp_process_config_ind()
394 struct bt_a2dp *a2dp = SET_CONF_PARAM(SET_CONF_REQ(req)); in bt_a2dp_set_config_cb()
425 struct bt_a2dp *a2dp = GET_CAP_PARAM(GET_CAP_REQ(req)); in bt_a2dp_get_capabilities_cb()
483 static int bt_a2dp_get_sep_caps(struct bt_a2dp *a2dp) in bt_a2dp_get_sep_caps()
519 struct bt_a2dp *a2dp = DISCOVER_PARAM(DISCOVER_REQ(req)); in bt_a2dp_discover_cb()
567 int bt_a2dp_discover(struct bt_a2dp *a2dp, struct bt_a2dp_discover_param *param) in bt_a2dp_discover()
603 static inline void bt_a2dp_stream_config_set_param(struct bt_a2dp *a2dp, in bt_a2dp_stream_config_set_param()
619 int bt_a2dp_stream_config(struct bt_a2dp *a2dp, struct bt_a2dp_stream *stream, in bt_a2dp_stream_config()
651 struct bt_a2dp *a2dp = CTRL_PARAM(CTRL_REQ(req)); in bt_a2dp_ctrl_cb()
729 struct bt_a2dp *a2dp; in bt_a2dp_stream_ctrl_pre()
747 struct bt_a2dp *a2dp = stream->a2dp; in bt_a2dp_stream_establish()
759 struct bt_a2dp *a2dp = stream->a2dp; in bt_a2dp_stream_release()
771 struct bt_a2dp *a2dp = stream->a2dp; in bt_a2dp_stream_start()
783 struct bt_a2dp *a2dp = stream->a2dp; in bt_a2dp_stream_suspend()
795 struct bt_a2dp *a2dp = stream->a2dp; in bt_a2dp_stream_abort()
898 struct bt_a2dp *a2dp; in a2dp_accept()
929 memset(&connection[i], 0, sizeof(struct bt_a2dp)); in bt_a2dp_init()
936 struct bt_a2dp *bt_a2dp_connect(struct bt_conn *conn) in bt_a2dp_connect()
938 struct bt_a2dp *a2dp; in bt_a2dp_connect()
960 int bt_a2dp_disconnect(struct bt_a2dp *a2dp) in bt_a2dp_disconnect()