/openbmc/linux/fs/ntfs3/ |
H A D | fslog.c | 476 ra = Add2Ptr(rhdr, ro); in is_rst_area_valid() 775 e = Add2Ptr(rt, off); in free_rsttbl_idx() 874 e = Add2Ptr(t, off); in alloc_rsttbl_idx() 922 e = Add2Ptr(rt, vbo); in alloc_rsttbl_from_idx() 932 e = Add2Ptr(rt, off); in alloc_rsttbl_from_idx() 953 e = Add2Ptr(rt, off); in alloc_rsttbl_from_idx() 3224 Add2Ptr(attr2, asize) > Add2Ptr(lrh, rec_len) || in do_action() 3296 memmove(Add2Ptr(attr, nsize), Add2Ptr(attr, asize), in do_action() 3335 memmove(Add2Ptr(attr, nsize), Add2Ptr(attr, asize), in do_action() 3387 Add2Ptr(data, esize) > Add2Ptr(lrh, rec_len) || in do_action() [all …]
|
H A 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() 423 le = Add2Ptr(al->le, off); in al_delete_le() 430 memmove(le, Add2Ptr(le, size), al->size - (off + size)); in al_delete_le()
|
H A 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() 664 return Add2Ptr(e, le16_to_cpu(e->size)); in de_get_next() 670 Add2Ptr(e, sizeof(struct NTFS_DE)) : in de_get_fname() 723 e = Add2Ptr(hdr, de_off); in hdr_first_de() [all …]
|
H A D | record.c | 224 attr = Add2Ptr(rec, off); in mi_enum_attr() 242 attr = Add2Ptr(attr, asize); in mi_enum_attr() 496 attr = Add2Ptr(rec, used - 8); in mi_insert_attr() 504 memmove(Add2Ptr(attr, asize), attr, tail); in mi_insert_attr() 513 memmove(Add2Ptr(attr, name_off), name, name_len * sizeof(short)); in mi_insert_attr() 548 memmove(attr, Add2Ptr(attr, asize), used - aoff); in mi_remove_attr() 574 next = Add2Ptr(attr, asize); in mi_resize_attr() 621 char *next = Add2Ptr(attr, asize); in mi_pack_runs() 631 err = run_pack(run, svcn, len, Add2Ptr(attr, run_off), run_size + dsize, in mi_pack_runs()
|
H A D | debug.h | 17 #ifndef Add2Ptr 18 #define Add2Ptr(P, I) ((void *)((u8 *)(P) + (I))) macro
|
H A D | inode.c | 167 std5 = Add2Ptr(attr, roff); in ntfs_read_mft() 202 fname = Add2Ptr(attr, roff); in ntfs_read_mft() 276 root = Add2Ptr(attr, roff); in ntfs_read_mft() 1117 data = Add2Ptr(data, PAGE_SIZE); in inode_write_data() 1392 attr = Add2Ptr(attr, asize); in ntfs_create_inode() 1427 attr = Add2Ptr(attr, asize); in ntfs_create_inode() 1440 attr = Add2Ptr(attr, asize); in ntfs_create_inode() 1542 attr = Add2Ptr(attr, asize); in ntfs_create_inode() 1611 attr = Add2Ptr(attr, asize); in ntfs_create_inode() 1986 uname = Add2Ptr(rp, in ntfs_readlink_hlp() [all …]
|
H A 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() 216 ea = Add2Ptr(ea_all, off); in ntfs_list_ea() 286 ea = Add2Ptr(ea_all, off); in ntfs_get_ea() 368 ea = Add2Ptr(ea_all, off); in ntfs_set_ea() 386 memmove(ea, Add2Ptr(ea, ea_sz), size - off - ea_sz); in ntfs_set_ea() 389 memset(Add2Ptr(ea_all, size), 0, ea_sz); in ntfs_set_ea() 413 new_ea = Add2Ptr(ea_all, size); in ntfs_set_ea()
|
H A D | attrib.c | 82 vcn ? *vcn : svcn, Add2Ptr(attr, run_off), in attr_load_runs() 250 next = Add2Ptr(attr, asize); in attr_make_nonresident() 337 attr = Add2Ptr(rec, aoff); in attr_make_nonresident() 367 char *next = Add2Ptr(attr, asize); in attr_set_size_res() 1427 off32 = Add2Ptr(addr, vbo[1]); in attr_wof_frame_info() 1431 off64 = Add2Ptr(addr, vbo[1]); in attr_wof_frame_info() 1491 off32 = Add2Ptr(addr, voff); in attr_wof_frame_info() 1494 off64 = Add2Ptr(addr, voff); in attr_wof_frame_info() 1508 off32 = Add2Ptr(addr, voff); in attr_wof_frame_info() 1512 off64 = Add2Ptr(addr, voff); in attr_wof_frame_info() [all …]
|
H A D | fsntfs.c | 144 fixup = Add2Ptr(rhdr, fo); in ntfs_fix_pre_write() 186 fixup = Add2Ptr(rhdr, fo); 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() 1465 *(__le16 *)Add2Ptr(rhdr, fo) = sample; in ntfs_write_bh() 1488 rhdr = Add2Ptr(rhdr, op); in ntfs_write_bh() [all …]
|
H A D | dir.c | 284 fname = Add2Ptr(e, sizeof(struct NTFS_DE)); in ntfs_filldir() 359 e = Add2Ptr(hdr, off); in ntfs_read_hdr() 538 e = Add2Ptr(hdr, off); in ntfs_dir_count()
|
H A D | frecord.c | 582 Add2Ptr(attr, roff), in ni_repack() 887 attr = mi_insert_attr(mi, b->type, Add2Ptr(b, name_off), in ni_create_attr_list() 1199 err = ni_ins_attr_ext(ni, le, attr->type, Add2Ptr(attr, t16), in ni_insert_attr() 1301 err = run_pack(run, 0, svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list() 1609 Add2Ptr(attr, roff), asize - roff); in ni_delete_all() 2384 Add2Ptr(attr, roff), asize - roff); in ni_decompress_file() 2417 char *rbuf = Add2Ptr(attr, roff); in ni_decompress_file() 2648 sbi, Add2Ptr(resident_data(attr), vbo_data), in ni_read_frame() 3012 *de2 = Add2Ptr(de, 1024); in ni_remove_name() 3068 memcpy(Add2Ptr(attr, SIZEOF_RESIDENT), de + 1, de_key_size); in ni_remove_name_undo() [all …]
|
H A 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()
|
H A D | namei.c | 322 new_de = Add2Ptr(de, 2048); in ntfs_rename() 579 uni2 = Add2Ptr(uni1, 2048); in ntfs_d_compare()
|
H A D | super.c | 899 boot = (struct NTFS_BOOT *)Add2Ptr(bh->b_data, boot_off); in ntfs_init_from_boot() 1082 ((struct ATTRIB *)Add2Ptr(rec, ao))->type = ATTR_END; in ntfs_init_from_boot() 1441 memcpy(Add2Ptr(t, done), page_address(page), in ntfs_fill_super() 1494 u16 *dst = Add2Ptr(sbi->upcase, idx << PAGE_SHIFT); in ntfs_fill_super()
|