• Home
  • Raw
  • Download

Lines Matching refs:off

522 	return bsearch(&offset, tab->off, tab->nr_off, sizeof(tab->off[0]), bpf_map_kptr_off_cmp);  in bpf_map_kptr_off_contains()
533 if (tab->off[i].kptr.module) in bpf_map_free_kptr_off_tab()
534 module_put(tab->off[i].kptr.module); in bpf_map_free_kptr_off_tab()
535 btf_put(tab->off[i].kptr.btf); in bpf_map_free_kptr_off_tab()
548 size = offsetof(struct bpf_map_value_off, off[tab->nr_off]); in bpf_map_copy_kptr_off_tab()
554 btf_get(tab->off[i].kptr.btf); in bpf_map_copy_kptr_off_tab()
555 if (tab->off[i].kptr.module && !try_module_get(tab->off[i].kptr.module)) { in bpf_map_copy_kptr_off_tab()
557 if (tab->off[i].kptr.module) in bpf_map_copy_kptr_off_tab()
558 module_put(tab->off[i].kptr.module); in bpf_map_copy_kptr_off_tab()
559 btf_put(tab->off[i].kptr.btf); in bpf_map_copy_kptr_off_tab()
580 size = offsetof(struct bpf_map_value_off, off[tab_a->nr_off]); in bpf_map_equal_kptr_off_tab()
596 struct bpf_map_value_off_desc *off_desc = &tab->off[i]; in bpf_map_free_kptrs()
972 u32 *off = &off_arr->field_off[off_arr->cnt]; in bpf_map_alloc_off_arr() local
976 *off++ = tab->off[i].offset; in bpf_map_alloc_off_arr()
3803 unsigned long addr, u32 *off, in bpf_map_from_imm() argument
3810 for (i = 0, *off = 0; i < prog->aux->used_map_cnt; i++) { in bpf_map_from_imm()
3818 if (!map->ops->map_direct_value_meta(map, addr, off)) { in bpf_map_from_imm()
3835 u32 off, type; in bpf_insn_prepare_dump() local
3870 map = bpf_map_from_imm(prog, imm, &off, &type); in bpf_insn_prepare_dump()
3874 insns[i + 1].imm = off; in bpf_insn_prepare_dump()
5094 static bool syscall_prog_is_valid_access(int off, int size, in syscall_prog_is_valid_access() argument
5099 if (off < 0 || off >= U16_MAX) in syscall_prog_is_valid_access()
5101 if (off % size != 0) in syscall_prog_is_valid_access()