Home
last modified time | relevance | path

Searched refs:BLOCK_SIZE (Results 1 – 25 of 37) sorted by relevance

12

/OK3568_Linux_fs/kernel/init/
H A Ddo_mounts_rd.c85 pos = start_block * BLOCK_SIZE; in identify_ramdisk_image()
106 nblocks = (ntohl(romfsb->size)+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS; in identify_ramdisk_image()
114 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
123 nblocks = (le64_to_cpu(squashfsb->bytes_used) + BLOCK_SIZE - 1) in identify_ramdisk_image()
131 pos = start_block * BLOCK_SIZE + 0x200; in identify_ramdisk_image()
138 nblocks = (cramfsb->size + BLOCK_SIZE - 1) >> BLOCK_SIZE_BITS; in identify_ramdisk_image()
145 pos = (start_block + 1) * BLOCK_SIZE; in identify_ramdisk_image()
206 in_pos = rd_image_start * BLOCK_SIZE; in rd_load_image()
241 buf = kmalloc(BLOCK_SIZE, GFP_KERNEL); in rd_load_image()
256 kernel_read(in_file, buf, BLOCK_SIZE, &in_pos); in rd_load_image()
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/test/
H A Dtest_crypto_mem.c11 #define BLOCK_SIZE 512 * 1024 macro
25 mem[count] = rk_crypto_mem_alloc(BLOCK_SIZE); in test_crypto_mem()
29 (BLOCK_SIZE / 1024), count); in test_crypto_mem()
36 (BLOCK_SIZE / 1024), count); in test_crypto_mem()
/OK3568_Linux_fs/kernel/arch/alpha/boot/tools/
H A Dobjstrip.c37 #define BLOCK_SIZE 512 macro
76 pad = BLOCK_SIZE; in main()
123 size = (st.st_size + BLOCK_SIZE - 1) & ~(BLOCK_SIZE - 1); in main()
126 bb[60] = size / BLOCK_SIZE; /* count */ in main()
/OK3568_Linux_fs/kernel/scripts/
H A Dresource_tool.c585 #define BLOCK_SIZE 512 macro
657 return (size + BLOCK_SIZE - 1) / BLOCK_SIZE; in fix_blocks()
718 int offset = offset_block * BLOCK_SIZE; in StorageWriteLba()
724 if (!fwrite(data, blocks * BLOCK_SIZE, 1, file)) { in StorageWriteLba()
741 int offset = offset_block * BLOCK_SIZE; in StorageReadLba()
746 if (!fread(data, blocks * BLOCK_SIZE, 1, file)) { in StorageReadLba()
761 int blocks = len / BLOCK_SIZE; in write_data()
765 int left = len % BLOCK_SIZE; in write_data()
767 char buf[BLOCK_SIZE] = "\0"; in write_data()
768 memcpy(buf, data + blocks * BLOCK_SIZE, left); in write_data()
[all …]
/OK3568_Linux_fs/u-boot/tools/rockchip/
H A Dresource_tool.c585 #define BLOCK_SIZE 512 macro
657 return (size + BLOCK_SIZE - 1) / BLOCK_SIZE; in fix_blocks()
718 int offset = offset_block * BLOCK_SIZE; in StorageWriteLba()
724 if (!fwrite(data, blocks * BLOCK_SIZE, 1, file)) { in StorageWriteLba()
741 int offset = offset_block * BLOCK_SIZE; in StorageReadLba()
746 if (!fread(data, blocks * BLOCK_SIZE, 1, file)) { in StorageReadLba()
761 int blocks = len / BLOCK_SIZE; in write_data()
765 int left = len % BLOCK_SIZE; in write_data()
767 char buf[BLOCK_SIZE] = "\0"; in write_data()
768 memcpy(buf, data + blocks * BLOCK_SIZE, left); in write_data()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/syscalls/
H A Drtas_filter.c32 #define BLOCK_SIZE 4096 macro
61 buf_size += BLOCK_SIZE; in read_entire_file()
70 rc = read(fd, *buf + off, BLOCK_SIZE); in read_entire_file()
75 } while (rc == BLOCK_SIZE); in read_entire_file()
/OK3568_Linux_fs/u-boot/tools/
H A Dmksunxiboot.c59 #define BLOCK_SIZE 0x2000 macro
64 char pad[BLOCK_SIZE];
147 ALIGN(file_size + sizeof(struct boot_file_head), BLOCK_SIZE); in main()
/OK3568_Linux_fs/yocto/poky/scripts/contrib/
H A Dddimage31 BLOCK_SIZE=512
61 echo " size: $(($(cat /sys/class/block/$DEV/size) * $BLOCK_SIZE)) bytes"
/OK3568_Linux_fs/kernel/fs/sysv/
H A Dsuper.c86 sbd = (struct sysv4_super_block *) (bh1->b_data + BLOCK_SIZE/2); in detected_sysv4()
114 sbd = (struct sysv2_super_block *) (bh1->b_data + BLOCK_SIZE/2); in detected_sysv2()
207 sbd = (struct sysv4_super_block *) (bh->b_data + BLOCK_SIZE/2); in detect_sysv()
257 sbd = (struct coh_super_block *) (bh->b_data + BLOCK_SIZE/2); in detect_coherent()
373 sb_set_blocksize(sb, BLOCK_SIZE); in sysv_fill_super()
416 sb_set_blocksize(sb, BLOCK_SIZE); in sysv_fill_super()
/OK3568_Linux_fs/kernel/fs/ext2/
H A Dsuper.c823 int blocksize = BLOCK_SIZE; in ext2_fill_super()
854 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super()
864 if (blocksize != BLOCK_SIZE) { in ext2_fill_super()
865 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super()
866 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super()
953 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super()
973 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super()
974 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super()
/OK3568_Linux_fs/kernel/fs/nilfs2/
H A Dthe_nilfs.c248 blocksize = BLOCK_SIZE << le32_to_cpu(sbp[0]->s_log_block_size); in load_nilfs()
387 if (nilfs->ns_sbsize > BLOCK_SIZE) in nilfs_store_disk_layout()
436 if (bytes < sumoff + 4 || bytes > BLOCK_SIZE) in nilfs_valid_sb()
589 blocksize = BLOCK_SIZE << le32_to_cpu(sbp->s_log_block_size); in init_nilfs()
/OK3568_Linux_fs/kernel/fs/quota/
H A Dquota_v1.c141 off = isize & (BLOCK_SIZE - 1); in v1_check_quota_file()
142 if ((blocks % sizeof(struct v1_disk_dqblk) * BLOCK_SIZE + off) % in v1_check_quota_file()
/OK3568_Linux_fs/buildroot/package/ibrcommon/
H A D0003-ibrcommon-ssl-gcm-fix-static-build-with-openssl.patch40 memcpy(tbuf, ctx->ghash_h, BLOCK_SIZE);
65 i = BLOCK_SIZE; ln = (uint_32t)(ctx->txt_acnt << 3);
/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 Dromfs_fs.h10 #define ROMBSIZE BLOCK_SIZE
H A Dminix_fs.h29 #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dromfs_fs.h10 #define ROMBSIZE BLOCK_SIZE
H A Dminix_fs.h29 #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
/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 Dromfs_fs.h10 #define ROMBSIZE BLOCK_SIZE
H A Dminix_fs.h29 #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
/OK3568_Linux_fs/kernel/fs/minix/
H A Ditree_v1.c34 if ((u64)block * BLOCK_SIZE >= inode->i_sb->s_maxbytes) in block_to_path()
H A Dinode.c166 sb->s_maxbytes > (7 + 512 + 512*512) * BLOCK_SIZE) in minix_check_superblock()
191 if (!sb_set_blocksize(s, BLOCK_SIZE)) in minix_fill_super()
664 stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb); in minix_getattr()
/OK3568_Linux_fs/kernel/arch/sparc/lib/
H A DM7memcpy.S165 #define BLOCK_SIZE 64 macro
462 prefetch [%o1 + (ALIGN_PRE * BLOCK_SIZE)], 21
555 prefetch [%o1 + (4 * BLOCK_SIZE)], 20
571 subcc %o5, BLOCK_SIZE, %o5
587 add %o4, BLOCK_SIZE, %o4
594 add %o0, BLOCK_SIZE, %o0
596 prefetch [%o4 + (5 * BLOCK_SIZE)], 20
711 prefetch [%o4 + (8 * BLOCK_SIZE)], 20
/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/sys/
H A Dmount.h27 #define BLOCK_SIZE 1024 macro
/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/sys/
H A Dmount.h27 #define BLOCK_SIZE 1024 macro
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv8/fsl-layerscape/doc/
H A DREADME.lsch3166 BLOCK_SIZE=0x00014000
176 BLOCK_SIZE is the size to be copied by PBI.
196 BLOCK_SIZE=0x00014000

12