Lines Matching refs:number
108 int ossl_namemap_doall_names(const OSSL_NAMEMAP *namemap, int number, in ossl_namemap_doall_names() argument
115 if (namemap == NULL || number <= 0) in ossl_namemap_doall_names()
126 names = sk_NAMES_value(namemap->numnames, number - 1); in ossl_namemap_doall_names()
144 int number = 0; in ossl_namemap_name2num() local
163 number = (int)(intptr_t)val->value; in ossl_namemap_name2num()
165 return number; in ossl_namemap_name2num()
183 const char *ossl_namemap_num2name(const OSSL_NAMEMAP *namemap, int number, in ossl_namemap_num2name() argument
189 if (namemap == NULL || number <= 0) in ossl_namemap_num2name()
195 names = sk_NAMES_value(namemap->numnames, number - 1); in ossl_namemap_num2name()
205 static int numname_insert(OSSL_NAMEMAP *namemap, int number, in numname_insert() argument
211 if (number > 0) { in numname_insert()
212 names = sk_NAMES_value(namemap->numnames, number - 1); in numname_insert()
230 if (number <= 0) { in numname_insert()
233 number = sk_NAMES_num(namemap->numnames); in numname_insert()
235 return number; in numname_insert()
238 if (number <= 0) in numname_insert()
245 static int namemap_add_name(OSSL_NAMEMAP *namemap, int number, in namemap_add_name() argument
256 if ((number = numname_insert(namemap, number, name)) == 0) in namemap_add_name()
260 tsan_store(&namemap->max_number, number); in namemap_add_name()
264 val.value = (void *)(intptr_t)number; in namemap_add_name()
273 return number; in namemap_add_name()
276 int ossl_namemap_add_name(OSSL_NAMEMAP *namemap, int number, in ossl_namemap_add_name() argument
291 tmp_number = namemap_add_name(namemap, number, name); in ossl_namemap_add_name()
296 int ossl_namemap_add_names(OSSL_NAMEMAP *namemap, int number, in ossl_namemap_add_names() argument
332 number = 0; in ossl_namemap_add_names()
338 if (number == 0) { in ossl_namemap_add_names()
339 number = this_number; in ossl_namemap_add_names()
340 } else if (this_number != 0 && this_number != number) { in ossl_namemap_add_names()
344 number = 0; in ossl_namemap_add_names()
356 this_number = namemap_add_name(namemap, number, p); in ossl_namemap_add_names()
357 if (number == 0) { in ossl_namemap_add_names()
358 number = this_number; in ossl_namemap_add_names()
359 } else if (this_number != number) { in ossl_namemap_add_names()
362 this_number, number); in ossl_namemap_add_names()
363 number = 0; in ossl_namemap_add_names()
371 return number; in ossl_namemap_add_names()