Lines Matching refs:tun
505 tun_ctx = dev->sriov.demux[port-1].tun[slave];
1938 if (dev->sriov.demux[port - 1].tun[slave]) {
1939 kfree(dev->sriov.demux[port - 1].tun[slave]);
1940 dev->sriov.demux[port - 1].tun[slave] = NULL;
2092 dev->sriov.demux[port - 1].tun[slave], 1);
2098 dev->sriov.demux[port - 1].tun[slave]);
2126 ctx->tun = kcalloc(dev->dev->caps.sqp_demux,
2128 if (!ctx->tun)
2145 ret = alloc_pv_object(dev, i, port, &ctx->tun[i]);
2185 kfree(ctx->tun);
2186 ctx->tun = NULL;
2218 if (!ctx->tun[i])
2220 if (ctx->tun[i]->state > DEMUX_PV_STATE_DOWN)
2221 ctx->tun[i]->state = DEMUX_PV_STATE_DOWNING;
2225 destroy_pv_resources(dev, i, ctx->port, ctx->tun[i], 0);
2228 kfree(ctx->tun);