/u-boot/lib/ |
H A D | lz4_wrapper.c | 65 u32 block_header, block_size; local 69 block_size = block_header & ~LZ4F_BLOCKUNCOMPRESSED_FLAG; 71 if (in - src + block_size > srcn) { 76 if (!block_size) { 82 size_t size = min((ptrdiff_t)block_size, (ptrdiff_t)(end - out)); 85 if (size < block_size) { 91 ret = LZ4_decompress_generic(in, out, block_size, 101 in += block_size;
|
/u-boot/include/ |
H A D | scsi_emul.h | 20 * @block_size: Block size of device in bytes (normally 512) 36 int block_size; member in struct:scsi_emul_info
|
H A D | api_public.h | 114 unsigned long block_size; /* size of one block */ member in struct:device_info::__anon440::__anon441
|
/u-boot/drivers/mtd/nand/raw/ |
H A D | fsl_elbc_spl.c | 52 const int block_size = 1 << block_shift; local 59 if (offs & (block_size - 1)) { 92 unsigned int page_offs = (offs & (block_size - 1)) << 1; 109 offs = (offs + block_size) & ~(block_size - 1); 110 pos &= ~(block_size - 1); 119 } while ((offs & (block_size - 1)) && (pos < uboot_size));
|
H A D | octeontx_bch.h | 71 * @param block_size Size of block in bytes, must be a multiple of two. 80 int octeontx_bch_encode(struct bch_vf *vf, dma_addr_t block, u16 block_size, 88 * @param block_size Size of block in bytes, must be a multiple of 102 u16 block_size, u8 bch_level,
|
H A D | octeontx_bch.c | 210 * @param block_size Size of block in bytes, must be a multiple of two. 219 int octeontx_bch_encode(struct bch_vf *vf, dma_addr_t block, u16 block_size, argument 228 cmd.s.cword.size = block_size; 248 * @param block_size Size of block in bytes, must be a multiple of 262 u16 block_size, u8 bch_level, 271 cmd.s.cword.size = block_size; 261 octeontx_bch_decode(struct bch_vf *vf, dma_addr_t block_ecc_in, u16 block_size, u8 bch_level, dma_addr_t block_out, dma_addr_t resp) argument
|
/u-boot/arch/mips/mach-octeon/ |
H A D | cvmx-fpa.c | 197 unsigned int block_size; local 221 block_size = pool_cfg.cn78xx.buf_size << 7; 227 pinfo->buf_size = block_size; 229 /* block_size should be >0 except for POOL=0 which is never enabled*/ 230 if (pool_cfg.cn78xx.ena && block_size == 0) { 303 unsigned int block_size, align; local 319 block_size = pool_cfg.cn78xx.buf_size << 7; 322 /* Assure block_size is legit */ 323 if (block_size > (1 << 17)) { 325 __func__, pool.node, pool.lpool, block_size); 469 unsigned int block_size = cvmx_fpa_get_block_size(pool); local 524 cvmx_fpa1_pool_init(cvmx_fpa1_pool_t pool_id, int num_blocks, int block_size, void *buffer) argument 761 cvmx_fpa3_setup_fill_pool(int node, int desired_pool, const char *name, unsigned int block_size, unsigned int num_blocks, void *buffer) argument 854 cvmx_fpa3_set_aura_for_pool(cvmx_fpa3_pool_t pool, int desired_aura, const char *name, unsigned int block_size, unsigned int num_blocks) argument 933 cvmx_fpa3_setup_aura_and_pool(int node, int desired_aura, const char *name, void *buffer, unsigned int block_size, unsigned int num_blocks) argument 1049 cvmx_fpa1_setup_pool(int desired_pool, const char *name, void *buffer, unsigned int block_size, unsigned int num_blocks) argument 1109 cvmx_fpa_setup_pool(int pool, const char *name, void *buffer, u64 block_size, u64 num_blocks) argument [all...] |
/u-boot/drivers/scsi/ |
H A D | scsi_emul.c | 48 blocks = info->file_size / info->block_size - 1; 52 resp->block_len = cpu_to_be32(info->block_size); 61 info->buff_used = info->read_len * info->block_size; 70 info->buff_used = info->write_len * info->block_size;
|
H A D | sandbox_scsi.c | 54 os_lseek(priv->fd, info->seek_block * info->block_size, 105 info->block_size = SANDBOX_SCSI_BLOCK_LEN;
|
/u-boot/drivers/block/ |
H A D | efi_blk.c | 40 blkcnt * io->media->block_size, buffer); 68 blkcnt * io->media->block_size, (void *)buffer); 98 dev_seq(dev), plat->blkio->media->block_size,
|
/u-boot/lib/efi_loader/ |
H A D | efi_hii_config.c | 58 const efi_uintn_t block_size, 63 block, block_size, config, progress); 72 const efi_uintn_t *block_size, 76 block, block_size, progress); 55 block_to_config(const struct efi_hii_config_routing_protocol *this, const efi_string_t config_request, const u8 *block, const efi_uintn_t block_size, efi_string_t *config, efi_string_t *progress) argument 69 config_to_block(const struct efi_hii_config_routing_protocol *this, const efi_string_t config_resp, const u8 *block, const efi_uintn_t *block_size, efi_string_t *progress) argument
|
H A D | efi_disk.c | 110 blksz = diskobj->media.block_size; 183 if (lba * this->media->block_size + buffer_size > 184 (this->media->last_block + 1) * this->media->block_size) 194 EFI_LOADER_BOUNCE_BUFFER_SIZE / this->media->block_size, 251 if (lba * this->media->block_size + buffer_size > 252 (this->media->last_block + 1) * this->media->block_size) 262 EFI_LOADER_BOUNCE_BUFFER_SIZE / this->media->block_size, 516 diskobj->media.block_size = desc->blksz;
|
/u-boot/drivers/ddr/marvell/axp/ |
H A D | xor.h | 67 int mv_xor_mem_init(u32 chan, u32 start_ptr, unsigned long long block_size,
|
H A D | xor.c | 155 int mv_xor_mem_init(u32 chan, u32 start_ptr, unsigned long long block_size, argument 167 if ((block_size < XEXBSR_BLOCK_SIZE_MIN_VALUE) || 168 (block_size > XEXBSR_BLOCK_SIZE_MAX_VALUE)) 188 block_size);
|
/u-boot/drivers/misc/ |
H A D | rockchip-efuse.c | 56 int block_size; member in struct:rockchip_efuse_data 241 if (data->block_size <= 1) { 246 block_start = offset / data->block_size; 247 block_offset = offset % data->block_size; 248 block_end = DIV_ROUND_UP(offset + size, data->block_size); 251 buffer = calloc(blocks, data->block_size); 297 .block_size = 4, 303 .block_size = 4,
|
H A D | rockchip-otp.c | 81 int block_size; member in struct:rockchip_otp_data 303 if (data->block_size <= 1) { 308 block_start = offset / data->block_size; 309 block_offset = offset % data->block_size; 310 block_end = DIV_ROUND_UP(offset + size, data->block_size); 313 buffer = calloc(blocks, data->block_size); 362 .block_size = 2, 369 .block_size = 4,
|
/u-boot/drivers/ddr/marvell/a38x/ |
H A D | xor.c | 165 int mv_xor_mem_init(u32 chan, u32 start_ptr, unsigned long long block_size, argument 170 if (block_size == _4G) 171 block_size -= 1; 180 if ((block_size < XEXBSR_BLOCK_SIZE_MIN_VALUE) || 181 (block_size > XEXBSR_BLOCK_SIZE_MAX_VALUE)) 201 block_size);
|
/u-boot/test/image/ |
H A D | spl_load_fs.c | 50 u32 block_size = EXT2_MIN_BLOCK_SIZE; local 53 u32 file_blocks = (size + block_size - 1) / block_size; 55 u32 inodes = block_size / inode_size; 60 struct ext2_sblock *sblock = dst + super_block * block_size; 61 struct ext2_block_group *bg = dst + group_block * block_size; 62 struct ext2_inode *inode_table = dst + inode_table_block * block_size; 67 struct ext2_dirent *dot = dst + root_block * block_size; 73 if (blocks > block_size * 8) 80 *data_offset = file_block * block_size; [all...] |
/u-boot/lib/efi_driver/ |
H A D | efi_block_device.c | 71 (efi_uintn_t)io->media->block_size, buffer)); 100 (efi_uintn_t)io->media->block_size, 137 devnum, io->media->block_size,
|
/u-boot/fs/squashfs/ |
H A D | sqfs_inode.c | 111 __le32 block_size) 127 sz = sqfs_inode_size(base, le32_to_cpu(block_size)); 110 sqfs_find_inode(void *inode_table, int inode_number, __le32 inode_count, __le32 block_size) argument
|
/u-boot/test/py/tests/ |
H A D | test_fpga.py | 444 block_size = f['loadfs_block_size'] 448 output = u_boot_console.run_command('fpga loadfs %x %x %x %s' % (addr, bit_size, block_size, bit)) 454 output = u_boot_console.run_command('fpga loadfs %x %x %x %x %s 0' % (dev, addr, bit_size, block_size, bit)) 459 output = u_boot_console.run_command('fpga loadfs %x %x %x %x %s' % (dev, 0, bit_size, block_size, bit)) 465 output = u_boot_console.run_command('fpga loadfs %x %x %x %x %s' % (dev, addr, 0, block_size, bit)) 476 output = u_boot_console.run_command('fpga loadfs %x %x %x %x mmc 0 noname' % (dev, addr, bit_size, block_size)) 482 output = u_boot_console.run_command('fpga loadfs %d %x %x %x mmc 0 noname' % (-1, addr, bit_size, block_size)) 498 block_size = f['loadfs_block_size'] 502 output = u_boot_console.run_command('fpga loadfs %x %x %x %x %s && echo %s' % (dev, addr, bit_size, block_size, bit, expected_text))
|
/u-boot/arch/mips/mach-octeon/include/mach/ |
H A D | cvmx-fpa3.h | 385 int block_size; local 390 block_size = pool_cfg.cn78xx.buf_size << 7; 391 return block_size; 490 unsigned int block_size, unsigned int num_blocks, 500 * @param block_size - size of buffers to use 506 const char *name, unsigned int block_size, 515 * @param block_size - size of buffers in pool 519 void *buffer, unsigned int block_size,
|
H A D | cvmx-fpa.h | 195 * @param block_size Size for each block controlled by the FPA 201 int cvmx_fpa_setup_pool(int pool, const char *name, void *buffer, u64 block_size, u64 num_blocks);
|
/u-boot/drivers/usb/emul/ |
H A D | sandbox_flash.c | 198 offset = os_lseek(priv->fd, info->seek_block * info->block_size, 254 info->write_len -= len / info->block_size; 284 info->read_len -= len / info->block_size; 356 info->block_size = SANDBOX_FLASH_BLOCK_LEN;
|
/u-boot/lib/efi_selftest/ |
H A D | efi_selftest_block_device.c | 198 block_io.media->block_size = 1 << LB_BLOCK_SIZE; 401 if (system_info.info.block_size != 512) { 403 system_info.info.block_size); 467 block_io_protocol->media->block_size,
|