Lines Matching refs:alloc_values
6390 int alloc_values; /* Number of values to allocate */ in ipp_add_attr() local
6408 alloc_values = 1; in ipp_add_attr()
6410 alloc_values = (num_values + IPP_MAX_VALUES - 1) & ~(IPP_MAX_VALUES - 1); in ipp_add_attr()
6413 (size_t)(alloc_values - 1) * sizeof(_ipp_value_t), 1); in ipp_add_attr()
6920 int alloc_values; /* Allocated values */ in ipp_set_value() local
6930 alloc_values = 1; in ipp_set_value()
6932 alloc_values = (temp->num_values + IPP_MAX_VALUES - 1) & in ipp_set_value()
6935 if (element < alloc_values) in ipp_set_value()
6948 if (alloc_values < IPP_MAX_VALUES) in ipp_set_value()
6949 alloc_values = IPP_MAX_VALUES; in ipp_set_value()
6951 alloc_values += IPP_MAX_VALUES; in ipp_set_value()
6954 alloc_values)); in ipp_set_value()
6960 …if ((temp = realloc(temp, sizeof(ipp_attribute_t) + (size_t)(alloc_values - 1) * sizeof(_ipp_value… 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()