/drivers/net/dsa/ |
D | dsa_loop.c | 62 u16 pvid; member 206 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in dsa_loop_port_vlan_add() local 227 if (pvid) in dsa_loop_port_vlan_add() 228 ps->pvid = vid; in dsa_loop_port_vlan_add() 238 u16 vid, pvid = ps->pvid; in dsa_loop_port_vlan_del() local 252 if (pvid == vid) in dsa_loop_port_vlan_del() 253 pvid = 1; in dsa_loop_port_vlan_del() 255 ps->pvid = pvid; in dsa_loop_port_vlan_del()
|
/drivers/net/dsa/b53/ |
D | b53_common.c | 988 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in b53_vlan_add() local 1009 if (pvid) { in b53_vlan_add() 1024 u16 pvid; in b53_vlan_del() local 1026 b53_read16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), &pvid); in b53_vlan_del() 1035 if (pvid == vid) { in b53_vlan_del() 1037 pvid = 1; in b53_vlan_del() 1039 pvid = 0; in b53_vlan_del() 1049 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_PORT_DEF_TAG(port), pvid); in b53_vlan_del() 1050 b53_fast_age_vlan(dev, pvid); in b53_vlan_del() 1331 u16 pvlan, reg, pvid; in b53_br_leave() local [all …]
|
/drivers/net/dsa/mv88e6xxx/ |
D | port.c | 726 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid) in mv88e6xxx_port_get_pvid() argument 736 *pvid = reg & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_get_pvid() 741 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid) in mv88e6xxx_port_set_pvid() argument 752 reg |= pvid & MV88E6XXX_PORT_DEFAULT_VLAN_MASK; in mv88e6xxx_port_set_pvid() 759 dev_dbg(chip->dev, "p%d: DefaultVID set to %u\n", port, pvid); in mv88e6xxx_port_set_pvid()
|
D | port.h | 277 int mv88e6xxx_port_get_pvid(struct mv88e6xxx_chip *chip, int port, u16 *pvid); 278 int mv88e6xxx_port_set_pvid(struct mv88e6xxx_chip *chip, int port, u16 pvid);
|
D | chip.c | 1235 bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID; in mv88e6xxx_port_vlan_add() local 1256 if (pvid && mv88e6xxx_port_set_pvid(chip, port, vlan->vid_end)) in mv88e6xxx_port_vlan_add() 1300 u16 pvid, vid; in mv88e6xxx_port_vlan_del() local 1308 err = mv88e6xxx_port_get_pvid(chip, port, &pvid); in mv88e6xxx_port_vlan_del() 1317 if (vid == pvid) { in mv88e6xxx_port_vlan_del()
|
/drivers/net/dsa/microchip/ |
D | ksz_common.c | 611 u16 pvid; in ksz_port_vlan_del() local 613 ksz_pread16(dev, port, REG_PORT_DEFAULT_VID, &pvid); in ksz_port_vlan_del() 614 pvid = pvid & 0xFFF; in ksz_port_vlan_del() 624 if (pvid == vid) in ksz_port_vlan_del() 625 pvid = 1; in ksz_port_vlan_del() 636 ksz_pwrite16(dev, port, REG_PORT_DEFAULT_VID, pvid); in ksz_port_vlan_del()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 247 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid) in fm10k_iov_update_pvid() argument 264 if (vf_info->sw_vid != pvid) { in fm10k_iov_update_pvid() 265 vf_info->sw_vid = pvid; in fm10k_iov_update_pvid()
|
D | fm10k_pci.c | 1380 u16 glort, pvid; in fm10k_update_pvid() local 1391 pvid = FM10K_MSG_HDR_FIELD_GET(pvid_update, UPDATE_PVID_PVID); in fm10k_update_pvid() 1398 if (pvid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_pvid() 1404 err = fm10k_iov_update_pvid(interface, glort, pvid); in fm10k_update_pvid() 1409 if (pvid != hw->mac.default_vid) in fm10k_update_pvid() 1412 hw->mac.default_vid = pvid; in fm10k_update_pvid()
|
D | fm10k_pf.c | 1707 u16 glort, pvid; in fm10k_msg_update_pvid_pf() local 1718 pvid = FM10K_MSG_HDR_FIELD_GET(pvid_update, UPDATE_PVID_PVID); in fm10k_msg_update_pvid_pf() 1725 if (pvid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_msg_update_pvid_pf() 1729 hw->mac.default_vid = pvid; in fm10k_msg_update_pvid_pf()
|
D | fm10k.h | 525 s32 fm10k_iov_update_pvid(struct fm10k_intfc *interface, u16 glort, u16 pvid);
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 900 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine() 903 return mlxsw_sp_port->pvid; in mlxsw_sp_port_pvid_determine() 996 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add() local 998 u16 old_pvid = mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_add() 1010 err = mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid); in mlxsw_sp_bridge_port_vlan_add() 1402 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_del() local 1410 mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid); in mlxsw_sp_bridge_port_vlan_del()
|
D | spectrum.h | 210 u16 pvid; member
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 1533 if (!vsi->info.pvid) in i40e_vc_get_vf_resources_msg() 2257 if (vsi->info.pvid) { in i40e_vc_add_vlan_msg() 2323 if (vsi->info.pvid) { in i40e_vc_remove_vlan_msg() 2922 if (le16_to_cpu(vsi->info.pvid) == vlanprio) in i40e_ndo_set_vf_port_vlan() 2929 if (le16_to_cpu(vsi->info.pvid) == 0 && i40e_is_vsi_in_vlan(vsi)) { in i40e_ndo_set_vf_port_vlan() 2951 vlanprio != le16_to_cpu(vsi->info.pvid)) && in i40e_ndo_set_vf_port_vlan() 2952 vsi->info.pvid) { in i40e_ndo_set_vf_port_vlan() 2963 if (vsi->info.pvid) { in i40e_ndo_set_vf_port_vlan() 2965 i40e_rm_vlan_all_mac(vsi, (le16_to_cpu(vsi->info.pvid) & in i40e_ndo_set_vf_port_vlan() 3007 vf->port_vlan_id = le16_to_cpu(vsi->info.pvid); in i40e_ndo_set_vf_port_vlan() [all …]
|
D | i40e_main.c | 1160 if (vsi->info.pvid) in i40e_is_vsi_in_vlan() 1220 s16 pvid = le16_to_cpu(vsi->info.pvid); in i40e_correct_mac_vlan_filters() local 1242 if (pvid && new->f->vlan != pvid) in i40e_correct_mac_vlan_filters() 1243 new->f->vlan = pvid; in i40e_correct_mac_vlan_filters() 1257 if ((pvid && f->vlan != pvid) || in i40e_correct_mac_vlan_filters() 1261 if (pvid) in i40e_correct_mac_vlan_filters() 1262 new_vlan = pvid; in i40e_correct_mac_vlan_filters() 1472 if (vsi->info.pvid) in i40e_add_mac_filter() 1474 le16_to_cpu(vsi->info.pvid)); in i40e_add_mac_filter() 2503 if (vsi->info.pvid) in i40e_vlan_stripping_enable() [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov.h | 131 u16 pvid; member
|
D | qlcnic_sriov_pf.c | 710 cmd.req.arg[3] |= vp->pvid << 8; in qlcnic_sriov_set_vf_acl() 1274 cmd->req.arg[3] |= vp->pvid << 16; in qlcnic_sriov_validate_cfg_macvlan() 1364 cmd->rsp.arg[1] = mode | 1 << 8 | vp->pvid << 16; in qlcnic_sriov_pf_get_acl_cmd() 1965 vp->pvid = vlan; in qlcnic_sriov_set_vf_vlan() 1980 vlan = vp->pvid; in qlcnic_sriov_get_vf_vlan()
|
D | qlcnic_sysfs.c | 615 npar->pvid = esw_cfg[i].vlan_id; in qlcnic_sysfs_write_esw_config() 618 npar->pvid = 0; in qlcnic_sysfs_write_esw_config()
|
/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.c | 403 adapter->pvid = le16_to_cpu(evt->tag) & VLAN_VID_MASK; in be_async_grp5_pvid_state_process() 404 dev_info(&adapter->pdev->dev, "LPVID: %d\n", adapter->pvid); in be_async_grp5_pvid_state_process() 406 adapter->pvid = 0; in be_async_grp5_pvid_state_process() 3883 int be_cmd_set_hsw_config(struct be_adapter *adapter, u16 pvid, in be_cmd_set_hsw_config() argument 3912 if (pvid) { in be_cmd_set_hsw_config() 3914 AMAP_SET_BITS(struct amap_set_hsw_context, pvid, ctxt, pvid); in be_cmd_set_hsw_config() 3941 int be_cmd_get_hsw_config(struct be_adapter *adapter, u16 *pvid, in be_cmd_get_hsw_config() argument 3984 pvid, &resp->context); in be_cmd_get_hsw_config() 3985 if (pvid) in be_cmd_get_hsw_config() 3986 *pvid = le16_to_cpu(vid); in be_cmd_get_hsw_config()
|
D | be.h | 679 u16 pvid; member 770 #define be_pvid_tagging_enabled(adapter) (adapter->pvid)
|
D | be_cmds.h | 1863 u8 pvid[16]; member 1887 u8 pvid[16]; member 2479 int be_cmd_set_hsw_config(struct be_adapter *adapter, u16 pvid, u32 domain, 2481 int be_cmd_get_hsw_config(struct be_adapter *adapter, u16 *pvid, u32 domain,
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 100 vlan_tag = dev->pvid; in set_av_attr()
|
D | ocrdma.h | 293 u16 pvid; member
|
/drivers/scsi/bfa/ |
D | bfad_bsg.h | 223 u16 pvid; /* Port vlan id */ member
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_vf.h | 620 u16 pvid; member
|
D | qed_sriov.c | 1826 filter.vlan = p_vf->bulletin.p_virt->pvid; in qed_iov_configure_vport_forced() 4097 u16 pvid, int vfid) in qed_iov_bulletin_set_forced_vlan() argument 4116 vf_info->bulletin.p_virt->pvid = pvid; in qed_iov_bulletin_set_forced_vlan() 4117 if (pvid) in qed_iov_bulletin_set_forced_vlan() 4236 return p_vf->bulletin.p_virt->pvid; in qed_iov_bulletin_get_forced_vlan()
|