Lines Matching refs:plat

191 	struct eth_plat_info *plat;  member
686 qmgr_disable_irq(port->plat->rxq); in eth_rx_irq()
694 unsigned int rxq = port->plat->rxq, rxfreeq = RXFREE_QUEUE(port->id); in eth_poll()
832 start = qmgr_stat_below_low_watermark(port->plat->txreadyq); in eth_txdone_irq()
833 queue_put_desc(port->plat->txreadyq, phys, desc); in eth_txdone_irq()
847 unsigned int txreadyq = port->plat->txreadyq; in eth_xmit()
1059 err = qmgr_request_queue(port->plat->rxq, RX_DESCS, 0, 0, in request_queues()
1069 err = qmgr_request_queue(port->plat->txreadyq, TX_DESCS, 0, 0, in request_queues()
1084 qmgr_release_queue(port->plat->txreadyq); in request_queues()
1088 qmgr_release_queue(port->plat->rxq); in request_queues()
1099 qmgr_release_queue(port->plat->rxq); in release_queues()
1101 qmgr_release_queue(port->plat->txreadyq); in release_queues()
1210 msg.byte5 = port->plat->rxq | 0x80; in eth_open()
1211 msg.byte7 = port->plat->rxq << 4; in eth_open()
1261 queue_put_desc(port->plat->txreadyq, in eth_open()
1277 qmgr_set_irq(port->plat->rxq, QUEUE_IRQ_SRC_NOT_EMPTY, in eth_open()
1298 qmgr_disable_irq(port->plat->rxq); in eth_close()
1314 while (queue_get_desc(port->plat->rxq, port, 0) >= 0) in eth_close()
1322 int n = queue_get_desc(port->plat->txreadyq, port, 1); in eth_close()
1347 while (queue_get_desc(port->plat->txreadyq, port, 1) >= 0) in eth_close()
1390 struct eth_plat_info *plat; in ixp4xx_of_get_platdata() local
1394 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in ixp4xx_of_get_platdata()
1395 if (!plat) in ixp4xx_of_get_platdata()
1405 plat->npe = (npe_spec.args[0] << 4); in ixp4xx_of_get_platdata()
1410 plat->has_mdio = true; in ixp4xx_of_get_platdata()
1422 plat->rxq = queue_spec.args[0]; in ixp4xx_of_get_platdata()
1431 plat->txreadyq = queue_spec.args[0]; in ixp4xx_of_get_platdata()
1436 memcpy(plat->hwaddr, mac, ETH_ALEN); in ixp4xx_of_get_platdata()
1439 return plat; in ixp4xx_of_get_platdata()
1447 struct eth_plat_info *plat; in ixp4xx_eth_probe() local
1452 plat = ixp4xx_of_get_platdata(dev); in ixp4xx_eth_probe()
1453 if (!plat) in ixp4xx_eth_probe()
1462 port->id = plat->npe; in ixp4xx_eth_probe()
1471 if (plat->has_mdio) { in ixp4xx_eth_probe()
1496 port->plat = plat; in ixp4xx_eth_probe()
1498 if (is_valid_ether_addr(plat->hwaddr)) in ixp4xx_eth_probe()
1499 eth_hw_addr_set(ndev, plat->hwaddr); in ixp4xx_eth_probe()
1523 netdev_info(ndev, "%s: MII PHY %i on %s\n", ndev->name, plat->phy, in ixp4xx_eth_probe()