Lines Matching refs:asize

457 		const __le16 *name, u8 name_len, u32 asize, u16 name_off,  in ni_ins_new_attr()  argument
485 attr = mi_insert_attr(mi, type, name, name_len, asize, name_off); in ni_ins_new_attr()
657 u32 asize, free; in ni_try_remove_attr_list() local
673 asize = le32_to_cpu(attr_list->size); in ni_try_remove_attr_list()
676 free = sbi->record_size - le32_to_cpu(ni->mi.mrec->used) + asize; in ni_try_remove_attr_list()
696 asize = le32_to_cpu(attr->size); in ni_try_remove_attr_list()
697 if (asize > free) in ni_try_remove_attr_list()
700 free -= asize; in ni_try_remove_attr_list()
733 asize = le32_to_cpu(attr->size); in ni_try_remove_attr_list()
737 le->name_len, asize, in ni_try_remove_attr_list()
748 memcpy(attr_ins, attr, asize); in ni_try_remove_attr_list()
880 u32 asize = le32_to_cpu(b->size); in ni_create_attr_list() local
884 b->name_len, asize, name_off); in ni_create_attr_list()
891 memcpy(attr, b, asize); in ni_create_attr_list()
897 if (to_free <= asize) in ni_create_attr_list()
899 to_free -= asize; in ni_create_attr_list()
935 u32 asize, CLST svcn, u16 name_off, bool force_ext, in ni_ins_attr_ext() argument
951 if (asize > sbi->max_bytes_per_attr) { in ni_ins_attr_ext()
1012 if (le32_to_cpu(mi->mrec->used) + asize > sbi->record_size) in ni_ins_attr_ext()
1016 attr = ni_ins_new_attr(ni, mi, le, type, name, name_len, asize, in ni_ins_attr_ext()
1041 attr = ni_ins_new_attr(ni, mi, le, type, name, name_len, asize, in ni_ins_attr_ext()
1085 const __le16 *name, u8 name_len, u32 asize, in ni_insert_attr() argument
1115 if (asize <= free) { in ni_insert_attr()
1117 asize, name_off, svcn, ins_le); in ni_insert_attr()
1135 err = ni_ins_attr_ext(ni, NULL, type, name, name_len, asize, in ni_insert_attr()
1160 if (max_free < asize + list_reserve) { in ni_insert_attr()
1210 while (asize + list_reserve > sbi->record_size - le32_to_cpu(rec->used)) in ni_insert_attr()
1213 attr = ni_ins_new_attr(ni, &ni->mi, NULL, type, name, name_len, asize, in ni_insert_attr()
1239 u32 asize, run_size, done = 0; in ni_expand_mft_list() local
1281 asize = le32_to_cpu(attr->size); in ni_expand_mft_list()
1296 asize - SIZEOF_NONRESIDENT, &plen); in ni_expand_mft_list()
1311 done = asize - run_size - SIZEOF_NONRESIDENT; in ni_expand_mft_list()
1372 u32 asize, done = 0; in ni_expand_list() local
1398 asize = le32_to_cpu(attr->size); in ni_expand_list()
1402 attr->name_len, asize, attr_svcn(attr), in ni_expand_list()
1409 memcpy(ins_attr, attr, asize); in ni_expand_list()
1414 done += asize; in ni_expand_list()
1447 u32 run_size, asize; in ni_insert_nonresident() local
1463 asize = run_off + run_size; in ni_insert_nonresident()
1465 if (asize > sbi->max_bytes_per_attr) { in ni_insert_nonresident()
1470 err = ni_insert_attr(ni, type, name, name_len, asize, name_off, svcn, in ni_insert_nonresident()
1516 u32 asize = SIZEOF_RESIDENT + name_size + ALIGN(data_size, 8); in ni_insert_resident() local
1519 err = ni_insert_attr(ni, type, name, name_len, asize, SIZEOF_RESIDENT, in ni_insert_resident()
1568 u32 asize; in ni_delete_all() local
1595 asize = le32_to_cpu(attr->size); in ni_delete_all()
1598 if (roff > asize) in ni_delete_all()
1603 Add2Ptr(attr, roff), asize - roff); in ni_delete_all()
2277 u32 asize, roff; in ni_decompress_file() local
2301 asize = le32_to_cpu(attr->size); in ni_decompress_file()
2304 if (roff > asize) { in ni_decompress_file()
2311 Add2Ptr(attr, roff), asize - roff); in ni_decompress_file()
2342 u32 asize = le32_to_cpu(attr->size); in ni_decompress_file() local
2347 attr->size = cpu_to_le32(asize - 8); in ni_decompress_file()