Home
last modified time | relevance | path

Searched refs:PAGE_CACHE_SIZE (Results 1 – 12 of 12) sorted by relevance

/external/squashfs-tools/kernel/fs/squashfs/
Dcache.c273 entry->data[j] = kmalloc(PAGE_CACHE_SIZE, GFP_KERNEL); in squashfs_cache_init()
305 void *buff = entry->data[offset / PAGE_CACHE_SIZE] in squashfs_copy_data()
306 + (offset % PAGE_CACHE_SIZE); in squashfs_copy_data()
308 PAGE_CACHE_SIZE - (offset % PAGE_CACHE_SIZE)); in squashfs_copy_data()
400 int pages = (length + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in squashfs_read_table()
406 for (i = 0; i < pages; i++, buffer += PAGE_CACHE_SIZE) in squashfs_read_table()
Dfile.c179 __le32 *blist = kmalloc(PAGE_CACHE_SIZE, GFP_KERNEL); in read_indexes()
187 int blocks = min_t(int, n, PAGE_CACHE_SIZE >> 2); in read_indexes()
392 if (page->index >= ((i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> in squashfs_readpage()
453 bytes -= PAGE_CACHE_SIZE, offset += PAGE_CACHE_SIZE) { in squashfs_readpage()
455 int avail = sparse ? 0 : min_t(int, bytes, PAGE_CACHE_SIZE); in squashfs_readpage()
470 memset(pageaddr + avail, 0, PAGE_CACHE_SIZE - avail); in squashfs_readpage()
489 memset(pageaddr, 0, PAGE_CACHE_SIZE); in squashfs_readpage()
Dsymlink.c54 int length = min_t(int, i_size_read(inode) - index, PAGE_CACHE_SIZE); in squashfs_symlink_readpage()
97 memset(pageaddr + length, 0, PAGE_CACHE_SIZE - length); in squashfs_symlink_readpage()
Dblock.c189 msblk->stream.avail_out = PAGE_CACHE_SIZE; in squashfs_read_data()
243 if (pg_offset == PAGE_CACHE_SIZE) { in squashfs_read_data()
247 avail = min_t(int, in, PAGE_CACHE_SIZE - in squashfs_read_data()
/external/squashfs-tools/kernel-2.4/fs/squashfs/
Dinode.c588 i->i_blksize = PAGE_CACHE_SIZE; in squashfs_iget()
641 i->i_blksize = PAGE_CACHE_SIZE; in squashfs_iget()
1156 block, offset, PAGE_CACHE_SIZE, &block, in squashfs_symlink_readpage()
1170 bytes = (i_size_read(inode) - length) > PAGE_CACHE_SIZE ? PAGE_CACHE_SIZE : in squashfs_symlink_readpage()
1178 memset(pageaddr + bytes, 0, PAGE_CACHE_SIZE - bytes); in squashfs_symlink_readpage()
1471 if (page->index >= ((i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> in squashfs_readpage()
1512 i++, byte_offset += PAGE_CACHE_SIZE) { in squashfs_readpage()
1514 int available_bytes = (bytes - byte_offset) > PAGE_CACHE_SIZE ? in squashfs_readpage()
1515 PAGE_CACHE_SIZE : bytes - byte_offset; in squashfs_readpage()
1525 PAGE_CACHE_SIZE - available_bytes); in squashfs_readpage()
[all …]
Dsquashfs2_0.c227 i->i_blksize = PAGE_CACHE_SIZE; in squashfs_iget_2()
/external/f2fs-tools/include/
Df2fs_fs.h280 #define PAGE_CACHE_SIZE 4096 macro
766 #define INLINE_DATA_OFFSET (PAGE_CACHE_SIZE - sizeof(struct node_footer) \
873 #define NAT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_nat_entry))
896 #define SIT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_sit_entry))
/external/u-boot/drivers/usb/gadget/
Df_mass_storage.c280 #define PAGE_CACHE_SIZE (1 << PAGE_CACHE_SHIFT) macro
732 partial_page = file_offset & (PAGE_CACHE_SIZE - 1); in do_read()
734 amount = min(amount, (unsigned int) PAGE_CACHE_SIZE - in do_read()
871 partial_page = usb_offset & (PAGE_CACHE_SIZE - 1); in do_write()
874 (unsigned int) PAGE_CACHE_SIZE - partial_page); in do_write()
/external/u-boot/fs/ubifs/
Dubifs.h462 #define PAGE_CACHE_SIZE (1 << PAGE_CACHE_SHIFT) macro
467 #define MAX_LFS_FILESIZE (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1)
665 #define UBIFS_BLOCKS_PER_PAGE (PAGE_CACHE_SIZE / UBIFS_BLOCK_SIZE)
Dubifs.c748 memset(addr, 0, PAGE_CACHE_SIZE); in do_readpage()
Dsuper.c2605 if (PAGE_CACHE_SIZE < UBIFS_BLOCK_SIZE) { in ubifs_init()
2607 current->pid, (unsigned int)PAGE_CACHE_SIZE); in ubifs_init()
/external/f2fs-tools/fsck/
Dmount.c622 if (F2FS_BLKSIZE != PAGE_CACHE_SIZE) in sanity_check_raw_super()
1441 PAGE_CACHE_SIZE - SUM_FOOTER_SIZE) in read_compacted_summaries()
1511 memcpy(curseg->sum_blk, sum_blk, PAGE_CACHE_SIZE); in read_normal_summaries()
1573 array[i].sum_blk = malloc(PAGE_CACHE_SIZE); in build_curseg()