| /Linux-v5.4/drivers/base/ |
| D | transport_class.c | 47 int transport_class_register(struct transport_class *tclass) in transport_class_register() argument 49 return class_register(&tclass->class); in transport_class_register() 61 void transport_class_unregister(struct transport_class *tclass) in transport_class_unregister() argument 63 class_unregister(&tclass->class); in transport_class_unregister() 90 atc->container.class = &atc->tclass.class; in anon_transport_class_register() 95 atc->tclass.setup = anon_transport_dummy_function; in anon_transport_class_register() 96 atc->tclass.remove = anon_transport_dummy_function; in anon_transport_class_register() 120 struct transport_class *tclass = class_to_transport_class(cont->class); in transport_setup_classdev() local 123 if (tclass->setup) in transport_setup_classdev() 124 tclass->setup(tcont, dev, classdev); in transport_setup_classdev() [all …]
|
| /Linux-v5.4/security/selinux/ |
| D | avc.c | 47 u16 tclass; member 124 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument 126 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash() 414 u32 ssid, u32 tsid, u16 tclass, in avc_xperms_audit() argument 426 return slow_avc_audit(state, ssid, tsid, tclass, requested, in avc_xperms_audit() 515 static void avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_deci… in avc_node_populate() argument 519 node->ae.tclass = tclass; in avc_node_populate() 524 u32 ssid, u32 tsid, u16 tclass) in avc_search_node() argument 530 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node() 534 tclass == node->ae.tclass && in avc_search_node() [all …]
|
| D | selinuxfs.c | 690 u16 tclass; in sel_write_validatetrans() local 729 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans() 744 rc = security_validate_transition_user(state, osid, nsid, tsid, tclass); in sel_write_validatetrans() 818 u16 tclass; in sel_write_access() local 839 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access() 850 security_compute_av_user(state, ssid, tsid, tclass, &avd); in sel_write_access() 870 u16 tclass; in sel_write_create() local 899 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create() 941 length = security_transition_sid_user(state, ssid, tsid, tclass, in sel_write_create() 973 u16 tclass; in sel_write_relabel() local [all …]
|
| /Linux-v5.4/security/selinux/include/ |
| D | avc.h | 50 u16 tclass; member 101 u32 ssid, u32 tsid, u16 tclass, 128 u16 tclass, u32 requested, in avc_audit() argument 138 return slow_avc_audit(state, ssid, tsid, tclass, in avc_audit() 148 u16 tclass, u32 requested, 154 u16 tclass, u32 requested, 158 u32 ssid, u32 tsid, u16 tclass, u32 requested,
|
| D | security.h | 227 u16 tclass, struct av_decision *avd, 231 u32 ssid, u32 tsid, u16 tclass, 237 u16 tclass, struct av_decision *avd); 240 u32 ssid, u32 tsid, u16 tclass, 244 u32 ssid, u32 tsid, u16 tclass, 248 u16 tclass, u32 *out_sid); 251 u16 tclass, u32 *out_sid); 299 u16 tclass); 303 u16 tclass);
|
| /Linux-v5.4/security/selinux/ss/ |
| D | services.c | 97 u16 tclass, 182 static u16 unmap_class(struct selinux_map *map, u16 tclass) in unmap_class() argument 184 if (tclass < map->size) in unmap_class() 185 return map->mapping[tclass].value; in unmap_class() 187 return tclass; in unmap_class() 206 u16 tclass, struct av_decision *avd, in map_decision() argument 209 if (tclass < map->size) { in map_decision() 210 struct selinux_mapping *mapping = &map->mapping[tclass]; in map_decision() 456 u16 tclass, in security_dump_masked_av() argument 474 tclass_name = sym_name(policydb, SYM_CLASSES, tclass - 1); in security_dump_masked_av() [all …]
|
| D | mls.c | 490 u16 tclass, in mls_compute_sid() argument 508 rtr.target_class = tclass; in mls_compute_sid() 513 if (tclass && tclass <= p->p_classes.nprim) { in mls_compute_sid() 514 cladatum = p->class_val_to_struct[tclass - 1]; in mls_compute_sid() 536 if ((tclass == p->process_class) || (sock == true)) in mls_compute_sid()
|
| D | policydb.h | 86 u32 tclass; /* process class, or new object class */ member 94 u16 tclass; /* class of new object */ member 372 extern u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name);
|
| D | mls.h | 55 u16 tclass,
|
| D | policydb.c | 409 hash = ft->stype ^ ft->ttype ^ ft->tclass; in filenametr_hash() 431 v = ft1->tclass - ft2->tclass; in filenametr_cmp() 1778 u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name) in string_to_av_perm() argument 1784 if (!tclass || tclass > p->p_classes.nprim) in string_to_av_perm() 1787 cladatum = p->class_val_to_struct[tclass-1]; in string_to_av_perm() 1923 ft->tclass = le32_to_cpu(buf[2]); in filename_trans_read() 2433 tr->tclass = le32_to_cpu(buf[0]); in policydb_read() 2435 tr->tclass = p->process_class; in policydb_read() 2440 !policydb_class_isvalid(p, tr->tclass) || in policydb_read() 2671 buf[0] = cpu_to_le32(tr->tclass); in role_trans_write() [all …]
|
| /Linux-v5.4/drivers/infiniband/hw/mlx5/ |
| D | ah.c | 48 ah->av.tclass = grh->traffic_class; in create_ib_ah() 63 ah->av.tclass |= MLX5_ECN_ENABLED; in create_ib_ah() 118 ah->av.tclass); in mlx5_ib_query_ah()
|
| /Linux-v5.4/net/ipv6/ |
| D | fib6_rules.c | 27 u8 tclass; member 34 if (r->dst.plen || r->src.plen || r->tclass) in fib6_rule_matchall() 318 if (r->tclass && r->tclass != ip6_tclass(fl6->flowlabel)) in fib6_rule_match() 368 rule6->tclass = frh->tos; in fib6_rule_configure() 401 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() 422 frh->tos = rule6->tclass; in fib6_rule_fill()
|
| D | ipv6_sockglue.c | 340 np->tclass = val; in do_ipv6_setsockopt() 1092 int tclass = (int)ip6_tclass(np->rcv_flowinfo); in do_ipv6_getsockopt() local 1094 put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in do_ipv6_getsockopt() 1195 val = np->tclass; in do_ipv6_getsockopt()
|
| D | inet6_connection_sock.c | 136 np->tclass, sk->sk_priority); in inet6_csk_xmit()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum_qdisc.c | 78 int tclass, child_index; in mlxsw_sp_qdisc_find() local 90 tclass = MLXSW_SP_PRIO_CHILD_TO_TCLASS(child_index); in mlxsw_sp_qdisc_find() 91 return &mlxsw_sp_port->tclass_qdiscs[tclass]; in mlxsw_sp_qdisc_find() 509 int tclass, i, band, backlog; in mlxsw_sp_qdisc_prio_replace() local 514 tclass = MLXSW_SP_PRIO_BAND_TO_TCLASS(band); in mlxsw_sp_qdisc_prio_replace() 515 child_qdisc = &mlxsw_sp_port->tclass_qdiscs[tclass]; in mlxsw_sp_qdisc_prio_replace() 524 i, tclass); in mlxsw_sp_qdisc_prio_replace() 538 tclass = MLXSW_SP_PRIO_BAND_TO_TCLASS(band); in mlxsw_sp_qdisc_prio_replace() 539 child_qdisc = &mlxsw_sp_port->tclass_qdiscs[tclass]; in mlxsw_sp_qdisc_prio_replace()
|
| /Linux-v5.4/include/linux/ |
| D | transport_class.h | 39 struct transport_class tclass; member 45 .tclass = { \
|
| D | ipv6.h | 201 u8 tclass; member 287 __u8 tclass; member
|
| /Linux-v5.4/include/net/ |
| D | inet_ecn.h | 56 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in INET_ECN_xmit() 63 inet6_sk(sk)->tclass &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 71 if (INET_ECN_is_capable(inet6_sk(sk)->tclass)) \
|
| D | ipv6.h | 346 __s16 tclass; member 356 .tclass = -1, in ipcm6_init() 366 .tclass = np->tclass, in ipcm6_init_sk() 934 static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, in ip6_flow_hdr() argument 937 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; in ip6_flow_hdr() 955 static inline __be32 ip6_make_flowinfo(unsigned int tclass, __be32 flowlabel) in ip6_make_flowinfo() argument 957 return htonl(tclass << IPV6_TCLASS_SHIFT) | flowlabel; in ip6_make_flowinfo() 984 __u32 mark, struct ipv6_txoptions *opt, int tclass, u32 priority);
|
| /Linux-v5.4/include/uapi/linux/netfilter_bridge/ |
| D | ebt_ip6.h | 38 __u8 tclass; member
|
| /Linux-v5.4/net/ipv6/netfilter/ |
| D | nf_reject_ipv6.c | 70 const __u8 tclass = DEFAULT_TOS_VALUE; in nf_reject_ip6hdr_put() local 75 ip6_flow_hdr(ip6h, tclass, 0); in nf_reject_ip6hdr_put()
|
| /Linux-v5.4/net/l2tp/ |
| D | l2tp_ip6.c | 613 if (ipc6.tclass < 0) in l2tp_ip6_sendmsg() 614 ipc6.tclass = np->tclass; in l2tp_ip6_sendmsg() 616 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
|
| /Linux-v5.4/net/sctp/ |
| D | ipv6.c | 199 __u8 tclass = np->tclass; in sctp_v6_xmit() local 206 tclass = transport->dscp & SCTP_DSCP_VAL_MASK; in sctp_v6_xmit() 208 if (INET_ECN_is_capable(tclass)) in sctp_v6_xmit() 218 tclass, sk->sk_priority); in sctp_v6_xmit() 793 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in sctp_v6_ecn_capable()
|
| /Linux-v5.4/drivers/infiniband/hw/hns/ |
| D | hns_roce_ah.c | 95 ah->av.gid_index, ah->av.hop_limit, ah->av.tclass); in hns_roce_query_ah()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | ethtool.h | 817 __u8 tclass; member 833 __u8 tclass; member 848 __u8 tclass; member
|