Lines Matching refs:tun
535 tun_ctx = dev->sriov.demux[port-1].tun[slave];
1971 if (dev->sriov.demux[port - 1].tun[slave]) {
1972 kfree(dev->sriov.demux[port - 1].tun[slave]);
1973 dev->sriov.demux[port - 1].tun[slave] = NULL;
2128 dev->sriov.demux[port - 1].tun[slave], 1);
2134 dev->sriov.demux[port - 1].tun[slave]);
2162 ctx->tun = kcalloc(dev->dev->caps.sqp_demux,
2164 if (!ctx->tun)
2181 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]);
2233 kfree(ctx->tun);
2234 ctx->tun = NULL;
2266 if (!ctx->tun[i])
2268 if (ctx->tun[i]->state > DEMUX_PV_STATE_DOWN)
2269 ctx->tun[i]->state = DEMUX_PV_STATE_DOWNING;
2274 destroy_pv_resources(dev, i, ctx->port, ctx->tun[i], 0);
2277 kfree(ctx->tun);