| /OK3568_Linux_fs/external/recovery/update_engine/ |
| H A D | rkboot.c | 141 memset(pSector, 0, SECTOR_SIZE); in MakeSector0() 158 memset(pSector, 0, SECTOR_SIZE); in MakeSector1() 224 memset(pSector, 0, SECTOR_SIZE); in MakeSector3() 247 sector2Info.usSec0Crc = CRC_16((PBYTE)§or0Info, SECTOR_SIZE); in MakeIDBlockData() 248 sector2Info.usSec1Crc = CRC_16((PBYTE)§or1Info, SECTOR_SIZE); in MakeIDBlockData() 249 sector2Info.usSec3Crc = CRC_16((PBYTE)§or3Info, SECTOR_SIZE); in MakeIDBlockData() 250 memcpy(lpIDBlock, §or0Info, SECTOR_SIZE); in MakeIDBlockData() 251 memcpy(lpIDBlock + SECTOR_SIZE, §or1Info, SECTOR_SIZE); in MakeIDBlockData() 252 memcpy(lpIDBlock + SECTOR_SIZE * 3, §or3Info, SECTOR_SIZE); in MakeIDBlockData() 256 for (int i = 0; i < m_dwLoaderDataSize / SECTOR_SIZE; i++) { in MakeIDBlockData() [all …]
|
| H A D | flash_image.c | 529 gpt_header *gptHead = (gpt_header *)(gpt + SECTOR_SIZE); in create_gpt_buffer() 530 gpt_entry *gptEntry = (gpt_entry *)(gpt + 2 * SECTOR_SIZE); in create_gpt_buffer() 533 memset(gpt, 0, SECTOR_SIZE); in create_gpt_buffer() 540 memset(gpt + SECTOR_SIZE, 0, SECTOR_SIZE); in create_gpt_buffer() 556 memset(gpt + 2 * SECTOR_SIZE, 0, 32 * SECTOR_SIZE); in create_gpt_buffer() 592 …gptHead->partition_entry_array_crc32 = cpu_to_le32(crc32_le(0, gpt + 2 * SECTOR_SIZE, GPT_ENTRY_SI… in create_gpt_buffer() 593 gptHead->header_crc32 = cpu_to_le32(crc32_le(0, gpt + SECTOR_SIZE, sizeof(gpt_header))); in create_gpt_buffer() 599 gpt_header *gptMasterHead = (gpt_header *)(master + SECTOR_SIZE); in prepare_gpt_backup() 600 gpt_header *gptBackupHead = (gpt_header *)(backup + 32 * SECTOR_SIZE); in prepare_gpt_backup() 635 if (m_uiParamFileSize % SECTOR_SIZE != 0) { in flash_parameter() [all …]
|
| H A D | defineHeader.h | 23 #define SECTOR_SIZE 512 macro 25 #define BYTE2SECTOR(x) ((x>0)?((x-1)/SECTOR_SIZE + 1):(x))
|
| H A D | update.c | 141 … update_cmd[i].flash_offset = (long long)rkimage_hdr.item[j].flash_offset * SECTOR_SIZE; in RK_ota_set_partition() 275 for ( int j = DD_MALLOC_MAX_SIZE / SECTOR_SIZE; j > 0 ; j-- ) { in ota_recovery_cmds() 276 dd_bs = j * SECTOR_SIZE; in ota_recovery_cmds() 432 … if (ota_recovery_cmds(param_item[j].offset * SECTOR_SIZE, update_cmd[i].dest_path)) { in RK_ota_start()
|
| /OK3568_Linux_fs/external/rkupdate/ |
| H A D | RKAndroidDevice.cpp | 98 BYTE bData[SECTOR_SIZE * 4]; in FindIDBlock() 111 memset(bData, 0, SECTOR_SIZE * 4); in FindIDBlock() 124 P_RC4((BYTE *)pSec0, SECTOR_SIZE); in FindIDBlock() 130 pSec = (RKANDROID_IDB_SEC1 *)(bData + SECTOR_SIZE); in FindIDBlock() 367 BYTE bData[SECTOR_SIZE * 4]; in GetOldSectorData() 388 memset(pSec, 0, SECTOR_SIZE); in GetOldSectorData() 389 memcpy(pSec, bData, SECTOR_SIZE); in GetOldSectorData() 390 P_RC4(pSec, SECTOR_SIZE); in GetOldSectorData() 397 memset(pSec, 0, SECTOR_SIZE); in GetOldSectorData() 398 memcpy(pSec, bData + 512, SECTOR_SIZE); in GetOldSectorData() [all …]
|
| H A D | RKDevice.cpp | 122 memset(m_backupBuffer, 0, SECTOR_SIZE); in CRKDevice() 123 memset(m_backupBuffer + SECTOR_SIZE, 0xFF, SPARE_SIZE); in CRKDevice() 208 BYTE emptyData[4 * (SECTOR_SIZE + SPARE_SIZE)]; in EraseEmmcBlock() 209 memset(emptyData, 0xff, 4 * (SECTOR_SIZE + SPARE_SIZE)); in EraseEmmcBlock() 284 m_pFlashInfoData = new BYTE[SECTOR_SIZE * m_usFlashInfoDataLen]; in GetFlashInfo() 285 memset(m_pFlashInfoData, 0, SECTOR_SIZE * m_usFlashInfoDataLen); in GetFlashInfo()
|
| H A D | Upgrade.cpp | 296 UINT uiTransferSec = uiTransferSize / SECTOR_SIZE; in read_bytes_from_partition() 308 uiBegin += ullstart / SECTOR_SIZE; in read_bytes_from_partition() 367 pBuf = new BYTE[nHeaderSec * SECTOR_SIZE]; in check_fw_header() 422 UINT uiTransferSec = uiTransferSize / SECTOR_SIZE; in check_fw_crc() 669 BYTE bData[SECTOR_SIZE * 8]; in GetPubicKeyFromExternal() 671 PRK_SECURE_HEADER pSecureHdr = (PRK_SECURE_HEADER)(bData + SECTOR_SIZE * 4); in GetPubicKeyFromExternal() 722 P_RC4(bData, SECTOR_SIZE); in GetPubicKeyFromExternal() 740 P_RC4(bData + SECTOR_SIZE * (j + 4), SECTOR_SIZE); in GetPubicKeyFromExternal()
|
| H A D | RKDevice.h | 24 #define SECTOR_SIZE 512 macro 32 #define BYTE2SECTOR(x) (CALC_UNIT(x, SECTOR_SIZE)) 150 BYTE m_backupBuffer[SECTOR_SIZE + SPARE_SIZE];
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ |
| H A D | rfd_ftl.c | 53 #define SECTOR_SIZE 512 macro 140 (i + part->header_sectors_per_block) * SECTOR_SIZE; in build_block_map() 158 sectors_per_block = part->block_size / SECTOR_SIZE; in scan_header() 167 sizeof(u16) + SECTOR_SIZE - 1) / SECTOR_SIZE; in scan_header() 255 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect() 257 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect() 266 memset(buf, 0, SECTOR_SIZE); in rfd_ftl_readsect() 331 sector_data = kmalloc(SECTOR_SIZE, GFP_KERNEL); in move_block_contents() 369 (i + part->header_sectors_per_block) * SECTOR_SIZE; in move_block_contents() 379 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in move_block_contents() [all …]
|
| H A D | ftl.c | 106 #define SECTOR_SIZE 512 macro 398 le32_to_cpu(part->header.BAMOffset), SECTOR_SIZE); in prepare_xfer() 431 u_char buf[SECTOR_SIZE]; in copy_erase_unit() 490 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, in copy_erase_unit() 498 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, in copy_erase_unit() 512 src += SECTOR_SIZE; in copy_erase_unit() 513 dest += SECTOR_SIZE; in copy_erase_unit() 765 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read() 771 memset(buffer, 0, SECTOR_SIZE); in ftl_read() 775 ret = mtd_read(part->mbd.mtd, offset, SECTOR_SIZE, &retlen, in ftl_read() [all …]
|
| H A D | ssfdc.c | 35 #define SECTOR_SIZE 512 macro 112 sect_buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in get_valid_cis_sector() 123 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, in get_valid_cis_sector() 127 if (ret < 0 || retlen != SECTOR_SIZE) { in get_valid_cis_sector() 156 ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf); in read_physical_sector() 157 if (ret < 0 || retlen != SECTOR_SIZE) in read_physical_sector() 400 memset(buf, 0xff, SECTOR_SIZE); in ssfdcr_readsect() 430 .blksize = SECTOR_SIZE,
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-default-key.c | 114 if (dkc->sector_size < SECTOR_SIZE || in default_key_ctr_optional() 131 if (dkc->sector_size != SECTOR_SIZE && !iv_large_sectors) { in default_key_ctr_optional() 224 dkc->sector_size = SECTOR_SIZE; in default_key_ctr() 339 if (dkc->sector_size != SECTOR_SIZE) in default_key_status() 347 if (dkc->sector_size != SECTOR_SIZE) { in default_key_status()
|
| H A D | dm-bow.c | 105 return (range_top(br) - br->sector) * SECTOR_SIZE; in range_size() 110 return bi_iter->bi_sector + bi_iter->bi_size / SECTOR_SIZE; in bvec_top() 198 * SECTOR_SIZE; in split_range() 677 if (bc->block_size < SECTOR_SIZE || in dm_bow_ctr_optional() 955 bi_iter.bi_sector += bi_iter.bi_size / SECTOR_SIZE; in bow_write() 958 * SECTOR_SIZE; in bow_write() 1047 bi_iter.bi_sector += bi_iter.bi_size / SECTOR_SIZE; in add_trim() 1050 * SECTOR_SIZE; in add_trim() 1086 bi_iter.bi_sector += bi_iter.bi_size / SECTOR_SIZE; in remove_trim() 1089 * SECTOR_SIZE; in remove_trim()
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | msdos_fs.h | 13 #ifndef SECTOR_SIZE 14 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro 19 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | msdos_fs.h | 13 #ifndef SECTOR_SIZE 14 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro 19 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | msdos_fs.h | 13 #ifndef SECTOR_SIZE 14 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro 19 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
|
| /OK3568_Linux_fs/kernel/drivers/ide/ |
| H A D | ide-disk_proc.c | 67 buf = kmalloc(SECTOR_SIZE, GFP_KERNEL); in __idedisk_proc_show() 77 for (i = 0; i < SECTOR_SIZE / 2; i++) { in __idedisk_proc_show()
|
| H A D | ide-taskfile.c | 292 nr_bytes = SECTOR_SIZE; in ide_pio_datablock() 309 nr_bytes -= SECTOR_SIZE; in ide_error_cmd() 438 nsect * SECTOR_SIZE, GFP_NOIO); in ide_raw_taskfile() 589 nsect = taskout / SECTOR_SIZE; in ide_taskfile_ioctl() 607 nsect = taskin / SECTOR_SIZE; in ide_taskfile_ioctl()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/syslinux/syslinux/ |
| H A D | 0001-linux-syslinux-support-ext2-3-4-device.patch | 48 static unsigned char sectbuf[SECTOR_SIZE]; 71 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | usb_mass_storage.h | 11 #define SECTOR_SIZE 0x200 macro
|
| H A D | reiserfs.h | 19 #define SECTOR_SIZE 0x200 macro
|
| H A D | rockusb.h | 86 #define SECTOR_SIZE 0x200 macro
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | rockusb.c | 29 memset(buf, 0xcc, blkcnt * SECTOR_SIZE); in rkusb_read_sector() 108 if (block_dev->blksz != SECTOR_SIZE) in rkusb_init()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | diskonchip.c | 116 #define SECTOR_SIZE 512 macro 118 #define NB_DATA (((SECTOR_SIZE + 1) * 8 + 6) / 10) 195 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { in doc_ecc_decode() 198 if (index < SECTOR_SIZE) in doc_ecc_decode() 205 if ((index >= 0 && index < SECTOR_SIZE) || index == (SECTOR_SIZE + 1)) { in doc_ecc_decode() 208 if (index < SECTOR_SIZE) in doc_ecc_decode()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/ulp/iser/ |
| H A D | iscsi_iser.h | 101 ((ISER_DEF_MAX_SECTORS * SECTOR_SIZE) >> ilog2(SZ_4K)) 103 #define ISCSI_ISER_MAX_SG_TABLESIZE ((32768 * SECTOR_SIZE) >> ilog2(SZ_4K))
|