/linux/kernel/bpf/ |
H A D | tcx.c | 14 struct bpf_mprog_entry *entry, *entry_new; in tcx_prog_attach() local 39 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog, in tcx_prog_attach() 43 if (entry != entry_new) { in tcx_prog_attach() 44 tcx_entry_update(dev, entry_new, ingress); in tcx_prog_attach() 63 struct bpf_mprog_entry *entry, *entry_new; in tcx_prog_detach() local 78 ret = bpf_mprog_detach(entry, &entry_new, prog, NULL, attr->attach_flags, in tcx_prog_detach() 81 if (!tcx_entry_is_active(entry_new)) in tcx_prog_detach() 82 entry_new = NULL; in tcx_prog_detach() 83 tcx_entry_update(dev, entry_new, ingress); in tcx_prog_detach() 87 if (!entry_new) in tcx_prog_detach() [all …]
|
H A D | mprog.c | 109 struct bpf_mprog_entry **entry_new, in bpf_mprog_replace() argument 123 *entry_new = entry; in bpf_mprog_replace() 128 struct bpf_mprog_entry **entry_new, in bpf_mprog_insert() argument 147 *entry_new = peer; in bpf_mprog_insert() 152 struct bpf_mprog_entry **entry_new, in bpf_mprog_delete() argument 167 *entry_new = peer; in bpf_mprog_delete() 226 struct bpf_mprog_entry **entry_new, in bpf_mprog_attach() argument 289 ret = bpf_mprog_replace(entry, entry_new, &ntuple, idx); in bpf_mprog_attach() 291 ret = bpf_mprog_insert(entry, entry_new, &ntuple, idx, flags); in bpf_mprog_attach() 329 struct bpf_mprog_entry **entry_new, in bpf_mprog_detach() argument [all …]
|
/linux/arch/x86/mm/pat/ |
H A D | memtype_interval.c | 116 int memtype_check_insert(struct memtype *entry_new, enum page_cache_mode *ret_type) in memtype_check_insert() argument 120 err = memtype_check_conflict(entry_new->start, entry_new->end, entry_new->type, ret_type); in memtype_check_insert() 125 entry_new->type = *ret_type; in memtype_check_insert() 127 interval_insert(entry_new, &memtype_rbroot); in memtype_check_insert()
|
H A D | memtype.c | 523 struct memtype *entry_new; in memtype_reserve() local 576 entry_new = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_reserve() 577 if (!entry_new) in memtype_reserve() 580 entry_new->start = start; in memtype_reserve() 581 entry_new->end = end; in memtype_reserve() 582 entry_new->type = actual_type; in memtype_reserve() 586 err = memtype_check_insert(entry_new, new_type); in memtype_reserve() 590 cattr_name(entry_new->type), cattr_name(req_type)); in memtype_reserve() 591 kfree(entry_new); in memtype_reserve() 600 start, end - 1, cattr_name(entry_new->type), cattr_name(req_type), in memtype_reserve()
|
H A D | memtype.h | 32 extern int memtype_check_insert(struct memtype *entry_new, 38 static inline int memtype_check_insert(struct memtype *entry_new, in memtype_check_insert() argument
|
/linux/drivers/net/ |
H A D | netkit.c | 512 struct bpf_mprog_entry *entry, *entry_new; in netkit_prog_attach() local 534 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog, in netkit_prog_attach() 538 if (entry != entry_new) { in netkit_prog_attach() 539 netkit_entry_update(dev, entry_new); in netkit_prog_attach() 553 struct bpf_mprog_entry *entry, *entry_new; in netkit_prog_detach() local 569 ret = bpf_mprog_detach(entry, &entry_new, prog, NULL, attr->attach_flags, in netkit_prog_detach() 572 if (!bpf_mprog_total(entry_new)) in netkit_prog_detach() 573 entry_new = NULL; in netkit_prog_detach() 574 netkit_entry_update(dev, entry_new); in netkit_prog_detach() 611 struct bpf_mprog_entry *entry, *entry_new; in netkit_link_prog_attach() local [all …]
|
/linux/include/linux/ |
H A D | bpf_mprog.h | 265 struct bpf_mprog_entry **entry_new) in bpf_mprog_clear_all() argument 272 *entry_new = peer; in bpf_mprog_clear_all() 321 struct bpf_mprog_entry **entry_new, 327 struct bpf_mprog_entry **entry_new,
|