Lines Matching refs:Add2Ptr

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()
828 last_free = Add2Ptr(t, lf); in init_rsttbl()
831 e = Add2Ptr(e, esize), off += esize) { in init_rsttbl()
858 *(__le32 *)Add2Ptr(rt, le32_to_cpu(tbl->last_free)) = osize; in extend_rsttbl()
889 e = Add2Ptr(t, off); in alloc_rsttbl_idx()
903 return Add2Ptr(t, off); in alloc_rsttbl_idx()
937 e = Add2Ptr(rt, vbo); in alloc_rsttbl_from_idx()
947 e = Add2Ptr(rt, off); in alloc_rsttbl_from_idx()
968 e = Add2Ptr(rt, off); in alloc_rsttbl_from_idx()
1176 memcpy(*buffer, Add2Ptr(page_buf, page_off), bytes); in read_log_page()
1260 ra = Add2Ptr(r_page, le16_to_cpu(r_page->ra_off)); in log_read_rst()
1277 ra = Add2Ptr(r_page, le16_to_cpu(r_page->ra_off)); in log_read_rst()
1744 memmove(Add2Ptr(page_bufs, tails * log->page_size), best_page, in last_log_lsn()
1810 Add2Ptr(page_bufs, curpage_off - page_off); in last_log_lsn()
2176 tmp_page = Add2Ptr(page_bufs, page_off1 - page_off); in last_log_lsn()
2224 tmp_page = Add2Ptr(tmp_page, log->page_size); in last_log_lsn()
2286 memcpy(buffer, Add2Ptr(ph, off), tail); in read_log_rec_buf()
2311 buffer = Add2Ptr(buffer, tail); in read_log_rec_buf()
2325 Add2Ptr(log->ra, le16_to_cpu(log->ra->client_off)); in read_rst_area()
2442 lcb->log_rec = Add2Ptr(rh, sizeof(struct LFS_RECORD_HDR)); in find_log_rec()
2469 cr = Add2Ptr(log->ra, le16_to_cpu(log->ra->client_off)); in read_log_rec_lcb()
2559 log, Add2Ptr(log->ra, le16_to_cpu(log->ra->client_off)), in find_client_next_lsn()
2621 e = Add2Ptr(hdr, de_off); in check_index_header()
2624 struct NTFS_DE *next = Add2Ptr(e, esize); in check_index_header()
2733 Add2Ptr(attr, run_off), asize - run_off) < 0) { in check_attr()
2745 if (fname_full_size(Add2Ptr( in check_attr()
2803 for (attr = Add2Ptr(rec, ao); attr->type != ATTR_END; in check_file_record()
2804 attr = Add2Ptr(attr, le32_to_cpu(attr->size))) { in check_file_record()
2837 const struct ATTRIB *attr = Add2Ptr(rec, o); in check_if_attr()
2850 attr = Add2Ptr(attr, asize); in check_if_attr()
2861 const struct ATTRIB *attr = Add2Ptr(rec, o); in check_if_index_root()
2874 attr = Add2Ptr(attr, asize); in check_if_index_root()
2887 const struct NTFS_DE *e = Add2Ptr(hdr, de_off); in check_if_root_index()
2901 e = Add2Ptr(e, esize); in check_if_root_index()
2912 const struct NTFS_DE *e = Add2Ptr(hdr, de_off); in check_if_alloc_index()
2927 e = Add2Ptr(e, esize); in check_if_alloc_index()
2938 u8 *next = Add2Ptr(attr, asize); in change_attr_size()
2941 memmove(Add2Ptr(attr, nsize), next, used - PtrOffset(rec, next)); in change_attr_size()
3018 memcpy(Add2Ptr(attr, SIZEOF_NONRESIDENT_EX), name, in attr_create_nonres_log()
3024 memcpy(Add2Ptr(attr, SIZEOF_NONRESIDENT), name, in attr_create_nonres_log()
3119 attr = Add2Ptr(rec, roff); in do_action()
3152 attr = Add2Ptr(rec, roff); in do_action()
3211 memcpy(Add2Ptr(rec, roff), data, dlen); in do_action()
3239 Add2Ptr(attr2, asize) > Add2Ptr(lrh, rec_len) || in do_action()
3244 memmove(Add2Ptr(attr, asize), attr, used - roff); in do_action()
3280 memmove(attr, Add2Ptr(attr, asize), used - asize - roff); in do_action()
3307 memmove(Add2Ptr(attr, aoff), data, dlen); in do_action()
3311 memmove(Add2Ptr(attr, nsize), Add2Ptr(attr, asize), in do_action()
3320 memmove(Add2Ptr(attr, aoff), data, dlen); in do_action()
3350 memmove(Add2Ptr(attr, nsize), Add2Ptr(attr, asize), in do_action()
3354 memmove(Add2Ptr(attr, aoff), data, dlen); in do_action()
3402 Add2Ptr(data, esize) > Add2Ptr(lrh, rec_len) || in do_action()
3407 e1 = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3411 memmove(Add2Ptr(e1, esize), e1, in do_action()
3412 PtrOffset(e1, Add2Ptr(hdr, used))); in do_action()
3432 e1 = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3434 e2 = Add2Ptr(e1, esize); in do_action()
3436 memmove(e1, e2, PtrOffset(e2, Add2Ptr(hdr, used))); in do_action()
3456 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3471 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3486 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3488 memmove(Add2Ptr(e, le16_to_cpu(e->view.data_off)), data, dlen); in do_action()
3505 memcpy(Add2Ptr(buffer_le, roff), data, dlen); in do_action()
3513 ib = Add2Ptr(buffer_le, roff); in do_action()
3517 e1 = Add2Ptr(ib, aoff); in do_action()
3528 Add2Ptr(e, esize) > Add2Ptr(lrh, rec_len) || in do_action()
3533 memmove(Add2Ptr(e1, esize), e1, in do_action()
3534 PtrOffset(e1, Add2Ptr(hdr, used))); in do_action()
3545 ib = Add2Ptr(buffer_le, roff); in do_action()
3547 e = Add2Ptr(ib, aoff); in do_action()
3560 e1 = Add2Ptr(e, esize); in do_action()
3564 memmove(e, e1, PtrOffset(e1, Add2Ptr(hdr, used))); in do_action()
3574 ib = Add2Ptr(buffer_le, roff); in do_action()
3576 e = Add2Ptr(ib, aoff); in do_action()
3597 ib = Add2Ptr(buffer_le, roff); in do_action()
3599 e = Add2Ptr(ib, aoff); in do_action()
3618 ib = Add2Ptr(buffer_le, roff); in do_action()
3620 e = Add2Ptr(ib, aoff); in do_action()
3648 ntfs_bitmap_set_le(Add2Ptr(buffer_le, roff), off, bits); in do_action()
3661 ntfs_bitmap_clear_le(Add2Ptr(buffer_le, roff), off, bits); in do_action()
3666 ib = Add2Ptr(buffer_le, roff); in do_action()
3668 e = Add2Ptr(ib, aoff); in do_action()
3680 memmove(Add2Ptr(e, le16_to_cpu(e->view.data_off)), data, dlen); in do_action()
3884 Add2Ptr(log->rst_info.r_page, in log_replay()
4006 oldest_client_lsn(Add2Ptr(ra2, le16_to_cpu(ra2->client_off)), in log_replay()
4036 memcpy(ra->clients, Add2Ptr(ra2, t16), in log_replay()
4076 ca = Add2Ptr(ra, le16_to_cpu(ra->client_off)); in log_replay()
4151 rt = Add2Ptr(lrh, t16); in log_replay()
4191 rt = Add2Ptr(lrh, t16); in log_replay()
4269 attr_names = kmemdup(Add2Ptr(lrh, t32), attr_names_bytes, GFP_NOFS); in log_replay()
4300 rt = Add2Ptr(lrh, t16); in log_replay()
4351 ane = Add2Ptr(attr_names, off); in log_replay()
4365 oe = Add2Ptr(oatbl, t16); in log_replay()
4447 tr = Add2Ptr(trtbl, transact_id); in log_replay()
4550 Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
4603 struct OPEN_ATTR_ENRTY_32 *oe0 = Add2Ptr(lrh, t16); in log_replay()
4612 memcpy(oe, Add2Ptr(lrh, t16), bytes_per_attr_entry); in log_replay()
4624 Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)), t16); in log_replay()
4646 tr = Add2Ptr(trtbl, transact_id); in log_replay()
4652 tr = Add2Ptr(trtbl, transact_id); in log_replay()
4657 tr = Add2Ptr(trtbl, transact_id); in log_replay()
4795 Add2Ptr(attr, roff), t32 - roff); in log_replay()
4824 oe = Add2Ptr(oatbl, le32_to_cpu(dp->target_attr)); in log_replay()
4928 oe = Add2Ptr(oatbl, t16); in log_replay()
4951 data = Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
5061 oe = Add2Ptr(oatbl, le16_to_cpu(lrh->target_attr)); in log_replay()
5103 data = Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)); in log_replay()
5162 ra2 = Add2Ptr(rh, t16); in log_replay()