Lines Matching defs:offset
397 off_t offset = FIELD_GET(BPF_FIXUP_OFFSET_MASK, ex->fixup);
400 regs->csr_era = (unsigned long)&ex->fixup - offset;
411 off_t offset;
423 offset = pc - (long)&ex->insn;
424 if (WARN_ON_ONCE(offset >= 0 || offset < INT_MIN))
427 ex->insn = offset;
430 * Since the extable follows the program, the fixup offset is always
437 offset = (long)&ex->fixup - (pc + LOONGARCH_INSN_SIZE);
438 if (!FIELD_FIT(BPF_FIXUP_OFFSET_MASK, offset))
442 ex->fixup = FIELD_PREP(BPF_FIXUP_OFFSET_MASK, offset) | FIELD_PREP(BPF_FIXUP_REG_MASK, dst_reg);
1046 ctx->offset[i] = ctx->idx;
1052 ctx->offset[i] = ctx->idx;
1060 ctx->offset[i] = ctx->idx;
1133 if (jit_data->ctx.offset) {
1145 ctx.offset = kvcalloc(prog->len + 1, sizeof(u32), GFP_KERNEL);
1146 if (ctx.offset == NULL) {
1231 /* offset[prog->len] is the size of program */
1233 ctx.offset[i] *= LOONGARCH_INSN_SIZE;
1234 bpf_prog_fill_jited_linfo(prog, ctx.offset + 1);
1237 kvfree(ctx.offset);