Lines Matching refs:tun
536 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave()
1974 if (dev->sriov.demux[port - 1].tun[slave]) { in free_pv_object()
1975 kfree(dev->sriov.demux[port - 1].tun[slave]); in free_pv_object()
1976 dev->sriov.demux[port - 1].tun[slave] = NULL; in free_pv_object()
2131 dev->sriov.demux[port - 1].tun[slave], 1); in mlx4_ib_tunnels_update()
2137 dev->sriov.demux[port - 1].tun[slave]); in mlx4_ib_tunnels_update()
2164 ctx->tun = kcalloc(dev->dev->caps.sqp_demux, in mlx4_ib_alloc_demux_ctx()
2166 if (!ctx->tun) in mlx4_ib_alloc_demux_ctx()
2183 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]); in mlx4_ib_alloc_demux_ctx()
2232 kfree(ctx->tun); in mlx4_ib_alloc_demux_ctx()
2233 ctx->tun = NULL; in mlx4_ib_alloc_demux_ctx()
2265 if (!ctx->tun[i]) in mlx4_ib_free_demux_ctx()
2267 if (ctx->tun[i]->state > DEMUX_PV_STATE_DOWN) in mlx4_ib_free_demux_ctx()
2268 ctx->tun[i]->state = DEMUX_PV_STATE_DOWNING; in mlx4_ib_free_demux_ctx()
2273 destroy_pv_resources(dev, i, ctx->port, ctx->tun[i], 0); in mlx4_ib_free_demux_ctx()
2276 kfree(ctx->tun); in mlx4_ib_free_demux_ctx()