/linux/drivers/base/ |
A D | transport_class.c | 53 return class_register(&tclass->class); in transport_class_register() 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() 127 if (tclass->setup) in transport_setup_classdev() 128 tclass->setup(tcont, dev, classdev); in transport_setup_classdev() 194 if (tclass->configure) in transport_configure() 195 tclass->configure(tcont, dev, cdev); in transport_configure() 226 if (tclass->remove) in transport_remove_classdev() [all …]
|
/linux/security/selinux/ |
A D | avc.c | 50 u16 tclass; member 523 node->ae.tclass = tclass; in avc_node_populate() 538 tclass == node->ae.tclass && in avc_search_node() 649 pos->ae.tclass == tclass) { in avc_insert() 713 const char *tclass = NULL; in avc_audit_post_callback() local 732 tclass = secclass_map[sad->tclass-1].name; in avc_audit_post_callback() 777 if (WARN_ON(!tclass || tclass >= ARRAY_SIZE(secclass_map))) in slow_avc_audit() 785 sad.tclass = tclass; in slow_avc_audit() 876 tclass == pos->ae.tclass && in avc_update_node() 1015 u16 tclass, u32 requested, in avc_denied() argument [all …]
|
A D | selinuxfs.c | 786 u16 tclass; in sel_write_validatetrans() local 914 u16 tclass; in sel_write_access() local 935 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access() 946 security_compute_av_user(state, ssid, tsid, tclass, &avd); in sel_write_access() 966 u16 tclass; in sel_write_create() local 1037 length = security_transition_sid_user(state, ssid, tsid, tclass, in sel_write_create() 1069 u16 tclass; in sel_write_relabel() local 1092 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_relabel() 1103 length = security_change_sid(state, ssid, tsid, tclass, &newsid); in sel_write_relabel() 1195 u16 tclass; in sel_write_member() local [all …]
|
/linux/include/trace/events/ |
A 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/security/selinux/include/ |
A D | avc.h | 50 u16 tclass; member 101 u32 ssid, u32 tsid, u16 tclass, 126 u16 tclass, u32 requested, in avc_audit() argument 135 return slow_avc_audit(state, ssid, tsid, tclass, in avc_audit() 144 u16 tclass, u32 requested, 150 u16 tclass, u32 requested, 154 u32 ssid, u32 tsid, u16 tclass, u32 requested,
|
A D | security.h | 281 u16 tclass, struct av_decision *avd, 285 u32 ssid, u32 tsid, u16 tclass, 291 u16 tclass, struct av_decision *avd); 294 u32 ssid, u32 tsid, u16 tclass, 298 u32 ssid, u32 tsid, u16 tclass, 302 u16 tclass, u32 *out_sid); 305 u16 tclass, u32 *out_sid); 353 u16 tclass); 357 u16 tclass);
|
/linux/security/selinux/ss/ |
A D | services.c | 187 return tclass; in unmap_class() 575 tclass, in type_attribute_bounds_av() 768 u16 tclass; in security_compute_validatetrans() local 786 if (!tclass || tclass > policydb->p_classes.nprim) { in security_compute_validatetrans() 1025 u16 tclass; in security_compute_xperms_decision() local 1122 u16 tclass; in security_compute_av() local 1661 u16 tclass, in compute_sid_handle_invalid_context() argument 1712 ft.tclass = tclass; in filename_compute_type() 1743 u16 tclass; in security_compute_sid() local 1797 if (tclass && tclass <= policydb->p_classes.nprim) in security_compute_sid() [all …]
|
A D | mls.c | 491 u16 tclass, in mls_compute_sid() argument 509 rtr.target_class = tclass; in mls_compute_sid() 514 if (tclass && tclass <= p->p_classes.nprim) { in mls_compute_sid() 515 cladatum = p->class_val_to_struct[tclass - 1]; in mls_compute_sid() 540 if ((tclass == p->process_class) || sock) in mls_compute_sid()
|
A D | policydb.h | 87 u32 tclass; /* process class, or new object class */ member 96 u16 tclass; /* class of new object */ member 386 extern u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name);
|
A D | policydb.c | 421 hash = ft->ttype ^ ft->tclass; in filenametr_hash() 439 v = ft1->tclass - ft2->tclass; in filenametr_cmp() 515 return key1->tclass - key2->tclass; in role_trans_cmp() 1797 if (!tclass || tclass > p->p_classes.nprim) in string_to_av_perm() 1915 key.tclass = le32_to_cpu(buf[2]); in filename_trans_read_helper_compat() 1978 u32 len, ttype, tclass, ndatum, i; in filename_trans_read_helper() local 1998 tclass = le32_to_cpu(buf[1]); in filename_trans_read_helper() 2037 ft->tclass = tclass; in filename_trans_read_helper() 2599 rtk->tclass = p->process_class; in policydb_read() 2846 buf[0] = cpu_to_le32(rtk->tclass); in role_trans_write_one() [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
A D | iavf_ethtool.c | 1125 fsp->h_u.tcp_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 1132 fsp->m_u.tcp_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1141 fsp->h_u.ah_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 1147 fsp->m_u.ah_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1155 fsp->h_u.usr_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 1162 fsp->m_u.usr_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1311 fltr->ip_data.tclass = fsp->h_u.tcp_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1318 fltr->ip_mask.tclass = fsp->m_u.tcp_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1327 fltr->ip_data.tclass = fsp->h_u.ah_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1333 fltr->ip_mask.tclass = fsp->m_u.ah_ip6_spec.tclass; in iavf_add_fdir_fltr_info() [all …]
|
A D | iavf_fdir.h | 73 u8 tclass; member
|
A D | iavf_fdir.c | 287 if (fltr->ip_mask.tclass == U8_MAX) { in iavf_fill_fdir_ip6_hdr() 288 iph->priority = (fltr->ip_data.tclass >> 4) & 0xF; in iavf_fill_fdir_ip6_hdr() 289 iph->flow_lbl[0] = (fltr->ip_data.tclass << 4) & 0xF0; in iavf_fill_fdir_ip6_hdr()
|
/linux/net/ipv6/ |
A D | fib6_rules.c | 28 u8 tclass; member 35 if (r->dst.plen || r->src.plen || r->tclass) in fib6_rule_matchall() 326 if (r->tclass && r->tclass != ip6_tclass(fl6->flowlabel)) in fib6_rule_match() 376 rule6->tclass = frh->tos; in fib6_rule_configure() 409 if (frh->tos && (rule6->tclass != frh->tos)) in fib6_rule_compare() 430 frh->tos = rule6->tclass; in fib6_rule_fill()
|
A D | tcp_ipv6.c | 531 u8 tclass; in tcp_v6_send_synack() local 548 tclass = sock_net(sk)->ipv4.sysctl_tcp_reflect_tos ? in tcp_v6_send_synack() 550 (np->tclass & INET_ECN_MASK) : in tcp_v6_send_synack() 551 np->tclass; in tcp_v6_send_synack() 553 if (!INET_ECN_is_capable(tclass) && in tcp_v6_send_synack() 555 tclass |= INET_ECN_ECT_0; in tcp_v6_send_synack() 562 tclass, sk->sk_priority); in tcp_v6_send_synack() 894 u8 tclass, __be32 label, u32 priority) in tcp_v6_send_response() argument 1010 tclass & ~INET_ECN_MASK, priority); in tcp_v6_send_response() 1129 struct tcp_md5sig_key *key, u8 tclass, in tcp_v6_send_ack() argument [all …]
|
/linux/drivers/infiniband/hw/mlx5/ |
A 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/include/linux/ |
A D | transport_class.h | 39 struct transport_class tclass; member 45 .tclass = { \
|
A D | ipv6.h | 197 u8 tclass; member 284 __u8 tclass; member
|
/linux/include/net/ |
A 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)) \
|
A D | ipv6.h | 347 __s16 tclass; member 357 .tclass = -1, in ipcm6_init() 367 .tclass = np->tclass, in ipcm6_init_sk() 947 static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, in ip6_flow_hdr() argument 950 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; in ip6_flow_hdr() 968 static inline __be32 ip6_make_flowinfo(unsigned int tclass, __be32 flowlabel) in ip6_make_flowinfo() argument 970 return htonl(tclass << IPV6_TCLASS_SHIFT) | flowlabel; in ip6_make_flowinfo() 997 __u32 mark, struct ipv6_txoptions *opt, int tclass, u32 priority);
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_ah.c | 77 ah->av.tclass = get_tclass(grh); in hns_roce_create_ah() 105 ah->av.gid_index, ah->av.hop_limit, ah->av.tclass); in hns_roce_query_ah()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_ethtool_fdir.c | 167 fsp->h_u.usr_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry() 178 fsp->m_u.usr_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry() 198 fsp->h_u.tcp_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry() 199 fsp->m_u.tcp_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry() 925 if (tcp_ip6_spec->tclass) in ice_set_fdir_ip6_seg() 1008 if (usr_ip6_spec->tclass) in ice_set_fdir_ip6_usr_seg() 1563 input->ip.v6.tc = fsp->h_u.tcp_ip6_spec.tclass; in ice_set_fdir_input_set() 1570 input->mask.v6.tc = fsp->m_u.tcp_ip6_spec.tclass; in ice_set_fdir_input_set() 1578 input->ip.v6.tc = fsp->h_u.usr_ip6_spec.tclass; in ice_set_fdir_input_set() 1591 input->mask.v6.tc = fsp->m_u.usr_ip6_spec.tclass; in ice_set_fdir_input_set()
|
/linux/include/uapi/linux/netfilter_bridge/ |
A D | ebt_ip6.h | 38 __u8 tclass; member
|
/linux/net/sctp/ |
A 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/net/l2tp/ |
A D | l2tp_ip6.c | 611 if (ipc6.tclass < 0) in l2tp_ip6_sendmsg() 612 ipc6.tclass = np->tclass; in l2tp_ip6_sendmsg() 614 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
|