Lines Matching refs:fpga_mii
369 struct fpga_mii { struct
372 } fpga_mii[] = { variable
386 struct fpga_mii *fpga_mii = bus->priv; in mii_mdio_active() local
388 if (fpga_mii->mdio) in mii_mdio_active()
389 FPGA_SET_REG(fpga_mii->fpga, gpio.set, GPIO_MDIO); in mii_mdio_active()
391 FPGA_SET_REG(fpga_mii->fpga, gpio.clear, GPIO_MDIO); in mii_mdio_active()
398 struct fpga_mii *fpga_mii = bus->priv; in mii_mdio_tristate() local
400 FPGA_SET_REG(fpga_mii->fpga, gpio.set, GPIO_MDIO); in mii_mdio_tristate()
407 struct fpga_mii *fpga_mii = bus->priv; in mii_set_mdio() local
410 FPGA_SET_REG(fpga_mii->fpga, gpio.set, GPIO_MDIO); in mii_set_mdio()
412 FPGA_SET_REG(fpga_mii->fpga, gpio.clear, GPIO_MDIO); in mii_set_mdio()
414 fpga_mii->mdio = v; in mii_set_mdio()
422 struct fpga_mii *fpga_mii = bus->priv; in mii_get_mdio() local
424 FPGA_GET_REG(fpga_mii->fpga, gpio.read, &gpio); in mii_get_mdio()
433 struct fpga_mii *fpga_mii = bus->priv; in mii_set_mdc() local
436 FPGA_SET_REG(fpga_mii->fpga, gpio.set, GPIO_MDC); in mii_set_mdc()
438 FPGA_SET_REG(fpga_mii->fpga, gpio.clear, GPIO_MDC); in mii_set_mdc()
460 .priv = &fpga_mii[0],
471 .priv = &fpga_mii[1],
482 .priv = &fpga_mii[2],
493 .priv = &fpga_mii[3],