Lines Matching refs:ffi
374 journal_read (fsi_file_t *ffi, int block, int len, char *buffer) in journal_read() argument
376 return devread (ffi, (INFO->journal_block + block) << INFO->blocksize_shift, in journal_read()
385 block_read (fsi_file_t *ffi, int blockNr, int start, int len, char *buffer) in block_read() argument
417 if (! journal_read (ffi, desc_block, sizeof (desc), (char *) &desc)) in block_read()
428 if (! journal_read (ffi, commit_block, in block_read()
450 return devread (ffi, translatedNr << INFO->blocksize_shift, start, len, buffer); in block_read()
462 journal_init (fsi_file_t *ffi) in journal_init() argument
473 journal_read (ffi, block_count, sizeof (header), (char *) &header); in journal_init()
488 journal_read (ffi, desc_block, sizeof (desc), (char *) &desc); in journal_init()
496 journal_read (ffi, commit_block, sizeof (commit), (char *) &commit); in journal_init()
558 reiserfs_mount (fsi_file_t *ffi, const char *options) in reiserfs_mount() argument
564 || */ !devread (ffi, superblock, 0, sizeof (struct reiserfs_super_block), in reiserfs_mount()
576 || */ ! devread (ffi, superblock, 0, sizeof (struct reiserfs_super_block), in reiserfs_mount()
628 journal_init (ffi); in reiserfs_mount()
631 block_read (ffi, superblock >> INFO->blocksize_shift, in reiserfs_mount()
635 if (! block_read (ffi, super.s_root_block, 0, INFO->blocksize, (char*) ROOT)) in reiserfs_mount()
681 read_tree_node (fsi_file_t *ffi, unsigned int blockNr, int depth) in read_tree_node() argument
700 if (! block_read (ffi, blockNr, 0, INFO->blocksize, cache)) in read_tree_node()
717 next_key (fsi_file_t *ffi) in next_key() argument
760 cache = read_tree_node (ffi, INFO->blocks[depth], depth); in next_key()
776 cache = read_tree_node (ffi, DC (cache)[key_nr].dc_block_number, --depth); in next_key()
809 search_stat (fsi_file_t *ffi, __u32 dir_id, __u32 objectid) in search_stat() argument
846 cache = read_tree_node (ffi, DC (cache)[i].dc_block_number, --depth); in search_stat()
875 reiserfs_read (fsi_file_t *ffi, char *buf, int len) in reiserfs_read() argument
890 search_stat (ffi, INFO->fileinfo.k_dir_id, INFO->fileinfo.k_objectid); in reiserfs_read()
922 block_read (ffi, INFO->blocks[DISK_LEAF_NODE_LEVEL], in reiserfs_read()
954 devread (ffi, blocknr << INFO->blocksize_shift, in reiserfs_read()
968 next_key (ffi); in reiserfs_read()
983 reiserfs_dir (fsi_file_t *ffi, char *dirname) in reiserfs_dir() argument
1005 if (! search_stat (ffi, dir_id, objectid)) in reiserfs_dir()
1047 if (! next_key (ffi) in reiserfs_dir()
1048 || reiserfs_read (ffi, linkbuf, filemax) != filemax) in reiserfs_dir()
1100 return next_key (ffi); in reiserfs_dir()
1124 if (! next_key (ffi)) in reiserfs_dir()
1204 reiserfs_embed (fsi_file_t *ffi, int *start_sector, int needed_sectors) in reiserfs_embed() argument
1209 if (! devread (ffi, REISERFS_DISK_OFFSET_IN_BYTES >> SECTOR_BITS, 0, in reiserfs_embed()