Home
last modified time | relevance | path

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

1234

/rk3399_rockchip-uboot/test/rockchip/
H A Dtest-storage.c77 u32 blocks, round, sector; in do_test_storage() local
130 blocks = part.size > 0x10000 ? 0x10000 : part.size; in do_test_storage()
134 if (blocks % 2) in do_test_storage()
135 blocks += 1; in do_test_storage()
139 sector, sector + blocks, in do_test_storage()
140 (blocks * dev_desc->blksz) >> 20, round); in do_test_storage()
144 w_buf = sysmem_alloc_by_name("storage_w", blocks * dev_desc->blksz); in do_test_storage()
146 w_buf = memalign(CONFIG_SYS_CACHELINE_SIZE, blocks * dev_desc->blksz); in do_test_storage()
154 r_buf = sysmem_alloc_by_name("storage_r", blocks * dev_desc->blksz); in do_test_storage()
156 r_buf = memalign(CONFIG_SYS_CACHELINE_SIZE, blocks * dev_desc->blksz); in do_test_storage()
[all …]
/rk3399_rockchip-uboot/arch/arm/cpu/armv8/
H A Dsha256_ce_glue.c12 uint32_t blocks);
15 unsigned int blocks) in sha256_process() argument
17 if (!blocks) in sha256_process()
20 sha256_armv8_ce_process(ctx->state, data, blocks); in sha256_process()
H A Dsha1_ce_glue.c12 uint32_t blocks);
15 unsigned int blocks) in sha1_process() argument
17 if (!blocks) in sha1_process()
20 sha1_armv8_ce_process(ctx->state, data, blocks); in sha1_process()
/rk3399_rockchip-uboot/fs/ext4/
H A Dext4_sparse.c61 ulong offset, ulong blocks) in flash_write_data() argument
64 long left = blocks; /* signed long ! */ in flash_write_data()
69 printf(" lba: 0x%08lx - 0x%08lx\n", lba, lba + blocks); in flash_write_data()
74 sha256_csum(data, blocks * desc->blksz, hash); in flash_write_data()
99 static int flash_fill_data(struct blk_desc *desc, ulong offset, ulong blocks, in flash_fill_data() argument
103 long left = blocks; /* signed long ! */ in flash_fill_data()
114 printf(" lba: 0x%08lx - 0x%08lx\n", lba, lba + blocks); in flash_fill_data()
H A Dext4_write.c153 if (inode->b.blocks.indir_block != 0) { in delete_single_indirect_block()
154 blknr = le32_to_cpu(inode->b.blocks.indir_block); in delete_single_indirect_block()
203 if (inode->b.blocks.double_indir_block != 0) { in delete_double_indirect_block()
210 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block()
250 blknr = le32_to_cpu(inode->b.blocks.double_indir_block); in delete_double_indirect_block()
302 if (inode->b.blocks.triple_indir_block != 0) { in delete_triple_indirect_block()
309 blknr = le32_to_cpu(inode->b.blocks.triple_indir_block); in delete_triple_indirect_block()
403 blknr = le32_to_cpu(inode->b.blocks.triple_indir_block); in delete_triple_indirect_block()
473 inode.b.blocks.dir_blocks; in ext4fs_delete_file()
/rk3399_rockchip-uboot/lib/efi_loader/
H A Defi_disk.c59 int blocks; in efi_disk_rw_blocks() local
65 blocks = buffer_size / blksz; in efi_disk_rw_blocks()
69 __LINE__, blocks, lba, blksz, direction); in efi_disk_rw_blocks()
76 n = blk_dread(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
78 n = blk_dwrite(desc, lba, blocks, buffer); in efi_disk_rw_blocks()
83 debug("EFI: %s:%d n=%lx blocks=%x\n", __func__, __LINE__, n, blocks); in efi_disk_rw_blocks()
85 if (n != blocks) in efi_disk_rw_blocks()
/rk3399_rockchip-uboot/test/py/
H A Dmultiplexed_log.py221 self.blocks = []
395 self.blocks.append(marker)
400 blk_path = '/'.join(self.blocks)
422 if (not self.blocks) or (marker != self.blocks[-1]):
424 (marker, '/'.join(self.blocks)))
431 blk_path = '/'.join(self.blocks)
436 self.blocks.pop()
/rk3399_rockchip-uboot/drivers/scsi/
H A Dscsi.c61 unsigned long blocks) in scsi_setup_read16() argument
74 pccb->cmd[11] = (unsigned char)(blocks >> 24) & 0xff; in scsi_setup_read16()
75 pccb->cmd[12] = (unsigned char)(blocks >> 16) & 0xff; in scsi_setup_read16()
76 pccb->cmd[13] = (unsigned char)(blocks >> 8) & 0xff; in scsi_setup_read16()
77 pccb->cmd[14] = (unsigned char)blocks & 0xff; in scsi_setup_read16()
90 unsigned short blocks) in scsi_setup_read_ext() argument
99 pccb->cmd[7] = (unsigned char)(blocks >> 8) & 0xff; in scsi_setup_read_ext()
100 pccb->cmd[8] = (unsigned char)blocks & 0xff; in scsi_setup_read_ext()
111 unsigned short blocks) in scsi_setup_write_ext() argument
120 pccb->cmd[7] = ((unsigned char)(blocks >> 8)) & 0xff; in scsi_setup_write_ext()
[all …]
/rk3399_rockchip-uboot/board/birdland/bav335x/
H A DREADME21 The following blocks are required:
28 define additional text blocks (such as for NAND or DFU strings). Also
30 the IP blocks, so both areas will need their choices updated to reflect
/rk3399_rockchip-uboot/cmd/
H A Donenand.c65 int blocks = (int) len >> this->erase_shift; in onenand_block_read() local
78 while (blocks) { in onenand_block_read()
101 blocks--; in onenand_block_read()
136 int blocks = len >> this->erase_shift; in onenand_block_write() local
157 while (blocks) { in onenand_block_write()
177 blocks--; in onenand_block_write()
227 int blocks; in onenand_block_test() local
258 blocks = start_block; in onenand_block_test()
260 while (blocks < end_block) { in onenand_block_test()
295 blocks++; in onenand_block_test()
H A Dfdc.c406 int fdc_read_data(unsigned char *buffer, unsigned long blocks,FDC_COMMAND_STRUCT *pCMD, FD_GEO_STRU… in fdc_read_data() argument
439 if(readblk>blocks) /* is end within 1st track */ in fdc_read_data()
440 readblk=blocks; /* yes, correct it */ in fdc_read_data()
501 blocks-=readblk; /* update blocks */ in fdc_read_data()
502 if(blocks==0) in fdc_read_data()
507 if(readblk>blocks) in fdc_read_data()
508 readblk=blocks; in fdc_read_data()
/rk3399_rockchip-uboot/drivers/mmc/
H A Dmxsmmc.c60 uint32_t data_count = data->blocksize * data->blocks; in mxsmmc_send_cmd_pio()
92 uint32_t data_count = data->blocksize * data->blocks; in mxsmmc_send_cmd_dma()
181 if (data && (data->blocksize * data->blocks < MXSMMC_SMALL_TRANSFER)) in mxsmmc_send_cmd()
211 reg = data->blocksize * data->blocks; in mxsmmc_send_cmd()
217 ((data->blocks - 1) << SSP_CMD0_BLOCK_COUNT_OFFSET) | in mxsmmc_send_cmd()
223 reg = ((data->blocks - 1) << in mxsmmc_send_cmd()
277 if (data->blocksize * data->blocks < MXSMMC_SMALL_TRANSFER) { in mxsmmc_send_cmd()
H A Dfsl_esdhc.c132 if (data->blocks > 1) { in esdhc_xfertyp()
169 uint blocks; in esdhc_pio_read_write() local
177 blocks = data->blocks; in esdhc_pio_read_write()
179 while (blocks) { in esdhc_pio_read_write()
197 blocks--; in esdhc_pio_read_write()
200 blocks = data->blocks; in esdhc_pio_read_write()
202 while (blocks) { in esdhc_pio_read_write()
220 blocks--; in esdhc_pio_read_write()
257 (ulong)data->src+data->blocks in esdhc_setup_data()
285 esdhc_write32(&regs->blkattr, data->blocks << 16 | data->blocksize); in esdhc_setup_data()
[all …]
H A Ddw_mmc.c125 blk_cnt = data->blocks; in dwmci_prepare_data()
163 dwmci_writel(host, DWMCI_BYTCNT, data->blocksize * data->blocks); in dwmci_prepare_data()
211 size = data->blocksize * data->blocks; in dwmci_data_transfer()
365 data ? DIV_ROUND_UP(data->blocks, 8) : 0);
385 data->blocksize * data->blocks);
392 data->blocks, GEN_BB_WRITE);
397 data->blocks, GEN_BB_READ);
521 cur_idmac = malloc(ROUND(DIV_ROUND_UP(data->blocks, 8) *
541 data->blocksize * data->blocks);
547 data->blocks, GEN_BB_WRITE);
[all …]
H A Duniphier-sd.c276 for (i = 0; i < data->blocks; i++) { in uniphier_sd_pio_xfer()
314 unsigned int blocks) in uniphier_sd_dma_wait_for_irq() argument
317 long wait = 1000000 + 10 * blocks; in uniphier_sd_dma_wait_for_irq()
339 size_t len = data->blocks * data->blocksize; in uniphier_sd_dma_xfer()
366 ret = uniphier_sd_dma_wait_for_irq(dev, poll_flag, data->blocks); in uniphier_sd_dma_xfer()
419 writel(data->blocks, priv->regbase + UNIPHIER_SD_SECCNT); in uniphier_sd_send_cmd()
424 if (data->blocks > 1) in uniphier_sd_send_cmd()
H A Dsunxi_mmc.c278 unsigned byte_cnt = data->blocksize * data->blocks; in mmc_trans_data_by_cpu()
356 if (data->blocks > 1) in sunxi_mmc_send_cmd_common()
359 writel(data->blocks * data->blocksize, &priv->reg->bytecnt); in sunxi_mmc_send_cmd_common()
377 bytecnt = data->blocksize * data->blocks; in sunxi_mmc_send_cmd_common()
398 data->blocks > 1 ? in sunxi_mmc_send_cmd_common()
H A Dmmc_spi.c220 data->flags, data->blocks, data->blocksize); in mmc_spi_request()
223 data->blocks, data->blocksize); in mmc_spi_request()
226 data->blocks, data->blocksize, in mmc_spi_request()
/rk3399_rockchip-uboot/doc/
H A DREADME.nand13 Print a list of all of the bad blocks in the current device.
26 and write commands). Only complete erase blocks can be erased.
35 This command will not erase blocks that are marked bad. There is
36 a debug option in cmd_nand.c to allow bad blocks to be erased.
37 Please read the warning there before using it, as blocks marked
52 for bad blocks or ECC errors.
59 As JFFS2 skips blocks similarly, this allows writing a JFFS2 image,
61 bad blocks. Compact images, such as those produced by mkfs.jffs2
63 going to be trouble if there are any bad blocks.
79 for bad blocks.
[all …]
H A DREADME.ubispl51 implementations only use the first couple of blocks, but the code
87 * MY_NAND_NR_SPL_PEBS is the number of physical erase blocks
120 * The flash reports the total number of erase blocks, so
121 * we need to subtract the number of blocks which are reserved
/rk3399_rockchip-uboot/drivers/block/
H A Dblkcache.c146 void blkcache_configure(unsigned blocks, unsigned entries) in blkcache_configure() argument
149 if ((blocks != _stats.max_blocks_per_entry) || in blkcache_configure()
161 _stats.max_blocks_per_entry = blocks; in blkcache_configure()
H A DKconfig8 reading, writing and (in some cases) erasing blocks. Block
20 reading, writing and (in some cases) erasing blocks. Block
47 This allows access to raw blocks and filesystems on an IDE drive
/rk3399_rockchip-uboot/tools/rockchip/
H A Dresource_tool.c712 static bool StorageWriteLba(int offset_block, void *data, int blocks) in StorageWriteLba() argument
724 if (!fwrite(data, blocks * BLOCK_SIZE, 1, file)) { in StorageWriteLba()
735 static bool StorageReadLba(int offset_block, void *data, int blocks) in StorageReadLba() argument
746 if (!fread(data, blocks * BLOCK_SIZE, 1, file)) { in StorageReadLba()
761 int blocks = len / BLOCK_SIZE; in write_data() local
762 if (blocks && !StorageWriteLba(offset_block, data, blocks)) { in write_data()
768 memcpy(buf, data + blocks * BLOCK_SIZE, left); in write_data()
769 if (!StorageWriteLba(offset_block + blocks, buf, 1)) in write_data()
778 static int load_file(const char *file_path, int offset_block, int blocks);
788 int blocks = 0; in test_load() local
[all …]
/rk3399_rockchip-uboot/doc/device-tree-bindings/misc/
H A Dcros-ec.txt17 - optimise-flash-write : Boolean property - if present then flash blocks
19 uses that pattern for erased blocks
/rk3399_rockchip-uboot/drivers/usb/emul/
H A Dsandbox_flash.c272 uint blocks; in handle_ufi_command() local
275 blocks = priv->file_size / SANDBOX_FLASH_BLOCK_LEN - 1; in handle_ufi_command()
277 blocks = 0; in handle_ufi_command()
278 resp->last_block_addr = cpu_to_be32(blocks); in handle_ufi_command()
/rk3399_rockchip-uboot/arch/arm/dts/
H A Dsama5d3_tcb1.dtsi3 * 2 TC blocks.

1234