Lines Matching refs:data8
2487 u8 data8; in ksz_set_xmii() local
2489 ksz_pread8(dev, port, regs[P_XMII_CTRL_1], &data8); in ksz_set_xmii()
2491 data8 &= ~(P_MII_SEL_M | P_RGMII_ID_IG_ENABLE | in ksz_set_xmii()
2496 data8 |= bitval[P_MII_SEL]; in ksz_set_xmii()
2499 data8 |= bitval[P_RMII_SEL]; in ksz_set_xmii()
2502 data8 |= bitval[P_GMII_SEL]; in ksz_set_xmii()
2508 data8 |= bitval[P_RGMII_SEL]; in ksz_set_xmii()
2512 data8 &= ~P_MII_MAC_MODE; in ksz_set_xmii()
2521 data8 |= P_RGMII_ID_EG_ENABLE; in ksz_set_xmii()
2524 data8 |= P_RGMII_ID_IG_ENABLE; in ksz_set_xmii()
2527 ksz_pwrite8(dev, port, regs[P_XMII_CTRL_1], data8); in ksz_set_xmii()
2535 u8 data8; in ksz_get_xmii() local
2538 ksz_pread8(dev, port, regs[P_XMII_CTRL_1], &data8); in ksz_get_xmii()
2540 val = FIELD_GET(P_MII_SEL_M, data8); in ksz_get_xmii()
2551 if (data8 & P_RGMII_ID_EG_ENABLE) in ksz_get_xmii()
2553 if (data8 & P_RGMII_ID_IG_ENABLE) { in ksz_get_xmii()
2555 if (data8 & P_RGMII_ID_EG_ENABLE) in ksz_get_xmii()
2595 u8 data8; in ksz_get_gbit() local
2598 ksz_pread8(dev, port, regs[P_XMII_CTRL_1], &data8); in ksz_get_gbit()
2600 val = FIELD_GET(P_GMII_1GBIT_M, data8); in ksz_get_gbit()
2612 u8 data8; in ksz_set_gbit() local
2614 ksz_pread8(dev, port, regs[P_XMII_CTRL_1], &data8); in ksz_set_gbit()
2616 data8 &= ~P_GMII_1GBIT_M; in ksz_set_gbit()
2619 data8 |= FIELD_PREP(P_GMII_1GBIT_M, bitval[P_GMII_1GBIT]); in ksz_set_gbit()
2621 data8 |= FIELD_PREP(P_GMII_1GBIT_M, bitval[P_GMII_NOT_1GBIT]); in ksz_set_gbit()
2624 ksz_pwrite8(dev, port, regs[P_XMII_CTRL_1], data8); in ksz_set_gbit()
2631 u8 data8; in ksz_set_100_10mbit() local
2633 ksz_pread8(dev, port, regs[P_XMII_CTRL_0], &data8); in ksz_set_100_10mbit()
2635 data8 &= ~P_MII_100MBIT_M; in ksz_set_100_10mbit()
2638 data8 |= FIELD_PREP(P_MII_100MBIT_M, bitval[P_MII_100MBIT]); in ksz_set_100_10mbit()
2640 data8 |= FIELD_PREP(P_MII_100MBIT_M, bitval[P_MII_10MBIT]); in ksz_set_100_10mbit()
2643 ksz_pwrite8(dev, port, regs[P_XMII_CTRL_0], data8); in ksz_set_100_10mbit()