Lines Matching refs:REG_PORT
245 sc->swid = e6000sw_readreg(sc, REG_PORT(sc, 0), SWITCH_ID) & 0xfff0; in e6000sw_probe()
480 reg = e6000sw_readreg(sc, REG_PORT(sc, port), in e6000sw_attach()
484 e6000sw_writereg(sc, REG_PORT(sc, port), PSC_CONTROL, in e6000sw_attach()
510 e6000sw_writereg(sc, REG_PORT(sc, port), PSC_CONTROL, in e6000sw_attach()
806 reg = e6000sw_readreg(sc, REG_PORT(sc, p->es_port), PORT_CONTROL2); in e6000sw_getport()
855 reg = e6000sw_readreg(sc, REG_PORT(sc, p->es_port), PORT_CONTROL2); in e6000sw_setport()
864 e6000sw_writereg(sc, REG_PORT(sc, p->es_port), PORT_CONTROL2, reg); in e6000sw_setport()
885 reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VLAN_MAP); in e6000sw_port_vlan_assign()
889 e6000sw_writereg(sc, REG_PORT(sc, port), PORT_VLAN_MAP, reg); in e6000sw_port_vlan_assign()
890 reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL1); in e6000sw_port_vlan_assign()
893 e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL1, reg); in e6000sw_port_vlan_assign()
904 ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL); in e6000sw_init_vlan()
905 e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL, in e6000sw_init_vlan()
914 ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL); in e6000sw_init_vlan()
916 e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL, ret); in e6000sw_init_vlan()
919 ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL2); in e6000sw_init_vlan()
923 e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL2, ret); in e6000sw_init_vlan()
930 ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VID); in e6000sw_init_vlan()
941 e6000sw_writereg(sc, REG_PORT(sc, port), PORT_VID, ret); in e6000sw_init_vlan()
972 ret = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL); in e6000sw_init_vlan()
973 e6000sw_writereg(sc, REG_PORT(sc, port), PORT_CONTROL, in e6000sw_init_vlan()
1014 (addr_reg < (REG_PORT(sc, 0) * 32))) { in e6000sw_readreg_wrapper()
1030 (addr_reg < (REG_PORT(sc, 0) * 32))) { in e6000sw_writereg_wrapper()
1190 reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VLAN_MAP); in e6000sw_get_port_vlan()
1194 reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_CONTROL1); in e6000sw_get_port_vlan()
1409 reg = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VID); in e6000sw_set_pvid()
1412 e6000sw_writereg(sc, REG_PORT(sc, port), PORT_VID, reg); in e6000sw_set_pvid()
1422 *pvid = e6000sw_readreg(sc, REG_PORT(sc, port), PORT_VID) & in e6000sw_get_pvid()
1487 portstatus = e6000sw_readreg(sc, REG_PORT(sc, port), in e6000sw_tick()