Lines Matching refs:deh
30 struct reiserfs_de_head *deh = de->de_deh; in bin_search_in_dir_item() local
38 if (off < deh_offset(deh + j)) { in bin_search_in_dir_item()
42 if (off > deh_offset(deh + j)) { in bin_search_in_dir_item()
68 struct reiserfs_de_head *deh = de->de_deh + de->de_entry_num; in set_de_name_and_namelen() local
73 de->de_namelen = de->de_entrylen - (de_with_sd(deh) ? SD_SIZE : 0); in set_de_name_and_namelen()
74 de->de_name = B_I_PITEM(de->de_bh, de->de_ih) + deh_location(deh); in set_de_name_and_namelen()
89 struct reiserfs_de_head *deh = de->de_deh + de->de_entry_num; in store_de_entry_key() local
99 set_cpu_key_k_offset(&(de->de_entry_key), deh_offset(deh)); in store_de_entry_key()
217 struct reiserfs_de_head *deh = de->de_deh; in linear_search_in_dir_item() local
224 GET_HASH_VALUE(deh_offset(deh + i)) != in linear_search_in_dir_item()
232 deh += i; in linear_search_in_dir_item()
234 for (; i >= 0; i--, deh--) { in linear_search_in_dir_item()
235 if (GET_HASH_VALUE(deh_offset(deh)) != in linear_search_in_dir_item()
243 set_bit(GET_GENERATION_NUMBER(deh_offset(deh)), in linear_search_in_dir_item()
410 struct reiserfs_de_head *deh; in reiserfs_add_entry() local
449 deh = (struct reiserfs_de_head *)buffer; in reiserfs_add_entry()
450 deh->deh_location = 0; /* JDM Endian safe if 0 */ in reiserfs_add_entry()
451 put_deh_offset(deh, cpu_key_k_offset(&entry_key)); in reiserfs_add_entry()
452 deh->deh_state = 0; /* JDM Endian safe if 0 */ in reiserfs_add_entry()
454 deh->deh_dir_id = INODE_PKEY(inode)->k_dir_id; /* safe: k_dir_id is le */ in reiserfs_add_entry()
455 deh->deh_objectid = INODE_PKEY(inode)->k_objectid; /* safe: k_objectid is le */ in reiserfs_add_entry()
458 memcpy((char *)(deh + 1), name, namelen); in reiserfs_add_entry()
460 padd_item((char *)(deh + 1), ROUND_UP(namelen), namelen); in reiserfs_add_entry()
463 mark_de_without_sd(deh); in reiserfs_add_entry()
464 visible ? mark_de_visible(deh) : mark_de_hidden(deh); in reiserfs_add_entry()
502 put_deh_offset(deh, SET_GENERATION_NUMBER(deh_offset(deh), gen_number)); in reiserfs_add_entry()
503 set_cpu_key_k_offset(&entry_key, deh_offset(deh)); in reiserfs_add_entry()