Searched refs:total_vqs (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.15/drivers/crypto/virtio/ |
| D | virtio_crypto_core.c | 53 int i, total_vqs; in virtcrypto_find_vqs() local 62 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs() 65 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtcrypto_find_vqs() 68 callbacks = kcalloc(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtcrypto_find_vqs() 71 names = kcalloc(total_vqs, sizeof(*names), GFP_KERNEL); in virtcrypto_find_vqs() 76 callbacks[total_vqs - 1] = NULL; in virtcrypto_find_vqs() 77 names[total_vqs - 1] = "controlq"; in virtcrypto_find_vqs() 87 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs() 91 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
|
| /Linux-v5.15/drivers/net/ |
| D | virtio_net.c | 2835 int i, total_vqs; in virtnet_find_vqs() local 2843 total_vqs = vi->max_queue_pairs * 2 + in virtnet_find_vqs() 2847 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtnet_find_vqs() 2850 callbacks = kmalloc_array(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtnet_find_vqs() 2853 names = kmalloc_array(total_vqs, sizeof(*names), GFP_KERNEL); in virtnet_find_vqs() 2857 ctx = kcalloc(total_vqs, sizeof(*ctx), GFP_KERNEL); in virtnet_find_vqs() 2866 callbacks[total_vqs - 1] = NULL; in virtnet_find_vqs() 2867 names[total_vqs - 1] = "control"; in virtnet_find_vqs() 2882 ret = virtio_find_vqs_ctx(vi->vdev, total_vqs, vqs, callbacks, in virtnet_find_vqs() 2888 vi->cvq = vqs[total_vqs - 1]; in virtnet_find_vqs()
|