Home
last modified time | relevance | path

Searched refs:labels (Results 1 – 25 of 100) sorted by relevance

1234

/Linux-v5.10/samples/seccomp/
Dbpf-helper.c19 int bpf_resolve_jumps(struct bpf_labels *labels, in bpf_resolve_jumps() argument
37 if (labels->labels[instr->k].location == 0xffffffff) { in bpf_resolve_jumps()
39 labels->labels[instr->k].label); in bpf_resolve_jumps()
42 instr->k = labels->labels[instr->k].location - in bpf_resolve_jumps()
48 if (labels->labels[instr->k].location != 0xffffffff) { in bpf_resolve_jumps()
50 labels->labels[instr->k].label); in bpf_resolve_jumps()
53 labels->labels[instr->k].location = offset; in bpf_resolve_jumps()
64 __u32 seccomp_bpf_label(struct bpf_labels *labels, const char *label) in seccomp_bpf_label() argument
66 struct __bpf_label *begin = labels->labels, *end; in seccomp_bpf_label()
69 if (labels->count == BPF_LABELS_MAX) { in seccomp_bpf_label()
[all …]
Dbpf-helper.h32 } labels[BPF_LABELS_MAX]; member
35 int bpf_resolve_jumps(struct bpf_labels *labels,
37 __u32 seccomp_bpf_label(struct bpf_labels *labels, const char *label);
49 #define JUMP(labels, label) \ argument
50 BPF_JUMP(BPF_JMP+BPF_JA, FIND_LABEL((labels), (label)), \
52 #define LABEL(labels, label) \ argument
53 BPF_JUMP(BPF_JMP+BPF_JA, FIND_LABEL((labels), (label)), \
60 #define FIND_LABEL(labels, label) seccomp_bpf_label((labels), #label) argument
/Linux-v5.10/arch/mips/kvm/
Dentry.c296 struct uasm_label labels[2]; in kvm_mips_build_enter_guest() local
298 struct uasm_label __maybe_unused *l = labels; in kvm_mips_build_enter_guest()
301 memset(labels, 0, sizeof(labels)); in kvm_mips_build_enter_guest()
456 uasm_resolve_relocs(relocs, labels); in kvm_mips_build_enter_guest()
473 struct uasm_label labels[2]; in kvm_mips_build_tlb_refill_exception() local
476 struct uasm_label *l = labels; in kvm_mips_build_tlb_refill_exception()
480 memset(labels, 0, sizeof(labels)); in kvm_mips_build_tlb_refill_exception()
561 struct uasm_label labels[2]; in kvm_mips_build_exception() local
563 struct uasm_label *l = labels; in kvm_mips_build_exception()
566 memset(labels, 0, sizeof(labels)); in kvm_mips_build_exception()
[all …]
/Linux-v5.10/net/netfilter/
Dnf_conntrack_labels.c34 struct nf_conn_labels *labels; in nf_connlabels_replace() local
39 labels = nf_ct_labels_find(ct); in nf_connlabels_replace()
40 if (!labels) in nf_connlabels_replace()
43 size = sizeof(labels->bits); in nf_connlabels_replace()
47 dst = (u32 *) labels->bits; in nf_connlabels_replace()
Dxt_connlabel.c24 struct nf_conn_labels *labels; in connlabel_mt() local
32 labels = nf_ct_labels_find(ct); in connlabel_mt()
33 if (!labels) in connlabel_mt()
36 if (test_bit(info->bit, labels->bits)) in connlabel_mt()
40 if (!test_and_set_bit(info->bit, labels->bits)) in connlabel_mt()
/Linux-v5.10/net/mpls/
Dmpls_iptunnel.c33 return en->labels * sizeof(struct mpls_shim_hdr); in mpls_encap_size()
127 for (i = tun_encap_info->labels - 1; i >= 0; i--) { in mpls_xmit()
198 &tun_encap_info->labels, tun_encap_info->label, in mpls_build_state()
235 if (nla_put_labels(skb, MPLS_IPTUNNEL_DST, tun_encap_info->labels, in mpls_fill_encap_info()
256 nlsize = nla_total_size(tun_encap_info->labels * 4); in mpls_encap_nlsize()
270 if (a_hdr->labels != b_hdr->labels || in mpls_encap_cmp()
275 for (l = 0; l < a_hdr->labels; l++) in mpls_encap_cmp()
/Linux-v5.10/arch/mips/mm/
Dtlbex.c318 static struct uasm_label labels[128]; variable
1307 struct uasm_label *l = labels; in build_r4000_tlb_refill_handler()
1315 memset(labels, 0, sizeof(labels)); in build_r4000_tlb_refill_handler()
1393 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler()
1408 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler()
1420 for (i = 0; i < ARRAY_SIZE(labels) && labels[i].lab != ls; i++) in build_r4000_tlb_refill_handler()
1422 BUG_ON(i == ARRAY_SIZE(labels)); in build_r4000_tlb_refill_handler()
1423 split = labels[i].addr; in build_r4000_tlb_refill_handler()
1449 uasm_copy_handler(relocs, labels, tlb_handler, split, f); in build_r4000_tlb_refill_handler()
1459 uasm_copy_handler(relocs, labels, in build_r4000_tlb_refill_handler()
[all …]
Dpage.c67 static struct uasm_label labels[5]; variable
279 struct uasm_label *l = labels; in build_clear_page()
288 memset(labels, 0, sizeof(labels)); in build_clear_page()
356 uasm_resolve_relocs(relocs, labels); in build_clear_page()
428 struct uasm_label *l = labels; in build_copy_page()
437 memset(labels, 0, sizeof(labels)); in build_copy_page()
602 uasm_resolve_relocs(relocs, labels); in build_copy_page()
/Linux-v5.10/sound/firewire/fireface/
Dff-proc.c12 static const char *const labels[] = { in snd_ff_proc_get_clk_label() local
21 if (src >= ARRAY_SIZE(labels)) in snd_ff_proc_get_clk_label()
24 return labels[src]; in snd_ff_proc_get_clk_label()
/Linux-v5.10/scripts/dtc/
Dlivetree.c13 void add_label(struct label **labels, char *label) in add_label() argument
18 for_each_label_withdel(*labels, new) in add_label()
27 new->next = *labels; in add_label()
28 *labels = new; in add_label()
31 void delete_labels(struct label **labels) in delete_labels() argument
35 for_each_label(*labels, label) in delete_labels()
151 for_each_label_withdel(new_node->labels, l) in merge_nodes()
152 add_label(&old_node->labels, l->label); in merge_nodes()
172 for_each_label_withdel(new_prop->labels, l) in merge_nodes()
173 add_label(&old_prop->labels, l->label); in merge_nodes()
[all …]
Dflattree.c40 void (*beginnode)(void *, struct label *labels);
41 void (*endnode)(void *, struct label *labels);
42 void (*property)(void *, struct label *labels);
77 static void bin_emit_beginnode(void *e, struct label *labels) in bin_emit_beginnode() argument
82 static void bin_emit_endnode(void *e, struct label *labels) in bin_emit_endnode() argument
87 static void bin_emit_property(void *e, struct label *labels) in bin_emit_property() argument
171 static void asm_emit_beginnode(void *e, struct label *labels) in asm_emit_beginnode() argument
176 for_each_label(labels, l) { in asm_emit_beginnode()
184 static void asm_emit_endnode(void *e, struct label *labels) in asm_emit_endnode() argument
191 for_each_label(labels, l) { in asm_emit_endnode()
[all …]
Ddtc.h177 struct label *labels; member
196 struct label *labels; member
224 void add_label(struct label **labels, char *label);
225 void delete_labels(struct label **labels);
277 struct label *labels; member
/Linux-v5.10/scripts/
Dget_abi.pl97 my @labels;
146 push @labels, [($content, $label)];
157 @{$data{$what}->{label_list}} = @labels if ($data{$nametag}->{what});
158 @labels = ();
250 my %labels;
266 while (defined($labels{$label})) {
270 $labels{$label} = 1;
/Linux-v5.10/fs/9p/
DKconfig38 Security labels support alternative access control models
41 labels in the 9P filesystem.
44 extended attributes for file security labels, say N.
/Linux-v5.10/fs/ext2/
DKconfig35 Security labels support alternative access control models
38 labels in the ext2 filesystem.
41 extended attributes for file security labels, say N.
/Linux-v5.10/net/openvswitch/
Dconntrack.c68 struct md_labels labels; member
101 static bool labels_nonzero(const struct ovs_key_ct_labels *labels);
165 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument
170 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
172 memset(labels, 0, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
196 ovs_ct_get_labels(ct, &key->ct.labels); in __ovs_ct_update_key()
294 nla_put(skb, OVS_KEY_ATTR_CT_LABELS, sizeof(output->ct.labels), in ovs_ct_put_key()
295 &output->ct.labels)) in ovs_ct_put_key()
371 const struct ovs_key_ct_labels *labels, in ovs_ct_init_labels() argument
397 (labels->ct_labels_32[i] in ovs_ct_init_labels()
[all …]
Dconntrack.h82 memset(&key->ct.labels, 0, sizeof(key->ct.labels)); in ovs_ct_fill_key()
/Linux-v5.10/fs/ceph/
DKconfig44 Security labels support alternative access control models
47 labels in the Ceph filesystem.
50 extended attributes for file security labels, say N.
/Linux-v5.10/tools/bpf/
Dbpf_exp.y469 static char **labels, **labels_jt, **labels_jf, **labels_k; variable
493 labels[curr_instr] = label; in bpf_set_curr_label()
517 if (labels[i] && !strcmp(label, labels[i])) { in bpf_find_insns_offset()
613 labels = calloc(BPF_MAXINSNS, sizeof(*labels)); in bpf_init()
614 assert(labels); in bpf_init()
631 free(labels[i]); in bpf_destroy_labels()
641 free(labels); in bpf_destroy()
/Linux-v5.10/Documentation/networking/
Dmpls-sysctl.rst13 greater than the number of platform labels.
16 is possible and expected as the platform labels are locally
32 the MPLS header on imposing labels and propagated from the
/Linux-v5.10/fs/jfs/
DKconfig26 Security labels support alternative access control models
29 labels in the jfs filesystem.
32 extended attributes for file security labels, say N.
/Linux-v5.10/drivers/gpio/
Dgpio-it87.c285 char *labels, **labels_table; in it87_gpio_init() local
373 labels = kcalloc(it87_gpio->chip.ngpio, sizeof("it87_gpXY"), in it87_gpio_init()
378 if (!labels || !labels_table) { in it87_gpio_init()
384 char *label = &labels[i * sizeof("it87_gpXY")]; in it87_gpio_init()
400 kfree(labels); in it87_gpio_init()
/Linux-v5.10/sound/firewire/bebob/
Dbebob_focusrite.c239 if (spec->labels == saffire_le_meter_labels) in saffire_meter_get()
249 if (err >= 0 && spec->labels == saffire_le_meter_labels) { in saffire_meter_get()
304 .labels = saffire_le_meter_labels,
315 .labels = saffire_meter_labels,
/Linux-v5.10/arch/mips/kernel/
Dpm-cps.c69 static struct uasm_label labels[32]; variable
344 struct uasm_label *l = labels; in cps_gen_entry_code()
373 memset(labels, 0, sizeof(labels)); in cps_gen_entry_code()
621 BUG_ON((l - labels) > ARRAY_SIZE(labels)); in cps_gen_entry_code()
625 uasm_resolve_relocs(relocs, labels); in cps_gen_entry_code()
/Linux-v5.10/security/apparmor/
Dpolicy_ns.c119 aa_labelset_init(&ns->labels); in alloc_ns()
143 aa_labelset_destroy(&ns->labels); in aa_free_ns()
345 write_lock_irqsave(&ns->labels.lock, flags); in destroy_ns()
348 write_unlock_irqrestore(&ns->labels.lock, flags); in destroy_ns()

1234