Lines Matching refs:error

73 	int error;
78 error = ravb_wait(ndev, CSR, CSR_OPS, CSR_OPS_CONFIG);
79 if (error)
82 return error;
351 goto error;
356 goto error;
366 goto error;
375 goto error;
386 goto error;
390 error:
427 int error;
430 error = ravb_config(ndev);
431 if (error)
432 return error;
434 error = ravb_ring_init(ndev, RAVB_BE);
435 if (error)
436 return error;
437 error = ravb_ring_init(ndev, RAVB_NC);
438 if (error) {
440 return error;
468 /* Receive FIFO full error, descriptor empty */
663 int error;
666 error = ravb_wait(ndev, TCCR,
668 if (error)
669 return error;
671 error = ravb_wait(ndev, CSR, CSR_TPO0 | CSR_TPO1 | CSR_TPO2 | CSR_TPO3,
673 if (error)
674 return error;
680 error = ravb_wait(ndev, CSR, CSR_RPO, 0);
681 if (error)
682 return error;
942 /* Receive error message handling */
1075 int error;
1077 error = ravb_phy_init(ndev);
1078 if (error)
1079 return error;
1199 int error;
1215 error = ravb_stop_dma(ndev);
1216 if (error) {
1219 return error;
1233 error = ravb_dmac_init(ndev);
1234 if (error) {
1236 "%s: ravb_dmac_init() failed, error %d\n",
1237 __func__, error);
1238 return error;
1319 int error;
1324 error = request_irq(irq, handler, 0, name, ndev);
1325 if (error)
1328 return error;
1337 int error;
1343 error = request_irq(ndev->irq, ravb_interrupt, IRQF_SHARED,
1345 if (error) {
1350 error = ravb_hook_irq(ndev->irq, ravb_multi_interrupt, ndev,
1352 if (error)
1354 error = ravb_hook_irq(priv->emac_irq, ravb_emac_interrupt, ndev,
1356 if (error)
1358 error = ravb_hook_irq(priv->rx_irqs[RAVB_BE], ravb_be_interrupt,
1360 if (error)
1362 error = ravb_hook_irq(priv->tx_irqs[RAVB_BE], ravb_be_interrupt,
1364 if (error)
1366 error = ravb_hook_irq(priv->rx_irqs[RAVB_NC], ravb_nc_interrupt,
1368 if (error)
1370 error = ravb_hook_irq(priv->tx_irqs[RAVB_NC], ravb_nc_interrupt,
1372 if (error)
1377 error = ravb_dmac_init(ndev);
1378 if (error)
1387 error = ravb_phy_start(ndev);
1388 if (error)
1416 return error;
1439 int error;
1471 error = ravb_dmac_init(ndev);
1472 if (error) {
1477 netdev_err(ndev, "%s: ravb_dmac_init() failed, error %d\n",
1478 __func__, error);
1896 int error;
1913 error = of_mdiobus_register(priv->mii_bus, dev->of_node);
1914 if (error)
1921 return error;
2049 int error, irq, q;
2075 error = pm_runtime_resume_and_get(&pdev->dev);
2076 if (error < 0)
2089 error = irq;
2105 error = PTR_ERR(priv->addr);
2112 error = of_get_phy_mode(np, &priv->phy_interface);
2113 if (error && error != -ENODEV)
2123 error = irq;
2130 error = irq;
2138 error = irq;
2149 error = PTR_ERR(priv->clk);
2167 error = ravb_set_gti(ndev);
2168 if (error)
2187 error = -ENOMEM;
2213 error = ravb_mdio_init(priv);
2214 if (error) {
2223 error = register_netdev(ndev);
2224 if (error)
2254 return error;