Lines Matching refs:ret

402 	int			ret;  in axgbe_if_attach_pre()  local
434 ret = ENXIO; in axgbe_if_attach_pre()
491 ret = EINVAL; in axgbe_if_attach_pre()
554 ret = ENOMEM; in axgbe_if_attach_pre()
565 ret = ENOMEM; in axgbe_if_attach_pre()
568 ret = taskqueue_start_threads(&pdata->dev_workqueue, 1, PI_NET, in axgbe_if_attach_pre()
570 if (ret) { in axgbe_if_attach_pre()
572 ret = ENOMEM; in axgbe_if_attach_pre()
593 return (ret); in axgbe_if_attach_pre()
1419 int ret; in axgbe_if_attach_post() local
1433 ret = hw_if->exit(&sc->pdata); in axgbe_if_attach_post()
1434 if (ret) in axgbe_if_attach_post()
1435 axgbe_error("%s: exit error %d\n", __func__, ret); in axgbe_if_attach_post()
1501 ret = phy_if->phy_reset(pdata); in axgbe_if_attach_post()
1502 if (ret) in axgbe_if_attach_post()
1503 return (ret); in axgbe_if_attach_post()
1506 ret = xgbe_calc_rx_buf_size(pdata->netdev, if_getmtu(pdata->netdev)); in axgbe_if_attach_post()
1507 pdata->rx_buf_size = ret; in axgbe_if_attach_post()
1508 DBGPR("%s: rx_buf_size %d\n", __func__, ret); in axgbe_if_attach_post()
1610 int ret = 0; in axgbe_pci_init() local
1619 ret = phy_if->phy_start(pdata); in axgbe_pci_init()
1620 if (ret) { in axgbe_pci_init()
1621 axgbe_error("%s: phy start %d\n", __func__, ret); in axgbe_pci_init()
1622 ret = hw_if->exit(pdata); in axgbe_pci_init()
1623 if (ret) in axgbe_pci_init()
1624 axgbe_error("%s: exit error %d\n", __func__, ret); in axgbe_pci_init()
1658 int ret; in axgbe_pci_stop() local
1671 ret = hw_if->exit(pdata); in axgbe_pci_stop()
1672 if (ret) in axgbe_pci_stop()
1673 axgbe_error("%s: exit error %d\n", __func__, ret); in axgbe_pci_stop()
2159 int ret = FILTER_HANDLED; in axgbe_dev_isr() local
2212 ret = FILTER_SCHEDULE_THREAD; in axgbe_dev_isr()
2236 return (ret); in axgbe_dev_isr()
2266 int ret; in axgbe_if_tx_queue_intr_enable() local
2269 ret = xgbe_enable_rx_tx_int(pdata, pdata->channel[qid]); in axgbe_if_tx_queue_intr_enable()
2270 if (ret) { in axgbe_if_tx_queue_intr_enable()
2272 return (ret); in axgbe_if_tx_queue_intr_enable()
2285 int ret; in axgbe_if_rx_queue_intr_enable() local
2288 ret = xgbe_enable_rx_tx_int(pdata, pdata->channel[qid]); in axgbe_if_rx_queue_intr_enable()
2289 if (ret) { in axgbe_if_rx_queue_intr_enable()
2291 return (ret); in axgbe_if_rx_queue_intr_enable()
2448 int ret; in axgbe_if_mtu_set() local
2453 ret = xgbe_calc_rx_buf_size(pdata->netdev, mtu); in axgbe_if_mtu_set()
2454 pdata->rx_buf_size = ret; in axgbe_if_mtu_set()
2455 axgbe_printf(1, "%s: rx_buf_size %d\n", __func__, ret); in axgbe_if_mtu_set()