Lines Matching refs:p
14 static uint32_t _asm_x86_inslen(const uint8_t* p) in _asm_x86_inslen() argument
62 uint32_t x = map_op1[*p]; in _asm_x86_inslen()
70 x = map_op1[*++p]; in _asm_x86_inslen()
74 x = map_op2[*++p]; in _asm_x86_inslen()
77 p++; in _asm_x86_inslen()
85 if (p[1] & 0x38) { in _asm_x86_inslen()
93 if (p[1] < 0xc0) { in _asm_x86_inslen()
99 x = *++p & 0x1f; in _asm_x86_inslen()
102 p += 2; in _asm_x86_inslen()
107 p++; in _asm_x86_inslen()
109 x = map_op2[*++p]; in _asm_x86_inslen()
118 x = *++p; in _asm_x86_inslen()
136 if (x < 0x40 && (p[1] & 7) == 5) { in _asm_x86_inslen()
151 uint8_t *p, *end; in ir_patch_code() local
153 p = (uint8_t*)code; in ir_patch_code()
154 end = p + size - 4; in ir_patch_code()
155 while (p < end) { in ir_patch_code()
156 …if ((*(unaligned_uint16_t*)p & 0xf0ff) == 0x800f && p + *(unaligned_int32_t*)(p+2) == (uint8_t*)fr… in ir_patch_code()
157 *(unaligned_int32_t*)(p+2) = ((uint8_t*)to_addr - (p + 6)); in ir_patch_code()
159 } else if (*p == 0xe9 && p + *(unaligned_int32_t*)(p+1) == (uint8_t*)from_addr - 5) { in ir_patch_code()
160 *(unaligned_int32_t*)(p+1) = ((uint8_t*)to_addr - (p + 5)); in ir_patch_code()
163 p += _asm_x86_inslen(p); in ir_patch_code()
176 uint8_t *p, *end; in ir_patch_code() local
181 p = end + size; in ir_patch_code()
182 while (p > end) { in ir_patch_code()
186 p -= 4; in ir_patch_code()
187 ins_ptr = (uint32_t*)p; in ir_patch_code()
200 veneer = p; in ir_patch_code()