/linux-6.12.1/fs/ntfs3/ |
D | fslog.c | 476 ra = Add2Ptr(rhdr, ro); in is_rst_area_valid() 535 const struct RESTART_AREA *ra = Add2Ptr(rhdr, ro); in is_client_area_valid() 544 ca = Add2Ptr(ra, le16_to_cpu(ra->client_off)); in is_client_area_valid() 636 e = Add2Ptr(t, sizeof(struct RESTART_TABLE)); in enum_rstbl() 638 e = Add2Ptr(c, rsize); in enum_rstbl() 643 e = Add2Ptr(e, rsize)) { in enum_rstbl() 754 off = le32_to_cpu(*(__le32 *)Add2Ptr( in check_rstbl() 772 off = le32_to_cpu(*(__le32 *)Add2Ptr(rt, off)); in check_rstbl() 790 e = Add2Ptr(rt, off); in free_rsttbl_idx() 799 *(__le32 *)Add2Ptr(rt, lf) = off_le; in free_rsttbl_idx() [all …]
|
D | ntfs.h | 434 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() 539 memcmp(Add2Ptr(le, le->name_off), in le_cmp() 540 Add2Ptr(attr, le16_to_cpu(attr->name_off)), in le_cmp() 546 return Add2Ptr(le, le->name_off); in le_name() 638 __le64 *v = Add2Ptr(e, le16_to_cpu(e->size) - sizeof(__le64)); in de_set_vbn_le() 645 __le64 *v = Add2Ptr(e, le16_to_cpu(e->size) - sizeof(__le64)); in de_set_vbn() 652 return *(__le64 *)Add2Ptr(e, le16_to_cpu(e->size) - sizeof(__le64)); in de_get_vbn_le() [all …]
|
D | attrlist.c | 79 Add2Ptr(attr, run_off), in ntfs_load_attr_list() 140 le = Add2Ptr(le, sz); in al_enumerate() 278 return prev ? Add2Ptr(prev, le16_to_cpu(prev->size)) : ni->attr_list.le; in al_find_le_to_insert() 319 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le() 320 le = Add2Ptr(ptr, off); in al_add_le() 324 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le() 343 memmove(le, Add2Ptr(le, sz), old_size - off); in al_add_le() 377 memmove(le, Add2Ptr(le, size), al->size - (off + size)); in al_remove_le()
|
D | record.c | 224 attr = Add2Ptr(rec, off); in mi_enum_attr() 235 attr = Add2Ptr(attr, asize); in mi_enum_attr() 495 attr = Add2Ptr(rec, used - 8); in mi_insert_attr() 503 memmove(Add2Ptr(attr, asize), attr, tail); in mi_insert_attr() 512 memmove(Add2Ptr(attr, name_off), name, name_len * sizeof(short)); in mi_insert_attr() 547 memmove(attr, Add2Ptr(attr, asize), used - aoff); in mi_remove_attr() 573 next = Add2Ptr(attr, asize); in mi_resize_attr() 620 char *next = Add2Ptr(attr, asize); in mi_pack_runs() 630 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 | 167 std5 = Add2Ptr(attr, roff); in ntfs_read_mft() 204 fname = Add2Ptr(attr, roff); in ntfs_read_mft() 278 root = Add2Ptr(attr, roff); in ntfs_read_mft() 402 t64, Add2Ptr(attr, roff), asize - roff); in ntfs_read_mft() 1087 data = Add2Ptr(data, PAGE_SIZE); in inode_read_data() 1323 attr = Add2Ptr(rec, le16_to_cpu(rec->attr_off)); in ntfs_create_inode() 1342 std5 = Add2Ptr(attr, SIZEOF_RESIDENT); in ntfs_create_inode() 1364 attr = Add2Ptr(attr, asize); in ntfs_create_inode() 1397 memcpy(Add2Ptr(attr, SIZEOF_RESIDENT), fname, dsize); in ntfs_create_inode() 1399 attr = Add2Ptr(attr, asize); in ntfs_create_inode() [all …]
|
D | xattr.c | 55 const struct EA_FULL *ea = Add2Ptr(ea_all, *off); in find_ea() 142 memset(Add2Ptr(ea_p, size), 0, add_bytes); in ntfs_read_ea() 147 const struct EA_FULL *ef = Add2Ptr(ea_p, off); in ntfs_read_ea() 215 const struct EA_FULL *ea = Add2Ptr(ea_all, off); in ntfs_list_ea() 287 ea = Add2Ptr(ea_all, off); in ntfs_get_ea() 369 ea = Add2Ptr(ea_all, off); in ntfs_set_ea() 387 memmove(ea, Add2Ptr(ea, ea_sz), size - off - ea_sz); in ntfs_set_ea() 390 memset(Add2Ptr(ea_all, size), 0, ea_sz); in ntfs_set_ea() 414 new_ea = Add2Ptr(ea_all, size); in ntfs_set_ea()
|
D | fsntfs.c | 144 fixup = Add2Ptr(rhdr, fo); in ntfs_fix_pre_write() 153 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_pre_write() 186 fixup = Add2Ptr(rhdr, fo); in ntfs_fix_post_read() 188 ptr = Add2Ptr(rhdr, SECTOR_SIZE - sizeof(short)); in ntfs_fix_post_read() 1056 buffer = Add2Ptr(buffer, op); in ntfs_sb_read() 1098 buf = Add2Ptr(buf, op); in ntfs_sb_write() 1166 buf = Add2Ptr(buf, op); in ntfs_sb_write_run() 1253 buf = Add2Ptr(buf, op); in ntfs_read_run_nb() 1449 end_data = Add2Ptr(bh_data, op); in ntfs_write_bh() 1455 fixup = Add2Ptr(bh_data, fo); in ntfs_write_bh() [all …]
|
D | attrib.c | 82 vcn ? *vcn : svcn, Add2Ptr(attr, run_off), in attr_load_runs() 250 next = Add2Ptr(attr, asize); in attr_make_nonresident() 311 memmove(attr, Add2Ptr(attr, asize), used - aoff); in attr_make_nonresident() 336 attr = Add2Ptr(rec, aoff); in attr_make_nonresident() 366 char *next = Add2Ptr(attr, asize); in attr_set_size_res() 381 memset(Add2Ptr(resident_data(attr), rsize), 0, in attr_set_size_res() 1338 Add2Ptr(attr, ro), le32_to_cpu(attr->size) - ro); in attr_load_runs_vcn() 1415 off32 = Add2Ptr(addr, vbo[1]); in attr_wof_frame_info() 1419 off64 = Add2Ptr(addr, vbo[1]); in attr_wof_frame_info() 1480 off32 = Add2Ptr(addr, voff); in attr_wof_frame_info() [all …]
|
D | dir.c | 287 fname = Add2Ptr(e, sizeof(struct NTFS_DE)); in ntfs_dir_emit() 365 e = Add2Ptr(hdr, off); in ntfs_read_hdr() 550 e = Add2Ptr(hdr, off); in ntfs_dir_count()
|
D | frecord.c | 584 Add2Ptr(attr, roff), in ni_repack() 834 for (; (attr = mi_enum_attr(&ni->mi, attr)); le = Add2Ptr(le, sz)) { in ni_create_attr_list() 889 attr = mi_insert_attr(mi, b->type, Add2Ptr(b, name_off), in ni_create_attr_list() 1201 err = ni_ins_attr_ext(ni, le, attr->type, Add2Ptr(attr, t16), in ni_insert_attr() 1303 err = run_pack(run, 0, svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list() 1358 run_pack(run, svcn, evcn + 1 - svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list() 1489 run_pack(run, svcn, len, Add2Ptr(attr, run_off), run_size, &plen); in ni_insert_nonresident() 1613 Add2Ptr(attr, roff), asize - roff); in ni_delete_all() 2381 Add2Ptr(attr, roff), asize - roff); in ni_decompress_file() 2414 char *rbuf = Add2Ptr(attr, roff); in ni_decompress_file() [all …]
|
D | index.c | 573 e = Add2Ptr(hdr, o); in hdr_find_split() 602 memmove(Add2Ptr(e, ins_bytes), e, to_move); in hdr_insert_head() 742 e = Add2Ptr(hdr, off); in hdr_find_e() 792 e = Add2Ptr(hdr, offs[mid_idx]); in hdr_find_e() 835 memmove(Add2Ptr(before, de_size), before, used - off); in hdr_insert_de() 863 memmove(re, Add2Ptr(re, esize), bytes); in hdr_delete_de() 973 e = Add2Ptr(hdr, eo); in indx_new() 1876 memmove(de_t, Add2Ptr(sp, sp_size), used - le32_to_cpu(hdr1->de_off)); in indx_insert_into_buffer() 2024 e = Add2Ptr(hdr, le32_to_cpu(hdr->de_off)); in indx_find_buffer() 2039 e = Add2Ptr(e, le16_to_cpu(e->size)); in indx_find_buffer()
|
D | namei.c | 305 new_de = Add2Ptr(de, 2048); in ntfs_rename() 473 uni2 = Add2Ptr(uni1, 2048); in ntfs_d_compare()
|
D | super.c | 906 boot = (struct NTFS_BOOT *)Add2Ptr(bh->b_data, boot_off); in ntfs_init_from_boot() 1089 ((struct ATTRIB *)Add2Ptr(rec, ao))->type = ATTR_END; in ntfs_init_from_boot()
|