Lines Matching refs:uintptr_t
48 static uintptr_t fbt_trampoline;
123 (((uintptr_t)(to) - (uintptr_t)(from) >> 2) & FBT_DISP30_MASK)
127 (((uintptr_t)(to) - (uintptr_t)(from) >> 2) & FBT_DISP22_MASK)
131 (((uintptr_t)(to) - (uintptr_t)(from) >> 2) & FBT_DISP19_MASK)
142 (((uintptr_t)(to) - (uintptr_t)(from) >> 2) & FBT_DISP14_MASK)
265 #define FBT_BDEST(va, instr) ((uintptr_t)(va) + \
267 #define FBT_BPCCDEST(va, instr) ((uintptr_t)(va) + \
269 #define FBT_BPRDEST(va, instr) ((uintptr_t)(va) + \
315 uintptr_t fbtp_addr;
328 uintptr_t fbtt_va;
329 uintptr_t fbtt_limit;
330 uintptr_t fbtt_next;
334 fbt_trampoline_map(uintptr_t tramp, size_t size)
336 uintptr_t offs;
386 static uintptr_t
392 uintptr_t va = tramp->fbtt_va;
393 uintptr_t base = tramp->fbtt_next;
433 uintptr_t ret = (uintptr_t)instr - sizeof (uint32_t);
436 *tinstr = FBT_CALL((uintptr_t)tinstr - base + va, dtrace_probe);
440 uintptr_t slot = *--tinstr;
441 uintptr_t ret = (uintptr_t)instr + sizeof (uint32_t);
444 *tinstr = FBT_CALL((uintptr_t)tinstr - base + va, dtrace_probe);
468 *tinstr = FBT_BA((uintptr_t)tinstr - base + va, ret);
486 uintptr_t targ = FBT_BPRDEST(instr, first);
492 *tinstr = FBT_BAA((uintptr_t)tinstr - base + va,
495 *tinstr = FBT_BAA((uintptr_t)tinstr - base + va, targ);
500 tramp->fbtt_va += (uintptr_t)tinstr - tramp->fbtt_next;
501 tramp->fbtt_next = (uintptr_t)tinstr;
649 if (*instr < (uintptr_t)instr &&
650 *instr >= (uintptr_t)instr - offset)
688 uintptr_t va = tramp->fbtt_va;
689 uintptr_t base = tramp->fbtt_next;
807 *tinstr = FBT_CALL((uintptr_t)tinstr - base + va, dtrace_probe);
828 dest = (uintptr_t)instr + (FBT_FMT1_DISP30(cti) << 2);
829 *tinstr = FBT_CALL((uintptr_t)tinstr - base + va, dest);
836 tramp->fbtt_va += (uintptr_t)tinstr - tramp->fbtt_next;
837 tramp->fbtt_next = (uintptr_t)tinstr;
847 uintptr_t va = tramp->fbtt_va;
848 uintptr_t base = tramp->fbtt_next;
920 uintptr_t base = (uintptr_t)funcbase;
921 uintptr_t limit = (uintptr_t)funclim;
961 *tinstr = FBT_CALL((uintptr_t)tinstr - base + va, dtrace_probe);
971 dest = (uintptr_t)instr + (FBT_FMT1_DISP30(cti) << 2);
972 *tinstr = FBT_CALL((uintptr_t)tinstr - base + va, dest);
990 tramp->fbtt_va += (uintptr_t)tinstr - tramp->fbtt_next;
991 tramp->fbtt_next = (uintptr_t)tinstr;
1010 uintptr_t offset;
1083 (uintptr_t)fbt_trampoline_map((uintptr_t)mp->fbt_tab,
1086 tramp.fbtt_va = (uintptr_t)mp->fbt_tab;
1354 tramp.fbtt_next = (uintptr_t)faketramp;
1358 fbt_size += tramp.fbtt_next - (uintptr_t)faketramp;
1376 (uint32_t *)((uintptr_t)mp->textwin +
1377 ((uintptr_t)instr - (uintptr_t)mp->text));
1391 offset = (uintptr_t)instr - (uintptr_t)base;
1397 tramp.fbtt_next = (uintptr_t)faketramp;
1401 fbt_size += tramp.fbtt_next - (uintptr_t)faketramp;
1428 fbt->fbtp_patchpoint = (uint32_t *)((uintptr_t)mp->textwin +
1429 ((uintptr_t)instr - (uintptr_t)mp->text));