| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_vsi_vlan_lib.c | 9 static void print_invalid_tpid(struct ice_vsi *vsi, u16 tpid) in print_invalid_tpid() argument 12 ice_vsi_type_str(vsi->type), vsi->idx, tpid); in print_invalid_tpid() 26 if (vlan->tpid != ETH_P_8021Q && vlan->tpid != ETH_P_8021AD && in validate_vlan() 27 vlan->tpid != ETH_P_QINQ1 && (vlan->tpid || vlan->vid)) { in validate_vlan() 28 print_invalid_tpid(vsi, vlan->tpid); in validate_vlan() 182 int ice_vsi_ena_inner_stripping(struct ice_vsi *vsi, const u16 tpid) in ice_vsi_ena_inner_stripping() argument 184 if (tpid != ETH_P_8021Q) { in ice_vsi_ena_inner_stripping() 185 print_invalid_tpid(vsi, tpid); in ice_vsi_ena_inner_stripping() 197 int ice_vsi_ena_inner_insertion(struct ice_vsi *vsi, const u16 tpid) in ice_vsi_ena_inner_insertion() argument 199 if (tpid != ETH_P_8021Q) { in ice_vsi_ena_inner_insertion() [all …]
|
| H A D | ice_vsi_vlan_lib.h | 21 int ice_vsi_ena_inner_stripping(struct ice_vsi *vsi, u16 tpid); 23 int ice_vsi_ena_inner_insertion(struct ice_vsi *vsi, u16 tpid); 33 int ice_vsi_ena_outer_stripping(struct ice_vsi *vsi, u16 tpid); 35 int ice_vsi_ena_outer_insertion(struct ice_vsi *vsi, u16 tpid);
|
| H A D | ice_vlan.h | 11 u16 tpid; member 16 #define ICE_VLAN(tpid, vid, prio) ((struct ice_vlan){ tpid, vid, prio }) argument
|
| H A D | ice_vsi_vlan_ops.h | 15 int (*ena_stripping)(struct ice_vsi *vsi, const u16 tpid); 17 int (*ena_insertion)(struct ice_vsi *vsi, const u16 tpid);
|
| H A D | ice_vsi_vlan_ops.c | 19 u16 __always_unused tpid) in op_unsupported_tpid_arg() argument
|
| H A D | ice_fltr.c | 261 info.l_data.vlan.tpid = vlan->tpid; in ice_fltr_add_vlan_to_list()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_skmsg_load_helpers.c | 31 __u32 pid, tpid; in prog_msg_verdict_common() local 39 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in prog_msg_verdict_common() 40 if (pid != tpid) in prog_msg_verdict_common()
|
| H A D | test_skb_helpers.c | 22 __u32 tpid; in test_skb_helpers() local 25 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in test_skb_helpers()
|
| H A D | profiler.inc.h | 353 get_var_kill_data(struct pt_regs* ctx, int spid, int tpid, int sig) in get_var_kill_data() argument 368 kill_data->kill_target_pid = tpid; in get_var_kill_data() 375 static INLINE int trace_var_sys_kill(void* ctx, int tpid, int sig) in trace_var_sys_kill() argument 381 struct var_kill_data_arr_t* arr_struct = bpf_map_lookup_elem(&var_tpid_to_data, &tpid); in trace_var_sys_kill() 384 struct var_kill_data_t* kill_data = get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 399 get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 410 bpf_map_update_elem(&var_tpid_to_data, &tpid, in trace_var_sys_kill() 431 get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 439 bpf_map_update_elem(&var_tpid_to_data, &tpid, arr_struct, 0); in trace_var_sys_kill() 618 u32 tpid = get_userspace_pid(); in raw_tracepoint__sched_process_exit() local [all …]
|
| /linux/kernel/trace/ |
| H A D | trace_sched_switch.c | 244 unsigned tpid, idx; in trace_save_cmdline() local 252 tpid = tsk->pid & (PID_MAX_DEFAULT - 1); in trace_save_cmdline() 267 idx = savedcmd->map_pid_to_cmdline[tpid]; in trace_save_cmdline() 271 savedcmd->map_pid_to_cmdline[tpid] = idx; in trace_save_cmdline() 286 int tpid; in __trace_find_cmdline() local 298 tpid = pid & (PID_MAX_DEFAULT - 1); in __trace_find_cmdline() 299 map = savedcmd->map_pid_to_cmdline[tpid]; in __trace_find_cmdline() 301 tpid = savedcmd->map_cmdline_to_pid[map]; in __trace_find_cmdline() 302 if (tpid == pid) { in __trace_find_cmdline()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_dp.c | 445 u16 tpid = 0, tci = 0; in nfp_net_vlan_strip() local 448 tpid = ETH_P_8021Q; in nfp_net_vlan_strip() 451 if (meta->vlan.tpid == NFP_NET_VLAN_CTAG) in nfp_net_vlan_strip() 452 tpid = ETH_P_8021Q; in nfp_net_vlan_strip() 453 else if (meta->vlan.tpid == NFP_NET_VLAN_STAG) in nfp_net_vlan_strip() 454 tpid = ETH_P_8021AD; in nfp_net_vlan_strip() 460 if (tpid) in nfp_net_vlan_strip() 461 __vlan_hwaccel_put_tag(skb, htons(tpid), tci); in nfp_net_vlan_strip()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf.h | 152 #define IAVF_VLAN(vid, tpid) ((struct iavf_vlan){ vid, tpid }) argument 155 u16 tpid; member 619 void iavf_enable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid); 620 void iavf_disable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid); 621 void iavf_enable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid); 622 void iavf_disable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid);
|
| /linux/tools/thermal/tmon/ |
| H A D | sysfs.c | 122 static int get_trip_point_data(char *tz_path, int tzid, int tpid) in get_trip_point_data() argument 128 if (tpid >= MAX_NR_TRIP) in get_trip_point_data() 131 snprintf(filename, sizeof(filename), "trip_point_%d_type", tpid); in get_trip_point_data() 138 ptdata.tzi[tzid].tp[tpid].type = trip_type; in get_trip_point_data() 140 tpid, temp_str, trip_type); in get_trip_point_data()
|
| /linux/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_tc_flower.c | 65 switch (st->tpid) { in sparx5_tc_flower_es0_tpid() 238 if (st->admin->vtype == VCAP_TYPE_ES0 && st->tpid) in sparx5_tc_flower_handler_vlan_usage() 884 u16 tpid) in sparx5_tc_action_vlan_pop() argument 897 switch (tpid) { in sparx5_tc_action_vlan_pop() 916 u16 tpid) in sparx5_tc_action_vlan_modify() argument 934 switch (tpid) { in sparx5_tc_action_vlan_modify() 986 u16 tpid) in sparx5_tc_action_vlan_push() argument 1000 if (tpid == ETH_P_8021AD) { in sparx5_tc_action_vlan_push() 1261 state.tpid); in sparx5_tc_flower_replace() 1267 act, state.tpid); in sparx5_tc_flower_replace() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/virt/ |
| H A D | virtchnl.c | 1691 static bool ice_vc_validate_vlan_tpid(u16 filtering_caps, u16 tpid) in ice_vc_validate_vlan_tpid() argument 1695 switch (tpid) { in ice_vc_validate_vlan_tpid() 1722 if (!vc_vlan->tci || !vc_vlan->tpid) in ice_vc_is_valid_vlan() 1772 outer->tpid)) || in ice_vc_validate_vlan_filter_list() 1775 inner->tpid))) in ice_vc_validate_vlan_filter_list() 1792 vlan.tpid = vc_vlan->tpid; in ice_vc_to_vlan() 2127 static int ice_vc_get_tpid(u32 ethertype_setting, u16 *tpid) in ice_vc_get_tpid() argument 2131 *tpid = ETH_P_8021Q; in ice_vc_get_tpid() 2134 *tpid = ETH_P_8021AD; in ice_vc_get_tpid() 2137 *tpid = ETH_P_QINQ1; in ice_vc_get_tpid() [all …]
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_flower.c | 205 enum ocelot_tag_tpid_sel tpid; in ocelot_flower_parse_egress_vlan_modify() local 209 tpid = OCELOT_TAG_TPID_SEL_8021Q; in ocelot_flower_parse_egress_vlan_modify() 212 tpid = OCELOT_TAG_TPID_SEL_8021AD; in ocelot_flower_parse_egress_vlan_modify() 220 filter->action.tag_a_tpid_sel = tpid; in ocelot_flower_parse_egress_vlan_modify() 265 enum ocelot_tag_tpid_sel tpid; in ocelot_flower_parse_action() local 500 tpid = OCELOT_TAG_TPID_SEL_8021Q; in ocelot_flower_parse_action() 503 tpid = OCELOT_TAG_TPID_SEL_8021AD; in ocelot_flower_parse_action() 510 filter->action.tag_a_tpid_sel = tpid; in ocelot_flower_parse_action()
|
| /linux/drivers/net/ethernet/microchip/vcap/ |
| H A D | vcap_tc.c | 176 u16 tpid; in vcap_tc_flower_handler_cvlan_usage() local 181 tpid = be16_to_cpu(mt.key->vlan_tpid); in vcap_tc_flower_handler_cvlan_usage() 183 if (tpid == ETH_P_8021Q) { in vcap_tc_flower_handler_cvlan_usage() 239 st->tpid = be16_to_cpu(mt.key->vlan_tpid); in vcap_tc_flower_handler_vlan_usage()
|
| H A D | vcap_tc.h | 16 u16 tpid; member
|
| /linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | nv50.c | 282 nv50_gr_mp_trap(struct nv50_gr *gr, int tpid, int display) in nv50_gr_mp_trap() argument 295 addr = 0x408200 + (tpid << 12) + (i << 7); in nv50_gr_mp_trap() 297 addr = 0x408100 + (tpid << 11) + (i << 7); in nv50_gr_mp_trap() 312 tpid, i, status, msg, pc & 0xffffff, in nv50_gr_mp_trap() 321 "No MPs claiming errors?\n", tpid); in nv50_gr_mp_trap()
|
| /linux/net/dsa/ |
| H A D | tag_8021q.h | 14 u16 tpid, u16 tci);
|
| H A D | tag_sja1105.c | 464 u16 tpid = ntohs(eth_hdr(skb)->h_proto); in sja1105_skb_has_tag_8021q() local 466 return tpid == ETH_P_SJA1105 || tpid == ETH_P_8021Q || in sja1105_skb_has_tag_8021q()
|
| H A D | tag_8021q.c | 465 u16 tpid, u16 tci) in dsa_8021q_xmit() argument 470 return vlan_insert_tag(skb, htons(tpid), tci); in dsa_8021q_xmit()
|
| /linux/net/openvswitch/ |
| H A D | flow_netlink.c | 993 __be16 tpid = 0; in encode_vlan_from_nlattrs() local 999 tpid = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in encode_vlan_from_nlattrs() 1002 SW_FLOW_KEY_PUT(match, eth.vlan.tpid, tpid, is_mask); in encode_vlan_from_nlattrs() 1005 SW_FLOW_KEY_PUT(match, eth.cvlan.tpid, tpid, is_mask); in encode_vlan_from_nlattrs() 1054 __be16 tpid = 0; in validate_vlan_mask_from_nlattrs() local 1075 tpid = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in validate_vlan_mask_from_nlattrs() 1077 if (tpid != htons(0xffff)) { in validate_vlan_mask_from_nlattrs() 1079 (inner) ? "C-VLAN" : "VLAN", ntohs(tpid)); in validate_vlan_mask_from_nlattrs() 1951 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan()
|
| H A D | flow.h | 62 __be16 tpid; /* Vlan type. Generally 802.1q or 802.1ad.*/ member
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_sp_commands.c | 346 outer_tag_config->outer_tag.tpid = cpu_to_le16(ETH_P_8021Q); in qed_sp_pf_start() 348 outer_tag_config->outer_tag.tpid = cpu_to_le16(ETH_P_8021AD); in qed_sp_pf_start()
|