Lines Matching refs:rx_res

1909 	struct enetc_bdr_resource *rx_res;  in enetc_alloc_rx_resources()  local
1912 rx_res = kcalloc(priv->num_rx_rings, sizeof(*rx_res), GFP_KERNEL); in enetc_alloc_rx_resources()
1913 if (!rx_res) in enetc_alloc_rx_resources()
1919 err = enetc_alloc_rx_resource(&rx_res[i], rx_ring->dev, in enetc_alloc_rx_resources()
1925 return rx_res; in enetc_alloc_rx_resources()
1929 enetc_free_rx_resource(&rx_res[i]); in enetc_alloc_rx_resources()
1931 kfree(rx_res); in enetc_alloc_rx_resources()
1936 static void enetc_free_rx_resources(const struct enetc_bdr_resource *rx_res, in enetc_free_rx_resources() argument
1942 enetc_free_rx_resource(&rx_res[i]); in enetc_free_rx_resources()
1944 kfree(rx_res); in enetc_free_rx_resources()
1986 if (priv->rx_res) in enetc_assign_rx_resources()
1987 enetc_free_rx_resources(priv->rx_res, priv->num_rx_rings); in enetc_assign_rx_resources()
1994 priv->rx_res = res; in enetc_assign_rx_resources()
2498 struct enetc_bdr_resource *tx_res, *rx_res; in enetc_open() local
2518 rx_res = enetc_alloc_rx_resources(priv, extended); in enetc_open()
2519 if (IS_ERR(rx_res)) { in enetc_open()
2520 err = PTR_ERR(rx_res); in enetc_open()
2526 enetc_assign_rx_resources(priv, rx_res); in enetc_open()
2601 struct enetc_bdr_resource *tx_res, *rx_res; in enetc_reconfigure() local
2625 rx_res = enetc_alloc_rx_resources(priv, extended); in enetc_reconfigure()
2626 if (IS_ERR(rx_res)) { in enetc_reconfigure()
2627 err = PTR_ERR(rx_res); in enetc_reconfigure()
2642 enetc_assign_rx_resources(priv, rx_res); in enetc_reconfigure()
2651 enetc_free_rx_resources(rx_res, priv->num_rx_rings); in enetc_reconfigure()