/Linux-v4.19/samples/seccomp/ |
D | bpf-helper.c | 19 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 …]
|
D | bpf-helper.h | 32 } 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-v4.19/arch/mips/kvm/ |
D | entry.c | 296 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() 453 uasm_resolve_relocs(relocs, labels); in kvm_mips_build_enter_guest() 470 struct uasm_label labels[2]; in kvm_mips_build_tlb_refill_exception() local 472 struct uasm_label *l = labels; in kvm_mips_build_tlb_refill_exception() 475 memset(labels, 0, sizeof(labels)); in kvm_mips_build_tlb_refill_exception() 545 struct uasm_label labels[2]; in kvm_mips_build_exception() local 547 struct uasm_label *l = labels; in kvm_mips_build_exception() 550 memset(labels, 0, sizeof(labels)); in kvm_mips_build_exception() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | nf_conntrack_labels.c | 37 struct nf_conn_labels *labels; in nf_connlabels_replace() local 42 labels = nf_ct_labels_find(ct); in nf_connlabels_replace() 43 if (!labels) in nf_connlabels_replace() 46 size = sizeof(labels->bits); in nf_connlabels_replace() 50 dst = (u32 *) labels->bits; in nf_connlabels_replace()
|
D | xt_connlabel.c | 27 struct nf_conn_labels *labels; in connlabel_mt() local 35 labels = nf_ct_labels_find(ct); in connlabel_mt() 36 if (!labels) in connlabel_mt() 39 if (test_bit(info->bit, labels->bits)) in connlabel_mt() 43 if (!test_and_set_bit(info->bit, labels->bits)) in connlabel_mt()
|
/Linux-v4.19/net/mpls/ |
D | mpls_iptunnel.c | 38 return en->labels * sizeof(struct mpls_shim_hdr); in mpls_encap_size() 132 for (i = tun_encap_info->labels - 1; i >= 0; i--) { in mpls_xmit() 193 &tun_encap_info->labels, tun_encap_info->label, in mpls_build_state() 230 if (nla_put_labels(skb, MPLS_IPTUNNEL_DST, tun_encap_info->labels, in mpls_fill_encap_info() 251 nlsize = nla_total_size(tun_encap_info->labels * 4); in mpls_encap_nlsize() 265 if (a_hdr->labels != b_hdr->labels || in mpls_encap_cmp() 270 for (l = 0; l < a_hdr->labels; l++) in mpls_encap_cmp()
|
/Linux-v4.19/arch/mips/mm/ |
D | tlbex.c | 314 static struct uasm_label labels[128]; variable 1289 struct uasm_label *l = labels; in build_r4000_tlb_refill_handler() 1297 memset(labels, 0, sizeof(labels)); in build_r4000_tlb_refill_handler() 1375 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler() 1390 uasm_copy_handler(relocs, labels, tlb_handler, p, f); in build_r4000_tlb_refill_handler() 1402 for (i = 0; i < ARRAY_SIZE(labels) && labels[i].lab != ls; i++) in build_r4000_tlb_refill_handler() 1404 BUG_ON(i == ARRAY_SIZE(labels)); in build_r4000_tlb_refill_handler() 1405 split = labels[i].addr; in build_r4000_tlb_refill_handler() 1431 uasm_copy_handler(relocs, labels, tlb_handler, split, f); in build_r4000_tlb_refill_handler() 1441 uasm_copy_handler(relocs, labels, in build_r4000_tlb_refill_handler() [all …]
|
D | page.c | 68 static struct uasm_label labels[5]; variable 278 struct uasm_label *l = labels; in build_clear_page() 287 memset(labels, 0, sizeof(labels)); in build_clear_page() 355 uasm_resolve_relocs(relocs, labels); in build_clear_page() 425 struct uasm_label *l = labels; in build_copy_page() 434 memset(labels, 0, sizeof(labels)); in build_copy_page() 599 uasm_resolve_relocs(relocs, labels); in build_copy_page()
|
/Linux-v4.19/scripts/dtc/ |
D | livetree.c | 27 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() 160 for_each_label_withdel(new_node->labels, l) in merge_nodes() 161 add_label(&old_node->labels, l->label); in merge_nodes() 181 for_each_label_withdel(new_prop->labels, l) in merge_nodes() 182 add_label(&old_prop->labels, l->label); in merge_nodes() [all …]
|
D | flattree.c | 55 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 186 static void asm_emit_beginnode(void *e, struct label *labels) in asm_emit_beginnode() argument 191 for_each_label(labels, l) { in asm_emit_beginnode() 199 static void asm_emit_endnode(void *e, struct label *labels) in asm_emit_endnode() argument 206 for_each_label(labels, l) { in asm_emit_endnode() [all …]
|
D | dtc.h | 151 struct label *labels; member 169 struct label *labels; member 196 void add_label(struct label **labels, char *label); 197 void delete_labels(struct label **labels); 246 struct label *labels; member
|
D | dtc-parser.y | 156 add_label(&$2->labels, $1); 186 add_label(&target->labels, $2); 270 add_label(&$2->labels, $1); 545 add_label(&$2->labels, $1);
|
/Linux-v4.19/net/openvswitch/ |
D | conntrack.c | 77 struct md_labels labels; member 108 static bool labels_nonzero(const struct ovs_key_ct_labels *labels); 172 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument 177 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels() 179 memset(labels, 0, OVS_CT_LABELS_LEN); in ovs_ct_get_labels() 203 ovs_ct_get_labels(ct, &key->ct.labels); in __ovs_ct_update_key() 305 nla_put(skb, OVS_KEY_ATTR_CT_LABELS, sizeof(output->ct.labels), in ovs_ct_put_key() 306 &output->ct.labels)) in ovs_ct_put_key() 376 const struct ovs_key_ct_labels *labels, in ovs_ct_init_labels() argument 402 (labels->ct_labels_32[i] in ovs_ct_init_labels() [all …]
|
D | conntrack.h | 90 memset(&key->ct.labels, 0, sizeof(key->ct.labels)); in ovs_ct_fill_key()
|
/Linux-v4.19/fs/ext2/ |
D | Kconfig | 34 Security labels support alternative access control models 37 labels in the ext2 filesystem. 40 extended attributes for file security labels, say N.
|
/Linux-v4.19/fs/9p/ |
D | Kconfig | 37 Security labels support alternative access control models 40 labels in the 9P filesystem. 43 extended attributes for file security labels, say N.
|
/Linux-v4.19/tools/bpf/ |
D | bpf_exp.y | 469 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() 603 labels = calloc(BPF_MAXINSNS, sizeof(*labels)); in bpf_init() 604 assert(labels); in bpf_init() 621 free(labels[i]); in bpf_destroy_labels() 631 free(labels); in bpf_destroy()
|
/Linux-v4.19/Documentation/networking/ |
D | mpls-sysctl.txt | 6 greater than the number of platform labels. 9 is possible and expected as the platform labels are locally 24 the MPLS header on imposing labels and propagated from the
|
/Linux-v4.19/fs/jfs/ |
D | Kconfig | 25 Security labels support alternative access control models 28 labels in the jfs filesystem. 31 extended attributes for file security labels, say N.
|
/Linux-v4.19/drivers/gpio/ |
D | gpio-it87.c | 297 char *labels, **labels_table; in it87_gpio_init() local 385 labels = kcalloc(it87_gpio->chip.ngpio, sizeof("it87_gpXY"), in it87_gpio_init() 390 if (!labels || !labels_table) { in it87_gpio_init() 396 char *label = &labels[i * sizeof("it87_gpXY")]; in it87_gpio_init() 412 kfree(labels); in it87_gpio_init()
|
/Linux-v4.19/sound/firewire/bebob/ |
D | bebob_focusrite.c | 237 if (spec->labels == saffire_le_meter_labels) in saffire_meter_get() 247 if (err >= 0 && spec->labels == saffire_le_meter_labels) { in saffire_meter_get() 302 .labels = saffire_le_meter_labels, 313 .labels = saffire_meter_labels,
|
D | bebob_maudio.c | 706 if (spec->labels == solo_meter_labels) { in normal_meter_get() 726 .labels = special_meter_labels, 742 .labels = fw410_meter_labels, 754 .labels = audiophile_meter_labels, 766 .labels = solo_meter_labels, 778 .labels = ozonic_meter_labels, 790 .labels = nrv10_meter_labels,
|
/Linux-v4.19/arch/mips/kernel/ |
D | pm-cps.c | 73 static struct uasm_label labels[32]; variable 348 struct uasm_label *l = labels; in cps_gen_entry_code() 377 memset(labels, 0, sizeof(labels)); in cps_gen_entry_code() 625 BUG_ON((l - labels) > ARRAY_SIZE(labels)); in cps_gen_entry_code() 629 uasm_resolve_relocs(relocs, labels); in cps_gen_entry_code()
|
/Linux-v4.19/security/apparmor/ |
D | policy_ns.c | 123 aa_labelset_init(&ns->labels); in alloc_ns() 147 aa_labelset_destroy(&ns->labels); in aa_free_ns() 349 write_lock_irqsave(&ns->labels.lock, flags); in destroy_ns() 352 write_unlock_irqrestore(&ns->labels.lock, flags); in destroy_ns()
|
/Linux-v4.19/drivers/hwmon/ |
D | dell-smm-hwmon.c | 625 static const char * const labels[] = { in i8k_hwmon_show_temp_label() local 639 if (type >= ARRAY_SIZE(labels)) in i8k_hwmon_show_temp_label() 640 type = ARRAY_SIZE(labels) - 1; in i8k_hwmon_show_temp_label() 641 return sprintf(buf, "%s\n", labels[type]); in i8k_hwmon_show_temp_label() 661 static const char * const labels[] = { in i8k_hwmon_show_fan_label() local 682 if (type >= ARRAY_SIZE(labels)) in i8k_hwmon_show_fan_label() 683 type = (ARRAY_SIZE(labels) - 1); in i8k_hwmon_show_fan_label() 685 return sprintf(buf, "%s%s\n", (dock ? "Docking " : ""), labels[type]); in i8k_hwmon_show_fan_label()
|