Lines Matching refs:cur_obj
140 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()
223 obj_meta = &ots->cur_obj->metadata; in ots_obj_type_read()
246 if (!ots->cur_obj) { in ots_obj_size_read()
252 &ots->cur_obj->metadata.size, in ots_obj_size_read()
253 sizeof(ots->cur_obj->metadata.size)); in ots_obj_size_read()
266 if (!ots->cur_obj) { in ots_obj_id_read()
271 sys_put_le48(ots->cur_obj->id, id); in ots_obj_id_read()
273 bt_ots_obj_id_to_str(ots->cur_obj->id, id_str, in ots_obj_id_read()
288 if (!ots->cur_obj) { in ots_obj_prop_read()
294 &ots->cur_obj->metadata.props, in ots_obj_prop_read()
295 sizeof(ots->cur_obj->metadata.props)); in ots_obj_prop_read()
431 if (ots->cur_obj == obj) { in bt_ots_obj_delete()
432 ots->cur_obj = NULL; in bt_ots_obj_delete()
637 if (instance->cur_obj != NULL) { in ots_conn_disconnected()
638 __ASSERT(instance->cur_obj->state.type == BT_GATT_OTS_OBJECT_IDLE_STATE, in ots_conn_disconnected()
641 instance->cur_obj = NULL; in ots_conn_disconnected()