Lines Matching refs:n

157 	size_t n = 0;  in mechanism_string_id()  local
159 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_string_id()
160 if (pkcs11_modes[n].id == id) in mechanism_string_id()
161 return pkcs11_modes[n].string + offset; in mechanism_string_id()
172 size_t n = 0; in mechanism_is_valid() local
174 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_is_valid()
175 if (id == pkcs11_modes[n].id) in mechanism_is_valid()
187 size_t n = 0; in mechanism_flags_complies_pkcs11() local
191 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) { in mechanism_flags_complies_pkcs11()
192 if (pkcs11_modes[n].id == mechanism_type) { in mechanism_flags_complies_pkcs11()
193 if (flags & ~pkcs11_modes[n].flags) in mechanism_flags_complies_pkcs11()
196 flags, pkcs11_modes[n].flags); in mechanism_flags_complies_pkcs11()
198 return (flags & ~pkcs11_modes[n].flags) == 0; in mechanism_flags_complies_pkcs11()
208 size_t n = 0; in mechanism_is_one_shot_only() local
210 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_is_one_shot_only()
211 if (pkcs11_modes[n].id == mechanism_type) in mechanism_is_one_shot_only()
212 return pkcs11_modes[n].one_shot; in mechanism_is_one_shot_only()
300 size_t n = 0; in tee_malloc_mechanism_list() local
304 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) in tee_malloc_mechanism_list()
305 if (token_mechanism[n].flags) in tee_malloc_mechanism_list()
317 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) { in tee_malloc_mechanism_list()
318 if (token_mechanism[n].flags) { in tee_malloc_mechanism_list()
320 array[count] = token_mechanism[n].id; in tee_malloc_mechanism_list()
330 size_t n = 0; in mechanism_supported_flags() local
332 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) { in mechanism_supported_flags()
333 if (id == token_mechanism[n].id) { in mechanism_supported_flags()
334 uint32_t flags = token_mechanism[n].flags; in mechanism_supported_flags()