Lines Matching full:npe

10  * NPE			0 (NPE-A)	1 (NPE-B)	2 (NPE-C)
17 * bits 0 -> 1 - NPE ID (RX and TX-done)
39 #include <linux/soc/ixp4xx/npe.h>
119 #define CORE_MDC_EN 0x10 /* MDIO using NPE-B ETH-0 only */
128 /* NPE message codes */
169 u8 npe; /* NPE instance used by this interface */ member
196 struct npe *npe; member
210 /* NPE message structure */
911 /* NPE firmware pads short frames with zeros internally */ in eth_xmit()
1194 struct npe *npe = port->npe; in ixp4xx_do_change_mtu() local
1213 if (npe_send_recv_message(npe, &msg, "ETH_SET_MAX_FRAME_LENGTH")) in ixp4xx_do_change_mtu()
1215 netdev_dbg(dev, "set MTU on NPE %s to %d bytes\n", in ixp4xx_do_change_mtu()
1216 npe_name(npe), new_mtu); in ixp4xx_do_change_mtu()
1242 struct npe *npe = port->npe; in eth_open() local
1246 if (!npe_running(npe)) { in eth_open()
1247 err = npe_load_firmware(npe, npe_name(npe), &dev->dev); in eth_open()
1251 if (npe_recv_message(npe, &msg, "ETH_GET_STATUS")) { in eth_open()
1252 netdev_err(dev, "%s not responding\n", npe_name(npe)); in eth_open()
1268 if (npe_send_recv_message(port->npe, &msg, "ETH_SET_RXQ")) in eth_open()
1280 if (npe_send_recv_message(port->npe, &msg, "ETH_SET_MAC")) in eth_open()
1286 if (npe_send_recv_message(port->npe, &msg, "ETH_SET_FIREWALL_MODE")) in eth_open()
1365 if (npe_send_recv_message(port->npe, &msg, "ETH_ENABLE_LOOPBACK")) in eth_close()
1391 " left in NPE\n", buffs); in eth_close()
1411 "left in NPE\n", buffs); in eth_close()
1418 if (npe_send_recv_message(port->npe, &msg, "ETH_DISABLE_LOOPBACK")) in eth_close()
1455 ret = of_parse_phandle_with_fixed_args(np, "intel,npe-handle", 1, 0, in ixp4xx_of_get_platdata()
1458 dev_err(dev, "no NPE engine specified\n"); in ixp4xx_of_get_platdata()
1461 /* NPE ID 0x00, 0x10, 0x20... */ in ixp4xx_of_get_platdata()
1462 plat->npe = (npe_spec.args[0] << 4); in ixp4xx_of_get_platdata()
1519 port->id = plat->npe; in ixp4xx_eth_probe()
1553 if (!(port->npe = npe_request(NPE_ID(port->id)))) in ixp4xx_eth_probe()
1584 npe_name(port->npe)); in ixp4xx_eth_probe()
1592 npe_release(port->npe); in ixp4xx_eth_probe()
1606 npe_release(port->npe); in ixp4xx_eth_remove()