Lines Matching refs:has_preset

550 static struct has_preset *active_preset;
553 static struct has_preset { struct
568 typedef uint8_t (*preset_func_t)(const struct has_preset *preset, void *user_data); argument
573 struct has_preset *preset, *tmp; in preset_foreach()
590 static uint8_t preset_found(const struct has_preset *preset, void *user_data) in preset_found()
592 const struct has_preset **found = user_data; in preset_found()
599 static void preset_insert(struct has_preset *preset) in preset_insert()
601 struct has_preset *tmp, *prev = NULL; in preset_insert()
619 static struct has_preset *preset_alloc(uint8_t index, enum bt_has_properties properties, in preset_alloc()
622 struct has_preset *preset; in preset_alloc()
630 preset = CONTAINER_OF(node, struct has_preset, node); in preset_alloc()
645 static void preset_free(struct has_preset *preset) in preset_free()
655 static struct has_preset *preset_get_head(void) in preset_get_head()
657 struct has_preset *next; in preset_get_head()
662 static struct has_preset *preset_get_tail(void) in preset_get_tail()
664 struct has_preset *prev; in preset_get_tail()
669 static struct has_preset *preset_get_prev(const struct has_preset *preset) in preset_get_prev()
671 struct has_preset *prev; in preset_get_prev()
687 static struct has_preset *preset_lookup_index(uint8_t index) in preset_lookup_index()
689 struct has_preset *preset; in preset_lookup_index()
700 static struct has_preset *preset_get_next(struct has_preset *preset) in preset_get_next()
702 struct has_preset *next; in preset_get_next()
715 static uint8_t preset_get_prev_index(const struct has_preset *preset) in preset_get_prev_index()
717 const struct has_preset *prev; in preset_get_prev_index()
826 static int bt_has_cp_read_preset_rsp(struct has_client *client, const struct has_preset *preset, in bt_has_cp_read_preset_rsp()
984 const struct has_preset *preset = NULL; in read_preset_response()
998 const struct has_preset *next = NULL; in read_preset_response()
1045 const struct has_preset *prev; in preset_list_changed_generic_update_tail()
1046 struct has_preset last = { in preset_list_changed_generic_update_tail()
1076 const struct has_preset *last; in preset_list_changed_record_deleted_last()
1093 const struct has_preset *preset = NULL; in preset_list_changed()
1094 const struct has_preset *next = NULL; in preset_list_changed()
1164 const struct has_preset *preset = NULL; in handle_read_preset_req()
1211 struct has_preset *preset = NULL; in set_preset_name()
1289 static void preset_set_active(struct has_preset *preset) in preset_set_active()
1298 static uint8_t preset_select(struct has_preset *preset, bool sync) in preset_select()
1322 static bool is_preset_available(const struct has_preset *preset) in is_preset_available()
1330 struct has_preset *preset; in handle_set_active_preset()
1352 struct has_preset *next, *tmp; in handle_set_next_preset()
1378 struct has_preset *prev, *tmp; in handle_set_prev_preset()
1480 struct has_preset *preset; in bt_has_preset_register()
1545 struct has_preset *preset; in bt_has_preset_unregister()
1580 struct has_preset *preset; in set_preset_availability()
1627 static uint8_t bt_has_preset_foreach_func(const struct has_preset *preset, void *user_data) in bt_has_preset_foreach_func()
1654 struct has_preset *preset; in bt_has_preset_active_set()
1808 struct has_preset *preset = &preset_pool[i]; in bt_has_register()