Lines Matching refs:ctrl
595 u32 ctrl; in ks8695_link_irq() local
597 ctrl = readl(ksp->phyiface_regs + KS8695_WMC); in ks8695_link_irq()
598 if (ctrl & WMC_WLS) { in ks8695_link_irq()
604 (ctrl & WMC_WSS) ? "0" : "", in ks8695_link_irq()
605 (ctrl & WMC_WDS) ? "Full" : "Half"); in ks8695_link_irq()
666 u32 ctrl; in ks8695_shutdown() local
670 ctrl = ks8695_readreg(ksp, KS8695_DTXC); in ks8695_shutdown()
671 ks8695_writereg(ksp, KS8695_DTXC, ctrl & ~DTXC_TE); in ks8695_shutdown()
674 ctrl = ks8695_readreg(ksp, KS8695_DRXC); in ks8695_shutdown()
675 ks8695_writereg(ksp, KS8695_DRXC, ctrl & ~DRXC_RE); in ks8695_shutdown()
757 u32 ctrl; in ks8695_init_net() local
787 ctrl = ks8695_readreg(ksp, KS8695_DTXC); in ks8695_init_net()
789 ks8695_writereg(ksp, KS8695_DTXC, ctrl | DTXC_TE); in ks8695_init_net()
792 ctrl = ks8695_readreg(ksp, KS8695_DRXC); in ks8695_init_net()
794 ks8695_writereg(ksp, KS8695_DRXC, ctrl | DRXC_RE); in ks8695_init_net()
866 u32 ctrl; in ks8695_wan_get_settings() local
879 ctrl = readl(ksp->phyiface_regs + KS8695_WMC); in ks8695_wan_get_settings()
880 if ((ctrl & WMC_WAND) == 0) { in ks8695_wan_get_settings()
883 if (ctrl & WMC_WANA100F) in ks8695_wan_get_settings()
885 if (ctrl & WMC_WANA100H) in ks8695_wan_get_settings()
887 if (ctrl & WMC_WANA10F) in ks8695_wan_get_settings()
889 if (ctrl & WMC_WANA10H) in ks8695_wan_get_settings()
891 if (ctrl & WMC_WANAP) in ks8695_wan_get_settings()
896 (ctrl & WMC_WSS) ? SPEED_100 : SPEED_10); in ks8695_wan_get_settings()
897 cmd->duplex = (ctrl & WMC_WDS) ? in ks8695_wan_get_settings()
903 ethtool_cmd_speed_set(cmd, ((ctrl & WMC_WANF100) ? in ks8695_wan_get_settings()
905 cmd->duplex = (ctrl & WMC_WANFF) ? in ks8695_wan_get_settings()
921 u32 ctrl; in ks8695_wan_set_settings() local
942 ctrl = readl(ksp->phyiface_regs + KS8695_WMC); in ks8695_wan_set_settings()
944 ctrl &= ~(WMC_WAND | WMC_WANA100F | WMC_WANA100H | in ks8695_wan_set_settings()
947 ctrl |= WMC_WANA100F; in ks8695_wan_set_settings()
949 ctrl |= WMC_WANA100H; in ks8695_wan_set_settings()
951 ctrl |= WMC_WANA10F; in ks8695_wan_set_settings()
953 ctrl |= WMC_WANA10H; in ks8695_wan_set_settings()
956 ctrl |= WMC_WANR; in ks8695_wan_set_settings()
957 writel(ctrl, ksp->phyiface_regs + KS8695_WMC); in ks8695_wan_set_settings()
959 ctrl = readl(ksp->phyiface_regs + KS8695_WMC); in ks8695_wan_set_settings()
962 ctrl |= WMC_WAND; in ks8695_wan_set_settings()
963 ctrl &= ~(WMC_WANF100 | WMC_WANFF); in ks8695_wan_set_settings()
966 ctrl |= WMC_WANF100; in ks8695_wan_set_settings()
968 ctrl |= WMC_WANFF; in ks8695_wan_set_settings()
970 writel(ctrl, ksp->phyiface_regs + KS8695_WMC); in ks8695_wan_set_settings()
984 u32 ctrl; in ks8695_wan_nwayreset() local
986 ctrl = readl(ksp->phyiface_regs + KS8695_WMC); in ks8695_wan_nwayreset()
988 if ((ctrl & WMC_WAND) == 0) in ks8695_wan_nwayreset()
989 writel(ctrl | WMC_WANR, in ks8695_wan_nwayreset()
1007 u32 ctrl; in ks8695_wan_get_pause() local
1009 ctrl = readl(ksp->phyiface_regs + KS8695_WMC); in ks8695_wan_get_pause()
1012 param->autoneg = (ctrl & WMC_WANAP); in ks8695_wan_get_pause()
1015 ctrl = ks8695_readreg(ksp, KS8695_DRXC); in ks8695_wan_get_pause()
1016 param->rx_pause = (ctrl & DRXC_RFCE); in ks8695_wan_get_pause()
1019 ctrl = ks8695_readreg(ksp, KS8695_DTXC); in ks8695_wan_get_pause()
1020 param->tx_pause = (ctrl & DTXC_TFCE); in ks8695_wan_get_pause()
1091 u32 ctrl; in ks8695_set_multicast() local
1093 ctrl = ks8695_readreg(ksp, KS8695_DRXC); in ks8695_set_multicast()
1097 ctrl |= DRXC_RA; in ks8695_set_multicast()
1100 ctrl &= ~DRXC_RA; in ks8695_set_multicast()
1105 ctrl |= DRXC_RM; in ks8695_set_multicast()
1110 ctrl |= DRXC_RM; in ks8695_set_multicast()
1113 ctrl &= ~DRXC_RM; in ks8695_set_multicast()
1117 ks8695_writereg(ksp, KS8695_DRXC, ctrl); in ks8695_set_multicast()
1279 u32 ctrl; in ks8695_init_switch() local
1282 ctrl = 0x40819e00; in ks8695_init_switch()
1285 ctrl &= ~(SEC0_LLED1S | SEC0_LLED0S); in ks8695_init_switch()
1286 ctrl |= (LLED0S_LINK | LLED1S_LINK_ACTIVITY); in ks8695_init_switch()
1289 ctrl |= SEC0_ENABLE; in ks8695_init_switch()
1291 writel(ctrl, ksp->phyiface_regs + KS8695_SEC0); in ks8695_init_switch()
1307 u32 ctrl; in ks8695_init_wan_phy() local
1310 ctrl = (WMC_WANAP | WMC_WANA100F | WMC_WANA100H | in ks8695_init_wan_phy()
1314 ctrl |= (WLED0S_ACTIVITY | WLED1S_LINK); in ks8695_init_wan_phy()
1317 ctrl |= WMC_WANR; in ks8695_init_wan_phy()
1319 writel(ctrl, ksp->phyiface_regs + KS8695_WMC); in ks8695_init_wan_phy()