Lines Matching refs:num_values
33 int num_values);
164 int num_values, /* I - Number of values */ in ippAddBooleans() argument
172 …values=%d, values=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)values)… in ippAddBooleans()
180 num_values < 1) in ippAddBooleans()
187 if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_BOOLEAN, num_values)) == NULL) in ippAddBooleans()
192 for (i = num_values, value = attr->values; in ippAddBooleans()
272 int num_values, /* I - Number of values */ in ippAddCollections() argument
280 …values=%d, values=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)values)… in ippAddCollections()
288 num_values < 1) in ippAddCollections()
296 num_values)) == NULL) in ippAddCollections()
301 for (i = num_values, value = attr->values; in ippAddCollections()
446 int num_values, /* I - Number of values */ in ippAddIntegers() argument
454 … group, ippTagString(group), value_tag, ippTagString(value_tag), name, num_values, (void *)values)… in ippAddIntegers()
466 num_values < 1) in ippAddIntegers()
471 num_values < 1) in ippAddIntegers()
479 if ((attr = ipp_add_attr(ipp, name, group, value_tag, num_values)) == NULL) in ippAddIntegers()
484 for (i = num_values, value = attr->values; in ippAddIntegers()
672 int num_values, /* I - Number of values */ in ippAddRanges() argument
681 …, lower=%p, upper=%p)", (void *)ipp, group, ippTagString(group), name, num_values, (void *)lower, … in ippAddRanges()
689 num_values < 1) in ippAddRanges()
696 if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_RANGE, num_values)) == NULL) in ippAddRanges()
701 for (i = num_values, value = attr->values; in ippAddRanges()
783 int num_values,/* I - Number of values */ in ippAddResolutions() argument
793 …%d, xres=%p, yres=%p)", (void *)ipp, group, ippTagString(group), name, num_values, units, (void *)… in ippAddResolutions()
801 num_values < 1 || in ippAddResolutions()
809 if ((attr = ipp_add_attr(ipp, name, group, IPP_TAG_RESOLUTION, num_values)) == NULL) in ippAddResolutions()
814 for (i = num_values, value = attr->values; in ippAddResolutions()
1213 int num_values, /* I - Number of values */ in ippAddStrings() argument
1224 … group, ippTagString(group), value_tag, ippTagString(value_tag), name, num_values, language, (void… in ippAddStrings()
1237 num_values < 1) in ippAddStrings()
1246 num_values < 1) in ippAddStrings()
1259 for (i = 0; i < num_values; i ++) in ippAddStrings()
1268 for (i = 0; i < num_values; i ++) in ippAddStrings()
1280 if ((attr = ipp_add_attr(ipp, name, group, value_tag, num_values)) == NULL) in ippAddStrings()
1287 for (i = num_values, value = attr->values; in ippAddStrings()
1359 for (i = attr->num_values, avalue = attr->values; i > 0; i --, avalue ++) in ippContainsInteger()
1365 for (i = attr->num_values, avalue = attr->values; i > 0; i --, avalue ++) in ippContainsInteger()
1411 attr->num_values)); in ippContainsString()
1420 for (i = attr->num_values, avalue = attr->values; in ippContainsString()
1425 attr->num_values - i, avalue->string.text)); in ippContainsString()
1439 for (i = attr->num_values, avalue = attr->values; in ippContainsString()
1444 attr->num_values - i, avalue->string.text)); in ippContainsString()
1526 …tattr = ipp_add_attr(dst, srcattr->name, srcattr->group_tag, srctag, srcattr->num_values)) != NULL) in ippCopyAttribute()
1527 memcpy(dstattr->values, srcattr->values, (size_t)srcattr->num_values * sizeof(_ipp_value_t)); in ippCopyAttribute()
1539 …r->group_tag, (ipp_tag_t)(srctag | quickcopy), srcattr->name, srcattr->num_values, NULL, NULL)) ==… in ippCopyAttribute()
1548 memcpy(dstattr->values, srcattr->values, (size_t)srcattr->num_values * sizeof(_ipp_value_t)); in ippCopyAttribute()
1556 …for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; i > 0; i --, src… in ippCopyAttribute()
1563 …r->group_tag, (ipp_tag_t)(srctag | quickcopy), srcattr->name, srcattr->num_values, NULL, NULL)) ==… in ippCopyAttribute()
1572 memcpy(dstattr->values, srcattr->values, (size_t)srcattr->num_values * sizeof(_ipp_value_t)); in ippCopyAttribute()
1580 …for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; i > 0; i --, src… in ippCopyAttribute()
1593 …tr = ippAddCollections(dst, srcattr->group_tag, srcattr->name, srcattr->num_values, NULL)) == NULL) in ippCopyAttribute()
1596 …for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; i > 0; i --, src… in ippCopyAttribute()
1605 …tattr = ipp_add_attr(dst, srcattr->name, srcattr->group_tag, srctag, srcattr->num_values)) == NULL) in ippCopyAttribute()
1608 …for (i = srcattr->num_values, srcval = srcattr->values, dstval = dstattr->values; i > 0; i --, src… in ippCopyAttribute()
1757 …)", (void *)attr, attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag)… in ippDelete()
1759 ipp_free_values(attr, 0, attr->num_values); in ippDelete()
1795 …)", (void *)attr, attr->name, attr->num_values > 1 ? "1setOf " : "", ippTagString(attr->value_tag)… in ippDeleteAttribute()
1831 ipp_free_values(attr, 0, attr->num_values); in ippDeleteAttribute()
1865 element < 0 || element >= (*attr)->num_values || count <= 0 || in ippDeleteValues()
1866 (element + count) >= (*attr)->num_values) in ippDeleteValues()
1873 if (count == (*attr)->num_values) in ippDeleteValues()
1970 while (ipp->curindex < ipp->current->num_values) in ippFindNextAttribute()
1976 … if (ipp->curindex < ipp->current->num_values && ipp->current->values[ipp->curindex].collection) in ippFindNextAttribute()
2029 for (i = 0; i < attr->num_values; i ++) in ippFindNextAttribute()
2093 element < 0 || element >= attr->num_values) in ippGetBoolean()
2123 element < 0 || element >= attr->num_values) in ippGetCollection()
2154 return (attr->num_values); in ippGetCount()
2176 element < 0 || element >= attr->num_values) in ippGetDate()
2229 element < 0 || element >= attr->num_values) in ippGetInteger()
2284 element < 0 || element >= attr->num_values) in ippGetOctetString()
2346 element < 0 || element >= attr->num_values) in ippGetRange()
2410 element < 0 || element >= attr->num_values) in ippGetResolution()
2506 …if (!attr || element < 0 || element >= attr->num_values || (tag != IPP_TAG_TEXTLANG && tag != IPP_… in ippGetString()
2763 attr->num_values == 1) in ippNewResponse()
2793 attr->num_values == 1) in ippNewResponse()
3156 if ((value = ipp_set_value(ipp, &attr, attr->num_values)) == NULL) in ippReadIO()
3574 attr->num_values --; in ippReadIO()
3665 element < 0 || element > (*attr)->num_values) in ippSetBoolean()
3708 element < 0 || element > (*attr)->num_values || !colvalue) in ippSetCollection()
3756 element < 0 || element > (*attr)->num_values || !datevalue) in ippSetDate()
3841 element < 0 || element > (*attr)->num_values) in ippSetInteger()
3927 element < 0 || element > (*attr)->num_values || in ippSetOctetString()
4044 element < 0 || element > (*attr)->num_values || lowervalue > uppervalue) in ippSetRange()
4126 element < 0 || element > (*attr)->num_values || xresvalue <= 0 || yresvalue <= 0 || in ippSetResolution()
4240 element < 0 || element > (*attr)->num_values || !strvalue) in ippSetString()
4525 if ((*attr)->num_values > 0) in ippSetValueTag()
4526 ipp_free_values(*attr, 0, (*attr)->num_values); in ippSetValueTag()
4539 for (i = (*attr)->num_values, value = (*attr)->values; in ippSetValueTag()
4587 for (i = (*attr)->num_values - 1, value = (*attr)->values + 1; in ippSetValueTag()
4598 for (i = (*attr)->num_values, value = (*attr)->values; in ippSetValueTag()
4766 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4781 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4795 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4809 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4888 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4938 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4953 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
4967 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5032 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5096 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5125 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5152 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5185 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5245 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5299 for (i = 0; i < attr->num_values; i ++) in ippValidateAttribute()
5522 attr->num_values > 1 ? "1setOf " : "", in ippWriteIO()
5643 i < attr->num_values; in ippWriteIO()
5689 i < attr->num_values; in ippWriteIO()
5738 i < attr->num_values; in ippWriteIO()
5822 i < attr->num_values; in ippWriteIO()
5867 i < attr->num_values; in ippWriteIO()
5920 i < attr->num_values; in ippWriteIO()
5972 i < attr->num_values; in ippWriteIO()
6079 i < attr->num_values; in ippWriteIO()
6149 i < attr->num_values; in ippWriteIO()
6302 int num_values) /* I - Number of values */ in ipp_add_attr() argument
6308 …p_tag=0x%x, value_tag=0x%x, num_values=%d)", (void *)ipp, name, group_tag, value_tag, num_values)); in ipp_add_attr()
6314 if (!ipp || num_values < 0) in ipp_add_attr()
6321 if (num_values <= 1) in ipp_add_attr()
6324 alloc_values = (num_values + IPP_MAX_VALUES - 1) & ~(IPP_MAX_VALUES - 1); in ipp_add_attr()
6335 …%s %s%s (%d values)", (void *)attr, name, num_values > 1 ? "1setOf " : "", ippTagString(value_tag)… in ipp_add_attr()
6342 attr->num_values = num_values; in ipp_add_attr()
6388 if (element == 0 && count == attr->num_values && in ipp_free_values()
6459 if ((element + count) < attr->num_values) in ipp_free_values()
6461 (size_t)(attr->num_values - count - element) * sizeof(_ipp_value_t)); in ipp_free_values()
6463 attr->num_values -= count; in ipp_free_values()
6581 "bytes=" CUPS_LLFMT, attr->name, attr->num_values, CUPS_LLCAST bytes)); in ipp_length()
6584 bytes += (size_t)attr->num_values;/* Value tag for each value */ in ipp_length()
6586 bytes += (size_t)(5 * attr->num_values); in ipp_length()
6588 bytes += (size_t)(2 * attr->num_values); in ipp_length()
6591 bytes += (size_t)(2 * attr->num_values); in ipp_length()
6610 bytes += (size_t)(4 * attr->num_values); in ipp_length()
6614 bytes += (size_t)attr->num_values; in ipp_length()
6626 i < attr->num_values; in ipp_length()
6633 bytes += (size_t)(11 * attr->num_values); in ipp_length()
6637 bytes += (size_t)(9 * attr->num_values); in ipp_length()
6641 bytes += (size_t)(8 * attr->num_values); in ipp_length()
6646 bytes += (size_t)(4 * attr->num_values); in ipp_length()
6650 i < attr->num_values; in ipp_length()
6663 i < attr->num_values; in ipp_length()
6670 i < attr->num_values; in ipp_length()
6844 if (temp->num_values <= 1) in ipp_set_value()
6847 alloc_values = (temp->num_values + IPP_MAX_VALUES - 1) & in ipp_set_value()
6852 if (element >= temp->num_values) in ipp_set_value()
6853 temp->num_values = element + 1; in ipp_set_value()
6886 …memset(temp->values + temp->num_values, 0, (size_t)(alloc_values - temp->num_values) * sizeof(_ipp… in ipp_set_value()
6895 …)", (void *)temp, temp->name, temp->num_values > 1 ? "1setOf " : "", ippTagString(temp->value_tag)… in ipp_set_value()
6947 if (element >= temp->num_values) in ipp_set_value()
6948 temp->num_values = element + 1; in ipp_set_value()