Home
last modified time | relevance | path

Searched refs:Add2Ptr (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/fs/ntfs3/
Dfslog.c476 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 …]
Dattrlist.c78 Add2Ptr(attr, run_off), in ntfs_load_attr_list()
128 le = Add2Ptr(le, sz); in al_enumerate()
267 return prev ? Add2Ptr(prev, le16_to_cpu(prev->size)) : ni->attr_list.le; in al_find_le_to_insert()
308 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le()
309 le = Add2Ptr(ptr, off); in al_add_le()
313 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le()
332 memmove(le, Add2Ptr(le, sz), old_size - off); in al_add_le()
366 memmove(le, Add2Ptr(le, size), al->size - (off + size)); in al_remove_le()
413 le = Add2Ptr(al->le, off); in al_delete_le()
420 memmove(le, Add2Ptr(le, size), al->size - (off + size)); in al_delete_le()
Dntfs.h431 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 …]
Drecord.c210 attr = Add2Ptr(rec, off); in mi_enum_attr()
228 attr = Add2Ptr(attr, asize); in mi_enum_attr()
447 attr = Add2Ptr(rec, used - 8); in mi_insert_attr()
454 memmove(Add2Ptr(attr, asize), attr, tail); in mi_insert_attr()
463 memmove(Add2Ptr(attr, name_off), name, name_len * sizeof(short)); in mi_insert_attr()
493 memmove(attr, Add2Ptr(attr, asize), used - aoff); in mi_remove_attr()
519 next = Add2Ptr(attr, asize); in mi_resize_attr()
562 char *next = Add2Ptr(attr, asize); in mi_pack_runs()
572 err = run_pack(run, svcn, len, Add2Ptr(attr, run_off), run_size + dsize, in mi_pack_runs()
Dinode.c145 std5 = Add2Ptr(attr, roff); in ntfs_read_mft()
178 fname = Add2Ptr(attr, roff); in ntfs_read_mft()
252 root = Add2Ptr(attr, roff); in ntfs_read_mft()
378 t64, Add2Ptr(attr, roff), asize - roff); in ntfs_read_mft()
1086 data = Add2Ptr(data, PAGE_SIZE); in inode_write_data()
1299 attr = Add2Ptr(rec, le16_to_cpu(rec->attr_off)); in ntfs_create_inode()
1318 std5 = Add2Ptr(attr, SIZEOF_RESIDENT); in ntfs_create_inode()
1341 attr = Add2Ptr(attr, asize); in ntfs_create_inode()
1367 memcpy(Add2Ptr(attr, SIZEOF_RESIDENT), fname, dsize); in ntfs_create_inode()
1369 attr = Add2Ptr(attr, asize); in ntfs_create_inode()
[all …]
Ddebug.h17 #ifndef Add2Ptr
18 #define Add2Ptr(P, I) ((void *)((u8 *)(P) + (I))) macro
Dxattr.c53 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()
Dattrib.c109 vcn ? *vcn : svcn, Add2Ptr(attr, run_off), in attr_load_runs()
261 next = Add2Ptr(attr, asize); in attr_make_nonresident()
319 memmove(attr, Add2Ptr(attr, asize), used - aoff); in attr_make_nonresident()
344 attr = Add2Ptr(rec, aoff); in attr_make_nonresident()
374 char *next = Add2Ptr(attr, asize); in attr_set_size_res()
389 memset(Add2Ptr(resident_data(attr), rsize), 0, in attr_set_size_res()
1249 Add2Ptr(attr, ro), le32_to_cpu(attr->size) - ro); in attr_load_runs_vcn()
1326 off32 = Add2Ptr(addr, vbo[1]); in attr_wof_frame_info()
1330 off64 = Add2Ptr(addr, vbo[1]); in attr_wof_frame_info()
1390 off32 = Add2Ptr(addr, voff); in attr_wof_frame_info()
[all …]
Dfsntfs.c119 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()
1008 buffer = Add2Ptr(buffer, op); in ntfs_sb_read()
1050 buf = Add2Ptr(buf, op); in ntfs_sb_write()
1118 buf = Add2Ptr(buf, op); in ntfs_sb_write_run()
1205 buf = Add2Ptr(buf, op); in ntfs_read_run_nb()
1401 end_data = Add2Ptr(bh_data, op); in ntfs_write_bh()
1407 fixup = Add2Ptr(bh_data, fo); in ntfs_write_bh()
[all …]
Dfrecord.c578 Add2Ptr(attr, roff), in ni_repack()
829 for (; (attr = mi_enum_attr(&ni->mi, attr)); le = Add2Ptr(le, sz)) { in ni_create_attr_list()
883 attr = mi_insert_attr(mi, b->type, Add2Ptr(b, name_off), in ni_create_attr_list()
1193 err = ni_ins_attr_ext(ni, le, attr->type, Add2Ptr(attr, t16), in ni_insert_attr()
1295 err = run_pack(run, 0, svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list()
1350 run_pack(run, svcn, evcn + 1 - svcn, Add2Ptr(attr, SIZEOF_NONRESIDENT), in ni_expand_mft_list()
1481 run_pack(run, svcn, len, Add2Ptr(attr, run_off), run_size, &plen); in ni_insert_nonresident()
1603 Add2Ptr(attr, roff), asize - roff); in ni_delete_all()
2310 Add2Ptr(attr, roff), asize - roff); in ni_decompress_file()
2343 char *rbuf = Add2Ptr(attr, roff); in ni_decompress_file()
[all …]
Ddir.c284 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()
Dindex.c572 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()
1761 memmove(de_t, Add2Ptr(sp, sp_size), used - le32_to_cpu(hdr1->de_off)); in indx_insert_into_buffer()
1907 e = Add2Ptr(hdr, le32_to_cpu(hdr->de_off)); in indx_find_buffer()
1922 e = Add2Ptr(e, le16_to_cpu(e->size)); in indx_find_buffer()
Dnamei.c298 new_de = Add2Ptr(de, 2048); in ntfs_rename()
Dsuper.c852 ((struct ATTRIB *)Add2Ptr(rec, ao))->type = ATTR_END; in ntfs_init_from_boot()
1158 memcpy(Add2Ptr(t, done), page_address(page), in ntfs_fill_super()
1209 u16 *dst = Add2Ptr(sbi->upcase, idx << PAGE_SHIFT); in ntfs_fill_super()