Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 9 of 9) sorted by relevance

/lk-master/external/lib/lwip/api/
A Dnetdb.c275 size_t total_size; in lwip_getaddrinfo() local
306 total_size = sizeof(struct addrinfo) + sizeof(struct sockaddr_in); in lwip_getaddrinfo()
310 total_size += namelen + 1; in lwip_getaddrinfo()
314 total_size <= NETDB_ELEM_SIZE); in lwip_getaddrinfo()
319 memset(ai, 0, total_size); in lwip_getaddrinfo()
/lk-master/lib/ptable/
A Dptable.c57 if (entry->offset + entry->length > (uint64_t)ptable.bdev->total_size) in validate_entry()
93 if (total_length > bdev->total_size) in ptable_write()
132 err = bio_erase(bdev, 0, bdev->total_size); in ptable_write()
133 if (err != (ssize_t)bdev->total_size) { in ptable_write()
258 if ((entry->offset + entry->length) > (uint64_t)ptable.bdev->total_size) { in ptable_publish()
406 ptable.bdev->total_size, in ptable_allocate()
465 region_len = ptable.bdev->total_size - region_start; in ptable_allocate()
520 if (!bio_contains_range(0, ptable.bdev->total_size, offset, *plength)) in ptable_allocate_at()
527 ptable.bdev->total_size - offset, in ptable_allocate_at()
851 err = bio_erase(ptable_dev, 0, ptable_dev->total_size); in cmd_ptable()
/lk-master/lib/bio/
A Dbio.c310 if (offset >= dev->total_size) in bio_trim_range()
314 if ((off_t)(offset + len) > dev->total_size) in bio_trim_range()
315 len = dev->total_size - offset; in bio_trim_range()
455 dev->total_size = (off_t)block_count << dev->block_shift; in bio_initialize_bdev()
544 entry->name, entry->total_size, entry->block_size, entry->ref); in bio_dump_devices()
A Ddebug.c302 ssize_t err = bio_erase(device, 0, device->total_size); in erase_test()
305 } else if (err != device->total_size) { in erase_test()
/lk-master/lib/klog/
A Dklog.c34 uint32_t total_size; member
128 klog_buf->total_size = len; in klog_create()
173 if (kbuf->total_size > MAX_KLOG_SIZE) in klog_recover()
/lk-master/lib/bio/include/lib/
A Dbio.h35 off_t total_size; member
/lk-master/lib/fs/spifs/
A Dspifs.c452 *page_count = dev->total_size / (*page_size); in get_device_page_info()
466 *page_count = dev->total_size / (*page_size); in get_device_page_info()
514 if (dev->total_size % page_size != 0) { in spifs_format()
1124 stat->total_space = (uint64_t)spifs->dev->total_size; in spifs_fs_stat()
/lk-master/platform/stm32f7xx/
A Dqspi.c408 if (len == device->total_size && offset == 0) { in spiflash_bdev_erase()
668 num_erased_bytes = device->total_size; in qspi_erase()
/lk-master/lib/sysparam/
A Dsysparam.c156 DEBUG_ASSERT(offset + len <= bdev->total_size); in sysparam_scan()

Completed in 14 milliseconds