Searched refs:dir_list (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.7.0/subsys/bluetooth/services/ots/ |
D | ots_dir_list.c | 126 static void bt_ots_dir_list_reset_anchor(struct bt_ots_dir_list *dir_list, void *obj_manager) in bt_ots_dir_list_reset_anchor() argument 128 dir_list->anchor_offset = 0; in bt_ots_dir_list_reset_anchor() 131 (void)bt_gatt_ots_obj_manager_first_obj_get(obj_manager, &dir_list->anchor_object); in bt_ots_dir_list_reset_anchor() 134 static int bt_ots_dir_list_search_forward(struct bt_ots_dir_list *dir_list, void *obj_manager, in bt_ots_dir_list_search_forward() argument 139 struct bt_gatt_ots_object *obj = dir_list->anchor_object; in bt_ots_dir_list_search_forward() 144 (long)offset, (long)dir_list->anchor_offset, id_str); in bt_ots_dir_list_search_forward() 146 while (dir_list->anchor_offset + rec_len <= offset) { in bt_ots_dir_list_search_forward() 153 dir_list->anchor_offset += rec_len; in bt_ots_dir_list_search_forward() 154 dir_list->anchor_object = obj; in bt_ots_dir_list_search_forward() 162 static int bt_ots_dir_list_search_backward(struct bt_ots_dir_list *dir_list, void *obj_manager, in bt_ots_dir_list_search_backward() argument [all …]
|
D | ots_dir_list_internal.h | 159 void bt_ots_dir_list_selected(struct bt_ots_dir_list *dir_list, void *obj_manager, 161 void bt_ots_dir_list_init(struct bt_ots_dir_list **dir_list, void *obj_manager); 162 ssize_t bt_ots_dir_list_content_get(struct bt_ots_dir_list *dir_list, void *obj_manager, 164 bool bt_ots_dir_list_is_idle(const struct bt_ots_dir_list *dir_list);
|
D | ots.c | 306 if (IS_ENABLED(CONFIG_BT_OTS_DIR_LIST_OBJ) && ots->dir_list && in bt_ots_obj_add_internal() 307 !bt_ots_dir_list_is_idle(ots->dir_list)) { in bt_ots_obj_add_internal() 413 if (IS_ENABLED(CONFIG_BT_OTS_DIR_LIST_OBJ) && ots->dir_list && in bt_ots_obj_delete() 414 !bt_ots_dir_list_is_idle(ots->dir_list)) { in bt_ots_obj_delete() 520 bt_ots_dir_list_init(&ots->dir_list, ots->obj_manager); in bt_ots_init()
|
D | ots_internal.h | 137 struct bt_ots_dir_list *dir_list; member
|
D | ots_olcp.c | 281 bt_ots_dir_list_selected(ots->dir_list, ots->obj_manager, in bt_gatt_ots_olcp_write()
|
D | ots_oacp.c | 492 len = bt_ots_dir_list_content_get(ots->dir_list, ots->obj_manager, in oacp_read_proc_cb()
|