/Linux-v6.1/drivers/base/ |
D | transport_class.c | 51 int transport_class_register(struct transport_class *tclass) in transport_class_register() argument 53 return class_register(&tclass->class); in transport_class_register() 65 void transport_class_unregister(struct transport_class *tclass) in transport_class_unregister() argument 67 class_unregister(&tclass->class); in transport_class_unregister() 94 atc->container.class = &atc->tclass.class; in anon_transport_class_register() 99 atc->tclass.setup = anon_transport_dummy_function; in anon_transport_class_register() 100 atc->tclass.remove = anon_transport_dummy_function; in anon_transport_class_register() 124 struct transport_class *tclass = class_to_transport_class(cont->class); in transport_setup_classdev() local 127 if (tclass->setup) in transport_setup_classdev() 128 tclass->setup(tcont, dev, classdev); in transport_setup_classdev() [all …]
|
/Linux-v6.1/security/selinux/ |
D | avc.c | 50 u16 tclass; member 127 static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) in avc_hash() argument 129 return (ssid ^ (tsid<<2) ^ (tclass<<4)) & (AVC_CACHE_SLOTS - 1); in avc_hash() 418 u32 ssid, u32 tsid, u16 tclass, in avc_xperms_audit() argument 430 return slow_avc_audit(state, ssid, tsid, tclass, requested, in avc_xperms_audit() 519 static void avc_node_populate(struct avc_node *node, u32 ssid, u32 tsid, u16 tclass, struct av_deci… in avc_node_populate() argument 523 node->ae.tclass = tclass; in avc_node_populate() 528 u32 ssid, u32 tsid, u16 tclass) in avc_search_node() argument 534 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node() 538 tclass == node->ae.tclass && in avc_search_node() [all …]
|
D | selinuxfs.c | 790 u16 tclass; in sel_write_validatetrans() local 829 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans() 844 rc = security_validate_transition_user(state, osid, nsid, tsid, tclass); in sel_write_validatetrans() 918 u16 tclass; in sel_write_access() local 939 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access() 950 security_compute_av_user(state, ssid, tsid, tclass, &avd); in sel_write_access() 970 u16 tclass; in sel_write_create() local 999 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create() 1041 length = security_transition_sid_user(state, ssid, tsid, tclass, in sel_write_create() 1073 u16 tclass; in sel_write_relabel() local [all …]
|
/Linux-v6.1/include/trace/events/ |
D | avc.h | 19 const char *tclass 22 TP_ARGS(sad, scontext, tcontext, tclass), 31 __string(tclass, tclass) 41 __assign_str(tclass, tclass); 46 __get_str(scontext), __get_str(tcontext), __get_str(tclass)
|
/Linux-v6.1/security/selinux/include/ |
D | avc.h | 50 u16 tclass; member 101 u32 ssid, u32 tsid, u16 tclass, 127 u16 tclass, u32 requested, in avc_audit() argument 136 return slow_avc_audit(state, ssid, tsid, tclass, in avc_audit() 145 u16 tclass, u32 requested, 151 u16 tclass, u32 requested, 155 u32 ssid, u32 tsid, u16 tclass, u32 requested,
|
D | security.h | 292 u16 tclass, struct av_decision *avd, 296 u32 ssid, u32 tsid, u16 tclass, 302 u16 tclass, struct av_decision *avd); 305 u32 ssid, u32 tsid, u16 tclass, 309 u32 ssid, u32 tsid, u16 tclass, 313 u16 tclass, u32 *out_sid); 316 u16 tclass, u32 *out_sid); 364 u16 tclass); 368 u16 tclass);
|
/Linux-v6.1/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() 464 u16 tclass, in security_dump_masked_av() argument 482 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() 539 if ((tclass == p->process_class) || sock) in mls_compute_sid()
|
D | policydb.h | 87 u32 tclass; /* process class, or new object class */ member 96 u16 tclass; /* class of new object */ member 388 extern u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name);
|
D | policydb.c | 416 hash = ft->ttype ^ ft->tclass; in filenametr_hash() 434 v = ft1->tclass - ft2->tclass; in filenametr_cmp() 494 return key->role + (key->type << 3) + (key->tclass << 5); in role_trans_hash() 510 return key1->tclass - key2->tclass; in role_trans_cmp() 1785 u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name) in string_to_av_perm() argument 1791 if (!tclass || tclass > p->p_classes.nprim) in string_to_av_perm() 1794 cladatum = p->class_val_to_struct[tclass-1]; in string_to_av_perm() 1909 key.tclass = le32_to_cpu(buf[2]); in filename_trans_read_helper_compat() 1972 u32 len, ttype, tclass, ndatum, i; in filename_trans_read_helper() local 1992 tclass = le32_to_cpu(buf[1]); in filename_trans_read_helper() [all …]
|
/Linux-v6.1/tools/testing/selftests/net/ |
D | cmsg_sender.c | 51 unsigned int tclass; member 69 struct option_cmsg_u32 tclass; member 164 opt.v6.tclass.ena = true; in cs_parse_args() 165 opt.v6.tclass.val = atoi(optarg); in cs_parse_args() 168 opt.sockopt.tclass = atoi(optarg); in cs_parse_args() 250 SOL_IPV6, IPV6_TCLASS, &opt.v6.tclass); in cs_write_cmsg() 405 if (opt.sockopt.tclass && in ca_set_sockopts() 407 &opt.sockopt.tclass, sizeof(opt.sockopt.tclass))) in ca_set_sockopts()
|
/Linux-v6.1/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1133 fsp->h_u.tcp_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 1140 fsp->m_u.tcp_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1149 fsp->h_u.ah_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 1155 fsp->m_u.ah_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1163 fsp->h_u.usr_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 1170 fsp->m_u.usr_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1319 fltr->ip_data.tclass = fsp->h_u.tcp_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1326 fltr->ip_mask.tclass = fsp->m_u.tcp_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1335 fltr->ip_data.tclass = fsp->h_u.ah_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1341 fltr->ip_mask.tclass = fsp->m_u.ah_ip6_spec.tclass; in iavf_add_fdir_fltr_info() [all …]
|
D | iavf_fdir.h | 73 u8 tclass; member
|
/Linux-v6.1/drivers/infiniband/hw/mlx5/ |
D | ah.c | 67 ah->av.tclass = grh->traffic_class; in create_ib_ah() 85 ah->av.tclass |= MLX5_ECN_ENABLED; in create_ib_ah() 141 ah->av.tclass); in mlx5_ib_query_ah()
|
/Linux-v6.1/include/linux/ |
D | transport_class.h | 39 struct transport_class tclass; member 45 .tclass = { \
|
D | ipv6.h | 199 u8 tclass; member 286 __u8 tclass; member
|
/Linux-v6.1/drivers/infiniband/hw/hns/ |
D | hns_roce_ah.c | 75 ah->av.tclass = get_tclass(grh); in hns_roce_create_ah() 103 ah->av.gid_index, ah->av.hop_limit, ah->av.tclass); in hns_roce_query_ah()
|
/Linux-v6.1/include/net/ |
D | inet_ecn.h | 58 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in INET_ECN_xmit() 65 inet6_sk(sk)->tclass &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 73 if (INET_ECN_is_capable(inet6_sk(sk)->tclass)) \
|
D | ipv6.h | 360 __s16 tclass; member 370 .tclass = -1, in ipcm6_init() 380 .tclass = np->tclass, in ipcm6_init_sk() 1004 static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, in ip6_flow_hdr() argument 1007 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; in ip6_flow_hdr() 1030 static inline __be32 ip6_make_flowinfo(unsigned int tclass, __be32 flowlabel) in ip6_make_flowinfo() argument 1032 return htonl(tclass << IPV6_TCLASS_SHIFT) | flowlabel; in ip6_make_flowinfo() 1059 __u32 mark, struct ipv6_txoptions *opt, int tclass, u32 priority);
|
/Linux-v6.1/include/uapi/linux/netfilter_bridge/ |
D | ebt_ip6.h | 38 __u8 tclass; member
|
/Linux-v6.1/net/sctp/ |
D | ipv6.c | 228 __u8 tclass = np->tclass; in sctp_v6_xmit() local 235 tclass = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v6_xmit() 237 if (INET_ECN_is_capable(tclass)) in sctp_v6_xmit() 252 tclass, sk->sk_priority); in sctp_v6_xmit() 267 &fl6->daddr, tclass, ip6_dst_hoplimit(dst), in sctp_v6_xmit() 854 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in sctp_v6_ecn_capable()
|
/Linux-v6.1/net/ipv6/ |
D | ipv6_sockglue.c | 609 val |= np->tclass & INET_ECN_MASK; in do_ipv6_setsockopt() 611 if (np->tclass != val) { in do_ipv6_setsockopt() 612 np->tclass = val; in do_ipv6_setsockopt() 1200 int tclass = (int)ip6_tclass(np->rcv_flowinfo); in do_ipv6_getsockopt() local 1202 put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in do_ipv6_getsockopt() 1303 val = np->tclass; in do_ipv6_getsockopt()
|
D | tcp_ipv6.c | 539 u8 tclass; in tcp_v6_send_synack() local 556 tclass = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_reflect_tos) ? in tcp_v6_send_synack() 558 (np->tclass & INET_ECN_MASK) : in tcp_v6_send_synack() 559 np->tclass; in tcp_v6_send_synack() 561 if (!INET_ECN_is_capable(tclass) && in tcp_v6_send_synack() 563 tclass |= INET_ECN_ECT_0; in tcp_v6_send_synack() 570 tclass, sk->sk_priority); in tcp_v6_send_synack() 851 u8 tclass, __be32 label, u32 priority, u32 txhash) in tcp_v6_send_response() argument 969 tclass & ~INET_ECN_MASK, priority); in tcp_v6_send_response() 1090 struct tcp_md5sig_key *key, u8 tclass, in tcp_v6_send_ack() argument [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 168 fsp->h_u.usr_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry() 179 fsp->m_u.usr_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry() 199 fsp->h_u.tcp_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry() 200 fsp->m_u.tcp_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry() 1071 if (tcp_ip6_spec->tclass) in ice_set_fdir_ip6_seg() 1154 if (usr_ip6_spec->tclass) in ice_set_fdir_ip6_usr_seg() 1793 input->ip.v6.tc = fsp->h_u.tcp_ip6_spec.tclass; in ice_set_fdir_input_set() 1800 input->mask.v6.tc = fsp->m_u.tcp_ip6_spec.tclass; in ice_set_fdir_input_set() 1808 input->ip.v6.tc = fsp->h_u.usr_ip6_spec.tclass; in ice_set_fdir_input_set() 1821 input->mask.v6.tc = fsp->m_u.usr_ip6_spec.tclass; in ice_set_fdir_input_set()
|
/Linux-v6.1/net/l2tp/ |
D | l2tp_ip6.c | 614 if (ipc6.tclass < 0) in l2tp_ip6_sendmsg() 615 ipc6.tclass = np->tclass; in l2tp_ip6_sendmsg() 617 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
|