Lines Matching refs:desc
2726 struct bpf_kfunc_desc desc = { in find_kfunc_desc() local
2733 return bsearch(&desc, tab->descs, tab->nr_descs, in find_kfunc_desc()
2740 const struct bpf_kfunc_desc *desc; in bpf_get_kfunc_addr() local
2742 desc = find_kfunc_desc(prog, func_id, btf_fd_idx); in bpf_get_kfunc_addr()
2743 if (!desc) in bpf_get_kfunc_addr()
2746 *func_addr = (u8 *)desc->addr; in bpf_get_kfunc_addr()
2848 struct bpf_kfunc_desc *desc; in add_kfunc_call() local
2955 desc = &tab->descs[tab->nr_descs++]; in add_kfunc_call()
2956 desc->func_id = func_id; in add_kfunc_call()
2957 desc->imm = call_imm; in add_kfunc_call()
2958 desc->offset = offset; in add_kfunc_call()
2959 desc->addr = addr; in add_kfunc_call()
2962 &desc->func_model); in add_kfunc_call()
3002 const struct bpf_kfunc_desc desc = { in bpf_jit_find_kfunc_model() local
3010 res = bsearch(&desc, tab->descs, tab->nr_descs, in bpf_jit_find_kfunc_model()
17891 struct bpf_jit_poke_descriptor *desc; in adjust_poke_descs() local
17894 desc = &tab[i]; in adjust_poke_descs()
17895 if (desc->insn_idx <= off) in adjust_poke_descs()
17897 desc->insn_idx += len - 1; in adjust_poke_descs()
18829 const struct bpf_kfunc_desc *desc; in fixup_kfunc_call() local
18842 desc = find_kfunc_desc(env->prog, insn->imm, insn->off); in fixup_kfunc_call()
18843 if (!desc) { in fixup_kfunc_call()
18850 insn->imm = BPF_CALL_IMM(desc->addr); in fixup_kfunc_call()
18853 if (desc->func_id == special_kfunc_list[KF_bpf_obj_new_impl]) { in fixup_kfunc_call()
18863 } else if (desc->func_id == special_kfunc_list[KF_bpf_obj_drop_impl] || in fixup_kfunc_call()
18864 desc->func_id == special_kfunc_list[KF_bpf_refcount_acquire_impl]) { in fixup_kfunc_call()
18868 if (desc->func_id == special_kfunc_list[KF_bpf_refcount_acquire_impl] && in fixup_kfunc_call()
18879 } else if (desc->func_id == special_kfunc_list[KF_bpf_list_push_back_impl] || in fixup_kfunc_call()
18880 desc->func_id == special_kfunc_list[KF_bpf_list_push_front_impl] || in fixup_kfunc_call()
18881 desc->func_id == special_kfunc_list[KF_bpf_rbtree_add_impl]) { in fixup_kfunc_call()
18887 if (desc->func_id == special_kfunc_list[KF_bpf_rbtree_add_impl]) { in fixup_kfunc_call()
18900 } else if (desc->func_id == special_kfunc_list[KF_bpf_cast_to_kern_ctx] || in fixup_kfunc_call()
18901 desc->func_id == special_kfunc_list[KF_bpf_rdonly_cast]) { in fixup_kfunc_call()
19093 struct bpf_jit_poke_descriptor desc = { in do_misc_fixups() local
19100 ret = bpf_jit_add_poke_descriptor(prog, &desc); in do_misc_fixups()