Lines Matching refs:info_ptr
40 int init_dir_info (struct struct_file_info *info_ptr) in init_dir_info() argument
55 info_ptr->inode_ptr=ptr; in init_dir_info()
56 info_ptr->inode_offset=device_offset; /* device offset contains the inode's offset */ in init_dir_info()
60 info_ptr->global_block_num=ptr->i_block [0]; in init_dir_info()
61 info_ptr->global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_dir_info()
62 info_ptr->block_num=0; in init_dir_info()
63 info_ptr->file_offset=0; in init_dir_info()
66 info_ptr->blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_dir_info()
67 info_ptr->file_length=ptr->i_size; in init_dir_info()
69 info_ptr->level=0; /* We start using direct blocks */ in init_dir_info()
70 info_ptr->display=HEX; /* This is not actually used */ in init_dir_info()
72 …info_ptr->dir_entry_num=0;info_ptr->dir_entries_count=0; /* We'll start at the first directory ent… in init_dir_info()
73 info_ptr->dir_entry_offset=0; in init_dir_info()
77 info_ptr->dir_entries_count=count_dir_entries (); /* Set the total number of entries */ in init_dir_info()