Home
last modified time | relevance | path

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

12

/bsp/allwinner/d1s/ports/partition/
A Dpartition.c32 int sector_size; member
73 geometry->bytes_per_sector = part->sector_size; in partition_control()
74 geometry->sector_count = part->partition->size / part->sector_size; in partition_control()
91 DEBUG_TRACE("read block: %d, size=%d\n", pos + part->partition->offset/part->sector_size, size); in partition_read()
93 …return rt_device_read(part->block_device, pos + part->partition->offset/part->sector_size, buffer,… in partition_read()
108 … DEBUG_TRACE("write block: %d, size=%d\n", pos + part->partition->offset/part->sector_size, size); in partition_write()
110 return rt_device_write(part->block_device, pos + part->partition->offset/part->sector_size, in partition_write()
158 part_dev->sector_size = geometry.bytes_per_sector; in rt_partition_init()
/bsp/hpmicro/hpm5301evklite/board/
A Dfal_flash_port.c88 rt_uint32_t sector_size; in init() local
89 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
92 nor_flash0.blk_size = sector_size; in init()
224 rt_uint32_t sector_size; in erase() local
225 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
238 erase_unit = sector_size; in erase()
/bsp/hpmicro/hpm6300evk/board/
A Dfal_flash_port.c88 rt_uint32_t sector_size; in init() local
89 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
92 nor_flash0.blk_size = sector_size; in init()
224 rt_uint32_t sector_size; in erase() local
225 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
238 erase_unit = sector_size; in erase()
/bsp/hpmicro/hpm6750evk/board/
A Dfal_flash_port.c101 rt_uint32_t sector_size; in init() local
102 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
105 nor_flash0.blk_size = sector_size; in init()
237 rt_uint32_t sector_size; in erase() local
238 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
251 erase_unit = sector_size; in erase()
/bsp/hpmicro/hpm5300evk/board/
A Dfal_flash_port.c88 rt_uint32_t sector_size; in init() local
89 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
92 nor_flash0.blk_size = sector_size; in init()
224 rt_uint32_t sector_size; in erase() local
225 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
238 erase_unit = sector_size; in erase()
/bsp/hpmicro/hpm6200evk/board/
A Dfal_flash_port.c88 rt_uint32_t sector_size; in init() local
89 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
92 nor_flash0.blk_size = sector_size; in init()
224 rt_uint32_t sector_size; in erase() local
225 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
238 erase_unit = sector_size; in erase()
/bsp/hpmicro/hpm6750evk2/board/
A Dfal_flash_port.c102 rt_uint32_t sector_size; in init() local
103 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
106 nor_flash0.blk_size = sector_size; in init()
238 rt_uint32_t sector_size; in erase() local
239 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
252 erase_unit = sector_size; in erase()
/bsp/hpmicro/hpm6750evkmini/board/
A Dfal_flash_port.c102 rt_uint32_t sector_size; in init() local
103 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
106 nor_flash0.blk_size = sector_size; in init()
238 rt_uint32_t sector_size; in erase() local
239 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
252 erase_unit = sector_size; in erase()
/bsp/hpmicro/hpm6800evk/board/
A Dfal_flash_port.c102 rt_uint32_t sector_size; in init() local
103 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
106 nor_flash0.blk_size = sector_size; in init()
238 rt_uint32_t sector_size; in erase() local
239 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
252 erase_unit = sector_size; in erase()
/bsp/hpmicro/hpm6e00evk/board/
A Dfal_flash_port.c102 rt_uint32_t sector_size; in init() local
103 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in init()
106 nor_flash0.blk_size = sector_size; in init()
238 rt_uint32_t sector_size; in erase() local
239 …_get_property(BOARD_APP_XPI_NOR_XPI_BASE, &s_flashcfg, xpi_nor_property_sector_size, &sector_size); in erase()
252 erase_unit = sector_size; in erase()
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/storage/Disk/
A DBlkDev.c207 (n * (mscLun->disk_info.sector_size))); in __DiskRead()
212 (n * (mscLun->disk_info.sector_size))); in __DiskRead()
217 (n * (mscLun->disk_info.sector_size))); in __DiskRead()
334 (n * (mscLun->disk_info.sector_size))); in __DiskWrite()
339 (n * (mscLun->disk_info.sector_size))); in __DiskWrite()
344 (n * (mscLun->disk_info.sector_size))); in __DiskWrite()
428 mscLun->disk_info.sector_size, in DiskRead()
516 mscLun->disk_info.sector_size, in DiskWrite()
877 hal_log_info("sector_size = %d", mscLun->disk_info.sector_size); in Pr__s32DiskInfo()
1322 mscLun->disk_info.sector_size = 0; in GetDiskInfo()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/storage/Misc/
A Dusbh_buff_manager.c74 temp_buff->sector_size = 0; in set_usbh_temp_buff_default()
155 …valid(unsigned int buff_num, unsigned int dev_id, unsigned int start_lba, unsigned int sector_size) in set_usbh_temp_buff_valid() argument
161 if (buff_num >= buff_mgr->temp_buff_nr || sector_size == 0) in set_usbh_temp_buff_valid()
175 buff_mgr->buff_array[buff_num].sector_size = sector_size; in set_usbh_temp_buff_valid()
177 …[buff_num].end_lba = start_lba + (buff_mgr->buff_array[buff_num].buff_len / sector_size) - 1; in set_usbh_temp_buff_valid()
461 …t = (lba - buff_mgr->buff_array[buff_no].start_lba) * (buff_mgr->buff_array[buff_no].sector_size); in read_usbh_temp_buff()
463 buff_len = valid_sector * (buff_mgr->buff_array[buff_no].sector_size); in read_usbh_temp_buff()
528 … buff_start = (lba - buff_mgr->buff_array[i].start_lba) * (buff_mgr->buff_array[i].sector_size); in write_usbh_temp_buff()
529 buff_len = size * (buff_mgr->buff_array[i].sector_size); in write_usbh_temp_buff()
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/lhal/src/flash/
A Dbflb_sf_cfg.c140 .sector_size = 4,
243 .sector_size = 4,
346 .sector_size = 4,
449 .sector_size = 4,
552 .sector_size = 4,
655 .sector_size = 4,
758 .sector_size = 4,
861 .sector_size = 4,
964 .sector_size = 4,
1067 .sector_size = 4,
[all …]
A Dbflb_sflash.c650 …flash_cmd.cmd_buf[0] = (flash_cfg->sector_erase_cmd << 24) | ((flash_cfg->sector_size * 1024 * sec…
651 flash_cmd.cmd_buf[1] = ((flash_cfg->sector_size * 1024 * sector_num) << 24);
653 …flash_cmd.cmd_buf[0] = (flash_cfg->sector_erase_cmd << 24) | (flash_cfg->sector_size * 1024 * sect…
804 len > (BFLB_SPIFLASH_BLK64K_SIZE - flash_cfg->sector_size * 1024)) {
810 len > (BFLB_SPIFLASH_BLK32K_SIZE - flash_cfg->sector_size * 1024)) {
816 start_addr = ((start_addr) & (~(flash_cfg->sector_size * 1024 - 1)));
817 ret = bflb_sflash_sector_erase(flash_cfg, start_addr / flash_cfg->sector_size / 1024);
818 erase_len = flash_cfg->sector_size * 1024;
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl602/std/src/
A Dbl602_sf_cfg_ext.c136 .sector_size=4,
234 .sector_size=4,
332 .sector_size=4,
430 .sector_size=4,
528 .sector_size=4,
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl702/std/src/
A Dbl702_sf_cfg_ext.c138 .sector_size = 4,
236 .sector_size = 4,
334 .sector_size = 4,
432 .sector_size = 4,
/bsp/xuantie/libraries/xuantie_libraries/chip_riscv_dummy/src/drivers/
A Dspiflash.c73 uint32_t sector_size; ///< sector size member
183 flash_info->sector_size = param->sector_size; in csi_spiflash_get_flash_info()
274 if (size % param->sector_size) { in csi_spiflash_erase()
277 } else if (offset % param->sector_size) { in csi_spiflash_erase()
338 addr += param->sector_size; in csi_spiflash_erase()
/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/storage/include/
A Dusbh_buff_manager.h36 unsigned int sector_size; /* 扇区大小 */ member
/bsp/samd21/sam_d2x_asflib/common/services/storage/ctrl_access/
A Dctrl_access.c364 U8 sector_size; in mem_sector_size() local
368 sector_size = in mem_sector_size()
380 return sector_size; in mem_sector_size()
/bsp/hpmicro/libraries/hpm_sdk/components/serial_nor/
A Dhpm_serial_nor.c269 uint32_t sector_size = 0xFFFFFFUL; in get_page_sector_block_size_from_sfdp() local
299 if (current_erase_size < sector_size) { in get_page_sector_block_size_from_sfdp()
300 sector_size = current_erase_size; in get_page_sector_block_size_from_sfdp()
310 config->sector_size_kbytes = sector_size / SIZE_1KB; in get_page_sector_block_size_from_sfdp()
888 uint32_t sector_size; in hpm_serial_nor_erase_blocking() local
897 sector_size = flash->flash_info.sector_size_kbytes * 1024U; in hpm_serial_nor_erase_blocking()
899 aligned_start = HPM_ALIGN_DOWN(start, sector_size); in hpm_serial_nor_erase_blocking()
900 aligned_len = HPM_ALIGN_UP(start + length, sector_size) - aligned_start; in hpm_serial_nor_erase_blocking()
908 aligned_start += sector_size; in hpm_serial_nor_erase_blocking()
909 remaining_len -= sector_size; in hpm_serial_nor_erase_blocking()
/bsp/xuantie/libraries/xuantie_libraries/csi/csi2/include/drv/
A Deflash.h41 uint32_t sector_size; ///< Uniform sector size in bytes member
A Dspiflash.h117 uint32_t sector_size; ///< Sector size member
/bsp/ck802/libraries/include/
A Ddrv_eflash.h43 uint32_t sector_size; ///< Uniform sector size in bytes (0=sector_info used) member
/bsp/allwinner/libraries/sunxi-hal/include/hal/
A Dsunxi_hal_spinor.h39 uint32_t sector_size; member
/bsp/bouffalo_lab/libraries/bl_mcu_sdk/drivers/soc/bl616/std/src/
A Dbl616_romapi_patch.c281 .sector_size = 4,
379 .sector_size = 4,
477 .sector_size = 4,
575 .sector_size = 4,
673 .sector_size = 4,
771 .sector_size = 4,
986 len > (BFLB_SPIFLASH_BLK64K_SIZE - flash_cfg->sector_size * 1024)) { in bflb_sflash_erase()
992 len > (BFLB_SPIFLASH_BLK32K_SIZE - flash_cfg->sector_size * 1024)) { in bflb_sflash_erase()
998 start_addr = ((start_addr) & (~(flash_cfg->sector_size * 1024 - 1))); in bflb_sflash_erase()
999 ret = bflb_sflash_sector_erase(flash_cfg, start_addr / flash_cfg->sector_size / 1024); in bflb_sflash_erase()
[all …]

Completed in 60 milliseconds

12