Home
last modified time | relevance | path

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

123456

/linux/samples/seccomp/
A Dbpf-helper.c37 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()
66 struct __bpf_label *begin = labels->labels, *end; in seccomp_bpf_label()
73 if (labels->count == 0) { in seccomp_bpf_label()
76 labels->count++; in seccomp_bpf_label()
79 end = begin + labels->count; in seccomp_bpf_label()
[all …]
A 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/tools/testing/selftests/bpf/
A Djit_disasm_helpers.c52 if (labels->print_phase) { in lookup_symbol()
55 return labels->names[i]; in lookup_symbol()
57 if (labels->cnt < MAX_LOCAL_LABELS && ref_value < labels->prog_len) in lookup_symbol()
58 labels->pcs[labels->cnt++] = ref_value; in lookup_symbol()
95 struct local_labels labels = {}; in disasm_one_func() local
114 labels.prog_len = len; in disasm_one_func()
124 qsort(labels.pcs, labels.cnt, sizeof(*labels.pcs), cmp_u32); in disasm_one_func()
133 snprintf(labels.names[i], sizeof(labels.names[i]), "L%d", i % MAX_LOCAL_LABELS); in disasm_one_func()
136 labels.print_phase = true; in disasm_one_func()
144 label_pc = bsearch(&pc, labels.pcs, labels.cnt, sizeof(*labels.pcs), cmp_u32); in disasm_one_func()
[all …]
/linux/arch/mips/kvm/
A Dentry.c237 struct uasm_label labels[2]; in kvm_mips_build_enter_guest() local
242 memset(labels, 0, sizeof(labels)); in kvm_mips_build_enter_guest()
383 struct uasm_label labels[2]; in kvm_mips_build_tlb_refill_exception() local
386 struct uasm_label *l = labels; in kvm_mips_build_tlb_refill_exception()
390 memset(labels, 0, sizeof(labels)); in kvm_mips_build_tlb_refill_exception()
471 struct uasm_label labels[2]; in kvm_mips_build_exception() local
476 memset(labels, 0, sizeof(labels)); in kvm_mips_build_exception()
514 struct uasm_label labels[3]; in kvm_mips_build_exit() local
519 memset(labels, 0, sizeof(labels)); in kvm_mips_build_exit()
740 struct uasm_label labels[2]; in kvm_mips_build_ret_from_exit() local
[all …]
/linux/net/netfilter/
A Dnf_conntrack_labels.c32 struct nf_conn_labels *labels; in nf_connlabels_replace() local
37 labels = nf_ct_labels_find(ct); in nf_connlabels_replace()
38 if (!labels) in nf_connlabels_replace()
41 size = sizeof(labels->bits); in nf_connlabels_replace()
45 dst = (u32 *) labels->bits; in nf_connlabels_replace()
A 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/drivers/misc/lkdtm/
A Dcfi.c116 void *labels[] = { NULL, &&normal, &&redirected, &&check_normal, &&check_redirected }; in lkdtm_CFI_BACKWARD() local
129 goto *labels[1]; in lkdtm_CFI_BACKWARD()
131 goto *labels[2]; in lkdtm_CFI_BACKWARD()
133 goto *labels[3]; in lkdtm_CFI_BACKWARD()
135 goto *labels[4]; in lkdtm_CFI_BACKWARD()
/linux/net/mpls/
A Dmpls_iptunnel.c33 return en->labels * sizeof(struct mpls_shim_hdr); in mpls_encap_size()
125 for (i = tun_encap_info->labels - 1; i >= 0; i--) { in mpls_xmit()
196 &tun_encap_info->labels, tun_encap_info->label, in mpls_build_state()
233 if (nla_put_labels(skb, MPLS_IPTUNNEL_DST, tun_encap_info->labels, in mpls_fill_encap_info()
254 nlsize = nla_total_size(tun_encap_info->labels * 4); in mpls_encap_nlsize()
268 if (a_hdr->labels != b_hdr->labels || in mpls_encap_cmp()
273 for (l = 0; l < a_hdr->labels; l++) in mpls_encap_cmp()
/linux/arch/mips/mm/
A Dtlbex.c1255 memset(labels, 0, sizeof(labels)); in build_r4000_tlb_refill_handler()
1361 for (i = 0; i < ARRAY_SIZE(labels) && labels[i].lab != ls; i++) in build_r4000_tlb_refill_handler()
1364 split = labels[i].addr; in build_r4000_tlb_refill_handler()
1479 memset(labels, 0, sizeof(labels)); in build_loongson3_tlb_refill_handler()
1544 memset(labels, 0, sizeof(labels)); in build_setup_pgd()
1885 memset(labels, 0, sizeof(labels)); in build_r3000_tlb_load_handler()
1915 memset(labels, 0, sizeof(labels)); in build_r3000_tlb_store_handler()
1945 memset(labels, 0, sizeof(labels)); in build_r3000_tlb_modify_handler()
2062 memset(labels, 0, sizeof(labels)); in build_r4000_tlb_load_handler()
2244 memset(labels, 0, sizeof(labels)); in build_r4000_tlb_store_handler()
[all …]
A Dpage.c54 static struct uasm_label labels[5]; variable
268 struct uasm_label *l = labels; in build_clear_page()
277 memset(labels, 0, sizeof(labels)); in build_clear_page()
345 uasm_resolve_relocs(relocs, labels); in build_clear_page()
417 struct uasm_label *l = labels; in build_copy_page()
426 memset(labels, 0, sizeof(labels)); in build_copy_page()
591 uasm_resolve_relocs(relocs, labels); in build_copy_page()
/linux/sound/firewire/fireface/
A 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/scripts/dtc/
A Dflattree.c40 void (*beginnode)(void *, struct label *labels);
41 void (*endnode)(void *, struct label *labels);
42 void (*property)(void *, struct label *labels);
82 static void bin_emit_endnode(void *e, struct label *labels) in bin_emit_endnode() argument
177 for_each_label(labels, l) { in asm_emit_beginnode()
192 for_each_label(labels, l) { in asm_emit_endnode()
203 for_each_label(labels, l) { in asm_emit_property()
247 emit->beginnode(etarget, tree->labels); in flatten_tree()
264 emit->property(etarget, prop->labels); in flatten_tree()
291 emit->endnode(etarget, tree->labels); in flatten_tree()
[all …]
A Dlivetree.c18 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()
296 delete_labels(&prop->labels); in delete_property()
336 delete_labels(&node->labels); in delete_node()
459 for_each_label(prop->labels, l) in get_property_by_label()
546 for_each_label(tree->labels, l) in get_node_by_label()
848 if (node->labels) in any_label_tree()
[all …]
/linux/net/openvswitch/
A Dconntrack.c72 struct md_labels labels; member
169 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument
181 memset(labels, 0, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
205 ovs_ct_get_labels(ct, &key->ct.labels); in __ovs_ct_update_key()
306 &output->ct.labels)) in ovs_ct_put_key()
408 (labels->ct_labels_32[i] in ovs_ct_init_labels()
865 if (labels->ct_labels_32[i]) in labels_nonzero()
1013 &info->labels.mask); in ovs_ct_commit()
1021 &info->labels.mask); in ovs_ct_commit()
1297 info->labels = *labels; in parse_ct()
[all …]
/linux/drivers/iio/multiplexer/
A Diio-mux.c333 const char **labels; in mux_probe() local
357 labels = devm_kmalloc_array(dev, all_children, sizeof(*labels), GFP_KERNEL); in mux_probe()
358 if (!labels) in mux_probe()
361 ret = device_property_read_string_array(dev, "channels", labels, all_children); in mux_probe()
367 if (*labels[state]) in mux_probe()
424 if (!*labels[state]) in mux_probe()
427 ret = mux_configure_channel(dev, mux, state, labels[state], i++); in mux_probe()
/linux/fs/9p/
A DKconfig39 Security labels support alternative access control models
42 labels in the 9P filesystem.
45 extended attributes for file security labels, say N.
/linux/tools/bpf/
A 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()
615 labels = calloc(BPF_MAXINSNS, sizeof(*labels)); in bpf_init()
616 assert(labels); in bpf_init()
633 free(labels[i]); in bpf_destroy_labels()
643 free(labels); in bpf_destroy()
/linux/fs/ceph/
A DKconfig46 Security labels support alternative access control models
49 labels in the Ceph filesystem.
52 extended attributes for file security labels, say N.
/linux/drivers/gpio/
A Dgpio-it87.c277 char *labels, **labels_table; in it87_gpio_init() local
365 labels = kcalloc(it87_gpio->chip.ngpio, sizeof("it87_gpXY"), in it87_gpio_init()
370 if (!labels || !labels_table) { in it87_gpio_init()
376 char *label = &labels[i * sizeof("it87_gpXY")]; in it87_gpio_init()
392 kfree(labels); in it87_gpio_init()
/linux/Documentation/networking/
A 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/fs/ext2/
A DKconfig44 Security labels support alternative access control models
47 labels in the ext2 filesystem.
50 extended attributes for file security labels, say N.
/linux/fs/jfs/
A DKconfig29 Security labels support alternative access control models
32 labels in the jfs filesystem.
35 extended attributes for file security labels, say N.
/linux/arch/mips/kernel/
A Dpm-cps.c70 static struct uasm_label labels[32]; variable
338 struct uasm_label *l = labels; in cps_gen_entry_code()
367 memset(labels, 0, sizeof(labels)); in cps_gen_entry_code()
615 BUG_ON((l - labels) > ARRAY_SIZE(labels)); in cps_gen_entry_code()
619 uasm_resolve_relocs(relocs, labels); in cps_gen_entry_code()
/linux/Documentation/hwmon/
A Dpowerz.rst26 The channel labels exposed via hwmon match the labels used by the on-device
/linux/sound/firewire/bebob/
A 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,

Completed in 52 milliseconds

123456