/linux/drivers/base/ |
H 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() 127 if (tclass->setup) in transport_setup_classdev() 128 tclass->setup(tcont, dev, classdev); in transport_setup_classdev() 177 if (tclass->remove) in transport_add_class_device() 178 tclass->remove(tcont, dev, classdev); in transport_add_class_device() 209 if (tclass->configure) in transport_configure() 210 tclass->configure(tcont, dev, cdev); in transport_configure() 241 if (tclass->remove) in transport_remove_classdev() [all …]
|
/linux/security/selinux/ |
H A D | avc.c | 50 u16 tclass; member 511 node->ae.tclass = tclass; in avc_node_populate() 525 tclass == node->ae.tclass && in avc_search_node() 629 pos->ae.tclass == tclass) { in avc_insert() 692 const char *tclass = NULL; in avc_audit_post_callback() local 711 tclass = secclass_map[sad->tclass-1].name; in avc_audit_post_callback() 755 if (WARN_ON(!tclass || tclass >= ARRAY_SIZE(secclass_map))) in slow_avc_audit() 763 sad.tclass = tclass; in slow_avc_audit() 852 tclass == pos->ae.tclass && in avc_update_node() 991 u16 tclass, u32 requested, in avc_denied() argument [all …]
|
H A D | selinuxfs.c | 735 u16 tclass; in sel_write_validatetrans() local 860 u16 tclass; in sel_write_access() local 880 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access() 891 security_compute_av_user(ssid, tsid, tclass, &avd); in sel_write_access() 909 u16 tclass; in sel_write_create() local 979 length = security_transition_sid_user(ssid, tsid, tclass, in sel_write_create() 1009 u16 tclass; in sel_write_relabel() local 1031 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_relabel() 1042 length = security_change_sid(ssid, tsid, tclass, &newsid); in sel_write_relabel() 1129 u16 tclass; in sel_write_member() local [all …]
|
/linux/include/trace/events/ |
H A D | avc.h | 19 const char *tclass 22 TP_ARGS(sad, scontext, tcontext, tclass), 31 __string(tclass, tclass) 41 __assign_str(tclass); 46 __get_str(scontext), __get_str(tcontext), __get_str(tclass)
|
/linux/security/selinux/include/ |
H A D | avc.h | 51 u16 tclass; member 97 int slow_avc_audit(u32 ssid, u32 tsid, u16 tclass, u32 requested, u32 audited, 119 static inline int avc_audit(u32 ssid, u32 tsid, u16 tclass, u32 requested, in avc_audit() argument 127 return slow_avc_audit(ssid, tsid, tclass, requested, audited, denied, in avc_audit() 133 int avc_has_perm_noaudit(u32 ssid, u32 tsid, u16 tclass, u32 requested, 136 int avc_has_perm(u32 ssid, u32 tsid, u16 tclass, u32 requested, 139 int avc_has_extended_perms(u32 ssid, u32 tsid, u16 tclass, u32 requested,
|
H A D | security.h | 249 void security_compute_av(u32 ssid, u32 tsid, u16 tclass, 253 void security_compute_xperms_decision(u32 ssid, u32 tsid, u16 tclass, u8 driver, 256 void security_compute_av_user(u32 ssid, u32 tsid, u16 tclass, 259 int security_transition_sid(u32 ssid, u32 tsid, u16 tclass, 262 int security_transition_sid_user(u32 ssid, u32 tsid, u16 tclass, 265 int security_member_sid(u32 ssid, u32 tsid, u16 tclass, u32 *out_sid); 267 int security_change_sid(u32 ssid, u32 tsid, u16 tclass, u32 *out_sid); 299 u16 tclass); 302 u16 tclass);
|
/linux/security/selinux/ss/ |
H A D | services.c | 181 return tclass; in unmap_class() 567 tclass, in type_attribute_bounds_av() 757 u16 tclass; in security_compute_validatetrans() local 775 if (!tclass || tclass > policydb->p_classes.nprim) { in security_compute_validatetrans() 1008 u16 tclass; in security_compute_xperms_decision() local 1103 u16 tclass; in security_compute_av() local 1640 u16 tclass, in compute_sid_handle_invalid_context() argument 1691 ft.tclass = tclass; in filename_compute_type() 1720 u16 tclass; in security_compute_sid() local 1774 if (tclass && tclass <= policydb->p_classes.nprim) in security_compute_sid() [all …]
|
H A D | mls.c | 481 struct context *tcontext, u16 tclass, u32 specified, in mls_compute_sid() argument 497 rtr.target_class = tclass; in mls_compute_sid() 502 if (tclass && tclass <= p->p_classes.nprim) { in mls_compute_sid() 503 cladatum = p->class_val_to_struct[tclass - 1]; in mls_compute_sid() 528 if ((tclass == p->process_class) || sock) in mls_compute_sid()
|
H A D | policydb.h | 85 u32 tclass; /* process class, or new object class */ member 94 u16 tclass; /* class of new object */ member 390 extern u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name);
|
H A D | policydb.c | 428 v = ft1->tclass - ft2->tclass; in filenametr_cmp() 488 (u32)key->tclass << 16 | key->tclass, 0); in role_trans_hash() 504 return key1->tclass - key2->tclass; in role_trans_cmp() 1824 if (!tclass || tclass > p->p_classes.nprim) in string_to_av_perm() 1942 key.tclass = le32_to_cpu(buf[2]); in filename_trans_read_helper_compat() 2006 u32 len, ttype, tclass, ndatum, i; in filename_trans_read_helper() local 2026 tclass = le32_to_cpu(buf[1]); in filename_trans_read_helper() 2065 ft->tclass = tclass; in filename_trans_read_helper() 2643 rtk->tclass = p->process_class; in policydb_read() 2891 buf[0] = cpu_to_le32(rtk->tclass); in role_trans_write_one() [all …]
|
/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_ah.c | 62 u8 tclass = get_tclass(grh); in hns_roce_create_ah() local 81 ah->av.tclass = tclass; in hns_roce_create_ah() 83 ret = hr_dev->hw->get_dscp(hr_dev, tclass, &tc_mode, &priority); in hns_roce_create_ah() 139 ah->av.gid_index, ah->av.hop_limit, ah->av.tclass); in hns_roce_query_ah()
|
/linux/tools/testing/selftests/net/ |
H A D | cmsg_sender.c | 52 unsigned int tclass; member 71 struct option_cmsg_u32 tclass; member 172 opt.v6.tclass.ena = true; in cs_parse_args() 173 opt.v6.tclass.val = atoi(optarg); in cs_parse_args() 176 opt.sockopt.tclass = atoi(optarg); in cs_parse_args() 258 SOL_IPV6, IPV6_TCLASS, &opt.v6.tclass); in cs_write_cmsg() 403 if (opt.sockopt.tclass && in ca_set_sockopts() 405 &opt.sockopt.tclass, sizeof(opt.sockopt.tclass))) in ca_set_sockopts()
|
/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_flow_rule.c | 73 fsp->h_u.tcp_ip6_spec.tclass = flow_rule->key.tclass; in gve_fill_ethtool_flow_spec() 80 fsp->m_u.tcp_ip6_spec.tclass = flow_rule->mask.tclass; in gve_fill_ethtool_flow_spec() 89 fsp->h_u.ah_ip6_spec.tclass = flow_rule->key.tclass; in gve_fill_ethtool_flow_spec() 95 fsp->m_u.ah_ip6_spec.tclass = flow_rule->mask.tclass; in gve_fill_ethtool_flow_spec()
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_ethtool.c | 990 fsp->h_u.tcp_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 997 fsp->m_u.tcp_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1006 fsp->h_u.ah_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 1012 fsp->m_u.ah_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1020 fsp->h_u.usr_ip6_spec.tclass = rule->ip_data.tclass; in iavf_get_ethtool_fdir_entry() 1027 fsp->m_u.usr_ip6_spec.tclass = rule->ip_mask.tclass; in iavf_get_ethtool_fdir_entry() 1182 fltr->ip_data.tclass = fsp->h_u.tcp_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1189 fltr->ip_mask.tclass = fsp->m_u.tcp_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1199 fltr->ip_data.tclass = fsp->h_u.ah_ip6_spec.tclass; in iavf_add_fdir_fltr_info() 1205 fltr->ip_mask.tclass = fsp->m_u.ah_ip6_spec.tclass; in iavf_add_fdir_fltr_info() [all …]
|
H A D | iavf_fdir.c | 68 if (fltr->ip_mask.tclass && fltr->ip_mask.tclass != U8_MAX) in iavf_validate_fdir_fltr_masks() 359 if (fltr->ip_mask.tclass == U8_MAX) { in iavf_fill_fdir_ip6_hdr() 360 iph->priority = (fltr->ip_data.tclass >> 4) & 0xF; in iavf_fill_fdir_ip6_hdr() 361 iph->flow_lbl[0] = FIELD_PREP(0xF0, fltr->ip_data.tclass); in iavf_fill_fdir_ip6_hdr()
|
/linux/drivers/infiniband/hw/mlx5/ |
H 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/ |
H A D | transport_class.h | 39 struct transport_class tclass; member 45 .tclass = { \
|
H A D | ipv6.h | 209 u8 tclass; member 260 __u8 tclass; member
|
/linux/include/net/ |
H 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)) \
|
H A D | ipv6.h | 360 __s16 tclass; member 370 .tclass = -1, in ipcm6_init() 380 .tclass = inet6_sk(sk)->tclass, in ipcm6_init_sk() 1037 static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, in ip6_flow_hdr() argument 1040 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel; in ip6_flow_hdr() 1063 static inline __be32 ip6_make_flowinfo(unsigned int tclass, __be32 flowlabel) in ip6_make_flowinfo() argument 1065 return htonl(tclass << IPV6_TCLASS_SHIFT) | flowlabel; in ip6_make_flowinfo() 1092 __u32 mark, struct ipv6_txoptions *opt, int tclass, u32 priority);
|
/linux/include/uapi/linux/netfilter_bridge/ |
H A D | ebt_ip6.h | 38 __u8 tclass; member
|
/linux/net/sctp/ |
H A D | ipv6.c | 226 __u8 tclass = np->tclass; in sctp_v6_xmit() local 233 tclass = t->dscp & SCTP_DSCP_VAL_MASK; in sctp_v6_xmit() 235 if (INET_ECN_is_capable(tclass)) in sctp_v6_xmit() 250 tclass, READ_ONCE(sk->sk_priority)); in sctp_v6_xmit() 265 &fl6->daddr, tclass, ip6_dst_hoplimit(dst), in sctp_v6_xmit() 864 inet6_sk(sk)->tclass |= INET_ECN_ECT_0; in sctp_v6_ecn_capable()
|
/linux/net/ipv6/ |
H A D | ipv6_sockglue.c | 744 val |= np->tclass & INET_ECN_MASK; in do_ipv6_setsockopt() 746 if (np->tclass != val) { in do_ipv6_setsockopt() 747 np->tclass = val; in do_ipv6_setsockopt() 1171 int tclass = (int)ip6_tclass(np->rcv_flowinfo); in do_ipv6_getsockopt() local 1173 put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); in do_ipv6_getsockopt() 1277 val = np->tclass; in do_ipv6_getsockopt()
|
H A D | tcp_ipv6.c | 535 u8 tclass; in tcp_v6_send_synack() local 554 (np->tclass & INET_ECN_MASK) : in tcp_v6_send_synack() 555 np->tclass; in tcp_v6_send_synack() 557 if (!INET_ECN_is_capable(tclass) && in tcp_v6_send_synack() 559 tclass |= INET_ECN_ECT_0; in tcp_v6_send_synack() 566 opt, tclass, READ_ONCE(sk->sk_priority)); in tcp_v6_send_synack() 864 int oif, int rst, u8 tclass, __be32 label, in tcp_v6_send_response() argument 997 tclass & ~INET_ECN_MASK, priority); in tcp_v6_send_response() 1146 struct tcp_key *key, u8 tclass, in tcp_v6_send_ack() argument 1150 tclass, label, priority, txhash, key); in tcp_v6_send_ack() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 176 fsp->h_u.usr_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry() 187 fsp->m_u.usr_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry() 207 fsp->h_u.tcp_ip6_spec.tclass = rule->ip.v6.tc; in ice_get_ethtool_fdir_entry() 208 fsp->m_u.tcp_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry() 1081 if (tcp_ip6_spec->tclass) in ice_set_fdir_ip6_seg() 1164 if (usr_ip6_spec->tclass) in ice_set_fdir_ip6_usr_seg() 1929 input->ip.v6.tc = fsp->h_u.tcp_ip6_spec.tclass; in ice_set_fdir_input_set() 1936 input->mask.v6.tc = fsp->m_u.tcp_ip6_spec.tclass; in ice_set_fdir_input_set() 1944 input->ip.v6.tc = fsp->h_u.usr_ip6_spec.tclass; in ice_set_fdir_input_set() 1957 input->mask.v6.tc = fsp->m_u.usr_ip6_spec.tclass; in ice_set_fdir_input_set()
|