Home
last modified time | relevance | path

Searched refs:cur_obj (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.7.0/subsys/bluetooth/services/ots/
Dots_oacp.c40 if (!ots->cur_obj) { in oacp_l2cap_closed()
44 ots->cur_obj->state.type = BT_GATT_OTS_OBJECT_IDLE_STATE; in oacp_l2cap_closed()
100 ots->cur_obj = obj; in oacp_create_proc_validate()
101 ots->cur_obj->state.type = BT_GATT_OTS_OBJECT_IDLE_STATE; in oacp_create_proc_validate()
135 if (!ots->cur_obj) { in oacp_delete_proc_validate()
140 if (!BT_OTS_OBJ_GET_PROP_DELETE(ots->cur_obj->metadata.props)) { in oacp_delete_proc_validate()
145 err = bt_ots_obj_delete(ots, ots->cur_obj->id); in oacp_delete_proc_validate()
180 if (!ots->cur_obj) { in oacp_checksum_proc_validate()
184 if (params->offset > ots->cur_obj->metadata.size.cur) { in oacp_checksum_proc_validate()
188 if ((params->offset + (uint64_t) params->len) > ots->cur_obj->metadata.size.alloc) { in oacp_checksum_proc_validate()
[all …]
Dots_olcp.c52 ots->cur_obj = first_obj; in olcp_first_proc_execute()
69 ots->cur_obj = last_obj; in olcp_last_proc_execute()
80 if (!ots->cur_obj) { in olcp_prev_proc_execute()
84 ots->cur_obj, in olcp_prev_proc_execute()
90 ots->cur_obj = prev_obj; in olcp_prev_proc_execute()
101 if (!ots->cur_obj) { in olcp_next_proc_execute()
105 ots->cur_obj, in olcp_next_proc_execute()
111 ots->cur_obj = next_obj; in olcp_next_proc_execute()
135 ots->cur_obj = id_obj; in olcp_goto_proc_execute()
264 old_obj = ots->cur_obj; in bt_gatt_ots_olcp_write()
[all …]
Dots_obj_manager.c100 const struct bt_gatt_ots_object *cur_obj, in bt_gatt_ots_obj_manager_prev_obj_get() argument
110 cur_item = CONTAINER_OF(cur_obj, struct bt_gatt_ots_pool_item, val); in bt_gatt_ots_obj_manager_prev_obj_get()
127 const struct bt_gatt_ots_object *cur_obj, in bt_gatt_ots_obj_manager_next_obj_get() argument
137 cur_item = CONTAINER_OF(cur_obj, struct bt_gatt_ots_pool_item, val); in bt_gatt_ots_obj_manager_next_obj_get()
186 struct bt_gatt_ots_pool_item *cur_obj = in bt_gatt_ots_obj_manager_obj_add() local
189 if (!cur_obj->is_allocated) { in bt_gatt_ots_obj_manager_obj_add()
190 cur_obj->is_allocated = true; in bt_gatt_ots_obj_manager_obj_add()
191 cur_obj->val.id = obj_index_to_id(i); in bt_gatt_ots_obj_manager_obj_add()
192 sys_dlist_append(&obj_manager->list, &cur_obj->dnode); in bt_gatt_ots_obj_manager_obj_add()
194 *object = &cur_obj->val; in bt_gatt_ots_obj_manager_obj_add()
Dots.c140 if (!ots->cur_obj) { in ots_obj_name_read()
146 ots->cur_obj->metadata.name, in ots_obj_name_read()
147 strlen(ots->cur_obj->metadata.name)); in ots_obj_name_read()
163 if (!ots->cur_obj) { in ots_obj_name_write()
169 ots->cur_obj->id == OTS_OBJ_ID_DIR_LIST) { in ots_obj_name_write()
190 if (obj != ots->cur_obj && strcmp(name, obj->metadata.name) == 0) { in ots_obj_name_write()
199 ots->cb->obj_name_written(ots, conn, ots->cur_obj->id, in ots_obj_name_write()
200 ots->cur_obj->metadata.name, name); in ots_obj_name_write()
203 strcpy(ots->cur_obj->metadata.name, name); in ots_obj_name_write()
218 if (!ots->cur_obj) { in ots_obj_type_read()
[all …]
Dots_obj_manager_internal.h24 const struct bt_gatt_ots_object *cur_obj,
29 const struct bt_gatt_ots_object *cur_obj,
Dots_dir_list_internal.h160 struct bt_gatt_ots_object *cur_obj);
Dots_internal.h131 struct bt_gatt_ots_object *cur_obj; member
Dots_dir_list.c258 struct bt_gatt_ots_object *cur_obj) in bt_ots_dir_list_selected() argument
260 if (dir_list->dir_list_obj != cur_obj) { in bt_ots_dir_list_selected()