Lines Matching refs:mx

222     int mx, i;  in ossl_crypto_new_ex_data_ex()  local
238 mx = sk_EX_CALLBACK_num(ip->meth); in ossl_crypto_new_ex_data_ex()
239 if (mx > 0) { in ossl_crypto_new_ex_data_ex()
240 if (mx < (int)OSSL_NELEM(stack)) in ossl_crypto_new_ex_data_ex()
243 storage = OPENSSL_malloc(sizeof(*storage) * mx); in ossl_crypto_new_ex_data_ex()
245 for (i = 0; i < mx; i++) in ossl_crypto_new_ex_data_ex()
250 if (mx > 0 && storage == NULL) in ossl_crypto_new_ex_data_ex()
252 for (i = 0; i < mx; i++) { in ossl_crypto_new_ex_data_ex()
276 int mx, j, i; in CRYPTO_dup_ex_data() local
297 mx = sk_EX_CALLBACK_num(ip->meth); in CRYPTO_dup_ex_data()
299 if (j < mx) in CRYPTO_dup_ex_data()
300 mx = j; in CRYPTO_dup_ex_data()
301 if (mx > 0) { in CRYPTO_dup_ex_data()
302 if (mx < (int)OSSL_NELEM(stack)) in CRYPTO_dup_ex_data()
305 storage = OPENSSL_malloc(sizeof(*storage) * mx); in CRYPTO_dup_ex_data()
307 for (i = 0; i < mx; i++) in CRYPTO_dup_ex_data()
312 if (mx == 0) in CRYPTO_dup_ex_data()
323 if (!CRYPTO_set_ex_data(to, mx - 1, CRYPTO_get_ex_data(to, mx - 1))) in CRYPTO_dup_ex_data()
326 for (i = 0; i < mx; i++) { in CRYPTO_dup_ex_data()
369 int mx, i; in CRYPTO_free_ex_data() local
384 mx = sk_EX_CALLBACK_num(ip->meth); in CRYPTO_free_ex_data()
385 if (mx > 0) { in CRYPTO_free_ex_data()
386 if (mx < (int)OSSL_NELEM(stack)) in CRYPTO_free_ex_data()
389 storage = OPENSSL_malloc(sizeof(*storage) * mx); in CRYPTO_free_ex_data()
391 for (i = 0; i < mx; i++) { in CRYPTO_free_ex_data()
400 qsort(storage, mx, sizeof(*storage), ex_callback_compare); in CRYPTO_free_ex_data()
401 for (i = 0; i < mx; i++) { in CRYPTO_free_ex_data()