/external/u-boot/board/gdsys/mpc8308/ |
D | strider.c | 180 struct mii_dev *mdiodev = mdio_alloc(); in last_stage_init() local 181 if (!mdiodev) in last_stage_init() 183 strncpy(mdiodev->name, bb_miiphy_buses[0].name, MDIO_NAME_LEN); in last_stage_init() 184 mdiodev->read = bb_miiphy_read; in last_stage_init() 185 mdiodev->write = bb_miiphy_write; in last_stage_init() 187 retval = mdio_register(mdiodev); in last_stage_init() 262 struct mii_dev *mdiodev = mdio_alloc(); in last_stage_init() local 263 if (!mdiodev) in last_stage_init() 265 strncpy(mdiodev->name, bb_miiphy_buses[k].name, in last_stage_init() 267 mdiodev->read = bb_miiphy_read; in last_stage_init() [all …]
|
D | hrcon.c | 163 struct mii_dev *mdiodev = mdio_alloc(); in last_stage_init() local 164 if (!mdiodev) in last_stage_init() 166 strncpy(mdiodev->name, bb_miiphy_buses[0].name, MDIO_NAME_LEN); in last_stage_init() 167 mdiodev->read = bb_miiphy_read; in last_stage_init() 168 mdiodev->write = bb_miiphy_write; in last_stage_init() 170 retval = mdio_register(mdiodev); in last_stage_init() 209 struct mii_dev *mdiodev = mdio_alloc(); in last_stage_init() local 210 if (!mdiodev) in last_stage_init() 212 strncpy(mdiodev->name, bb_miiphy_buses[k].name, in last_stage_init() 214 mdiodev->read = bb_miiphy_read; in last_stage_init() [all …]
|
/external/u-boot/scripts/coccinelle/net/ |
D | mdio_register.cocci | 17 + struct mii_dev *mdiodev = mdio_alloc(); 18 + if (!mdiodev) return -ENOMEM; 19 + strncpy(mdiodev->name, devname, MDIO_NAME_LEN); 20 + mdiodev->read = readfunc; 21 + mdiodev->write = writefunc; 23 + retval = mdio_register(mdiodev);
|
/external/u-boot/drivers/net/ |
D | bcm-sf2-eth.c | 247 struct mii_dev *mdiodev = mdio_alloc(); in bcm_sf2_eth_register() local 249 if (!mdiodev) in bcm_sf2_eth_register() 251 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in bcm_sf2_eth_register() 252 mdiodev->read = eth->miiphy_read; in bcm_sf2_eth_register() 253 mdiodev->write = eth->miiphy_write; in bcm_sf2_eth_register() 255 retval = mdio_register(mdiodev); in bcm_sf2_eth_register()
|
D | sh_eth.c | 608 struct mii_dev *mdiodev; in sh_eth_initialize() local 645 mdiodev = mdio_alloc(); in sh_eth_initialize() 646 if (!mdiodev) in sh_eth_initialize() 648 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in sh_eth_initialize() 649 mdiodev->read = bb_miiphy_read; in sh_eth_initialize() 650 mdiodev->write = bb_miiphy_write; in sh_eth_initialize() 652 ret = mdio_register(mdiodev); in sh_eth_initialize() 814 struct mii_dev *mdiodev; in sh_ether_probe() local 834 mdiodev = mdio_alloc(); in sh_ether_probe() 835 if (!mdiodev) { in sh_ether_probe() [all …]
|
D | smc911x.c | 286 struct mii_dev *mdiodev = mdio_alloc(); in smc911x_initialize() local 287 if (!mdiodev) in smc911x_initialize() 289 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in smc911x_initialize() 290 mdiodev->read = smc911x_miiphy_read; in smc911x_initialize() 291 mdiodev->write = smc911x_miiphy_write; in smc911x_initialize() 293 retval = mdio_register(mdiodev); in smc911x_initialize()
|
D | ravb.c | 470 struct mii_dev *mdiodev; in ravb_probe() local 492 mdiodev = mdio_alloc(); in ravb_probe() 493 if (!mdiodev) { in ravb_probe() 498 mdiodev->read = bb_miiphy_read; in ravb_probe() 499 mdiodev->write = bb_miiphy_write; in ravb_probe() 501 snprintf(mdiodev->name, sizeof(mdiodev->name), dev->name); in ravb_probe() 503 ret = mdio_register(mdiodev); in ravb_probe() 527 mdio_free(mdiodev); in ravb_probe()
|
D | ftmac110.c | 474 struct mii_dev *mdiodev = mdio_alloc(); in ftmac110_initialize() local 475 if (!mdiodev) in ftmac110_initialize() 477 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in ftmac110_initialize() 478 mdiodev->read = ftmac110_mdio_read; in ftmac110_initialize() 479 mdiodev->write = ftmac110_mdio_write; in ftmac110_initialize() 481 retval = mdio_register(mdiodev); in ftmac110_initialize()
|
D | at91_emac.c | 505 struct mii_dev *mdiodev = mdio_alloc(); in at91emac_register() local 506 if (!mdiodev) in at91emac_register() 508 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in at91emac_register() 509 mdiodev->read = at91emac_mii_read; in at91emac_register() 510 mdiodev->write = at91emac_mii_write; in at91emac_register() 512 retval = mdio_register(mdiodev); in at91emac_register()
|
D | lpc32xx_eth.c | 630 struct mii_dev *mdiodev = mdio_alloc(); in lpc32xx_eth_initialize() local 631 if (!mdiodev) in lpc32xx_eth_initialize() 633 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in lpc32xx_eth_initialize() 634 mdiodev->read = mii_reg_read; in lpc32xx_eth_initialize() 635 mdiodev->write = mii_reg_write; in lpc32xx_eth_initialize() 637 retval = mdio_register(mdiodev); in lpc32xx_eth_initialize()
|
D | fsl_mcdmafec.c | 558 struct mii_dev *mdiodev = mdio_alloc(); in mcdmafec_initialize() local 559 if (!mdiodev) in mcdmafec_initialize() 561 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in mcdmafec_initialize() 562 mdiodev->read = mcffec_miiphy_read; in mcdmafec_initialize() 563 mdiodev->write = mcffec_miiphy_write; in mcdmafec_initialize() 565 retval = mdio_register(mdiodev); in mcdmafec_initialize()
|
D | ep93xx_eth.c | 424 struct mii_dev *mdiodev = mdio_alloc(); in ep93xx_miiphy_initialize() local 425 if (!mdiodev) in ep93xx_miiphy_initialize() 427 strncpy(mdiodev->name, "ep93xx_eth0", MDIO_NAME_LEN); in ep93xx_miiphy_initialize() 428 mdiodev->read = ep93xx_miiphy_read; in ep93xx_miiphy_initialize() 429 mdiodev->write = ep93xx_miiphy_write; in ep93xx_miiphy_initialize() 431 retval = mdio_register(mdiodev); in ep93xx_miiphy_initialize()
|
D | mvgbe.c | 769 struct mii_dev *mdiodev = mdio_alloc(); in mvgbe_initialize() local 770 if (!mdiodev) in mvgbe_initialize() 772 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in mvgbe_initialize() 773 mdiodev->read = smi_reg_read; in mvgbe_initialize() 774 mdiodev->write = smi_reg_write; in mvgbe_initialize() 776 retval = mdio_register(mdiodev); in mvgbe_initialize()
|
D | armada100_fec.c | 715 struct mii_dev *mdiodev = mdio_alloc(); in armada100_fec_register() local 716 if (!mdiodev) in armada100_fec_register() 718 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in armada100_fec_register() 719 mdiodev->read = smi_reg_read; in armada100_fec_register() 720 mdiodev->write = smi_reg_write; in armada100_fec_register() 722 retval = mdio_register(mdiodev); in armada100_fec_register()
|
D | mcffec.c | 597 struct mii_dev *mdiodev = mdio_alloc(); in mcffec_initialize() local 598 if (!mdiodev) in mcffec_initialize() 600 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in mcffec_initialize() 601 mdiodev->read = mcffec_miiphy_read; in mcffec_initialize() 602 mdiodev->write = mcffec_miiphy_write; in mcffec_initialize() 604 retval = mdio_register(mdiodev); in mcffec_initialize()
|
D | davinci_emac.c | 872 struct mii_dev *mdiodev = mdio_alloc(); in davinci_emac_initialize() local 873 if (!mdiodev) in davinci_emac_initialize() 875 strncpy(mdiodev->name, phy[i].name, MDIO_NAME_LEN); in davinci_emac_initialize() 876 mdiodev->read = davinci_mii_phy_read; in davinci_emac_initialize() 877 mdiodev->write = davinci_mii_phy_write; in davinci_emac_initialize() 879 retval = mdio_register(mdiodev); in davinci_emac_initialize()
|
D | mpc8xx_fec.c | 156 struct mii_dev *mdiodev = mdio_alloc(); in fec_initialize() local 157 if (!mdiodev) in fec_initialize() 159 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in fec_initialize() 160 mdiodev->read = fec8xx_miiphy_read; in fec_initialize() 161 mdiodev->write = fec8xx_miiphy_write; in fec_initialize() 163 retval = mdio_register(mdiodev); in fec_initialize()
|
D | eepro100.c | 449 struct mii_dev *mdiodev = mdio_alloc(); in eepro100_initialize() local 450 if (!mdiodev) in eepro100_initialize() 452 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in eepro100_initialize() 453 mdiodev->read = eepro100_miiphy_read; in eepro100_initialize() 454 mdiodev->write = eepro100_miiphy_write; in eepro100_initialize() 456 retval = mdio_register(mdiodev); in eepro100_initialize()
|
D | macb.c | 978 struct mii_dev *mdiodev = mdio_alloc(); in macb_eth_initialize() local 979 if (!mdiodev) in macb_eth_initialize() 981 strncpy(mdiodev->name, netdev->name, MDIO_NAME_LEN); in macb_eth_initialize() 982 mdiodev->read = macb_miiphy_read; in macb_eth_initialize() 983 mdiodev->write = macb_miiphy_write; in macb_eth_initialize() 985 retval = mdio_register(mdiodev); in macb_eth_initialize()
|
/external/u-boot/arch/mips/mach-au1x00/ |
D | au1x00_eth.c | 293 struct mii_dev *mdiodev = mdio_alloc(); in au1x00_enet_initialize() local 294 if (!mdiodev) in au1x00_enet_initialize() 296 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in au1x00_enet_initialize() 297 mdiodev->read = au1x00_miiphy_read; in au1x00_enet_initialize() 298 mdiodev->write = au1x00_miiphy_write; in au1x00_enet_initialize() 300 retval = mdio_register(mdiodev); in au1x00_enet_initialize()
|
/external/u-boot/board/gdsys/a38x/ |
D | ihs_phys.c | 106 struct mii_dev *mdiodev = mdio_alloc(); in register_miiphy_bus() local 109 if (!mdiodev) in register_miiphy_bus() 111 strncpy(mdiodev->name, in register_miiphy_bus() 114 mdiodev->read = bb_miiphy_read; in register_miiphy_bus() 115 mdiodev->write = bb_miiphy_write; in register_miiphy_bus() 117 retval = mdio_register(mdiodev); in register_miiphy_bus()
|
/external/u-boot/arch/powerpc/cpu/mpc85xx/ |
D | ether_fcc.c | 444 struct mii_dev *mdiodev = mdio_alloc(); in fec_initialize() local 445 if (!mdiodev) in fec_initialize() 447 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in fec_initialize() 448 mdiodev->read = bb_miiphy_read; in fec_initialize() 449 mdiodev->write = bb_miiphy_write; in fec_initialize() 451 retval = mdio_register(mdiodev); in fec_initialize()
|
/external/u-boot/drivers/qe/ |
D | uec.c | 1402 struct mii_dev *mdiodev = mdio_alloc(); in uec_initialize() local 1403 if (!mdiodev) in uec_initialize() 1405 strncpy(mdiodev->name, dev->name, MDIO_NAME_LEN); in uec_initialize() 1406 mdiodev->read = uec_miiphy_read; in uec_initialize() 1407 mdiodev->write = uec_miiphy_write; in uec_initialize() 1409 retval = mdio_register(mdiodev); in uec_initialize()
|