Searched refs:PVID_OFF (Results 1 – 2 of 2) sorted by relevance
338 val &= ~(PVID_MASK << PVID_OFF(i)); in mtkswitch_vlan_init_hw()339 val |= (vid << PVID_OFF(i)); in mtkswitch_vlan_init_hw()474 *pvid = (MTKSWITCH_READ(sc, MTKSWITCH_PVID(port)) >> PVID_OFF(port)) & in mtkswitch_vlan_get_pvid()487 val &= ~(PVID_MASK << PVID_OFF(port)); in mtkswitch_vlan_set_pvid()488 val |= (pvid & PVID_MASK) << PVID_OFF(port); in mtkswitch_vlan_set_pvid()
31 #define PVID_OFF(p) (((p) & 1) ? 12 : 0) macro