Lines Matching refs:prg
42 int prg; /* Current position in program */ member
133 *(u16 *) (jit->prg_buf + jit->prg) = (op); \
134 jit->prg += 2; \
147 *(u32 *) (jit->prg_buf + jit->prg) = (op); \
148 jit->prg += 4; \
195 int __rel = ((target) - jit->prg) / 2; \
202 *(u32 *) (jit->prg_buf + jit->prg) = (op1); \
203 *(u16 *) (jit->prg_buf + jit->prg + 4) = (op2); \
205 jit->prg += 6; \
233 unsigned int rel = (int)((target) - jit->prg) / 2; \
242 unsigned int rel = (int)((target) - jit->prg) / 2; \
251 int rel = (addrs[(i) + (off) + 1] - jit->prg) / 2; \
259 unsigned int rel = (int)((target) - jit->prg) / 2; \
266 unsigned int rel = (int)((target) - jit->prg) / 2; \
359 return is_valid_rel(off - jit->prg); in can_use_rel()
474 jit->prg += (last - re + 1) * save_restore_size; in save_restore_regs()
528 jit->tail_call_start = jit->prg; in bpf_jit_prologue()
534 is_valid_ldisp(jit->size - (jit->prg + 2))) { in bpf_jit_prologue()
537 jit->base_ip = jit->prg; in bpf_jit_prologue()
565 jit->exit_ip = jit->prg; in bpf_jit_epilogue()
571 jit->r14_thunk_ip = jit->prg; in bpf_jit_epilogue()
575 EMIT6_PCREL_RIL(0xc6000000, jit->prg + 10); in bpf_jit_epilogue()
578 EMIT6_PCREL_RILB(0xc0000000, REG_1, jit->prg + 14); in bpf_jit_epilogue()
590 jit->r1_thunk_ip = jit->prg; in bpf_jit_epilogue()
594 EMIT6_PCREL_RIL(0xc6000000, jit->prg + 10); in bpf_jit_epilogue()
647 int prg; in bpf_jit_probe_mem() local
666 prg = i == 0 ? probe_prg : nop_prg; in bpf_jit_probe_mem()
667 delta = jit->prg_buf + prg - (u8 *)&ex->insn; in bpf_jit_probe_mem()
710 probe_prg = jit->prg; in bpf_jit_insn()
1265 EMIT4_PCREL_RIC(0xa7040000, 4, jit->prg - 6); in bpf_jit_insn()
1367 patch_1_clrj = jit->prg; in bpf_jit_insn()
1369 jit->prg); in bpf_jit_insn()
1385 patch_2_clij = jit->prg; in bpf_jit_insn()
1387 2, jit->prg); in bpf_jit_insn()
1403 patch_3_brc = jit->prg; in bpf_jit_insn()
1404 EMIT4_PCREL_RIC(0xa7040000, 8, jit->prg); in bpf_jit_insn()
1423 (jit->prg - patch_1_clrj) >> 1; in bpf_jit_insn()
1425 (jit->prg - patch_2_clij) >> 1; in bpf_jit_insn()
1427 (jit->prg - patch_3_brc) >> 1; in bpf_jit_insn()
1654 nop_prg = jit->prg; in bpf_jit_insn()
1676 return jit->addrs[i] == jit->prg; in bpf_is_new_addr_sane()
1679 return jit->addrs[i] >= jit->prg; in bpf_is_new_addr_sane()
1690 delta = jit->prg - jit->addrs[i]; in bpf_set_addr()
1696 jit->addrs[i] = jit->prg; in bpf_set_addr()
1710 jit->prg = 0; in bpf_jit_prog()
1728 jit->lit32_start = jit->prg; in bpf_jit_prog()
1735 jit->size_prg = jit->prg; in bpf_jit_prog()