Lines Matching refs:data8
198 u8 data8; in ksz9477_reset_switch() local
209 ksz_read8(dev, REG_SW_LUE_CTRL_1, &data8); in ksz9477_reset_switch()
210 data8 = SW_AGING_ENABLE | SW_LINK_AUTO_AGING | in ksz9477_reset_switch()
212 ksz_write8(dev, REG_SW_LUE_CTRL_1, data8); in ksz9477_reset_switch()
1081 u8 data8; in ksz9477_get_interface() local
1085 ksz_pread8(dev, port, REG_PORT_XMII_CTRL_1, &data8); in ksz9477_get_interface()
1086 gbit = ksz9477_get_gbit(dev, data8); in ksz9477_get_interface()
1087 mode = ksz9477_get_xmii(dev, data8); in ksz9477_get_interface()
1102 if (data8 & PORT_RGMII_ID_EG_ENABLE) in ksz9477_get_interface()
1104 if (data8 & PORT_RGMII_ID_IG_ENABLE) { in ksz9477_get_interface()
1106 if (data8 & PORT_RGMII_ID_EG_ENABLE) in ksz9477_get_interface()
1172 u8 data8; in ksz9477_port_setup() local
1217 ksz_pread8(dev, port, REG_PORT_XMII_CTRL_1, &data8); in ksz9477_port_setup()
1220 ksz9477_set_xmii(dev, 0, &data8); in ksz9477_port_setup()
1221 ksz9477_set_gbit(dev, false, &data8); in ksz9477_port_setup()
1225 ksz9477_set_xmii(dev, 1, &data8); in ksz9477_port_setup()
1226 ksz9477_set_gbit(dev, false, &data8); in ksz9477_port_setup()
1230 ksz9477_set_xmii(dev, 2, &data8); in ksz9477_port_setup()
1231 ksz9477_set_gbit(dev, true, &data8); in ksz9477_port_setup()
1235 ksz9477_set_xmii(dev, 3, &data8); in ksz9477_port_setup()
1236 ksz9477_set_gbit(dev, true, &data8); in ksz9477_port_setup()
1237 data8 &= ~PORT_RGMII_ID_IG_ENABLE; in ksz9477_port_setup()
1238 data8 &= ~PORT_RGMII_ID_EG_ENABLE; in ksz9477_port_setup()
1241 data8 |= PORT_RGMII_ID_IG_ENABLE; in ksz9477_port_setup()
1244 data8 |= PORT_RGMII_ID_EG_ENABLE; in ksz9477_port_setup()
1247 data8 &= ~PORT_MII_MAC_MODE; in ksz9477_port_setup()
1251 ksz_pwrite8(dev, port, REG_PORT_XMII_CTRL_1, data8); in ksz9477_port_setup()
1427 u8 data8; in ksz9477_switch_detect() local
1434 ret = ksz_read8(dev, REG_SW_GLOBAL_SERIAL_CTRL_0, &data8); in ksz9477_switch_detect()
1438 data8 &= ~SPI_AUTO_EDGE_DETECTION; in ksz9477_switch_detect()
1439 ret = ksz_write8(dev, REG_SW_GLOBAL_SERIAL_CTRL_0, data8); in ksz9477_switch_detect()
1447 ret = ksz_read8(dev, REG_GLOBAL_OPTIONS, &data8); in ksz9477_switch_detect()
1458 dev_dbg(dev->dev, "Switch detect: ID=%08x%02x\n", id32, data8); in ksz9477_switch_detect()
1467 if (data8 & SW_QW_ABLE) in ksz9477_switch_detect()
1477 if (!(data8 & SW_GIGABIT_ABLE)) in ksz9477_switch_detect()