Lines Matching refs:nqs
350 static void free_txqs(struct funeth_txq **txqs, unsigned int nqs, in free_txqs() argument
355 for (i = start; i < nqs && txqs[i]; i++) in free_txqs()
360 unsigned int nqs, unsigned int depth, unsigned int start, in alloc_txqs() argument
367 for (i = start; i < nqs; i++) { in alloc_txqs()
371 free_txqs(txqs, nqs, start, FUN_QSTATE_DESTROYED); in alloc_txqs()
378 static void free_rxqs(struct funeth_rxq **rxqs, unsigned int nqs, in free_rxqs() argument
383 for (i = start; i < nqs && rxqs[i]; i++) in free_rxqs()
388 unsigned int nqs, unsigned int ncqe, unsigned int nrqe, in alloc_rxqs() argument
395 for (i = start; i < nqs; i++) { in alloc_rxqs()
400 free_rxqs(rxqs, nqs, start, FUN_QSTATE_DESTROYED); in alloc_rxqs()
407 static void free_xdpqs(struct funeth_txq **xdpqs, unsigned int nqs, in free_xdpqs() argument
412 for (i = start; i < nqs && xdpqs[i]; i++) in free_xdpqs()
419 static struct funeth_txq **alloc_xdpqs(struct net_device *dev, unsigned int nqs, in alloc_xdpqs() argument
427 xdpqs = kcalloc(nqs, sizeof(*xdpqs), GFP_KERNEL); in alloc_xdpqs()
431 for (i = start; i < nqs; i++) { in alloc_xdpqs()
434 free_xdpqs(xdpqs, nqs, start, FUN_QSTATE_DESTROYED); in alloc_xdpqs()
1080 unsigned int i, nqs = num_online_cpus(); in fun_enter_xdp() local
1085 xdpqs = alloc_xdpqs(dev, nqs, fp->sq_depth, 0, FUN_QSTATE_INIT_FULL); in fun_enter_xdp()
1096 fp->num_xdpqs = nqs; in fun_enter_xdp()
1103 free_xdpqs(xdpqs, nqs, 0, FUN_QSTATE_DESTROYED); in fun_enter_xdp()