Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 25) sorted by relevance

/lk-master/platform/armemu/
A Dnet.c350 struct netif *netif = calloc(sizeof(struct netif), 1); in ethernet_init()
351 struct ip_addr *ipaddr = calloc(sizeof(struct ip_addr), 1); in ethernet_init()
352 struct ip_addr *netmask = calloc(sizeof(struct ip_addr), 1); in ethernet_init()
353 struct ip_addr *gw = calloc(sizeof(struct ip_addr), 1); in ethernet_init()
/lk-master/lib/heap/include/lib/
A Dheap.h19 void *calloc(size_t count, size_t size) __MALLOC;
/lk-master/external/lib/lwip/include/lwip/
A Dmem.h60 #define mem_calloc calloc
/lk-master/external/platform/pico/common/pico_util/
A Dpheap.c13 pheap_t *heap = calloc(1, sizeof(pheap_t)); in ph_create()
16 heap->nodes = calloc(max_nodes, sizeof(pheap_node_t)); in ph_create()
A Dqueue.c13 q->data = (uint8_t *)calloc(element_count + 1, element_size); in queue_init_with_spinlock()
/lk-master/platform/zynq/
A Dspiflash.c209 uint8_t *buf = calloc(1, 512); in spiflash_detect()
450 uint8_t *buf = calloc(1, 512); in cmd_spiflash()
463 uint8_t *buf = calloc(1, 1024); in cmd_spiflash()
488 uint8_t *buf = calloc(1, argv[3].u); in cmd_spiflash()
/lk-master/lib/evlog/
A Devlog.c38 uintptr_t *items = calloc(1, len * sizeof(uintptr_t)); in evlog_init()
/lk-master/kernel/
A Dport.c155 wp = calloc(1, sizeof(write_port_t)); in port_create()
185 read_port_t *rp = calloc(1, sizeof(read_port_t)); in port_open()
261 port_group_t *pg = calloc(1, sizeof(port_group_t)); in port_group()
/lk-master/dev/net/pcnet/
A Dpcnet.c144 struct pcnet_state *state = calloc(1, sizeof(struct pcnet_state)); in pcnet_init()
178 state->rx_buffers = calloc(state->rd_count, sizeof(struct pbuf *)); in pcnet_init()
179 state->tx_buffers = calloc(state->td_count, sizeof(struct pbuf *)); in pcnet_init()
/lk-master/external/platform/pico/common/pico_time/
A Dtime.c165 pool->entries = (alarm_pool_entry_t *)calloc(max_timers, sizeof(alarm_pool_entry_t)); in alarm_pool_create()
166 pool->entry_ids_high = (uint8_t *)calloc(max_timers, sizeof(uint8_t)); in alarm_pool_create()
/lk-master/external/lib/heap/dlmalloc/include/lib/
A Ddlmalloc.h56 #define dlcalloc calloc
/lk-master/external/lib/lwip/
A Dsys_arch.c77 mbox->queue = calloc(size, sizeof(void *)); in sys_mbox_new()
/lk-master/lib/bootimage/
A Dbootimage.c142 *bi = calloc(1, sizeof(bootimage_t)); in bootimage_open()
/lk-master/lib/elf/
A Delf.c197 handle->pheaders = calloc(1, handle->eheader.e_phnum * handle->eheader.e_phentsize); in elf_load()
/lk-master/lib/sysparam/
A Dsysparam.c318 uint8_t *buf = calloc(1, params.len); in sysparam_write()
476 uint8_t *hexbuffer = calloc(1, strlen(str) / 2 + 1); in hexstr_to_val()
/lk-master/lib/heap/
A Dheap_wrapper.c180 void *calloc(size_t count, size_t size) { in calloc() function
/lk-master/kernel/vm/
A Dvmm.c94 vmm_region_t *r = calloc(1, sizeof(vmm_region_t)); in alloc_region_struct()
588 vmm_aspace_t *aspace = calloc(1, sizeof(vmm_aspace_t)); in vmm_create_aspace()
/lk-master/lib/fs/memfs/
A Dmemfs.c133 file->ptr = calloc(1, len); in memfs_create()
/lk-master/platform/pc/
A Dide.c216 struct ide_driver_state *state = calloc(1, sizeof(struct ide_driver_state)); in ide_init()
861 info = calloc(1, 512); in ide_detect_ata()
/lk-master/dev/virtio/net/
A Dvirtio-net.c131 struct virtio_net_dev *ndev = calloc(1, sizeof(struct virtio_net_dev)); in virtio_net_init()
/lk-master/dev/virtio/
A Dvirtio.c122 devices = calloc(count, sizeof(struct virtio_device)); in virtio_mmio_detect()
/lk-master/lib/console/
A Dconsole.c689 console_t *con = calloc(1, sizeof(console_t)); in console_create()
/lk-master/lib/ptable/
A Dptable.c266 mentry = calloc(1, sizeof(struct ptable_mem_entry)); in ptable_publish()
/lk-master/lib/minip/
A Dtcp.c913 s = calloc(1, sizeof(tcp_socket_t)); in create_tcp_socket()
/lk-master/external/lib/heap/dlmalloc/
A Ddlmalloc.c844 #define dlcalloc calloc

Completed in 41 milliseconds