Lines Matching refs:ih
1395 #define ih_free_space(ih) le16_to_cpu((ih)->u.ih_free_space_reserved) argument
1396 #define ih_version(ih) le16_to_cpu((ih)->ih_version) argument
1397 #define ih_entry_count(ih) le16_to_cpu((ih)->u.ih_entry_count) argument
1398 #define ih_location(ih) le16_to_cpu((ih)->ih_item_location) argument
1399 #define ih_item_len(ih) le16_to_cpu((ih)->ih_item_len) argument
1401 #define put_ih_free_space(ih, val) do { (ih)->u.ih_free_space_reserved = cpu_to_le16(val); } whil… argument
1402 #define put_ih_version(ih, val) do { (ih)->ih_version = cpu_to_le16(val); } while (0) argument
1403 #define put_ih_entry_count(ih, val) do { (ih)->u.ih_entry_count = cpu_to_le16(val); } while (0) argument
1404 #define put_ih_location(ih, val) do { (ih)->ih_item_location = cpu_to_le16(val); } while (0) argument
1405 #define put_ih_item_len(ih, val) do { (ih)->ih_item_len = cpu_to_le16(val); } while (0) argument
1407 #define unreachable_item(ih) (ih_version(ih) & (1 << 15)) argument
1409 #define get_ih_free_space(ih) (ih_version (ih) == KEY_FORMAT_3_6 ? 0 : ih_free_space (ih)) argument
1410 #define set_ih_free_space(ih,val) put_ih_free_space((ih), ((ih_version(ih) == KEY_FORMAT_3_6) ? 0 :… argument
1479 static inline loff_t le_ih_k_offset(const struct item_head *ih) in le_ih_k_offset() argument
1481 return le_key_k_offset(ih_version(ih), &(ih->ih_key)); in le_ih_k_offset()
1493 static inline loff_t le_ih_k_type(const struct item_head *ih) in le_ih_k_type() argument
1495 return le_key_k_type(ih_version(ih), &(ih->ih_key)); in le_ih_k_type()
1514 static inline void add_le_ih_k_offset(struct item_head *ih, loff_t offset) in add_le_ih_k_offset() argument
1516 add_le_key_k_offset(ih_version(ih), &(ih->ih_key), offset); in add_le_ih_k_offset()
1519 static inline void set_le_ih_k_offset(struct item_head *ih, loff_t offset) in set_le_ih_k_offset() argument
1521 set_le_key_k_offset(ih_version(ih), &(ih->ih_key), offset); in set_le_ih_k_offset()
1534 static inline void set_le_ih_k_type(struct item_head *ih, int type) in set_le_ih_k_type() argument
1536 set_le_key_k_type(ih_version(ih), &(ih->ih_key), type); in set_le_ih_k_type()
1560 static inline int is_direntry_le_ih(struct item_head *ih) in is_direntry_le_ih() argument
1562 return is_direntry_le_key(ih_version(ih), &ih->ih_key); in is_direntry_le_ih()
1565 static inline int is_direct_le_ih(struct item_head *ih) in is_direct_le_ih() argument
1567 return is_direct_le_key(ih_version(ih), &ih->ih_key); in is_direct_le_ih()
1570 static inline int is_indirect_le_ih(struct item_head *ih) in is_indirect_le_ih() argument
1572 return is_indirect_le_key(ih_version(ih), &ih->ih_key); in is_indirect_le_ih()
1575 static inline int is_statdata_le_ih(struct item_head *ih) in is_statdata_le_ih() argument
1577 return is_statdata_le_key(ih_version(ih), &ih->ih_key); in is_statdata_le_ih()
1612 #define is_direntry_cpu_ih(ih) (is_direntry_cpu_key (&((ih)->ih_key))) argument
1613 #define is_direct_cpu_ih(ih) (is_direct_cpu_key (&((ih)->ih_key))) argument
1614 #define is_indirect_cpu_ih(ih) (is_indirect_cpu_key (&((ih)->ih_key))) argument
1615 #define is_statdata_cpu_ih(ih) (is_statdata_cpu_key (&((ih)->ih_key))) argument
1617 #define I_K_KEY_IN_ITEM(ih, key, n_blocksize) \ argument
1618 (!COMP_SHORT_KEYS(ih, key) && \
1619 I_OFF_BYTE_IN_ITEM(ih, k_offset(key), n_blocksize))
1739 #define stat_data_v1(ih) (ih_version (ih) == KEY_FORMAT_3_5) argument
1819 #define stat_data_v2(ih) (ih_version (ih) == KEY_FORMAT_3_6) argument
2003 #define B_I_DEH_ENTRY_FILE_NAME(bh, ih, deh) \ argument
2004 (ih_item_body(bh, ih) + deh_location(deh))
2007 #define I_DEH_N_ENTRY_FILE_NAME_LENGTH(ih,deh,entry_num) \ argument
2008 (I_DEH_N_ENTRY_LENGTH (ih, deh, entry_num) - (de_with_sd (deh) ? SD_SIZE : 0))
2199 struct item_head *ih = reiserfs_node_data(bh); in item_head() local
2201 return &ih[item_num]; in item_head()
2212 const struct item_head *ih) in ih_item_body() argument
2214 return bh->b_data + ih_location(ih); in ih_item_body()
2235 #define item_moved(ih,path) comp_items(ih, path) argument
2236 #define path_changed(ih,path) comp_items (ih, path) argument
2240 #define B_I_DEH(bh, ih) ((struct reiserfs_de_head *)(ih_item_body(bh, ih))) argument
2251 const struct item_head *ih, int pos_in_item) in entry_length() argument
2255 deh = B_I_DEH(bh, ih) + pos_in_item; in entry_length()
2259 return ih_item_len(ih) - deh_location(deh); in entry_length()
2626 int (*bytes_number) (struct item_head * ih, int block_size);
2628 int (*is_left_mergeable) (struct reiserfs_key * ih,
2645 #define op_bytes_number(ih,bsize) item_ops[le_ih_k_type (ih)]->bytes_number (ih,… argument
2647 #define op_print_item(ih,item) item_ops[le_ih_k_type (ih)]->print_item (ih, i… argument
2648 #define op_check_item(ih,item) item_ops[le_ih_k_type (ih)]->check_item (ih, i… argument
2659 #define I_UNFM_NUM(ih) (ih_item_len(ih) / UNFM_P_SIZE) argument
2665 #define I_POS_UNFM_SIZE(ih,pos,size) (((pos) == I_UNFM_NUM(ih) - 1 ) ? (size) - ih_free_space(ih) :… argument
2675 #define B_I_STAT_DATA(bh, ih) ( (struct stat_data * )((bh)->b_data + ih_location(ih)) ) argument
2685 #define B_I_POS_UNFM_POINTER(bh, ih, pos) \ argument
2686 le32_to_cpu(*(((unp_t *)ih_item_body(bh, ih)) + (pos)))
2687 #define PUT_B_I_POS_UNFM_POINTER(bh, ih, pos, val) \ argument
2688 (*(((unp_t *)ih_item_body(bh, ih)) + (pos)) = cpu_to_le32(val))
3016 struct item_head *ih,
3080 void make_le_item_head(struct item_head *ih, const struct cpu_key *key,
3248 void do_balance(struct tree_balance *tb, struct item_head *ih,