Lines Matching refs:ops
106 const struct bpf_map_ops *ops; in find_and_alloc_map() local
114 ops = bpf_map_types[type]; in find_and_alloc_map()
115 if (!ops) in find_and_alloc_map()
118 if (ops->map_alloc_check) { in find_and_alloc_map()
119 err = ops->map_alloc_check(attr); in find_and_alloc_map()
124 ops = &bpf_map_offload_ops; in find_and_alloc_map()
125 map = ops->map_alloc(attr); in find_and_alloc_map()
128 map->ops = ops; in find_and_alloc_map()
182 return map->ops->map_update_elem(map, key, value, flags); in bpf_map_update_value()
216 err = map->ops->map_push_elem(map, value, flags); in bpf_map_update_value()
219 err = map->ops->map_update_elem(map, key, value, flags); in bpf_map_update_value()
255 err = map->ops->map_peek_elem(map, value); in bpf_map_copy_value()
261 if (map->ops->map_lookup_elem_sys_only) in bpf_map_copy_value()
262 ptr = map->ops->map_lookup_elem_sys_only(map, key); in bpf_map_copy_value()
264 ptr = map->ops->map_lookup_elem(map, key); in bpf_map_copy_value()
486 map->ops->map_free(map); in bpf_map_free_deferred()
493 if (map->ops->map_release_uref) in bpf_map_put_uref()
494 map->ops->map_release_uref(map); in bpf_map_put_uref()
528 if (map->ops->map_release) in bpf_map_release()
529 map->ops->map_release(map, filp); in bpf_map_release()
632 if (!map->ops->map_mmap || map_value_has_spin_lock(map)) in bpf_map_mmap()
664 err = map->ops->map_mmap(map, vma); in bpf_map_mmap()
679 if (map->ops->map_poll) in bpf_map_poll()
680 return map->ops->map_poll(map, filp, pts); in bpf_map_poll()
773 if (!map->ops->map_check_btf) in map_check_btf()
801 if (map->ops->map_check_btf) in map_check_btf()
802 ret = map->ops->map_check_btf(map, btf, key_type, value_type); in map_check_btf()
910 map->ops->map_free(map); in map_create()
1184 err = map->ops->map_delete_elem(map, key); in map_delete_elem()
1190 err = map->ops->map_delete_elem(map, key); in map_delete_elem()
1248 err = map->ops->map_get_next_key(map, key, next_key); in map_get_next_key()
1310 err = map->ops->map_delete_elem(map, key); in generic_map_delete_batch()
1440 err = map->ops->map_get_next_key(map, prev_key, key); in generic_map_lookup_batch()
1533 err = map->ops->map_pop_elem(map, value); in map_lookup_and_delete_elem()
1613 const struct bpf_prog_ops *ops; in find_prog_type() local
1618 ops = bpf_prog_types[type]; in find_prog_type()
1619 if (!ops) in find_prog_type()
1623 prog->aux->ops = ops; in find_prog_type()
1625 prog->aux->ops = &bpf_offload_prog_ops; in find_prog_type()
2311 const struct bpf_link_ops *ops, struct bpf_prog *prog) in bpf_link_init() argument
2316 link->ops = ops; in bpf_link_init()
2356 link->ops->release(link); in bpf_link_free()
2360 link->ops->dealloc(link); in bpf_link_free()
2422 if (link->ops->show_fdinfo) in bpf_link_show_fdinfo()
2423 link->ops->show_fdinfo(link, m); in bpf_link_show_fdinfo()
3155 if (prog->aux->ops->test_run) in bpf_prog_test_run()
3156 ret = prog->aux->ops->test_run(prog, attr, uattr); in bpf_prog_test_run()
3322 if (!map->ops->map_direct_value_meta) in bpf_map_from_imm()
3324 if (!map->ops->map_direct_value_meta(map, addr, off)) { in bpf_map_from_imm()
3783 if (link->ops->fill_link_info) { in bpf_link_get_info_by_fd()
3784 err = link->ops->fill_link_info(link, &info); in bpf_link_get_info_by_fd()
3953 if (link->ops == &bpf_raw_tp_link_lops) { in bpf_task_fd_query()
4034 BPF_DO_BATCH(map->ops->map_lookup_batch); in bpf_map_do_batch()
4036 BPF_DO_BATCH(map->ops->map_lookup_and_delete_batch); in bpf_map_do_batch()
4038 BPF_DO_BATCH(map->ops->map_update_batch); in bpf_map_do_batch()
4040 BPF_DO_BATCH(map->ops->map_delete_batch); in bpf_map_do_batch()
4162 if (link->ops->update_prog) in link_update()
4163 ret = link->ops->update_prog(link, new_prog, old_prog); in link_update()
4191 if (link->ops->detach) in link_detach()
4192 ret = link->ops->detach(link); in link_detach()