/openbmc/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 | 18 u16 __always_unused tpid) in op_unsupported_tpid_arg() argument
|
H A D | ice_virtchnl.c | 2898 * @tpid: VLAN TPID used for validation 2903 static bool ice_vc_validate_vlan_tpid(u16 filtering_caps, u16 tpid) in ice_vc_validate_vlan_tpid() argument 2907 switch (tpid) { in ice_vc_validate_vlan_tpid() 2934 if (!vc_vlan->tci || !vc_vlan->tpid) in ice_vc_is_valid_vlan() 2984 outer->tpid)) || in ice_vc_validate_vlan_filter_list() 2987 inner->tpid))) in ice_vc_validate_vlan_filter_list() 3004 vlan.tpid = vc_vlan->tpid; in ice_vc_to_vlan() 3336 * @tpid: VLAN TPID to populate 3338 static int ice_vc_get_tpid(u32 ethertype_setting, u16 *tpid) in ice_vc_get_tpid() argument 3366 ice_vc_ena_vlan_offload(struct ice_vsi * vsi,int (* ena_offload)(struct ice_vsi * vsi,u16 tpid),u32 ethertype_setting) ice_vc_ena_vlan_offload() argument 3369 u16 tpid; ice_vc_ena_vlan_offload() local [all...] |
H A D | ice_fltr.c | 261 info.l_data.vlan.tpid = vlan->tpid; in ice_fltr_add_vlan_to_list()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_skmsg_load_helpers.c | 32 __u32 pid, tpid; in prog_msg_verdict() local 40 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in prog_msg_verdict() 41 if (pid != tpid) in prog_msg_verdict()
|
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 | 361 get_var_kill_data(struct pt_regs* ctx, int spid, int tpid, int sig) in get_var_kill_data() argument 376 kill_data->kill_target_pid = tpid; in get_var_kill_data() 383 static INLINE int trace_var_sys_kill(void* ctx, int tpid, int sig) in trace_var_sys_kill() argument 389 struct var_kill_data_arr_t* arr_struct = bpf_map_lookup_elem(&var_tpid_to_data, &tpid); in trace_var_sys_kill() 392 struct var_kill_data_t* kill_data = get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 407 get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 418 bpf_map_update_elem(&var_tpid_to_data, &tpid, in trace_var_sys_kill() 439 get_var_kill_data(ctx, spid, tpid, sig); in trace_var_sys_kill() 447 bpf_map_update_elem(&var_tpid_to_data, &tpid, arr_struct, 0); in trace_var_sys_kill() 631 u32 tpid = get_userspace_pid(); in raw_tracepoint__sched_process_exit() local [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_dp.c | 447 u16 tpid = 0, tci = 0; in nfp_net_vlan_strip() local 450 tpid = ETH_P_8021Q; in nfp_net_vlan_strip() 453 if (meta->vlan.tpid == NFP_NET_VLAN_CTAG) in nfp_net_vlan_strip() 454 tpid = ETH_P_8021Q; in nfp_net_vlan_strip() 455 else if (meta->vlan.tpid == NFP_NET_VLAN_STAG) in nfp_net_vlan_strip() 456 tpid = ETH_P_8021AD; in nfp_net_vlan_strip() 462 if (tpid) in nfp_net_vlan_strip() 463 __vlan_hwaccel_put_tag(skb, htons(tpid), tci); in nfp_net_vlan_strip()
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_virtchnl.c | 763 vlan->tpid = f->vlan.tpid; in iavf_add_vlans() 910 vlan->tpid = f->vlan.tpid; in iavf_del_vlans() 1183 static u32 iavf_tpid_to_vc_ethertype(u16 tpid) in iavf_tpid_to_vc_ethertype() argument 1185 switch (tpid) { in iavf_tpid_to_vc_ethertype() 1204 struct virtchnl_vlan_setting *msg, u16 tpid, in iavf_set_vc_offload_ethertype() argument 1208 u16 vc_ethertype = iavf_tpid_to_vc_ethertype(tpid); in iavf_set_vc_offload_ethertype() 1237 offload_op, tpid); in iavf_set_vc_offload_ethertype() 1251 iavf_clear_offload_v2_aq_required(struct iavf_adapter *adapter, u16 tpid, in iavf_clear_offload_v2_aq_required() argument 1256 if (tpid == ETH_P_8021Q) in iavf_clear_offload_v2_aq_required() 1259 else if (tpid == ETH_P_8021AD) in iavf_clear_offload_v2_aq_required() [all …]
|
H A D | iavf.h | 152 #define IAVF_VLAN(vid, tpid) ((struct iavf_vlan){ vid, tpid }) argument 155 u16 tpid; member 581 void iavf_enable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid); 582 void iavf_disable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid); 583 void iavf_enable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid); 584 void iavf_disable_vlan_insertion_v2(struct iavf_adapter *adapter, u16 tpid);
|
/openbmc/phosphor-pid-control/test/ |
H A D | pid_zone_unittest.cpp | 197 std::unique_ptr<PIDController> tpid = in TEST_F() local 199 ControllerMock* tmock = reinterpret_cast<ControllerMock*>(tpid.get()); in TEST_F() 203 [[maybe_unused]] ec::pid_info_t* info = tpid->getPIDInfo(); in TEST_F() 205 zone->addFanPID(std::move(tpid)); in TEST_F() 771 std::unique_ptr<PIDController> tpid = in TEST_F() local 773 ControllerMock* tmock = reinterpret_cast<ControllerMock*>(tpid.get()); in TEST_F() 777 [[maybe_unused]] ec::pid_info_t* info = tpid->getPIDInfo(); in TEST_F() 779 zone->addThermalPID(std::move(tpid)); in TEST_F() 795 std::unique_ptr<PIDController> tpid = in TEST_F() local 797 ControllerMock* tmock = reinterpret_cast<ControllerMock*>(tpid.get()); in TEST_F() [all …]
|
/openbmc/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()
|
/openbmc/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() 239 enum ocelot_tag_tpid_sel tpid; in ocelot_flower_parse_action() local 470 tpid = OCELOT_TAG_TPID_SEL_8021Q; in ocelot_flower_parse_action() 473 tpid = OCELOT_TAG_TPID_SEL_8021AD; in ocelot_flower_parse_action() 480 filter->action.tag_a_tpid_sel = tpid; in ocelot_flower_parse_action()
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_tc_flower.c | 65 switch (st->tpid) { in sparx5_tc_flower_es0_tpid() 234 if (st->admin->vtype == VCAP_TYPE_ES0 && st->tpid) in sparx5_tc_flower_handler_vlan_usage() 878 u16 tpid) in sparx5_tc_action_vlan_pop() argument 891 switch (tpid) { in sparx5_tc_action_vlan_pop() 910 u16 tpid) in sparx5_tc_action_vlan_modify() argument 928 switch (tpid) { in sparx5_tc_action_vlan_modify() 980 u16 tpid) in sparx5_tc_action_vlan_push() argument 994 if (tpid == ETH_P_8021AD) { in sparx5_tc_action_vlan_push() 1187 state.tpid); in sparx5_tc_flower_replace() 1193 act, state.tpid); in sparx5_tc_flower_replace() [all …]
|
/openbmc/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
|
/openbmc/linux/net/openvswitch/ |
H A D | flow.c | 455 if (likely(!eth_type_vlan(vh->tpid))) in parse_vlan_tag() 467 key_vh->tpid = vh->tpid; in parse_vlan_tag() 479 __vlan_hwaccel_put_tag(skb, key_vh->tpid, tci); in parse_vlan_tag() 489 key->eth.vlan.tpid = 0; in clear_vlan() 491 key->eth.cvlan.tpid = 0; in clear_vlan() 500 key->eth.vlan.tpid = skb->vlan_proto; in parse_vlan() 954 skb->protocol = key->eth.cvlan.tpid; in key_extract()
|
/openbmc/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()
|
/openbmc/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 | 462 u16 tpid, u16 tci) in dsa_8021q_xmit() argument 467 return vlan_insert_tag(skb, htons(tpid), tci); in dsa_8021q_xmit()
|
/openbmc/linux/fs/proc/ |
H A D | array.c | 156 pid_t ppid, tpid = 0, tgid, ngid; in task_state() local 165 tpid = task_pid_nr_ns(tracer, ns); in task_state() 188 seq_put_decimal_ull(m, "\nTracerPid:\t", tpid); in task_state()
|