Lines Matching refs:num_values
33 int num_values);
168 int num_values, /* I - Number of values */ in ippAddBooleans() argument
176 …values=%d, values=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)values)… in ippAddBooleans()
184 num_values < 1) in ippAddBooleans()
191 if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_BOOLEAN, num_values)) == NULL) in ippAddBooleans()
196 for (i = num_values, value = attr->values; in ippAddBooleans()
276 int num_values, /* I - Number of values */ in ippAddCollections() argument
284 …values=%d, values=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)values)… in ippAddCollections()
292 num_values < 1) in ippAddCollections()
300 num_values)) == NULL) in ippAddCollections()
305 for (i = num_values, value = attr->values; in ippAddCollections()
450 int num_values, /* I - Number of values */ in ippAddIntegers() argument
458 … group, ippTagString(group), value_tag, ippTagString(value_tag), name, num_values, (void *)values)… in ippAddIntegers()
470 num_values < 1) in ippAddIntegers()
475 num_values < 1) in ippAddIntegers()
483 if ((attr = ipp_add_attr(ipp, name, group, value_tag, num_values)) == NULL) in ippAddIntegers()
488 for (i = num_values, value = attr->values; in ippAddIntegers()
676 int num_values, /* I - Number of values */ in ippAddRanges() argument
685 …, lower=%p, upper=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)lower, … in ippAddRanges()
693 num_values < 1) in ippAddRanges()
700 if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_RANGE, num_values)) == NULL) in ippAddRanges()
705 for (i = num_values, value = attr->values; in ippAddRanges()
787 int num_values,/* I - Number of values */ in ippAddResolutions() argument
797 …%d, xres=%p, yres=%p)", (void *)ipp, group, ippTagString(group), name, num_values, units, (void *)… in ippAddResolutions()
805 num_values < 1 || in ippAddResolutions()
813 if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_RESOLUTION, num_values)) == NULL) in ippAddResolutions()
818 for (i = num_values, value = attr->values; in ippAddResolutions()
1217 int num_values, /* I - Number of values */ in ippAddStrings() argument
1228 … group, ippTagString(group), value_tag, ippTagString(value_tag), name, num_values, language, (void… in ippAddStrings()
1241 num_values < 1) in ippAddStrings()
1250 num_values < 1) in ippAddStrings()
1263 for (i = 0; i < num_values; i ++) in ippAddStrings()
1272 for (i = 0; i < num_values; i ++) in ippAddStrings()
1284 if ((attr = ipp_add_attr(ipp, name, group, value_tag, num_values)) == NULL) in ippAddStrings()
1291 for (i = num_values, value = attr->values; in ippAddStrings()
1363 for (i = attr->num_values, avalue = attr->values; i > 0; i --, avalue ++) in ippContainsInteger()
1369 for (i = attr->num_values, avalue = attr->values; i > 0; i --, avalue ++) in ippContainsInteger()
1415 attr->num_values)); in ippContainsString()
1424 for (i = attr->num_values, avalue = attr->values; in ippContainsString()
1429 attr->num_values - i, avalue->string.text)); in ippContainsString()
1443 for (i = attr->num_values, avalue = attr->values; in ippContainsString()
1448 attr->num_values - i, avalue->string.text)); in ippContainsString()
1525 srcattr->name, srcattr->num_values, NULL); in ippCopyAttribute()
1529 for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; in ippCopyAttribute()
1537 srcattr->num_values, NULL); in ippCopyAttribute()
1541 for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; in ippCopyAttribute()
1557 srcattr->name, srcattr->num_values, NULL, NULL); in ippCopyAttribute()
1563 for (i = srcattr->num_values, srcval = srcattr->values, in ippCopyAttribute()
1571 for (i = srcattr->num_values, srcval = srcattr->values, in ippCopyAttribute()
1579 for (i = srcattr->num_values, srcval = srcattr->values, in ippCopyAttribute()
1588 if (srcattr->num_values != 1) in ippCopyAttribute()
1597 srcattr->num_values, IPP_RES_PER_INCH, in ippCopyAttribute()
1602 for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; in ippCopyAttribute()
1614 srcattr->num_values, NULL, NULL); in ippCopyAttribute()
1618 for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; in ippCopyAttribute()
1631 srcattr->name, srcattr->num_values, NULL, NULL); in ippCopyAttribute()
1637 for (i = srcattr->num_values, srcval = srcattr->values, in ippCopyAttribute()
1648 for (i = srcattr->num_values, srcval = srcattr->values, in ippCopyAttribute()
1663 for (i = srcattr->num_values, srcval = srcattr->values, in ippCopyAttribute()
1680 srcattr->num_values, NULL); in ippCopyAttribute()
1684 for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; in ippCopyAttribute()
1697 srcattr->name, srcattr->num_values, NULL); in ippCopyAttribute()
1701 for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; in ippCopyAttribute()
1852 …)", (void *)attr, attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag)… in ippDelete()
1854 ipp_free_values(attr, 0, attr->num_values); in ippDelete()
1890 …)", (void *)attr, attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag)… in ippDeleteAttribute()
1926 ipp_free_values(attr, 0, attr->num_values); in ippDeleteAttribute()
1960 element < 0 || element >= (*attr)->num_values || count <= 0 || in ippDeleteValues()
1961 (element + count) >= (*attr)->num_values) in ippDeleteValues()
1968 if (count == (*attr)->num_values) in ippDeleteValues()
2065 while (ipp->curindex < ipp->current->num_values) in ippFindNextAttribute()
2071 … if (ipp->curindex < ipp->current->num_values && ipp->current->values[ipp->curindex].collection) in ippFindNextAttribute()
2124 for (i = 0; i < attr->num_values; i ++) in ippFindNextAttribute()
2188 element < 0 || element >= attr->num_values) in ippGetBoolean()
2218 element < 0 || element >= attr->num_values) in ippGetCollection()
2249 return (attr->num_values); in ippGetCount()
2271 element < 0 || element >= attr->num_values) in ippGetDate()
2324 element < 0 || element >= attr->num_values) in ippGetInteger()
2379 element < 0 || element >= attr->num_values) in ippGetOctetString()
2441 element < 0 || element >= attr->num_values) in ippGetRange()
2505 element < 0 || element >= attr->num_values) in ippGetResolution()
2601 …if (!attr || element < 0 || element >= attr->num_values || (tag != IPP_TAG_TEXTLANG && tag != IPP_… in ippGetString()
2858 attr->num_values == 1) in ippNewResponse()
2888 attr->num_values == 1) in ippNewResponse()
3244 if ((value = ipp_set_value(ipp, &attr, attr->num_values)) == NULL) in ippReadIO()
3658 attr->num_values --; in ippReadIO()
3749 element < 0 || element > (*attr)->num_values) in ippSetBoolean()
3792 element < 0 || element > (*attr)->num_values || !colvalue) in ippSetCollection()
3840 element < 0 || element > (*attr)->num_values || !datevalue) in ippSetDate()
3925 element < 0 || element > (*attr)->num_values) in ippSetInteger()
4011 element < 0 || element > (*attr)->num_values || in ippSetOctetString()
4128 element < 0 || element > (*attr)->num_values || lowervalue > uppervalue) in ippSetRange()
4210 element < 0 || element > (*attr)->num_values || xresvalue <= 0 || yresvalue <= 0 || in ippSetResolution()
4320 element < 0 || element > (*attr)->num_values || !strvalue) in ippSetString()
4605 if ((*attr)->num_values > 0) in ippSetValueTag()
4606 ipp_free_values(*attr, 0, (*attr)->num_values); in ippSetValueTag()
4619 for (i = (*attr)->num_values, value = (*attr)->values; in ippSetValueTag()
4667 for (i = (*attr)->num_values - 1, value = (*attr)->values + 1; in ippSetValueTag()
4678 for (i = (*attr)->num_values, value = (*attr)->values; in ippSetValueTag()
4861 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4876 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4890 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4904 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4983 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5033 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5048 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5062 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5120 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5177 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5206 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5238 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5271 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5331 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5385 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5608 attr->num_values > 1 ? "1setOf " : "", in ippWriteIO()
5729 i < attr->num_values; in ippWriteIO()
5775 i < attr->num_values; in ippWriteIO()
5824 i < attr->num_values; in ippWriteIO()
5908 i < attr->num_values; in ippWriteIO()
5953 i < attr->num_values; in ippWriteIO()
6006 i < attr->num_values; in ippWriteIO()
6058 i < attr->num_values; in ippWriteIO()
6165 i < attr->num_values; in ippWriteIO()
6235 i < attr->num_values; in ippWriteIO()
6388 int num_values) /* I - Number of values */ in ipp_add_attr() argument
6394 …p_tag=0x%x, value_tag=0x%x, num_values=%d)", (void *)ipp, name, group_tag, value_tag, num_values)); in ipp_add_attr()
6400 if (!ipp || num_values < 0) in ipp_add_attr()
6407 if (num_values <= 1) in ipp_add_attr()
6410 alloc_values = (num_values + IPP_MAX_VALUES - 1) & ~(IPP_MAX_VALUES - 1); in ipp_add_attr()
6421 …%s %s%s (%d values)", (void *)attr, name, num_values > 1 ? "1setOf " : "", ippTagString(value_tag)… in ipp_add_attr()
6428 attr->num_values = num_values; in ipp_add_attr()
6474 if (element == 0 && count == attr->num_values && in ipp_free_values()
6544 if ((element + count) < attr->num_values) in ipp_free_values()
6546 (size_t)(attr->num_values - count - element) * sizeof(_ipp_value_t)); in ipp_free_values()
6548 attr->num_values -= count; in ipp_free_values()
6666 "bytes=" CUPS_LLFMT, attr->name, attr->num_values, CUPS_LLCAST bytes)); in ipp_length()
6669 bytes += (size_t)attr->num_values;/* Value tag for each value */ in ipp_length()
6671 bytes += (size_t)(5 * attr->num_values); in ipp_length()
6673 bytes += (size_t)(2 * attr->num_values); in ipp_length()
6676 bytes += (size_t)(2 * attr->num_values); in ipp_length()
6695 bytes += (size_t)(4 * attr->num_values); in ipp_length()
6699 bytes += (size_t)attr->num_values; in ipp_length()
6711 i < attr->num_values; in ipp_length()
6718 bytes += (size_t)(11 * attr->num_values); in ipp_length()
6722 bytes += (size_t)(9 * attr->num_values); in ipp_length()
6726 bytes += (size_t)(8 * attr->num_values); in ipp_length()
6731 bytes += (size_t)(4 * attr->num_values); in ipp_length()
6735 i < attr->num_values; in ipp_length()
6748 i < attr->num_values; in ipp_length()
6755 i < attr->num_values; in ipp_length()
6929 if (temp->num_values <= 1) in ipp_set_value()
6932 alloc_values = (temp->num_values + IPP_MAX_VALUES - 1) & in ipp_set_value()
6937 if (element >= temp->num_values) in ipp_set_value()
6938 temp->num_values = element + 1; in ipp_set_value()
6971 …memset(temp->values + temp->num_values, 0, (size_t)(alloc_values - temp->num_values) * sizeof(_ipp… in ipp_set_value()
6980 …)", (void *)temp, temp->name, temp->num_values > 1 ? "1setOf " : "", ippTagString(temp->value_tag)… in ipp_set_value()
7032 if (element >= temp->num_values) in ipp_set_value()
7033 temp->num_values = element + 1; in ipp_set_value()