Lines Matching refs:i

78     size_t i;  in psa_get_se_driver_entry()  local
86 for( i = 0; i < PSA_MAX_SE_DRIVERS; i++ ) in psa_get_se_driver_entry()
88 if( driver_table[i].location == location ) in psa_get_se_driver_entry()
89 return( &driver_table[i] ); in psa_get_se_driver_entry()
275 size_t i; in psa_init_all_se_drivers() local
276 for( i = 0; i < PSA_MAX_SE_DRIVERS; i++ ) in psa_init_all_se_drivers()
278 psa_se_drv_table_entry_t *driver = &driver_table[i]; in psa_init_all_se_drivers()
308 size_t i; in psa_register_se_driver() local
324 for( i = 0; i < PSA_MAX_SE_DRIVERS; i++ ) in psa_register_se_driver()
326 if( driver_table[i].location == 0 ) in psa_register_se_driver()
331 if( driver_table[i].location == location ) in psa_register_se_driver()
334 if( i == PSA_MAX_SE_DRIVERS ) in psa_register_se_driver()
337 driver_table[i].location = location; in psa_register_se_driver()
338 driver_table[i].methods = methods; in psa_register_se_driver()
339 driver_table[i].u.internal.persistent_data_size = in psa_register_se_driver()
344 driver_table[i].u.internal.persistent_data = in psa_register_se_driver()
346 if( driver_table[i].u.internal.persistent_data == NULL ) in psa_register_se_driver()
354 status = psa_load_se_persistent_data( &driver_table[i] ); in psa_register_se_driver()
362 memset( &driver_table[i], 0, sizeof( driver_table[i] ) ); in psa_register_se_driver()
368 size_t i; in psa_unregister_all_se_drivers() local
369 for( i = 0; i < PSA_MAX_SE_DRIVERS; i++ ) in psa_unregister_all_se_drivers()
371 if( driver_table[i].u.internal.persistent_data != NULL ) in psa_unregister_all_se_drivers()
372 mbedtls_free( driver_table[i].u.internal.persistent_data ); in psa_unregister_all_se_drivers()