Lines Matching refs:ir
257 INDEX_ROOT *ir; in ntfs_inode_lookup_by_name() local
287 ir = (INDEX_ROOT*)((u8*)ctx->attr + in ntfs_inode_lookup_by_name()
289 index_block_size = le32_to_cpu(ir->index_block_size); in ntfs_inode_lookup_by_name()
297 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); in ntfs_inode_lookup_by_name()
299 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_inode_lookup_by_name()
300 le32_to_cpu(ir->index.entries_offset)); in ntfs_inode_lookup_by_name()
845 INDEX_ROOT *ir; member
978 *pos = (u8*)ie - (u8*)iu.ir; in ntfs_filldir()
1112 INDEX_ROOT *ir; in ntfs_readdir() local
1195 ir = (INDEX_ROOT*)((u8*)ctx->attr + in ntfs_readdir()
1199 index_block_size = le32_to_cpu(ir->index_block_size); in ntfs_readdir()
1220 index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); in ntfs_readdir()
1222 ie = (INDEX_ENTRY*)((u8*)&ir->index + in ntfs_readdir()
1223 le32_to_cpu(ir->index.entries_offset)); in ntfs_readdir()
1230 ntfs_log_debug("In index root, offset %d.\n", (int)((u8*)ie - (u8*)ir)); in ntfs_readdir()
1249 if (ir_pos > (u8*)ie - (u8*)ir) in ntfs_readdir()
1263 INDEX_TYPE_ROOT, ir, ie, dirent, filldir); in ntfs_readdir()
1576 INDEX_ROOT *ir = NULL; in __ntfs_create() local
1583 ir = ntfs_calloc(ir_len); in __ntfs_create()
1584 if (!ir) { in __ntfs_create()
1588 ir->type = AT_FILE_NAME; in __ntfs_create()
1589 ir->collation_rule = COLLATION_FILE_NAME; in __ntfs_create()
1590 ir->index_block_size = cpu_to_le32(ni->vol->indx_record_size); in __ntfs_create()
1592 ir->clusters_per_index_block = in __ntfs_create()
1596 ir->clusters_per_index_block = in __ntfs_create()
1599 ir->index.entries_offset = const_cpu_to_le32(sizeof(INDEX_HEADER)); in __ntfs_create()
1600 ir->index.index_length = cpu_to_le32(index_len); in __ntfs_create()
1601 ir->index.allocated_size = cpu_to_le32(index_len); in __ntfs_create()
1602 ie = (INDEX_ENTRY*)((u8*)ir + sizeof(INDEX_ROOT)); in __ntfs_create()
1608 (u8*)ir, ir_len)) { in __ntfs_create()
1610 free(ir); in __ntfs_create()
1614 free(ir); in __ntfs_create()