| /optee_os/core/drivers/crypto/stm32/ |
| H A D | ecc.c | 96 d.val = calloc(1, bytes); in stm32_gen_keypair() 108 pk.x.val = calloc(1, bytes); in stm32_gen_keypair() 115 pk.y.val = calloc(1, bytes); in stm32_gen_keypair() 176 d.val = calloc(1, d.size); in sign() 182 k.val = calloc(1, bytes); in sign() 254 pk.x.val = calloc(1, pk.x.size); in verify() 261 pk.y.val = calloc(1, pk.y.size); in verify() 371 r2modn.val = calloc(1, r2modn.size); in is_point_on_curve() 410 pk.x.val = calloc(1, pk.x.size); in shared_secret() 417 pk.y.val = calloc(1, pk.y.size); in shared_secret() [all …]
|
| /optee_os/core/drivers/ |
| H A D | stm32_hsem.c | 197 hsem_d->rif_proc_conf = calloc(HSEM_NB_PROC, sizeof(uint32_t)); in parse_dt() 199 hsem_d->conf_data.cid_confs = calloc(HSEM_RIF_RESOURCES, in parse_dt() 201 hsem_d->conf_data.sec_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 202 hsem_d->conf_data.priv_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 203 hsem_d->conf_data.access_mask = calloc(1, sizeof(uint32_t)); in parse_dt() 243 hsem_d = calloc(1, sizeof(*hsem_d)); in stm32_hsem_probe()
|
| H A D | stm32_hpdma.c | 259 hpdma_d->conf_data = calloc(1, sizeof(*hpdma_d->conf_data)); in parse_dt() 266 hpdma_d->conf_data->cid_confs = calloc(HPDMA_RIF_CHANNELS, in parse_dt() 268 hpdma_d->conf_data->sec_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 269 hpdma_d->conf_data->priv_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 270 hpdma_d->conf_data->access_mask = calloc(1, sizeof(uint32_t)); in parse_dt() 271 hpdma_d->conf_data->lock_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 357 hpdma_d = calloc(1, sizeof(*hpdma_d)); in stm32_hpdma_probe()
|
| H A D | stm32_ipcc.c | 281 ipcc_d->conf_data = calloc(1, sizeof(*ipcc_d->conf_data)); in parse_dt() 288 ipcc_d->conf_data->cid_confs = calloc(IPCC_NB_MAX_RIF_CHAN * 2, in parse_dt() 290 ipcc_d->conf_data->sec_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 291 ipcc_d->conf_data->priv_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 292 ipcc_d->conf_data->access_mask = calloc(1, sizeof(uint32_t)); in parse_dt() 310 ipcc_d = calloc(1, sizeof(*ipcc_d)); in stm32_ipcc_probe()
|
| H A D | stm32_fmc.c | 258 fmc_d->conf_data = calloc(1, sizeof(*fmc_d->conf_data)); in parse_dt() 265 fmc_d->conf_data->cid_confs = calloc(FMC_RIF_CONTROLLERS, in parse_dt() 267 fmc_d->conf_data->sec_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 268 fmc_d->conf_data->priv_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 269 fmc_d->conf_data->lock_conf = calloc(1, sizeof(uint32_t)); in parse_dt() 270 fmc_d->conf_data->access_mask = calloc(1, sizeof(uint32_t)); in parse_dt() 468 fmc_d = calloc(1, sizeof(*fmc_d)); in fmc_probe()
|
| /optee_os/core/lib/scmi-server/ |
| H A D | scmi_server_scpfw.c | 92 scpfw_cfg.agent_config = calloc(scpfw_cfg.agent_count, in scmi_scpfw_get_configuration() 157 protocol_ctx = calloc(1, sizeof(*protocol_ctx)); in optee_scmi_server_probe_agent() 220 ctx = calloc(1, sizeof(*ctx)); in optee_scmi_server_probe() 235 agent_ctx = calloc(1, sizeof(*agent_ctx)); in optee_scmi_server_probe() 257 scpfw_cfg.agent_config = calloc(scpfw_cfg.agent_count, in optee_scmi_server_probe() 283 calloc(agent_cfg->channel_count, in optee_scmi_server_probe()
|
| H A D | scmi_clock_consumer.c | 146 consumer = calloc(1, sizeof(*consumer)); in optee_scmi_server_init_clocks() 154 s_clocks = calloc(s_clocks_count, sizeof(*s_clocks)); in optee_scmi_server_init_clocks() 225 consumer->clocks = calloc(consumer->count, sizeof(*consumer->clocks)); in optee_scmi_server_init_clocks() 228 consumer->scmi_flags = calloc(consumer->count, in optee_scmi_server_init_clocks() 233 channel_cfg->clock = calloc(channel_cfg->clock_count, in optee_scmi_server_init_clocks()
|
| H A D | scmi_reset_consumer.c | 63 s_resets = calloc(s_resets_count, sizeof(*s_resets)); in optee_scmi_server_init_resets() 125 channel_cfg->reset = calloc(channel_cfg->reset_count, in optee_scmi_server_init_resets()
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | x25519.c | 32 key->priv = calloc(1, key_size_bytes); in crypto_acipher_alloc_x25519_keypair() 33 key->pub = calloc(1, key_size_bytes); in crypto_acipher_alloc_x25519_keypair()
|
| H A D | ed25519.c | 27 key->priv = calloc(1, key_size >> 3); in crypto_acipher_alloc_ed25519_keypair() 28 key->pub = calloc(1, key_size >> 3); in crypto_acipher_alloc_ed25519_keypair() 48 key->pub = calloc(1, key_size >> 3); in crypto_acipher_alloc_ed25519_public_key()
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | sbi_mpxy_rpmi.c | 46 sbi_mpxy_rpmi_ctx = calloc(1, sizeof(*sbi_mpxy_rpmi_ctx)); in sbi_mpxy_rpmi_probe_channels() 59 calloc(sbi_mpxy_rpmi_ctx->channel_count, sizeof(*channel_ids)); in sbi_mpxy_rpmi_probe_channels() 73 calloc(sbi_mpxy_rpmi_ctx->channel_count, in sbi_mpxy_rpmi_probe_channels()
|
| /optee_os/core/drivers/nvmem/ |
| H A D | atmel_sfc.c | 60 cell = calloc(1, sizeof(*cell)); in atmel_sfc_dt_get() 111 atmel_sfc = calloc(1, sizeof(*atmel_sfc)); in atmel_sfc_probe()
|
| /optee_os/core/kernel/ |
| H A D | lockdep.c | 34 node = calloc(1, sizeof(*node)); in lockdep_add_to_graph() 89 edge = calloc(1, sizeof(*edge)); in lockdep_add_edge() 137 qe = calloc(1, sizeof(*qe)); in lockdep_graph_get_shortest_cycle() 186 nqe = calloc(1, sizeof(*nqe)); in lockdep_graph_get_shortest_cycle() 363 lock = calloc(1, sizeof(*lock)); in __lockdep_lock_acquire() 392 lock = calloc(1, sizeof(*lock)); in __lockdep_lock_tryacquire()
|
| /optee_os/core/drivers/i2c/ |
| H A D | i2c.c | 24 i2c_dev = calloc(1, sizeof(struct i2c_dev)); in i2c_create_dev()
|
| /optee_os/lib/libutils/isoc/include/ |
| H A D | malloc.h | 24 void *calloc(size_t nmemb, size_t size); 44 #define calloc(nmemb, size) __mdbg_alloc(MAF_ZERO_INIT, NULL, 1, (nmemb), \ macro 133 #define nex_calloc(nmemb, size) calloc(nmemb, size)
|
| /optee_os/core/pta/veraison_attestation/ |
| H A D | sign.c | 118 key = calloc(1, sizeof(*key)); in generate_key() 134 pubkey = calloc(1, sizeof(*pubkey)); in generate_key()
|
| /optee_os/core/drivers/crypto/se050/adaptors/utils/ |
| H A D | utils.c | 38 list = calloc(1, len); in delete_transient_objects() 168 *cnt = calloc(1, sizeof(uint8_t)); in se050_refcount_init_ctx()
|
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | sec_hmac.c | 129 hash = calloc(1, sizeof(*hash)); in sec_hmac_ctx_allocate() 135 hash_ctx = calloc(1, sizeof(*hash_ctx)); in sec_hmac_ctx_allocate()
|
| /optee_os/core/mm/ |
| H A D | fobj.c | 150 rwp = calloc(1, sizeof(*rwp)); in rwp_paged_iv_alloc() 260 rwp = calloc(1, sizeof(*rwp)); in rwp_unpaged_iv_alloc() 264 rwp->state = calloc(num_pages, sizeof(*rwp->state)); in rwp_unpaged_iv_alloc() 439 rop = calloc(1, sizeof(*rop)); in fobj_ro_paged_alloc() 617 rrp = calloc(1, sizeof(*rrp) + num_pages * sizeof(uint16_t) + in fobj_ro_reloc_paged_alloc() 695 f = calloc(1, sizeof(*f)); in fobj_locked_paged_alloc() 756 struct fobj_sec_mem *f = calloc(1, sizeof(*f)); in fobj_sec_mem_alloc()
|
| H A D | file.c | 91 fse = calloc(1, sizeof(*fse)); in file_add_slice() 151 f = calloc(1, sizeof(*f)); in file_get_by_tag()
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | platform.h | 84 #define MBEDTLS_PLATFORM_STD_CALLOC calloc /**< The default \c calloc function to use. */ 167 #define mbedtls_calloc calloc
|
| /optee_os/core/drivers/clk/sam/ |
| H A D | at91_audio_pll.c | 309 frac_ck = calloc(1, sizeof(*frac_ck)); in at91_clk_register_audio_pll_frac() 340 apad_ck = calloc(1, sizeof(*apad_ck)); in at91_clk_register_audio_pll_pad() 371 apmc_ck = calloc(1, sizeof(*apmc_ck)); in at91_clk_register_audio_pll_pmc()
|
| /optee_os/core/lib/zlib/ |
| H A D | zutil.c | 302 extern voidp calloc OF((uInt items, uInt size)); 313 (voidpf)calloc(items, size);
|
| /optee_os/core/drivers/firewall/ |
| H A D | firewall.c | 26 fw = calloc(1, sizeof(*fw)); in firewall_get() 34 fw->args = calloc(fw->arg_count, sizeof(*fw->args)); in firewall_get()
|
| /optee_os/core/drivers/regulator/ |
| H A D | regulator_dt.c | 94 supply_prop = calloc(1, prop_len); in get_supply_phandle() 254 pending = calloc(1, sizeof(*pending)); in add_to_pending_list() 354 regulator = calloc(1, sizeof(*regulator)); in regulator_dt_register()
|