Lines Matching refs:alloc_values
6181 int alloc_values; /* Number of values to allocate */ in ipp_add_attr() local
6199 alloc_values = 1; in ipp_add_attr()
6201 alloc_values = (num_values + IPP_MAX_VALUES - 1) & ~(IPP_MAX_VALUES - 1); in ipp_add_attr()
6204 (size_t)(alloc_values - 1) * sizeof(_ipp_value_t), 1); in ipp_add_attr()
6712 int alloc_values; /* Allocated values */ in ipp_set_value() local
6722 alloc_values = 1; in ipp_set_value()
6724 alloc_values = (temp->num_values + IPP_MAX_VALUES - 1) & in ipp_set_value()
6727 if (element < alloc_values) in ipp_set_value()
6740 if (alloc_values < IPP_MAX_VALUES) in ipp_set_value()
6741 alloc_values = IPP_MAX_VALUES; in ipp_set_value()
6743 alloc_values += IPP_MAX_VALUES; in ipp_set_value()
6746 alloc_values)); in ipp_set_value()
6752 …if ((temp = realloc(temp, sizeof(ipp_attribute_t) + (size_t)(alloc_values - 1) * sizeof(_ipp_value… in ipp_set_value()
6763 …memset(temp->values + temp->num_values, 0, (size_t)(alloc_values - temp->num_values) * sizeof(_ipp… in ipp_set_value()