Lines Matching refs:index
40 int err = bt_has_preset_active_set(cp->index); in has_set_active_index()
60 err = bt_has_preset_name_change(cp->index, temp_name); in has_set_preset_name()
71 if (cp->index == BT_HAS_PRESET_INDEX_NONE) { in has_remove_preset()
73 uint8_t index = find_lsb_set(has_presets); in has_remove_preset() local
75 err = bt_has_preset_unregister(index); in has_remove_preset()
79 has_presets &= ~(1 << (index - 1)); in has_remove_preset()
82 err = bt_has_preset_unregister(cp->index); in has_remove_preset()
84 has_presets &= ~(1 << (cp->index - 1)); in has_remove_preset()
90 static int has_preset_selected(unsigned char index, bool sync) in has_preset_selected() argument
112 cp->index, cp->props, temp_name, &has_preset_ops in has_add_preset()
116 has_presets |= 1 << (cp->index - 1); in has_add_preset()
127 bt_has_preset_available(cp->index) : in has_set_properties()
128 bt_has_preset_unavailable(cp->index); in has_set_properties()
136 .index = BTP_INDEX_NONE,