Lines Matching refs:n

149 	size_t n = 0;  in mechanism_string_id()  local
151 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_string_id()
152 if (pkcs11_modes[n].id == id) in mechanism_string_id()
153 return pkcs11_modes[n].string + offset; in mechanism_string_id()
164 size_t n = 0; in mechanism_is_valid() local
166 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_is_valid()
167 if (id == pkcs11_modes[n].id) in mechanism_is_valid()
179 size_t n = 0; in mechanism_flags_complies_pkcs11() local
183 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) { in mechanism_flags_complies_pkcs11()
184 if (pkcs11_modes[n].id == mechanism_type) { in mechanism_flags_complies_pkcs11()
185 if (flags & ~pkcs11_modes[n].flags) in mechanism_flags_complies_pkcs11()
188 flags, pkcs11_modes[n].flags); in mechanism_flags_complies_pkcs11()
190 return (flags & ~pkcs11_modes[n].flags) == 0; in mechanism_flags_complies_pkcs11()
200 size_t n = 0; in mechanism_is_one_shot_only() local
202 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_is_one_shot_only()
203 if (pkcs11_modes[n].id == mechanism_type) in mechanism_is_one_shot_only()
204 return pkcs11_modes[n].one_shot; in mechanism_is_one_shot_only()
288 size_t n = 0; in tee_malloc_mechanism_list() local
292 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) in tee_malloc_mechanism_list()
293 if (token_mechanism[n].flags) in tee_malloc_mechanism_list()
305 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) { in tee_malloc_mechanism_list()
306 if (token_mechanism[n].flags) { in tee_malloc_mechanism_list()
308 array[count] = token_mechanism[n].id; in tee_malloc_mechanism_list()
318 size_t n = 0; in mechanism_supported_flags() local
320 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) { in mechanism_supported_flags()
321 if (id == token_mechanism[n].id) { in mechanism_supported_flags()
322 uint32_t flags = token_mechanism[n].flags; in mechanism_supported_flags()