Home
last modified time | relevance | path

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

/linux-4.1.27/samples/seccomp/
Dbpf-helper.c18 int bpf_resolve_jumps(struct bpf_labels *labels, in bpf_resolve_jumps() argument
36 if (labels->labels[filter->k].location == 0xffffffff) { in bpf_resolve_jumps()
38 labels->labels[filter->k].label); in bpf_resolve_jumps()
41 filter->k = labels->labels[filter->k].location - in bpf_resolve_jumps()
47 if (labels->labels[filter->k].location != 0xffffffff) { in bpf_resolve_jumps()
49 labels->labels[filter->k].label); in bpf_resolve_jumps()
52 labels->labels[filter->k].location = insn; in bpf_resolve_jumps()
63 __u32 seccomp_bpf_label(struct bpf_labels *labels, const char *label) in seccomp_bpf_label() argument
65 struct __bpf_label *begin = labels->labels, *end; in seccomp_bpf_label()
68 if (labels->count == BPF_LABELS_MAX) { in seccomp_bpf_label()
[all …]
Dbpf-helper.h31 } labels[BPF_LABELS_MAX]; member
34 int bpf_resolve_jumps(struct bpf_labels *labels,
36 __u32 seccomp_bpf_label(struct bpf_labels *labels, const char *label);
48 #define JUMP(labels, label) \ argument
49 BPF_JUMP(BPF_JMP+BPF_JA, FIND_LABEL((labels), (label)), \
51 #define LABEL(labels, label) \ argument
52 BPF_JUMP(BPF_JMP+BPF_JA, FIND_LABEL((labels), (label)), \
59 #define FIND_LABEL(labels, label) seccomp_bpf_label((labels), #label) argument
/linux-4.1.27/net/netfilter/
Dnf_conntrack_labels.c25 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in nf_connlabel_match() local
27 if (!labels) in nf_connlabel_match()
30 return bit < label_bits(labels) && test_bit(bit, labels->bits); in nf_connlabel_match()
36 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in nf_connlabel_set() local
38 if (!labels || bit >= label_bits(labels)) in nf_connlabel_set()
41 if (test_bit(bit, labels->bits)) in nf_connlabel_set()
44 if (!test_and_set_bit(bit, labels->bits)) in nf_connlabel_set()
66 struct nf_conn_labels *labels; in nf_connlabels_replace() local
70 labels = nf_ct_labels_find(ct); in nf_connlabels_replace()
71 if (!labels) in nf_connlabels_replace()
[all …]
Dnft_ct.c102 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in nft_ct_get_eval() local
105 if (!labels) { in nft_ct_get_eval()
110 size = labels->words * sizeof(long); in nft_ct_get_eval()
111 memcpy(dest, labels->bits, size); in nft_ct_get_eval()
Dnf_conntrack_netlink.c336 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_label_size() local
338 if (!labels) in ctnetlink_label_size()
340 return nla_total_size(labels->words * sizeof(long)); in ctnetlink_label_size()
346 struct nf_conn_labels *labels = nf_ct_labels_find(ct); in ctnetlink_dump_labels() local
349 if (!labels) in ctnetlink_dump_labels()
352 len = labels->words * sizeof(long); in ctnetlink_dump_labels()
355 if (labels->bits[i] != 0) in ctnetlink_dump_labels()
356 return nla_put(skb, CTA_LABELS, len, labels->bits); in ctnetlink_dump_labels()
358 } while (i < labels->words); in ctnetlink_dump_labels()
DKconfig1014 This match allows you to test and assign userspace-defined labels names
/linux-4.1.27/sound/firewire/bebob/
Dbebob_focusrite.c181 if (bebob->spec->clock->labels == saffirepro_10_clk_src_labels) in saffirepro_both_clk_src_get()
230 if (spec->labels == saffire_le_meter_labels) in saffire_meter_get()
240 if (err >= 0 && spec->labels == saffire_le_meter_labels) { in saffire_meter_get()
263 .labels = saffirepro_26_clk_src_labels,
274 .labels = saffirepro_10_clk_src_labels,
289 .labels = saffire_both_clk_src_labels,
295 .labels = saffire_le_meter_labels,
306 .labels = saffire_meter_labels,
Dbebob_proc.c94 spec->labels[i / 2], c++, buf[i]); in proc_read_meters()
96 (strcmp(spec->labels[i / 2], in proc_read_meters()
97 spec->labels[(i + 1) / 2]) != 0)) in proc_read_meters()
147 clk_spec->labels[id]); in proc_read_clock()
Dbebob_terratec.c54 .labels = phase88_rack_clk_src_labels,
66 .labels = phase24_series_clk_src_labels,
Dbebob_maudio.c697 if (spec->labels == solo_meter_labels) { in normal_meter_get()
712 .labels = special_clk_labels,
717 .labels = special_meter_labels,
733 .labels = fw410_meter_labels,
745 .labels = audiophile_meter_labels,
757 .labels = solo_meter_labels,
769 .labels = ozonic_meter_labels,
781 .labels = nrv10_meter_labels,
Dbebob_yamaha.c39 .labels = clk_src_labels,
Dbebob.h55 const char *const *labels; member
64 const char *const *labels; member
Dbebob_stream.c148 if (strncmp(clk_spec->labels[id], SND_BEBOB_CLOCK_INTERNAL, in snd_bebob_stream_check_internal_clock()
/linux-4.1.27/arch/mips/mm/
Dtlbex.c310 static struct uasm_label labels[128]; variable
1261 struct uasm_label *l = labels; in build_r4000_tlb_refill_handler()
1269 memset(labels, 0, sizeof(labels)); in build_r4000_tlb_refill_handler()
1347 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler()
1362 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler()
1374 for (i = 0; i < ARRAY_SIZE(labels) && labels[i].lab != ls; i++) in build_r4000_tlb_refill_handler()
1376 BUG_ON(i == ARRAY_SIZE(labels)); in build_r4000_tlb_refill_handler()
1377 split = labels[i].addr; in build_r4000_tlb_refill_handler()
1403 uasm_copy_handler(relocs, labels, tlb_handler, split, f); in build_r4000_tlb_refill_handler()
1413 uasm_copy_handler(relocs, labels, in build_r4000_tlb_refill_handler()
[all …]
Dpage.c69 static struct uasm_label labels[5]; variable
270 struct uasm_label *l = labels; in build_clear_page()
279 memset(labels, 0, sizeof(labels)); in build_clear_page()
347 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-4.1.27/scripts/dtc/
Dlivetree.c27 void add_label(struct label **labels, char *label) in add_label() argument
32 for_each_label_withdel(*labels, new) in add_label()
41 new->next = *labels; in add_label()
42 *labels = new; in add_label()
45 void delete_labels(struct label **labels) in delete_labels() argument
49 for_each_label(*labels, label) in delete_labels()
146 for_each_label_withdel(new_node->labels, l) in merge_nodes()
147 add_label(&old_node->labels, l->label); in merge_nodes()
167 for_each_label_withdel(new_prop->labels, l) in merge_nodes()
168 add_label(&old_prop->labels, l->label); in merge_nodes()
[all …]
Dflattree.c55 void (*beginnode)(void *, struct label *labels);
56 void (*endnode)(void *, struct label *labels);
57 void (*property)(void *, struct label *labels);
92 static void bin_emit_beginnode(void *e, struct label *labels) in bin_emit_beginnode() argument
97 static void bin_emit_endnode(void *e, struct label *labels) in bin_emit_endnode() argument
102 static void bin_emit_property(void *e, struct label *labels) in bin_emit_property() argument
194 static void asm_emit_beginnode(void *e, struct label *labels) in asm_emit_beginnode() argument
199 for_each_label(labels, l) { in asm_emit_beginnode()
207 static void asm_emit_endnode(void *e, struct label *labels) in asm_emit_endnode() argument
214 for_each_label(labels, l) { in asm_emit_endnode()
[all …]
Ddtc.h142 struct label *labels; member
160 struct label *labels; member
184 void add_label(struct label **labels, char *label);
185 void delete_labels(struct label **labels);
228 struct label *labels; member
Dtreesource.c243 for_each_label(tree->labels, l) in write_tree_source_node()
252 for_each_label(prop->labels, l) in write_tree_source_node()
275 for_each_label(re->labels, l) in dt_to_source()
Ddtc-parser.y134 add_label(&$2->labels, $1);
204 add_label(&$2->labels, $1);
466 add_label(&$2->labels, $1);
Dchecks.c345 for_each_label(node->labels, l) in check_duplicate_label_node()
354 for_each_label(prop->labels, l) in check_duplicate_label_prop()
Ddtc-parser.tab.c_shipped1556 add_label(&(yyvsp[(2) - (2)].re)->labels, (yyvsp[(1) - (2)].labelref));
1658 add_label(&(yyvsp[(2) - (2)].prop)->labels, (yyvsp[(1) - (2)].labelref));
2065 add_label(&(yyvsp[(2) - (2)].node)->labels, (yyvsp[(1) - (2)].labelref));
/linux-4.1.27/fs/9p/
DKconfig40 Security labels support alternative access control models
43 labels in the 9P filesystem.
46 extended attributes for file security labels, say N.
/linux-4.1.27/fs/ext2/
DKconfig38 Security labels support alternative access control models
41 labels in the ext2 filesystem.
44 extended attributes for file security labels, say N.
/linux-4.1.27/net/mpls/
Daf_mpls.c610 u8 labels, const u32 label[]) in nla_put_labels() argument
616 nla = nla_reserve(skb, attrtype, labels*4); in nla_put_labels()
622 for (i = labels - 1; i >= 0; i--) { in nla_put_labels()
631 u32 max_labels, u32 *labels, u32 label[]) in nla_get_labels() argument
671 *labels = nla_labels; in nla_get_labels()
935 struct mpls_route __rcu **labels = NULL, **old; in resize_platform_label_table() local
940 labels = kzalloc(size, GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY); in resize_platform_label_table()
941 if (!labels) in resize_platform_label_table()
942 labels = vzalloc(size); in resize_platform_label_table()
944 if (!labels) in resize_platform_label_table()
[all …]
Dinternal.h53 int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels, const u32 label[]);
54 int nla_get_labels(const struct nlattr *nla, u32 max_labels, u32 *labels, u32 label[]);
/linux-4.1.27/fs/jfs/
DKconfig28 Security labels support alternative access control models
31 labels in the jfs filesystem.
34 extended attributes for file security labels, say N.
/linux-4.1.27/drivers/char/
Di8k.c538 static const char * const labels[] = { in i8k_hwmon_show_temp_label() local
552 if (type >= ARRAY_SIZE(labels)) in i8k_hwmon_show_temp_label()
553 type = ARRAY_SIZE(labels) - 1; in i8k_hwmon_show_temp_label()
554 return sprintf(buf, "%s\n", labels[type]); in i8k_hwmon_show_temp_label()
574 static const char * const labels[] = { in i8k_hwmon_show_fan_label() local
595 if (type >= ARRAY_SIZE(labels)) in i8k_hwmon_show_fan_label()
596 type = (ARRAY_SIZE(labels) - 1); in i8k_hwmon_show_fan_label()
598 return sprintf(buf, "%s%s\n", (dock ? "Docking " : ""), labels[type]); in i8k_hwmon_show_fan_label()
/linux-4.1.27/Documentation/networking/
Dmpls-sysctl.txt6 greater than the number of platform labels.
9 is possible and expected aas the platform labels are locally
Dpktgen.txt159 pgset "mpls 0001000a,0002000a,0000000a" set MPLS labels (in this example
171 labels in the label stack.
Dip-sysctl.txt1208 Automatically generate flow labels based based on a flow hash
/linux-4.1.27/arch/mips/kernel/
Dpm-cps.c73 static struct uasm_label labels[32] __initdata; variable
350 struct uasm_label *l = labels; in cps_gen_entry_code()
379 memset(labels, 0, sizeof(labels)); in cps_gen_entry_code()
608 BUG_ON((l - labels) > ARRAY_SIZE(labels)); in cps_gen_entry_code()
612 uasm_resolve_relocs(relocs, labels); in cps_gen_entry_code()
/linux-4.1.27/Documentation/netlabel/
Dlsm_interface.txt19 labels. The NetLabel security attributes are defined by the
29 These are the functions which allow the LSM developer to manipulate the labels
30 on outgoing packets as well as read the labels on incoming packets. Functions
Ddraft-ietf-cipso-ipsecurity-01.txt356 labels where all categories in a range, or set of ranges, are included
431 gateways, and routers that support multiple sensitivity labels. A CIPSO
490 particular network interface port. All CIPSO labels within datagrams
496 particular IP network address. All CIPSO labels within datagrams destined
502 particular IP host address. All CIPSO labels within datagrams destined for
516 The labels represented by the PORT_LABEL_MAX and PORT_LABEL_MIN parameters
519 labels do not have to be converted to a local format before being compared
535 The port range will usually represent the total set of labels that may
537 interface. It may, however, represent a subset of these labels that are
640 the current set of defined tag types, this means that CIPSO labels at
Dcipso_ipv4.txt47 mappings from the network labels to the corresponding LSM identifiers. The
/linux-4.1.27/tools/net/
Dbpf_exp.y594 static char **labels, **labels_jt, **labels_jf, **labels_k; variable
618 labels[curr_instr] = label; in bpf_set_curr_label()
642 if (labels[i] && !strcmp(label, labels[i])) { in bpf_find_insns_offset()
728 labels = calloc(BPF_MAXINSNS, sizeof(*labels)); in bpf_init()
729 assert(labels); in bpf_init()
746 free(labels[i]); in bpf_destroy_labels()
756 free(labels); in bpf_destroy()
/linux-4.1.27/fs/ext4/
DKconfig59 Security labels support alternative access control models
62 labels in the ext4 filesystem.
65 extended attributes for file security labels, say N.
/linux-4.1.27/Documentation/security/
DSmack.txt61 Smack uses extended attributes (xattrs) to store labels on filesystem
220 only allowed when subject's and object's labels are equal.
330 on what subjects can access which objects, based on the labels attached to
335 Smack labels are ASCII character strings. They can be up to 255 characters
337 Single character labels using special characters, that being anything
339 team. Smack labels are unstructured, case sensitive, and the only operation
340 ever performed on them is comparison for equality. Smack labels cannot
343 Smack labels cannot begin with a '-'. This is reserved for special options.
345 There are some predefined labels:
388 different labels is desired. One example is the familiar spy model of
[all …]
DIMA-templates.txt12 the inode UID/GID or the LSM labels either of the inode and of the process
/linux-4.1.27/fs/reiserfs/
DKconfig82 Security labels support alternative access control models
85 labels in the ReiserFS filesystem.
88 extended attributes for file security labels, say N.
/linux-4.1.27/fs/ext3/
DKconfig83 Security labels support alternative access control models
86 labels in the ext3 filesystem.
89 extended attributes for file security labels, say N.
/linux-4.1.27/drivers/watchdog/
Docteon-wdt-main.c110 static struct uasm_label labels[5] __initdata; variable
132 struct uasm_label *l = labels; in octeon_wdt_build_stage1()
208 uasm_resolve_relocs(relocs, labels); in octeon_wdt_build_stage1()
/linux-4.1.27/fs/f2fs/
DKconfig59 Security labels provide an access control facility to support Linux
62 security labels in the f2fs filesystem, so that it requires enabling
/linux-4.1.27/fs/jffs2/
DKconfig95 Security labels support alternative access control models
98 labels in the jffs2 filesystem.
101 extended attributes for file security labels, say N.
/linux-4.1.27/drivers/block/
Damiflop.c713 unsigned char labels[16]; member
737 raw = decode ((ulong *)&hdr.labels, (ulong *)raw, 16); in amiga_read()
746 *(ulong *)&hdr.labels[0], *(ulong *)&hdr.labels[4], in amiga_read()
747 *(ulong *)&hdr.labels[8], *(ulong *)&hdr.labels[12], in amiga_read()
829 hdr.labels[i] = 0; in putsec()
836 encode_block(raw, (ulong *)&hdr.labels, 16); in putsec()
/linux-4.1.27/fs/nfsd/
DKconfig102 support for NFS version 4. Security labels allow security modules like
106 If you do not wish to enable fine-grained security labels SELinux or
/linux-4.1.27/security/smack/
DKconfig41 Smack labels.
/linux-4.1.27/Documentation/hwmon/
Duserspace-tools30 4) fix sensors.conf, labels, limits, fan divisors
Dadt746247 The driver will report sensor labels when it is able to determine that
/linux-4.1.27/Documentation/input/
Dgamepad.txt95 of the labels on the buttons, the codes are sent according to the
147 instead of their labels. That is:
/linux-4.1.27/Documentation/devicetree/bindings/net/dsa/
Ddsa.txt40 labels are "cpu" to indicate a CPU port and "dsa" to
/linux-4.1.27/net/core/
Dpktgen.c330 __be32 labels[MAX_MPLS_LABELS]; member
597 seq_printf(seq, "%08x%s", ntohl(pkt_dev->labels[i]), in pktgen_if_show()
836 pkt_dev->labels[n] = htonl(tmp); in get_labels()
837 if (pkt_dev->labels[n] & MPLS_STACK_BOTTOM) in get_labels()
1568 "%08x%s", ntohl(pkt_dev->labels[n]), in pktgen_if_write()
2397 if (pkt_dev->labels[i] & MPLS_STACK_BOTTOM) in mod_cur_headers()
2398 pkt_dev->labels[i] = MPLS_STACK_BOTTOM | in mod_cur_headers()
2640 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; in mpls_push()
/linux-4.1.27/Documentation/s390/
DDASD43 labels, VTOCs etc. The ioctl may take a 'struct format_data *' or
/linux-4.1.27/Documentation/
Dstatic-keys.txt142 4) Architecture level code patching interface, 'jump labels'
186 The resulting instructions with jump labels generated by GCC is:
DCodingStyle39 to align the "switch" and its subordinate "case" labels in the same column
40 instead of "double-indenting" the "case" labels. E.g.:
441 fix for this is to split it up into two error labels "err_bar:" and "err_foo:".
616 Names of macros defining constants and labels in enums are capitalized.
Dedac.txt734 …EDAC MC0: UE row 0, channel-a= 0 channel-b= 0 labels "-": NON_FATAL (addr = 0x0075b980, socket=0, …
Dkernel-parameters.txt3231 0 -- Traditional sleep state labels.
3232 1 -- Relative sleep state labels.
/linux-4.1.27/Documentation/trace/
Dtracepoints.txt140 with jump labels and avoid conditional branches.
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-power15 labels, which may be "mem", "standby", "freeze" and "disk"
16 (hibernation). The meanings of the first three labels depend on
/linux-4.1.27/security/
DKconfig58 implement per-packet access controls based on labels
/linux-4.1.27/sound/pci/hda/
Dpatch_sigmatel.c980 const char * const *labels = spec->spdif_labels; in stac_create_spdif_mux_ctls() local
991 if (!labels) in stac_create_spdif_mux_ctls()
992 labels = stac_spdif_labels; in stac_create_spdif_mux_ctls()
994 if (snd_BUG_ON(!labels[i])) in stac_create_spdif_mux_ctls()
996 snd_hda_add_imux_item(codec, &spec->spdif_mux, labels[i], i, NULL); in stac_create_spdif_mux_ctls()
/linux-4.1.27/arch/powerpc/boot/dts/
Dmpc832x_mds.dts19 * Note that there's a typo in the schematic. The board labels the last column
/linux-4.1.27/arch/m68k/ifpsp060/
DTEST.DOC48 the installer should add symbolic labels to the top of the files.
/linux-4.1.27/Documentation/x86/
Dexception-tables.txt238 are local labels. The local label 1b (1b stands for next label 1
/linux-4.1.27/arch/cris/arch-v10/kernel/
Dhead.S188 ;; on that the labels below actually are the first and last positions
/linux-4.1.27/drivers/hwmon/
Dit87.c1506 static const char * const labels[] = { in show_label() local
1520 : labels[nr]); in show_label()
/linux-4.1.27/Documentation/gpio/
Dgpio-legacy.txt248 * non-null labels may be useful for diagnostics.
/linux-4.1.27/Documentation/filesystems/
Dcoda.txt409 which we will discuss. The unique field labels the inputArg with a
/linux-4.1.27/Documentation/devicetree/
Dbooting-without-of.txt1154 automatic generation of phandles, labels (exported to the asm file so