/linux-5.19.10/fs/ntfs3/ |
D | fslog.c | 476 ra = Add2Ptr(rhdr, ro); in is_rst_area_valid() 533 const struct RESTART_AREA *ra = Add2Ptr(rhdr, ro); in is_client_area_valid() 542 ca = Add2Ptr(ra, le16_to_cpu(ra->client_off)); in is_client_area_valid() 619 e = Add2Ptr(t, sizeof(struct RESTART_TABLE)); in enum_rstbl() 621 e = Add2Ptr(c, rsize); in enum_rstbl() 626 e = Add2Ptr(e, rsize)) { in enum_rstbl() 736 off = le32_to_cpu(*(__le32 *)Add2Ptr( in check_rstbl() 754 off = le32_to_cpu(*(__le32 *)Add2Ptr(rt, off)); in check_rstbl() 769 e = Add2Ptr(rt, off); in free_rsttbl_idx() 778 *(__le32 *)Add2Ptr(rt, lf) = off_le; in free_rsttbl_idx() [all …]
|
D | attrlist.c | 73 Add2Ptr(attr, run_off), in ntfs_load_attr_list() 123 le = Add2Ptr(le, sz); in al_enumerate() 262 return prev ? Add2Ptr(prev, le16_to_cpu(prev->size)) : ni->attr_list.le; in al_find_le_to_insert() 303 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le() 304 le = Add2Ptr(ptr, off); in al_add_le() 308 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le() 327 memmove(le, Add2Ptr(le, sz), old_size - off); in al_add_le() 361 memmove(le, Add2Ptr(le, size), al->size - (off + size)); in al_remove_le() 408 le = Add2Ptr(al->le, off); in al_delete_le() 415 memmove(le, Add2Ptr(le, size), al->size - (off + size)); in al_delete_le()
|
D | ntfs.h | 431 return Add2Ptr(attr, le16_to_cpu(attr->name_off)); in attr_name() 464 return Add2Ptr(attr, off); in resident_data_ex() 469 return Add2Ptr(attr, le16_to_cpu(attr->res.data_off)); in resident_data() 474 return Add2Ptr(attr, le16_to_cpu(attr->nres.run_off)); in attr_run() 541 memcmp(Add2Ptr(le, le->name_off), in le_cmp() 542 Add2Ptr(attr, le16_to_cpu(attr->name_off)), in le_cmp() 548 return Add2Ptr(le, le->name_off); in le_name() 640 __le64 *v = Add2Ptr(e, le16_to_cpu(e->size) - sizeof(__le64)); in de_set_vbn_le() 647 __le64 *v = Add2Ptr(e, le16_to_cpu(e->size) - sizeof(__le64)); in de_set_vbn() 654 return *(__le64 *)Add2Ptr(e, le16_to_cpu(e->size) - sizeof(__le64)); in de_get_vbn_le() [all …]
|
D | record.c | 210 attr = Add2Ptr(rec, off); in mi_enum_attr() 223 attr = Add2Ptr(attr, asize); in mi_enum_attr() 460 attr = Add2Ptr(rec, used - 8); in mi_insert_attr() 467 memmove(Add2Ptr(attr, asize), attr, tail); in mi_insert_attr() 476 memmove(Add2Ptr(attr, name_off), name, name_len * sizeof(short)); in mi_insert_attr() 506 memmove(attr, Add2Ptr(attr, asize), used - aoff); in mi_remove_attr() 532 next = Add2Ptr(attr, asize); in mi_resize_attr() 575 char *next = Add2Ptr(attr, asize); in mi_pack_runs() 585 err = run_pack(run, svcn, len, Add2Ptr(attr, run_off), run_size + dsize, in mi_pack_runs()
|
D | debug.h | 17 #ifndef Add2Ptr 18 #define Add2Ptr(P, I) ((void *)((u8 *)(P) + (I))) macro
|
D | inode.c | 142 std5 = Add2Ptr(attr, roff); in ntfs_read_mft() 175 fname = Add2Ptr(attr, roff); in ntfs_read_mft() 249 root = Add2Ptr(attr, roff); in ntfs_read_mft() 369 t64, Add2Ptr(attr, roff), asize - roff); in ntfs_read_mft() 1082 data = Add2Ptr(data, PAGE_SIZE); in inode_write_data() 1295 attr = Add2Ptr(rec, le16_to_cpu(rec->attr_off)); in ntfs_create_inode() 1314 std5 = Add2Ptr(attr, SIZEOF_RESIDENT); in ntfs_create_inode() 1337 attr = Add2Ptr(attr, asize); in ntfs_create_inode() 1363 memcpy(Add2Ptr(attr, SIZEOF_RESIDENT), fname, dsize); in ntfs_create_inode() 1365 attr = Add2Ptr(attr, asize); in ntfs_create_inode() [all …]
|
D | xattr.c | 53 const struct EA_FULL *ea = Add2Ptr(ea_all, *off); in find_ea() 138 memset(Add2Ptr(ea_p, size), 0, add_bytes); in ntfs_read_ea() 179 ea = Add2Ptr(ea_all, off); in ntfs_list_ea() 234 ea = Add2Ptr(ea_all, off); in ntfs_get_ea() 316 ea = Add2Ptr(ea_all, off); in ntfs_set_ea() 336 memmove(ea, Add2Ptr(ea, ea_sz), size - off - ea_sz); in ntfs_set_ea() 339 memset(Add2Ptr(ea_all, size), 0, ea_sz); in ntfs_set_ea() 363 new_ea = Add2Ptr(ea_all, size); in ntfs_set_ea()
|
D | attrib.c | 105 vcn ? *vcn : svcn, Add2Ptr(attr, run_off), in attr_load_runs() 257 next = Add2Ptr(attr, asize); in attr_make_nonresident() 315 memmove(attr, Add2Ptr(attr, asize), used - aoff); in attr_make_nonresident() 340 attr = Add2Ptr(rec, aoff); in attr_make_nonresident() 370 char *next = Add2Ptr(attr, asize); in attr_set_size_res() 385 memset(Add2Ptr(resident_data(attr), rsize), 0, in attr_set_size_res() 1161 Add2Ptr(attr, ro), le32_to_cpu(attr->size) - ro); in attr_load_runs_vcn() 1238 off32 = Add2Ptr(addr, vbo[1]); in attr_wof_frame_info() 1242 off64 = Add2Ptr(addr, vbo[1]); in attr_wof_frame_info() 1302 off32 = Add2Ptr(addr, voff); in attr_wof_frame_info() [all …]
|
D | fsntfs.c | 119 fixup = Add2Ptr(rhdr, fo); in ntfs_fix_pre_write() 128 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_pre_write() 161 fixup = Add2Ptr(rhdr, fo); in ntfs_fix_post_read() 163 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_post_read() 1013 buffer = Add2Ptr(buffer, op); in ntfs_sb_read() 1055 buf = Add2Ptr(buf, op); in ntfs_sb_write() 1123 buf = Add2Ptr(buf, op); in ntfs_sb_write_run() 1210 buf = Add2Ptr(buf, op); in ntfs_read_run_nb() 1406 end_data = Add2Ptr(bh_data, op); in ntfs_write_bh() 1412 fixup = Add2Ptr(bh_data, fo); in ntfs_write_bh() [all …]
|
D | frecord.c | 571 Add2Ptr(attr, roff), in ni_repack() 798 for (; (attr = mi_enum_attr(&ni->mi, attr)); le = Add2Ptr(le, sz)) { in ni_create_attr_list() 852 attr = mi_insert_attr(mi, b->type, Add2Ptr(b, name_off), in ni_create_attr_list() 1149 err = ni_ins_attr_ext(ni, le, attr->type, Add2Ptr(attr, t16), in ni_insert_attr() 1246 err = run_pack(run, 0, svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list() 1295 run_pack(run, svcn, evcn + 1 - svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list() 1426 run_pack(run, svcn, len, Add2Ptr(attr, run_off), run_size, &plen); in ni_insert_nonresident() 1546 Add2Ptr(attr, roff), asize - roff); in ni_delete_all() 2247 Add2Ptr(attr, roff), asize - roff); in ni_decompress_file() 2280 char *rbuf = Add2Ptr(attr, roff); in ni_decompress_file() [all …]
|
D | dir.c | 284 fname = Add2Ptr(e, sizeof(struct NTFS_DE)); in ntfs_filldir() 334 e = Add2Ptr(hdr, off); in ntfs_read_hdr() 514 e = Add2Ptr(hdr, off); in ntfs_dir_count()
|
D | index.c | 572 e = Add2Ptr(hdr, o); in hdr_find_split() 601 memmove(Add2Ptr(e, ins_bytes), e, to_move); in hdr_insert_head() 688 e = Add2Ptr(hdr, off); in hdr_find_e() 739 e = Add2Ptr(hdr, offs[mid_idx]); in hdr_find_e() 782 memmove(Add2Ptr(before, de_size), before, used - off); in hdr_insert_de() 806 memmove(re, Add2Ptr(re, esize), bytes); in hdr_delete_de() 902 e = Add2Ptr(hdr, eo); in indx_new() 1762 memmove(de_t, Add2Ptr(sp, sp_size), used - le32_to_cpu(hdr1->de_off)); in indx_insert_into_buffer() 1908 e = Add2Ptr(hdr, le32_to_cpu(hdr->de_off)); in indx_find_buffer() 1923 e = Add2Ptr(e, le16_to_cpu(e->size)); in indx_find_buffer()
|
D | namei.c | 298 new_de = Add2Ptr(de, 2048); in ntfs_rename()
|
D | super.c | 852 ((struct ATTRIB *)Add2Ptr(rec, ao))->type = ATTR_END; in ntfs_init_from_boot() 1151 memcpy(Add2Ptr(t, done), page_address(page), in ntfs_fill_super() 1202 u16 *dst = Add2Ptr(sbi->upcase, idx << PAGE_SHIFT); in ntfs_fill_super()
|