Lines Matching refs:le16_to_cpu
925 for (i = 0 ; i < le16_to_cpu(header->xh_count); i++) { in ocfs2_xattr_list_entries()
932 le16_to_cpu(entry->xe_name_offset); in ocfs2_xattr_list_entries()
953 le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_has_inline_xattr_value_outside()
955 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) in ocfs2_has_inline_xattr_value_outside()
976 le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_ibody_list()
1003 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_list()
1074 for (i = 0; i < le16_to_cpu(xs->header->xh_count); i++) { in ocfs2_xattr_find_entry()
1080 le16_to_cpu(entry->xe_name_offset)), in ocfs2_xattr_find_entry()
1161 (xs->end - le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_ibody_get()
1174 le16_to_cpu(xs->here->xe_name_offset) + in ocfs2_xattr_ibody_get()
1178 (xs->base + le16_to_cpu( in ocfs2_xattr_ibody_get()
1231 name_offset = le16_to_cpu(xs->here->xe_name_offset); in ocfs2_xattr_block_get()
1235 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_xattr_block_get()
1508 nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_add_namevalue()
1517 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_fill_value_buf()
1575 int i, count = le16_to_cpu(xh->xh_count); in ocfs2_xa_block_get_free_start()
1579 offset = le16_to_cpu(xh->xh_entries[i].xe_name_offset); in ocfs2_xa_block_get_free_start()
1590 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_block_check_space()
1621 int count = le16_to_cpu(xh->xh_count); in ocfs2_xa_block_wipe_namevalue()
1623 namevalue_offset = le16_to_cpu(entry->xe_name_offset); in ocfs2_xa_block_wipe_namevalue()
1635 offset = le16_to_cpu(xh->xh_entries[i].xe_name_offset); in ocfs2_xa_block_wipe_namevalue()
1649 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_block_add_entry()
1732 return le16_to_cpu(bucket_xh(bucket)->xh_free_start); in ocfs2_xa_bucket_get_free_start()
1753 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_bucket_check_space()
1803 int count = le16_to_cpu(xh->xh_count); in ocfs2_xa_bucket_add_entry()
1855 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_bucket_fill_value_buf()
1931 count = le16_to_cpu(xh->xh_count); in ocfs2_xa_remove_entry()
1978 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_cleanup_value_truncate()
2042 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_install_value_root()
2066 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_reuse_entry()
2193 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_store_value()
2269 loc->xl_size = le16_to_cpu(di->i_xattr_inline_size); in ocfs2_init_dinode_xa_loc()
2283 BUG_ON(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED); in ocfs2_init_xattr_block_xa_loc()
2364 for (i = 0; i < le16_to_cpu(header->xh_count); i++) { in ocfs2_remove_value_outside()
2371 le16_to_cpu(entry->xe_name_offset); in ocfs2_remove_value_outside()
2426 le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_ibody_remove()
2456 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_remove()
2498 bit = le16_to_cpu(xb->xb_suballoc_bit); in ocfs2_xattr_free_block()
2506 le16_to_cpu(xb->xb_suballoc_slot)); in ocfs2_xattr_free_block()
2640 free = le16_to_cpu(idata->id_count) - le64_to_cpu(di->i_size); in ocfs2_xattr_has_space_inline()
2646 free = (le16_to_cpu(el->l_count) - in ocfs2_xattr_has_space_inline()
2647 le16_to_cpu(el->l_next_free_rec)) * in ocfs2_xattr_has_space_inline()
2687 (xs->end - le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_ibody_find()
2825 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_find()
2968 if (!(le16_to_cpu(xblk->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_set()
2984 if (le16_to_cpu(xblk->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_xattr_block_set()
3005 for (i = 0; i < le16_to_cpu(xs->header->xh_count); i++) { in ocfs2_xattr_can_be_in_inode()
3006 size_t offs = le16_to_cpu(last->xe_name_offset); in ocfs2_xattr_can_be_in_inode()
3068 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_calc_xattr_set_need()
3076 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_calc_xattr_set_need()
3081 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3191 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_calc_xattr_set_need()
3706 for (i = le16_to_cpu(el->l_next_free_rec) - 1; i >= 0; i--) { in ocfs2_xattr_get_rec()
3725 *num_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_xattr_get_rec()
3755 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_find_xe_in_bucket()
3834 high_bucket = le16_to_cpu(xh->xh_num_buckets) - 1; in ocfs2_xattr_bucket_find()
3859 xe = &xh->xh_entries[le16_to_cpu(xh->xh_count) - 1]; in ocfs2_xattr_bucket_find()
3930 if (le16_to_cpu(el->l_next_free_rec) == 0) in ocfs2_xattr_index_block_find()
3992 num_buckets = le16_to_cpu(bucket_xh(bucket)->xh_num_buckets); in ocfs2_iterate_xattr_buckets()
4026 if (index < 0 || index >= le16_to_cpu(xh->xh_count)) in ocfs2_xattr_bucket_get_name_value()
4029 name_offset = le16_to_cpu(xh->xh_entries[index].xe_name_offset); in ocfs2_xattr_bucket_get_name_value()
4046 for (i = 0 ; i < le16_to_cpu(bucket_xh(bucket)->xh_count); i++) { in ocfs2_list_xattr_bucket()
4190 u16 count = le16_to_cpu(xb_xh->xh_count); in ocfs2_cp_xattr_block_to_bucket()
4208 offset = le16_to_cpu(xe->xe_name_offset) + off_change; in ocfs2_cp_xattr_block_to_bucket()
4279 u16 xb_flags = le16_to_cpu(xb->xb_flags); in ocfs2_xattr_create_index_block()
4363 u32 l_name_offset = le16_to_cpu(l->xe_name_offset); in cmp_xe_offset()
4364 u32 r_name_offset = le16_to_cpu(r->xe_name_offset); in cmp_xe_offset()
4417 xh_free_start = le16_to_cpu(xh->xh_free_start); in ocfs2_defrag_xattr_bucket()
4420 (unsigned long long)blkno, le16_to_cpu(xh->xh_count), in ocfs2_defrag_xattr_bucket()
4421 xh_free_start, le16_to_cpu(xh->xh_name_value_len)); in ocfs2_defrag_xattr_bucket()
4428 sort(entries, le16_to_cpu(xh->xh_count), in ocfs2_defrag_xattr_bucket()
4435 for (i = 0; i < le16_to_cpu(xh->xh_count); i++, xe++) { in ocfs2_defrag_xattr_bucket()
4436 offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_defrag_xattr_bucket()
4470 sort(entries, le16_to_cpu(xh->xh_count), in ocfs2_defrag_xattr_bucket()
4518 BUG_ON(le16_to_cpu(bucket_xh(first)->xh_num_buckets) < num_buckets); in ocfs2_mv_xattr_bucket_cross_cluster()
4580 int count = le16_to_cpu(xh->xh_count); in ocfs2_xattr_find_divide_pos()
4682 count = le16_to_cpu(xh->xh_count); in ocfs2_divide_xattr_bucket()
4719 if (le16_to_cpu(xe->xe_name_offset) < name_offset) in ocfs2_divide_xattr_bucket()
4720 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_divide_xattr_bucket()
4746 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_divide_xattr_bucket()
4748 if (le16_to_cpu(xe->xe_name_offset) < in ocfs2_divide_xattr_bucket()
4749 le16_to_cpu(xh->xh_free_start)) in ocfs2_divide_xattr_bucket()
5197 u16 new_bucket = le16_to_cpu(bucket_xh(first)->xh_num_buckets); in ocfs2_extend_xattr_bucket()
5306 if (num_buckets == le16_to_cpu(bucket_xh(first)->xh_num_buckets)) { in ocfs2_add_new_xattr_bucket()
5367 offset = le16_to_cpu(xe->xe_name_offset) + in ocfs2_xattr_bucket_value_truncate()
5522 if (xh->xh_entries[le16_to_cpu(xh->xh_count) - 1].xe_name_hash == in ocfs2_check_xattr_bucket_collision()
5665 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_delete_xattr_in_bucket()
5778 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_prepare_refcount_xattr()
5787 name_offset = le16_to_cpu(xe->xe_name_offset); in ocfs2_prepare_refcount_xattr()
5791 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) { in ocfs2_prepare_refcount_xattr()
5944 for (i = 0; i < le16_to_cpu(header->xh_count); i++) { in ocfs2_xattr_attach_refcount_normal()
5951 le16_to_cpu(xe->xe_name_offset) + in ocfs2_xattr_attach_refcount_normal()
5978 le16_to_cpu(di->i_xattr_inline_size)); in ocfs2_xattr_inline_attach_refcount()
6057 le16_to_cpu(xh->xh_count)); in ocfs2_xattr_bucket_value_refcount()
6058 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_xattr_bucket_value_refcount()
6107 if (!(le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED)) { in ocfs2_xattr_block_attach_refcount()
6220 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) { in ocfs2_value_metas_in_xattr_header()
6231 *metas += le16_to_cpu(xv->xr_list.l_tree_depth) * in ocfs2_value_metas_in_xattr_header()
6232 le16_to_cpu(xv->xr_list.l_next_free_rec); in ocfs2_value_metas_in_xattr_header()
6242 *num_recs += le16_to_cpu(xv->xr_list.l_next_free_rec); in ocfs2_value_metas_in_xattr_header()
6263 le16_to_cpu(xe->xe_name_offset) + in ocfs2_get_xattr_value_root()
6308 *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * in ocfs2_reflink_lock_xattr_allocators()
6309 le16_to_cpu(rb->rf_list.l_next_free_rec) + 1; in ocfs2_reflink_lock_xattr_allocators()
6353 le16_to_cpu(xh->xh_count)); in ocfs2_reflink_xattr_header()
6355 last = &new_xh->xh_entries[le16_to_cpu(new_xh->xh_count)]; in ocfs2_reflink_xattr_header()
6356 for (i = 0, j = 0; i < le16_to_cpu(xh->xh_count); i++, j++) { in ocfs2_reflink_xattr_header()
6464 int inline_size = le16_to_cpu(di->i_xattr_inline_size); in ocfs2_reflink_xattr_inline()
6783 *credits += le16_to_cpu(rb->rf_list.l_tree_depth) * in ocfs2_lock_reflink_xattr_rec_allocators()
6784 le16_to_cpu(rb->rf_list.l_next_free_rec) + 1; in ocfs2_lock_reflink_xattr_rec_allocators()
6938 num_buckets = le16_to_cpu(bucket_xh(args->old_bucket)->xh_num_buckets); in ocfs2_reflink_xattr_buckets()
7093 if (le16_to_cpu(xb->xb_flags) & OCFS2_XATTR_INDEXED) in ocfs2_reflink_xattr_in_block()