Home
last modified time | relevance | path

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

/lk-master/lib/bio/
A Dsubdev.c25 bio_erase_geometry_info_t geometry; member
77 bio_erase_geometry_info_t *geometry; in bio_publish_subdevice() local
101 if (parent->geometry_count && parent->geometry) { in bio_publish_subdevice()
111 geo = parent->geometry + i; in bio_publish_subdevice()
135 geometry = &sub->geometry; in bio_publish_subdevice()
137 geometry->start = 0; in bio_publish_subdevice()
138 geometry->size = byte_size; in bio_publish_subdevice()
139 geometry->erase_size = geo->erase_size; in bio_publish_subdevice()
140 geometry->erase_shift = geo->erase_shift; in bio_publish_subdevice()
148 geometry = NULL; in bio_publish_subdevice()
[all …]
A Dbio.c442 const bio_erase_geometry_info_t *geometry, in bio_initialize_bdev() argument
457 dev->geometry = geometry; in bio_initialize_bdev()
465 if (geometry_count && geometry) { in bio_initialize_bdev()
467 bio_erase_geometry_info_t *info = geometry + i; in bio_initialize_bdev()
491 bio_geometry_info_t *r1 = dev->geometry + i; in bio_initialize_bdev()
492 bio_geometry_info_t *r2 = dev->geometry + i + 1; in bio_initialize_bdev()
496 bio_geometry_info_t *r2 = dev->geometry + j; in bio_initialize_bdev()
546 if (!entry->geometry_count || !entry->geometry) { in bio_dump_devices()
550 const bio_erase_geometry_info_t *geo = entry->geometry + i; in bio_dump_devices()
/lk-master/platform/stm32f7xx/
A Dflash.c38 bio_erase_geometry_info_t geometry[MAX_GEOMETRY_COUNT]; member
57 flash.geometry[0].start = ERASE_RANGE0_START; in stm32_flash_init()
59 flash.geometry[0].erase_size = _32K; in stm32_flash_init()
60 flash.geometry[0].erase_size = log2_uint(_32K); in stm32_flash_init()
62 flash.geometry[1].start = ERASE_RANGE1_START; in stm32_flash_init()
64 flash.geometry[1].erase_size = _128K; in stm32_flash_init()
65 flash.geometry[1].erase_size = log2_uint(_128K); in stm32_flash_init()
67 flash.geometry[2].start = ERASE_RANGE2_START; in stm32_flash_init()
69 flash.geometry[2].erase_size = _256K; in stm32_flash_init()
70 flash.geometry[2].erase_size = log2_uint(_256K); in stm32_flash_init()
[all …]
A Dqspi.c46 static bio_erase_geometry_info_t geometry; variable
598 geometry.erase_size = log2_uint(N25QXXA_SUBSECTOR_SIZE); in qspi_flash_init()
599 geometry.erase_shift = log2_uint(N25QXXA_SUBSECTOR_SIZE); in qspi_flash_init()
600 geometry.start = 0; in qspi_flash_init()
601 geometry.size = flash_size; in qspi_flash_init()
604 (flash_size / N25QXXA_PAGE_SIZE), 1, &geometry, in qspi_flash_init()
/lk-master/platform/zynq/
A Dspiflash.c49 bio_erase_geometry_info_t geometry[MAX_GEOMETRY_COUNT]; member
233 if (region_count > countof(flash.geometry)) { in spiflash_detect()
235 region_count, countof(flash.geometry)); in spiflash_detect()
251 flash.geometry[i].erase_size = erase_size; in spiflash_detect()
252 flash.geometry[i].erase_shift = log2_uint(erase_size); in spiflash_detect()
253 flash.geometry[i].start = offset; in spiflash_detect()
254 flash.geometry[i].size = pages << flash.geometry[i].erase_shift; in spiflash_detect()
256 size_t erase_mask = ((size_t)0x1 << flash.geometry[i].erase_shift) - 1; in spiflash_detect()
263 offset += flash.geometry[i].size; in spiflash_detect()
288 region_count, flash.geometry, BIO_FLAGS_NONE); in spiflash_detect()
/lk-master/lib/bio/include/lib/
A Dbio.h42 const bio_erase_geometry_info_t *geometry; member
78 const bio_erase_geometry_info_t *geometry,
/lk-master/lib/ptable/
A Dptable.c128 if (bdev->geometry_count && bdev->geometry) { in ptable_write()
322 if (!ptable.bdev->geometry_count || !ptable.bdev->geometry) { in ptable_adjust_request_for_erase_geometry()
335 const bio_erase_geometry_info_t *geo = ptable.bdev->geometry + geo_index; in ptable_adjust_request_for_erase_geometry()
/lk-master/dev/virtio/block/
A Dvirtio-block.c36 } geometry; member
/lk-master/lib/fs/spifs/
A Dspifs.c457 size_t erase_size = valpow2(dev->geometry->erase_size); in get_device_page_info()

Completed in 14 milliseconds