Lines Matching refs:tun
536 tun_ctx = dev->sriov.demux[port-1].tun[slave];
1974 if (dev->sriov.demux[port - 1].tun[slave]) {
1975 kfree(dev->sriov.demux[port - 1].tun[slave]);
1976 dev->sriov.demux[port - 1].tun[slave] = NULL;
2131 dev->sriov.demux[port - 1].tun[slave], 1);
2137 dev->sriov.demux[port - 1].tun[slave]);
2165 ctx->tun = kcalloc(dev->dev->caps.sqp_demux,
2167 if (!ctx->tun)
2184 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]);
2236 kfree(ctx->tun);
2237 ctx->tun = NULL;
2269 if (!ctx->tun[i])
2271 if (ctx->tun[i]->state > DEMUX_PV_STATE_DOWN)
2272 ctx->tun[i]->state = DEMUX_PV_STATE_DOWNING;
2277 destroy_pv_resources(dev, i, ctx->port, ctx->tun[i], 0);
2280 kfree(ctx->tun);