Lines Matching refs:index
17 _IN_ int index);
21 _IN_ void *value, _IN_ int index);
56 _IN_ int index);
59 _IN_ int index);
62 _IN_ int index);
65 _IN_ int index);
68 _IN_ int index);
71 _IN_ int index);
74 _IN_ int index);
94 _IN_ void *value, _IN_ int index);
96 _IN_ void *value, _IN_ int index);
98 _IN_ void *value, _IN_ int index);
100 _IN_ void *value, _IN_ int index);
102 _IN_ void *value, _IN_ int index);
104 _IN_ void *value, _IN_ int index);
106 _IN_ void *value, _IN_ int index);
135 _OU_ int *index);
286 _OU_ int *index) in _dm_shw_data_struct_search() argument
352 key_len - key_len_offset, output, index); in _dm_shw_data_struct_search()
367 output, index); in _dm_shw_data_struct_search()
380 _OU_ int *index) in _dm_shw_data_search() argument
446 output, index); in _dm_shw_data_search()
462 index); in _dm_shw_data_search()
476 _OU_ int *index) in _dm_shw_property_search() argument
491 res = _dm_shw_data_search(property_item, key, key_len, property, index); in _dm_shw_property_search()
504 _OU_ int *index) in _dm_shw_event_output_search() argument
515 res = _dm_shw_data_search(outputdata, key, key_len, event_data, index); in _dm_shw_event_output_search()
527 int index = 0; in _dm_shw_event_search() local
534 for (index = 0; index < shadow->event_number; index++) { in _dm_shw_event_search()
535 dtsl_event = shadow->events + index; in _dm_shw_event_search()
554 _OU_ int *index) in _dm_shw_service_input_output_search() argument
570 res = _dm_shw_data_search(data, key, key_len, service_data, index); in _dm_shw_service_input_output_search()
583 int index = 0; in _dm_shw_service_search() local
590 for (index = 0; index < shadow->service_number; index++) { in _dm_shw_service_search()
591 dtsl_service = shadow->services + index; in _dm_shw_service_search()
766 int index = 0; in dm_shw_get_event() local
773 for (index = 0; index < shadow->event_number; index++) { in dm_shw_get_event()
774 dtsl_event = shadow->events + index; in dm_shw_get_event()
790 int index = 0; in dm_shw_get_service() local
797 for (index = 0; index < shadow->event_number; index++) { in dm_shw_get_service()
798 dtsl_service = shadow->services + index; in dm_shw_get_service()
844 int dm_shw_get_property_by_index(_IN_ dm_shw_t *shadow, _IN_ int index, in dm_shw_get_property_by_index() argument
847 if (shadow == NULL || index < 0 || index >= shadow->property_number || in dm_shw_get_property_by_index()
852 *property = (void *)(shadow->properties + index); in dm_shw_get_property_by_index()
857 int dm_shw_get_service_by_index(_IN_ dm_shw_t *shadow, _IN_ int index, in dm_shw_get_service_by_index() argument
860 if (shadow == NULL || index < 0 || index >= shadow->service_number || in dm_shw_get_service_by_index()
865 *service = (void *)(shadow->services + index); in dm_shw_get_service_by_index()
870 int dm_shw_get_event_by_index(_IN_ dm_shw_t *shadow, _IN_ int index, in dm_shw_get_event_by_index() argument
873 if (shadow == NULL || index < 0 || index >= shadow->event_number || in dm_shw_get_event_by_index()
878 *event = (void *)(shadow->events + index); in dm_shw_get_event_by_index()
886 int index = 0; in dm_shw_get_service_by_identifier() local
894 for (index = 0; index < shadow->service_number; index++) { in dm_shw_get_service_by_identifier()
895 search_service = shadow->services + index; in dm_shw_get_service_by_identifier()
910 int index = 0; in dm_shw_get_event_by_identifier() local
918 for (index = 0; index < shadow->event_number; index++) { in dm_shw_get_event_by_identifier()
919 search_event = shadow->events + index; in dm_shw_get_event_by_identifier()
1105 _IN_ int index) in _dm_shw_array_int_set() argument
1110 *((int *)(complex_array->value) + index) = int_set; in _dm_shw_array_int_set()
1111 dm_log_debug("Current Array Value Be Set(Int), Index: %d, Value: %d", index, in _dm_shw_array_int_set()
1112 *((int *)(complex_array->value) + index)); in _dm_shw_array_int_set()
1119 _IN_ int index) in _dm_shw_array_float_set() argument
1124 *((float *)(complex_array->value) + index) = float_set; in _dm_shw_array_float_set()
1126 index, *((float *)(complex_array->value) + index)); in _dm_shw_array_float_set()
1133 _IN_ int index) in _dm_shw_array_double_set() argument
1138 *((double *)(complex_array->value) + index) = double_set; in _dm_shw_array_double_set()
1140 index, *((double *)(complex_array->value) + index)); in _dm_shw_array_double_set()
1147 _IN_ int index) in _dm_shw_array_text_set() argument
1154 if (*((char **)(complex_array->value) + index)) { in _dm_shw_array_text_set()
1155 DM_free(*((char **)(complex_array->value) + index)); in _dm_shw_array_text_set()
1156 *((char **)(complex_array->value) + index) = NULL; in _dm_shw_array_text_set()
1160 (void **)((char **)(complex_array->value) + index), in _dm_shw_array_text_set()
1166 "Current Array Value Be Set(Text String), Index: %d, Value: %s", index, in _dm_shw_array_text_set()
1167 *((char **)(complex_array->value) + index)); in _dm_shw_array_text_set()
1174 _IN_ int index) in _dm_shw_array_enum_set() argument
1179 *((int *)(complex_array->value) + index) = int_set; in _dm_shw_array_enum_set()
1181 index, *((int *)(complex_array->value) + index)); in _dm_shw_array_enum_set()
1188 _IN_ int index) in _dm_shw_array_date_set() argument
1195 if (*((char **)(complex_array->value) + index)) { in _dm_shw_array_date_set()
1196 DM_free(*((char **)(complex_array->value) + index)); in _dm_shw_array_date_set()
1197 *((char **)(complex_array->value) + index) = NULL; in _dm_shw_array_date_set()
1201 (void **)((char **)(complex_array->value) + index), in _dm_shw_array_date_set()
1207 "Current Array Value Be Set(Date String), Index: %d, Value: %s", index, in _dm_shw_array_date_set()
1208 *((char **)(complex_array->value) + index)); in _dm_shw_array_date_set()
1215 _IN_ int index) in _dm_shw_array_bool_set() argument
1220 *((int *)(complex_array->value) + index) = int_set; in _dm_shw_array_bool_set()
1222 index, *((int *)(complex_array->value) + index)); in _dm_shw_array_bool_set()
1229 _IN_ int index) in _dm_shw_data_array_set() argument
1233 if (complex_array == NULL || index < 0 || index >= complex_array->size) { in _dm_shw_data_array_set()
1242 data_value, value, value_len, index); in _dm_shw_data_array_set()
1362 _IN_ void *value, _IN_ int index) in _dm_shw_array_int_get() argument
1367 ((int *)(complex_array->value) + index) == NULL) { in _dm_shw_array_int_get()
1371 *((int *)value) = *((int *)(complex_array->value) + index); in _dm_shw_array_int_get()
1377 _IN_ void *value, _IN_ int index) in _dm_shw_array_float_get() argument
1382 ((float *)(complex_array->value) + index) == NULL) { in _dm_shw_array_float_get()
1386 *((float *)value) = *((float *)(complex_array->value) + index); in _dm_shw_array_float_get()
1392 _IN_ void *value, _IN_ int index) in _dm_shw_array_double_get() argument
1397 ((double *)(complex_array->value) + index) == NULL) { in _dm_shw_array_double_get()
1401 *((double *)value) = *((double *)(complex_array->value) + index); in _dm_shw_array_double_get()
1407 _IN_ void *value, _IN_ int index) in _dm_shw_array_text_get() argument
1413 *((char **)(complex_array->value) + index) == NULL || in _dm_shw_array_text_get()
1419 *((char **)(complex_array->value) + index), in _dm_shw_array_text_get()
1420 strlen(*((char **)(complex_array->value) + index)), (void **)value, in _dm_shw_array_text_get()
1421 strlen(*((char **)(complex_array->value) + index)) + 1); in _dm_shw_array_text_get()
1430 _IN_ void *value, _IN_ int index) in _dm_shw_array_enum_get() argument
1435 ((int *)(complex_array->value) + index) == NULL) { in _dm_shw_array_enum_get()
1439 *((int *)value) = *((int *)(complex_array->value) + index); in _dm_shw_array_enum_get()
1445 _IN_ void *value, _IN_ int index) in _dm_shw_array_date_get() argument
1451 *((char **)(complex_array->value) + index) == NULL || in _dm_shw_array_date_get()
1457 *((char **)(complex_array->value) + index), in _dm_shw_array_date_get()
1458 strlen(*((char **)(complex_array->value) + index)), (void **)value, in _dm_shw_array_date_get()
1459 strlen(*((char **)(complex_array->value) + index)) + 1); in _dm_shw_array_date_get()
1468 _IN_ void *value, _IN_ int index) in _dm_shw_array_bool_get() argument
1473 ((int *)(complex_array->value) + index) == NULL) { in _dm_shw_array_bool_get()
1477 *((int *)value) = *((int *)(complex_array->value) + index); in _dm_shw_array_bool_get()
1483 _IN_ void *value, _IN_ int index) in _dm_shw_data_array_get() argument
1487 if (complex_array == NULL || index < 0 || index >= complex_array->size) { in _dm_shw_data_array_get()
1496 data_value, value, index); in _dm_shw_data_array_get()
1798 int res = SUCCESS_RETURN, index = 0; in _dm_shw_array_insert_json_item() local
1829 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_insert_json_item()
1830 value = *((int *)(complex_array->value) + index); in _dm_shw_array_insert_json_item()
1848 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_insert_json_item()
1849 value = *((float *)(complex_array->value) + index); in _dm_shw_array_insert_json_item()
1867 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_insert_json_item()
1868 value = *((double *)(complex_array->value) + index); in _dm_shw_array_insert_json_item()
1887 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_insert_json_item()
1888 value = *((char **)(complex_array->value) + index); in _dm_shw_array_insert_json_item()
1912 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_insert_json_item()
1913 array_data = (dm_shw_data_t *)(complex_array->value) + index; in _dm_shw_array_insert_json_item()
1944 int res = 0, index = 0; in _dm_shw_struct_insert_json_item() local
1968 for (index = 0; index < complex_struct->size; index++) { in _dm_shw_struct_insert_json_item()
1969 current_data = (dm_shw_data_t *)complex_struct->value + index; in _dm_shw_struct_insert_json_item()
2109 int res = 0, index = 0; in dm_shw_assemble_property() local
2117 for (index = 0; index < shadow->property_number; index++) { in dm_shw_assemble_property()
2118 property = shadow->properties + index; in dm_shw_assemble_property()
2127 if (index == shadow->property_number) { in dm_shw_assemble_property()
2144 int res = 0, index = 0; in dm_shw_assemble_event_output() local
2153 for (index = 0; index < shadow->event_number; index++) { in dm_shw_assemble_event_output()
2154 event = shadow->events + index; in dm_shw_assemble_event_output()
2162 if (index == shadow->event_number) { in dm_shw_assemble_event_output()
2167 for (index = 0; index < event->output_data_number; index++) { in dm_shw_assemble_event_output()
2168 event_outputdata = event->output_datas + index; in dm_shw_assemble_event_output()
2183 int res = 0, index = 0; in dm_shw_assemble_service_output() local
2192 for (index = 0; index < shadow->service_number; index++) { in dm_shw_assemble_service_output()
2193 service = shadow->services + index; in dm_shw_assemble_service_output()
2201 if (index == shadow->service_number) { in dm_shw_assemble_service_output()
2206 for (index = 0; index < service->output_data_number; index++) { in dm_shw_assemble_service_output()
2207 service_outputdata = service->output_datas + index; in dm_shw_assemble_service_output()
2285 int index = 0; in _dm_shw_array_text_free() local
2290 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_text_free()
2291 if (*((char **)(complex_array->value) + index)) { in _dm_shw_array_text_free()
2292 DM_free(*((char **)(complex_array->value) + index)); in _dm_shw_array_text_free()
2293 *((char **)(complex_array->value) + index) = NULL; in _dm_shw_array_text_free()
2305 int index = 0; in _dm_shw_array_date_free() local
2310 for (index = 0; index < complex_array->size; index++) { in _dm_shw_array_date_free()
2311 if (*((char **)(complex_array->value) + index)) { in _dm_shw_array_date_free()
2312 DM_free(*((char **)(complex_array->value) + index)); in _dm_shw_array_date_free()
2313 *((char **)(complex_array->value) + index) = NULL; in _dm_shw_array_date_free()
2329 int index = 0; in _dm_shw_array_struct_free() local
2336 for (index = 0; index < complex_struct->size; index++) { in _dm_shw_array_struct_free()
2337 data = (dm_shw_data_t *)complex_struct->value + index; in _dm_shw_array_struct_free()
2365 int index = 0; in _dm_shw_struct_free() local
2371 for (index = 0; index < complex_array->size; index++) { in _dm_shw_struct_free()
2372 property = (dm_shw_data_t *)(complex_array->value) + index; in _dm_shw_struct_free()
2402 int index = 0; in _dm_shw_properties_free() local
2405 for (index = 0; index < number; index++) { in _dm_shw_properties_free()
2406 property = properties + index; in _dm_shw_properties_free()
2423 int index = 0; in _dm_shw_event_outputdatas_free() local
2426 for (index = 0; index < number; index++) { in _dm_shw_event_outputdatas_free()
2427 outputdata = outputdatas + index; in _dm_shw_event_outputdatas_free()
2448 int index = 0; in _dm_shw_events_free() local
2451 for (index = 0; index < number; index++) { in _dm_shw_events_free()
2452 event = events + index; in _dm_shw_events_free()
2469 int index = 0; in _dm_shw_service_outputdatas_free() local
2472 for (index = 0; index < number; index++) { in _dm_shw_service_outputdatas_free()
2473 outputdata = outputdatas + index; in _dm_shw_service_outputdatas_free()
2490 int index = 0; in _dm_shw_service_inputdatas_free() local
2493 for (index = 0; index < number; index++) { in _dm_shw_service_inputdatas_free()
2494 inputdata = inputdatas + index; in _dm_shw_service_inputdatas_free()
2522 int index = 0; in _dm_shw_services_free() local
2525 for (index = 0; index < number; index++) { in _dm_shw_services_free()
2526 service = services + index; in _dm_shw_services_free()