Lines Matching refs:im
667 static bool is_spilled_scalar_after(const struct bpf_stack_state *stack, int im) in is_spilled_scalar_after() argument
669 return stack->slot_type[im] == STACK_SPILL && in is_spilled_scalar_after()
674 struct bpf_stack_state *stack, int im) in is_stack_misc_after() argument
678 for (i = im; i < ARRAY_SIZE(stack->slot_type); ++i) { in is_stack_misc_after()
690 struct bpf_stack_state *stack, int im) in scalar_reg_for_stack() argument
692 if (is_spilled_scalar_after(stack, im)) in scalar_reg_for_stack()
695 if (is_stack_misc_after(env, stack, im)) in scalar_reg_for_stack()
713 int im = i % BPF_REG_SIZE; in stacksafe() local
751 if (im == 0 || im == 4) { in stacksafe()
752 old_reg = scalar_reg_for_stack(env, &old->stack[spi], im); in stacksafe()
753 cur_reg = scalar_reg_for_stack(env, &cur->stack[spi], im); in stacksafe()
757 i += (im == 0 ? BPF_REG_SIZE - 1 : 3); in stacksafe()