Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 25 of 59) sorted by relevance

123

/u-boot/fs/ext4/
A Dext4fs.c60 int blocksize = (1 << (log2_fs_blocksize + log2blksz)); in ext4fs_read_file() local
78 if (blocksize <= 0 || len <= 0) { in ext4fs_read_file()
83 blockcnt = lldiv(((len + pos) + blocksize - 1), blocksize); in ext4fs_read_file()
85 for (i = lldiv(pos, blocksize); i < blockcnt; i++) { in ext4fs_read_file()
87 int blockoff = pos - (blocksize * i); in ext4fs_read_file()
88 int blockend = blocksize; in ext4fs_read_file()
100 blockend = (len + pos) - (blocksize * i); in ext4fs_read_file()
104 blockend = blocksize; in ext4fs_read_file()
108 if (i == lldiv(pos, blocksize)) { in ext4fs_read_file()
161 n = blocksize - skipfirst; in ext4fs_read_file()
[all …]
/u-boot/cmd/
A Donenand.c74 ops.ooblen = blocksize; in onenand_block_read()
76 ops.len = blocksize; in onenand_block_read()
83 ofs += blocksize; in onenand_block_read()
96 ofs += blocksize; in onenand_block_read()
99 ofs += blocksize; in onenand_block_read()
100 buf += blocksize; in onenand_block_read()
176 buf += blocksize; in onenand_block_write()
180 ofs += blocksize; in onenand_block_write()
205 instr.len = blocksize; in onenand_block_erase()
271 instr.len = blocksize; in onenand_block_test()
[all …]
/u-boot/drivers/fpga/
A Dzynqpl.c342 size_t bsize, u32 blocksize, u32 *swap, in zynq_validate_bitstream() argument
348 buf_start = check_data((u8 *)buf, blocksize, swap); in zynq_validate_bitstream()
428 loff_t blocksize, actread; in zynq_loadfs() local
434 blocksize = fsinfo->blocksize; in zynq_loadfs()
453 buf = zynq_align_dma_buffer((u32 *)buf, blocksize, swap); in zynq_loadfs()
455 if (zynq_dma_transfer((u32)buf | 1, blocksize >> 2, in zynq_loadfs()
459 bsize -= blocksize; in zynq_loadfs()
460 pos += blocksize; in zynq_loadfs()
465 if (bsize > blocksize) { in zynq_loadfs()
472 } while (bsize > blocksize); in zynq_loadfs()
[all …]
A Dzynqmppl.c175 size_t bsize, u32 blocksize, u32 *swap) in zynqmp_validate_bitstream() argument
180 buf_start = check_data((u8 *)buf, blocksize, swap); in zynqmp_validate_bitstream()
/u-boot/env/
A Dnand.c126 size_t blocksize, len; in writeenv() local
134 blocksize = mtd->erasesize; in writeenv()
135 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in writeenv()
139 offset += blocksize; in writeenv()
145 offset += blocksize; in writeenv()
247 size_t blocksize, len; in readenv() local
255 blocksize = mtd->erasesize; in readenv()
256 len = min(blocksize, (size_t)CONFIG_ENV_SIZE); in readenv()
260 offset += blocksize; in readenv()
268 offset += blocksize; in readenv()
/u-boot/drivers/mmc/
A Dsh_sdhi.c278 unsigned short blocksize, i; in sh_sdhi_single_read() local
302 for (i = 0; i < blocksize / 8; i++) in sh_sdhi_single_read()
305 for (i = 0; i < blocksize / 2; i++) in sh_sdhi_single_read()
319 unsigned short blocksize, i, sec; in sh_sdhi_multi_read() local
345 for (i = 0; i < blocksize / 8; i++) in sh_sdhi_multi_read()
348 for (i = 0; i < blocksize / 2; i++) in sh_sdhi_multi_read()
359 unsigned short blocksize, i; in sh_sdhi_single_write() local
387 for (i = 0; i < blocksize / 8; i++) in sh_sdhi_single_write()
390 for (i = 0; i < blocksize / 2; i++) in sh_sdhi_single_write()
404 unsigned short i, sec, blocksize; in sh_sdhi_multi_write() local
[all …]
A Dsandbox_mmc.c79 memcpy(data->dest, &priv->buf[cmd->cmdarg * data->blocksize], in sandbox_mmc_send_cmd()
80 data->blocks * data->blocksize); in sandbox_mmc_send_cmd()
84 memcpy(&priv->buf[cmd->cmdarg * data->blocksize], data->src, in sandbox_mmc_send_cmd()
85 data->blocks * data->blocksize); in sandbox_mmc_send_cmd()
A Dtmio-common.c168 char *pbuf, uint blocksize) in tmio_sd_pio_read_one_block() argument
186 tmio_pio_read_fifo_64(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block()
188 tmio_pio_read_fifo_16(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block()
190 tmio_pio_read_fifo_32(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block()
221 const char *pbuf, uint blocksize) in tmio_sd_pio_write_one_block() argument
235 tmio_pio_write_fifo_64(priv, pbuf, blocksize); in tmio_sd_pio_write_one_block()
254 data->blocksize); in tmio_sd_pio_xfer()
257 data->blocksize); in tmio_sd_pio_xfer()
262 dest += data->blocksize; in tmio_sd_pio_xfer()
264 src += data->blocksize; in tmio_sd_pio_xfer()
[all …]
A Dsh_mmcif.c189 u32 blocksize, i; in sh_mmcif_single_read() local
206 blocksize = (BLOCK_SIZE_MASK & in sh_mmcif_single_read()
208 for (i = 0; i < blocksize / 4; i++) in sh_mmcif_single_read()
225 u32 blocksize, i, j; in sh_mmcif_multi_read() local
242 for (i = 0; i < blocksize / 4; i++) in sh_mmcif_multi_read()
254 u32 blocksize, i; in sh_mmcif_single_write() local
270 blocksize = (BLOCK_SIZE_MASK & in sh_mmcif_single_write()
272 for (i = 0; i < blocksize / 4; i++) in sh_mmcif_single_write()
290 u32 i, j, blocksize; in sh_mmcif_multi_write() local
309 for (i = 0; i < blocksize / 4; i++) in sh_mmcif_multi_write()
[all …]
A Ddw_mmc.c75 cnt = data->blocksize * blk_cnt; in dwmci_prepare_data()
77 cnt = data->blocksize * 8; in dwmci_prepare_data()
100 dwmci_writel(host, DWMCI_BLKSIZ, data->blocksize); in dwmci_prepare_data()
101 dwmci_writel(host, DWMCI_BYTCNT, data->blocksize * data->blocks); in dwmci_prepare_data()
147 size = data->blocksize * data->blocks; in dwmci_data_transfer()
273 dwmci_writel(host, DWMCI_BLKSIZ, data->blocksize);
275 data->blocksize * data->blocks);
281 data->blocksize *
286 data->blocksize *
A Dmxsmmc.c224 uint32_t data_count = data->blocksize * data->blocks; in mxsmmc_send_cmd_pio()
256 uint32_t data_count = data->blocksize * data->blocks; in mxsmmc_send_cmd_dma()
363 if (data && (data->blocksize * data->blocks < MXSMMC_SMALL_TRANSFER))
393 reg = data->blocksize * data->blocks;
400 ((ffs(data->blocksize) - 1) <<
407 ((ffs(data->blocksize) - 1) <<
458 if (data->blocksize * data->blocks < MXSMMC_SMALL_TRANSFER) {
A Drpmb.c116 data.blocksize = MMC_MAX_BLOCK_LEN; in mmc_rpmb_request()
148 data.blocksize = MMC_MAX_BLOCK_LEN; in mmc_rpmb_response()
341 .blocksize = sizeof(*frm), in send_write_mult_block()
358 .blocksize = sizeof(*frm), in send_read_mult_block()
A Dsdhci-adma.c45 uint trans_bytes = data->blocksize * data->blocks; in sdhci_prepare_adma_table()
A Diproc_sdhci.c184 u32 blocksize = SDHCI_MAKE_BLKSZ(SDHCI_DEFAULT_BOUNDARY_ARG, 64); in sdhci_iproc_execute_tuning() local
196 blocksize = SDHCI_MAKE_BLKSZ(SDHCI_DEFAULT_BOUNDARY_ARG, 128); in sdhci_iproc_execute_tuning()
198 sdhci_writew(host, blocksize, SDHCI_BLOCK_SIZE); in sdhci_iproc_execute_tuning()
A Dmeson_gx_mmc.c145 cfg |= ilog2(data->blocksize) << CFG_BL_LEN_SHIFT; in meson_mmc_setup_cmd()
168 data_size = data->blocks * data->blocksize; in meson_mmc_setup_addr()
207 if (data && data->blocksize > 512) in meson_dm_mmc_send_cmd()
A Darm_pl180_mmci.c233 u32 data_len = (u32) (data->blocks * data->blocksize); in do_data_transfer()
236 blksz = (ffs(data->blocksize) - 1); in do_data_transfer()
239 blksz = data->blocksize; in do_data_transfer()
257 (u32)data->blocksize); in do_data_transfer()
265 (u32)data->blocksize); in do_data_transfer()
/u-boot/fs/reiserfs/
A Dreiserfs.c310 INFO->blocksize = sb_blocksize(&super); in reiserfs_mount()
318 INFO->version, INFO->blocksize); in reiserfs_mount()
362 memcpy (LEAF, ROOT, INFO->blocksize); in reiserfs_mount()
588 unsigned int blocksize; in reiserfs_read() local
616 filepos, len, offset, blocksize); in reiserfs_read()
620 && offset < blocksize) in reiserfs_read()
624 offset, blocksize); in reiserfs_read()
626 to_read = blocksize - offset; in reiserfs_read()
635 blocksize = (blocksize >> 2) << INFO->fullblocksize_shift; in reiserfs_read()
638 offset, blocksize); in reiserfs_read()
[all …]
/u-boot/fs/btrfs/
A Dextent-io.c565 u64 bytenr, u32 blocksize) in __alloc_extent_buffer() argument
572 eb->data = malloc_cache_aligned(blocksize); in __alloc_extent_buffer()
579 eb->len = blocksize; in __alloc_extent_buffer()
583 eb->cache_node.size = blocksize; in __alloc_extent_buffer()
585 memset_extent_buffer(eb, 0, 0, blocksize); in __alloc_extent_buffer()
642 u64 bytenr, u32 blocksize) in find_extent_buffer() argument
649 cache->size == blocksize) { in find_extent_buffer()
671 u64 bytenr, u32 blocksize) in alloc_extent_buffer() argument
679 cache->size == blocksize) { in alloc_extent_buffer()
698 tree->cache_size += blocksize; in alloc_extent_buffer()
[all …]
A Dextent-io.h130 u64 bytenr, u32 blocksize);
134 u64 bytenr, u32 blocksize);
137 u64 bytenr, u32 blocksize);
A Ddisk-io.h23 u64 bytenr, u32 blocksize);
/u-boot/arch/arm/cpu/armv8/
A Dcache_v8.c213 u64 blocksize; in add_map() local
230 blocksize = 1ULL << level2shift(level); in add_map()
232 virt, size, blocksize); in add_map()
233 if (size >= blocksize && !(virt & (blocksize - 1))) { in add_map()
241 virt += blocksize; in add_map()
242 phys += blocksize; in add_map()
243 size -= blocksize; in add_map()
248 virt, blocksize); in add_map()
253 virt, blocksize); in add_map()
/u-boot/tools/
A Dkwbimage.h37 uint32_t blocksize; /* 0x4-0x7 */ member
75 uint32_t blocksize; /* 0x4-0x7 */ member
/u-boot/drivers/mtd/spi/
A Dsf_dataflash.c125 unsigned blocksize; in spi_dataflash_erase() local
134 blocksize = spi_flash->page_size << 3; in spi_dataflash_erase()
168 do_block = (pageaddr & 0x7) == 0 && len >= blocksize; in spi_dataflash_erase()
194 offset += blocksize; in spi_dataflash_erase()
195 len -= blocksize; in spi_dataflash_erase()
/u-boot/include/
A Dfpga.h41 unsigned int blocksize; member
/u-boot/drivers/mtd/nand/raw/
A Dnand_util.c577 int rval = 0, blocksize; in nand_write_skip_bad() local
586 blocksize = mtd->erasesize; in nand_write_skip_bad()
650 if (left_to_write < (blocksize - block_offset)) in nand_write_skip_bad()
653 write_size = blocksize - block_offset; in nand_write_skip_bad()

Completed in 37 milliseconds

123