Lines Matching refs:le16_to_cpu

796 		bit = le16_to_cpu(rb->rf_suballoc_bit);  in ocfs2_remove_refcount_tree()
804 le16_to_cpu(rb->rf_suballoc_slot)); in ocfs2_remove_refcount_tree()
893 for (; i < le16_to_cpu(rb->rf_records.rl_used); i++) { in ocfs2_find_refcount_rec_in_rl()
912 if (i < le16_to_cpu(rb->rf_records.rl_used) && in ocfs2_find_refcount_rec_in_rl()
978 if (index < le16_to_cpu(el->l_next_free_rec) - 1) { in ocfs2_get_refcount_cpos_end()
1042 for (i = 0; i < le16_to_cpu(tmp_el->l_next_free_rec); i++) { in ocfs2_get_refcount_cpos_end()
1049 BUG_ON(i == le16_to_cpu(tmp_el->l_next_free_rec)); in ocfs2_get_refcount_cpos_end()
1112 for (i = le16_to_cpu(el->l_next_free_rec) - 1; i >= 0; i--) { in ocfs2_get_refcount_rec()
1175 if (index < le16_to_cpu(rb->rf_records.rl_used) - 1) in ocfs2_refcount_rec_contig()
1203 if (index < le16_to_cpu(rb->rf_records.rl_used) - 2) in ocfs2_rotate_refcount_rec_left()
1207 (le16_to_cpu(rb->rf_records.rl_used) - index - 2)); in ocfs2_rotate_refcount_rec_left()
1209 memset(&rb->rf_records.rl_recs[le16_to_cpu(rb->rf_records.rl_used) - 1], in ocfs2_rotate_refcount_rec_left()
1265 if (index != le16_to_cpu(rl->rl_used) - 1) { in ocfs2_change_refcount_rec()
1267 (le16_to_cpu(rl->rl_used) - index - 1) * in ocfs2_change_refcount_rec()
1269 memset(&rl->rl_recs[le16_to_cpu(rl->rl_used) - 1], in ocfs2_change_refcount_rec()
1358 le16_to_cpu(new_rb->rf_records.rl_used)); in ocfs2_expand_inline_ref_root()
1422 int num_used = le16_to_cpu(rl->rl_used); in ocfs2_find_refcount_split_pos()
1469 le16_to_cpu(rl->rl_count), le16_to_cpu(rl->rl_used)); in ocfs2_divide_leaf_refcount_block()
1483 sort(&rl->rl_recs, le16_to_cpu(rl->rl_used), in ocfs2_divide_leaf_refcount_block()
1496 num_moved = le16_to_cpu(rl->rl_used) - split_index; in ocfs2_divide_leaf_refcount_block()
1508 sort(&rl->rl_recs, le16_to_cpu(rl->rl_used), in ocfs2_divide_leaf_refcount_block()
1512 sort(&new_rl->rl_recs, le16_to_cpu(new_rl->rl_used), in ocfs2_divide_leaf_refcount_block()
1723 for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) in ocfs2_adjust_refcount_rec()
1727 BUG_ON(i == le16_to_cpu(el->l_next_free_rec)); in ocfs2_adjust_refcount_rec()
1789 if (index < le16_to_cpu(rf_list->rl_used)) in ocfs2_insert_refcount_rec()
1792 (le16_to_cpu(rf_list->rl_used) - index) * in ocfs2_insert_refcount_rec()
1883 if (le16_to_cpu(rf_list->rl_used) + recs_need > in ocfs2_split_refcount_rec()
1884 le16_to_cpu(rf_list->rl_count)) { in ocfs2_split_refcount_rec()
1925 if (index != le16_to_cpu(rf_list->rl_used) - 1) in ocfs2_split_refcount_rec()
1928 (le16_to_cpu(rf_list->rl_used) - index - 1) * in ocfs2_split_refcount_rec()
2115 le16_to_cpu(rb->rf_suballoc_slot), in ocfs2_remove_refcount_extent()
2118 le16_to_cpu(rb->rf_suballoc_bit)); in ocfs2_remove_refcount_extent()
2410 if (le16_to_cpu(rb->rf_records.rl_used) + in ocfs2_calc_refcount_meta_credits()
2412 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_calc_refcount_meta_credits()
2473 if (le16_to_cpu(rb->rf_records.rl_used) + recs_add > in ocfs2_calc_refcount_meta_credits()
2474 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_calc_refcount_meta_credits()
2646 int tree_height = le16_to_cpu(el->l_tree_depth), i; in ocfs2_refcount_cal_cow_clusters()
2676 for (i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) { in ocfs2_refcount_cal_cow_clusters()
2686 le16_to_cpu(rec->e_leaf_clusters) <= cpos) in ocfs2_refcount_cal_cow_clusters()
2707 leaf_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_refcount_cal_cow_clusters()
2811 if (i + 1 == le16_to_cpu(el->l_next_free_rec) && in ocfs2_refcount_cal_cow_clusters()
3583 if (le16_to_cpu(rb->rf_records.rl_used) + clusters * 2 > in ocfs2_refcounted_xattr_delete_need()
3584 le16_to_cpu(rb->rf_records.rl_count)) in ocfs2_refcounted_xattr_delete_need()
3977 le16_to_cpu(s_di->id2.i_data.id_count)); in ocfs2_duplicate_inline_data()