Lines Matching refs:dir
216 enum bt_audio_dir dir) in pacs_get_available_contexts_for_conn() argument
223 return bt_pacs_get_available_contexts(dir); in pacs_get_available_contexts_for_conn()
226 switch (dir) { in pacs_get_available_contexts_for_conn()
243 return bt_pacs_get_available_contexts(dir); in pacs_get_available_contexts_for_conn()
271 static uint16_t supported_context_get(enum bt_audio_dir dir) in supported_context_get() argument
273 switch (dir) { in supported_context_get()
569 static sys_slist_t *pacs_get(enum bt_audio_dir dir) in pacs_get() argument
571 switch (dir) { in pacs_get()
679 static int pac_notify_loc(struct bt_conn *conn, enum bt_audio_dir dir) in pac_notify_loc() argument
685 switch (dir) { in pac_notify_loc()
713 static int pac_notify(struct bt_conn *conn, enum bt_audio_dir dir) in pac_notify() argument
719 switch (dir) { in pac_notify()
741 pacs = pacs_get(dir); in pac_notify()
1047 void bt_pacs_cap_foreach(enum bt_audio_dir dir, bt_pacs_cap_foreach_func_t func, void *user_data) in bt_pacs_cap_foreach() argument
1056 pac = pacs_get(dir); in bt_pacs_cap_foreach()
1081 int bt_pacs_cap_register(enum bt_audio_dir dir, struct bt_pacs_cap *cap) in bt_pacs_cap_register() argument
1093 pac = pacs_get(dir); in bt_pacs_cap_register()
1102 bt_audio_dir_str(dir), codec_cap->id, codec_cap->cid, codec_cap->vid); in bt_pacs_cap_register()
1113 if (IS_ENABLED(CONFIG_BT_PAC_SNK_NOTIFIABLE) && dir == BT_AUDIO_DIR_SINK) { in bt_pacs_cap_register()
1118 if (IS_ENABLED(CONFIG_BT_PAC_SRC_NOTIFIABLE) && dir == BT_AUDIO_DIR_SOURCE) { in bt_pacs_cap_register()
1127 int bt_pacs_cap_unregister(enum bt_audio_dir dir, struct bt_pacs_cap *cap) in bt_pacs_cap_unregister() argument
1135 pac = pacs_get(dir); in bt_pacs_cap_unregister()
1140 LOG_DBG("cap %p dir %s", cap, bt_audio_dir_str(dir)); in bt_pacs_cap_unregister()
1146 switch (dir) { in bt_pacs_cap_unregister()
1166 int bt_pacs_set_location(enum bt_audio_dir dir, enum bt_audio_location location) in bt_pacs_set_location() argument
1168 switch (dir) { in bt_pacs_set_location()
1182 int bt_pacs_set_available_contexts(enum bt_audio_dir dir, enum bt_audio_context contexts) in bt_pacs_set_available_contexts() argument
1184 switch (dir) { in bt_pacs_set_available_contexts()
1187 supported_context_get(dir)); in bt_pacs_set_available_contexts()
1190 supported_context_get(dir)); in bt_pacs_set_available_contexts()
1196 int bt_pacs_conn_set_available_contexts_for_conn(struct bt_conn *conn, enum bt_audio_dir dir, in bt_pacs_conn_set_available_contexts_for_conn() argument
1199 enum bt_audio_context old = pacs_get_available_contexts_for_conn(conn, dir); in bt_pacs_conn_set_available_contexts_for_conn()
1215 switch (dir) { in bt_pacs_conn_set_available_contexts_for_conn()
1240 if (pacs_get_available_contexts_for_conn(conn, dir) == old) { in bt_pacs_conn_set_available_contexts_for_conn()
1255 int bt_pacs_set_supported_contexts(enum bt_audio_dir dir, enum bt_audio_context contexts) in bt_pacs_set_supported_contexts() argument
1260 switch (dir) { in bt_pacs_set_supported_contexts()
1286 enum bt_audio_context bt_pacs_get_available_contexts(enum bt_audio_dir dir) in bt_pacs_get_available_contexts() argument
1288 switch (dir) { in bt_pacs_get_available_contexts()
1299 enum bt_audio_dir dir) in bt_pacs_get_available_contexts_for_conn() argument
1306 return pacs_get_available_contexts_for_conn(conn, dir); in bt_pacs_get_available_contexts_for_conn()