Lines Matching defs:values

81 		    papi_attribute_value_t **values)
83 if (values != NULL) {
86 for (i = 0; values[i] != NULL; i++)
87 papiAttributeValueFree(type, values[i]);
89 free(values);
99 if (attribute->values != NULL)
101 attribute->values);
136 if ((status == PAPI_OK) && (a->values != NULL)) {
139 for (j = 0; ((a->values[j] != NULL) &&
145 a->values[j]);
219 papiAttributeListAppendValue(papi_attribute_value_t ***values,
224 if (values == NULL)
233 list_append(values, tmp);
247 papi_attribute_value_t **values = NULL;
279 * if we are replacing, clear any existing values, but don't free
280 * until after we have replaced the values, in case we are replacing
283 if (((flags & PAPI_ATTR_REPLACE) != 0) && (attribute->values != NULL)) {
284 values = attribute->values;
285 attribute->values = NULL;
290 result = papiAttributeListAppendValue(&attribute->values, type, value);
292 /* free old values if we replaced them */
293 if (values != NULL)
294 papiAttributeValuesFree(type, values);
460 tmp = attr->values;
754 char *key, char **values)
777 if (values != NULL) {
780 for (i = 0; values[i] != NULL; i++) {
784 dtype = _process_value(values[i], &parts);
790 attr->values = vals;
811 char *key, **values = NULL;
851 list_append(&values, value);
860 list_append(&values, value);
865 result = _papiAttributeFromStrings(list, flags, key, values);
866 free(values);
893 papi_attribute_value_t **values = attribute->values;
896 if ((attribute->type == PAPI_BOOLEAN) && (values[1] == NULL)) {
897 if (values[0]->boolean == PAPI_FALSE) {
909 if (values == NULL)
912 for (i = 0; values[i] != NULL; i++) {
915 rc = strlcat(buffer, values[i]->string, buflen);
921 values[i]->integer);
926 if (values[1] != NULL)
927 rc = strlcat(buffer, (values[i]->boolean ?
933 if (values[i]->range.lower == values[i]->range.upper)
935 values[i]->range.lower);
938 values[i]->range.lower,
939 values[i]->range.upper);
947 values[i]->resolution.xres,
948 values[i]->resolution.yres,
949 (values[i]->resolution.units == PAPI_RES_PER_CM
955 struct tm *tm = localtime(&values[i]->datetime);
967 papiAttributeListToString(values[i]->collection,
980 if (values[i+1] != NULL)
1035 (attribute->values == NULL))
1040 attribute->values[i]);
1041 ((status == PAPI_OK) && (attribute->values[i] != NULL));
1044 attribute->values[i]))