Lines Matching refs:n
161 size_t n = 0; in mechanism_string_id() local
163 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_string_id()
164 if (pkcs11_modes[n].id == id) in mechanism_string_id()
165 return pkcs11_modes[n].string + offset; in mechanism_string_id()
176 size_t n = 0; in mechanism_is_valid() local
178 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_is_valid()
179 if (id == pkcs11_modes[n].id) in mechanism_is_valid()
191 size_t n = 0; in mechanism_flags_complies_pkcs11() local
195 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) { in mechanism_flags_complies_pkcs11()
196 if (pkcs11_modes[n].id == mechanism_type) { in mechanism_flags_complies_pkcs11()
197 if (flags & ~pkcs11_modes[n].flags) in mechanism_flags_complies_pkcs11()
200 flags, pkcs11_modes[n].flags); in mechanism_flags_complies_pkcs11()
202 return (flags & ~pkcs11_modes[n].flags) == 0; in mechanism_flags_complies_pkcs11()
212 size_t n = 0; in mechanism_is_one_shot_only() local
214 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_is_one_shot_only()
215 if (pkcs11_modes[n].id == mechanism_type) in mechanism_is_one_shot_only()
216 return pkcs11_modes[n].one_shot; in mechanism_is_one_shot_only()
308 size_t n = 0; in tee_malloc_mechanism_list() local
312 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) in tee_malloc_mechanism_list()
313 if (token_mechanism[n].flags) in tee_malloc_mechanism_list()
325 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) { in tee_malloc_mechanism_list()
326 if (token_mechanism[n].flags) { in tee_malloc_mechanism_list()
328 array[count] = token_mechanism[n].id; in tee_malloc_mechanism_list()
338 size_t n = 0; in mechanism_supported_flags() local
340 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) { in mechanism_supported_flags()
341 if (id == token_mechanism[n].id) { in mechanism_supported_flags()
342 uint32_t flags = token_mechanism[n].flags; in mechanism_supported_flags()