Searched refs:total_vqs (Results 1 – 2 of 2) sorted by relevance
/linux-5.19.10/drivers/crypto/virtio/ ! |
D | virtio_crypto_core.c | 103 int i, total_vqs; in virtcrypto_find_vqs() local 112 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs() 115 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtcrypto_find_vqs() 118 callbacks = kcalloc(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtcrypto_find_vqs() 121 names = kcalloc(total_vqs, sizeof(*names), GFP_KERNEL); in virtcrypto_find_vqs() 126 callbacks[total_vqs - 1] = virtcrypto_ctrlq_callback; in virtcrypto_find_vqs() 127 names[total_vqs - 1] = "controlq"; in virtcrypto_find_vqs() 137 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs() 141 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
|
/linux-5.19.10/drivers/net/ ! |
D | virtio_net.c | 3236 int i, total_vqs; in virtnet_find_vqs() local 3244 total_vqs = vi->max_queue_pairs * 2 + in virtnet_find_vqs() 3248 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtnet_find_vqs() 3251 callbacks = kmalloc_array(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtnet_find_vqs() 3254 names = kmalloc_array(total_vqs, sizeof(*names), GFP_KERNEL); in virtnet_find_vqs() 3258 ctx = kcalloc(total_vqs, sizeof(*ctx), GFP_KERNEL); in virtnet_find_vqs() 3267 callbacks[total_vqs - 1] = NULL; in virtnet_find_vqs() 3268 names[total_vqs - 1] = "control"; in virtnet_find_vqs() 3283 ret = virtio_find_vqs_ctx(vi->vdev, total_vqs, vqs, callbacks, in virtnet_find_vqs() 3289 vi->cvq = vqs[total_vqs - 1]; in virtnet_find_vqs()
|