Lines Matching refs:le16_to_cpu
798 bit = le16_to_cpu(rb->rf_suballoc_bit); in ocfs2_remove_refcount_tree()
806 le16_to_cpu(rb->rf_suballoc_slot)); in ocfs2_remove_refcount_tree()
895 for (; i < le16_to_cpu(rb->rf_records.rl_used); i++) { in ocfs2_find_refcount_rec_in_rl()
914 if (i < le16_to_cpu(rb->rf_records.rl_used) && in ocfs2_find_refcount_rec_in_rl()
980 if (index < le16_to_cpu(el->l_next_free_rec) - 1) { in ocfs2_get_refcount_cpos_end()
1044 for (i = 0; i < le16_to_cpu(tmp_el->l_next_free_rec); i++) { in ocfs2_get_refcount_cpos_end()
1051 BUG_ON(i == le16_to_cpu(tmp_el->l_next_free_rec)); in ocfs2_get_refcount_cpos_end()
1116 for (i = le16_to_cpu(el->l_next_free_rec) - 1; i >= 0; i--) { in ocfs2_get_refcount_rec()
1179 if (index < le16_to_cpu(rb->rf_records.rl_used) - 1) in ocfs2_refcount_rec_contig()
1207 if (index < le16_to_cpu(rb->rf_records.rl_used) - 2) in ocfs2_rotate_refcount_rec_left()
1211 (le16_to_cpu(rb->rf_records.rl_used) - index - 2)); in ocfs2_rotate_refcount_rec_left()
1213 memset(&rb->rf_records.rl_recs[le16_to_cpu(rb->rf_records.rl_used) - 1], in ocfs2_rotate_refcount_rec_left()
1269 if (index != le16_to_cpu(rl->rl_used) - 1) { in ocfs2_change_refcount_rec()
1271 (le16_to_cpu(rl->rl_used) - index - 1) * in ocfs2_change_refcount_rec()
1273 memset(&rl->rl_recs[le16_to_cpu(rl->rl_used) - 1], in ocfs2_change_refcount_rec()
1362 le16_to_cpu(new_rb->rf_records.rl_used)); in ocfs2_expand_inline_ref_root()
1428 int num_used = le16_to_cpu(rl->rl_used); in ocfs2_find_refcount_split_pos()
1475 le16_to_cpu(rl->rl_count), le16_to_cpu(rl->rl_used)); in ocfs2_divide_leaf_refcount_block()
1489 sort(&rl->rl_recs, le16_to_cpu(rl->rl_used), in ocfs2_divide_leaf_refcount_block()
1502 num_moved = le16_to_cpu(rl->rl_used) - split_index; in ocfs2_divide_leaf_refcount_block()
1514 sort(&rl->rl_recs, le16_to_cpu(rl->rl_used), in ocfs2_divide_leaf_refcount_block()
1518 sort(&new_rl->rl_recs, le16_to_cpu(new_rl->rl_used), in ocfs2_divide_leaf_refcount_block()
1729 for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) in ocfs2_adjust_refcount_rec()
1733 BUG_ON(i == le16_to_cpu(el->l_next_free_rec)); in ocfs2_adjust_refcount_rec()
1795 if (index < le16_to_cpu(rf_list->rl_used)) in ocfs2_insert_refcount_rec()
1798 (le16_to_cpu(rf_list->rl_used) - index) * in ocfs2_insert_refcount_rec()
1889 if (le16_to_cpu(rf_list->rl_used) + recs_need > in ocfs2_split_refcount_rec()
1890 le16_to_cpu(rf_list->rl_count)) { in ocfs2_split_refcount_rec()
1931 if (index != le16_to_cpu(rf_list->rl_used) - 1) in ocfs2_split_refcount_rec()
1934 (le16_to_cpu(rf_list->rl_used) - index - 1) * in ocfs2_split_refcount_rec()
2121 le16_to_cpu(rb->rf_suballoc_slot), in ocfs2_remove_refcount_extent()
2124 le16_to_cpu(rb->rf_suballoc_bit)); in ocfs2_remove_refcount_extent()
2418 if (le16_to_cpu(rb->rf_records.rl_used) + in ocfs2_calc_refcount_meta_credits()
2420 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_calc_refcount_meta_credits()
2481 if (le16_to_cpu(rb->rf_records.rl_used) + recs_add > in ocfs2_calc_refcount_meta_credits()
2482 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_calc_refcount_meta_credits()
2656 int tree_height = le16_to_cpu(el->l_tree_depth), i; in ocfs2_refcount_cal_cow_clusters()
2687 for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_refcount_cal_cow_clusters()
2697 le16_to_cpu(rec->e_leaf_clusters) <= cpos) in ocfs2_refcount_cal_cow_clusters()
2718 leaf_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_refcount_cal_cow_clusters()
2822 if (i + 1 == le16_to_cpu(el->l_next_free_rec) && in ocfs2_refcount_cal_cow_clusters()
3601 if (le16_to_cpu(rb->rf_records.rl_used) + clusters * 2 > in ocfs2_refcounted_xattr_delete_need()
3602 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_refcounted_xattr_delete_need()
3995 le16_to_cpu(s_di->id2.i_data.id_count)); in ocfs2_duplicate_inline_data()