Searched refs:total_vqs (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/crypto/virtio/ |
D | virtio_crypto_core.c | 65 int i, total_vqs; in virtcrypto_find_vqs() local 74 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs() 77 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtcrypto_find_vqs() 80 callbacks = kcalloc(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtcrypto_find_vqs() 83 names = kcalloc(total_vqs, sizeof(*names), GFP_KERNEL); in virtcrypto_find_vqs() 88 callbacks[total_vqs - 1] = NULL; in virtcrypto_find_vqs() 89 names[total_vqs - 1] = "controlq"; in virtcrypto_find_vqs() 99 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs() 103 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
|
/Linux-v4.19/drivers/net/ |
D | virtio_net.c | 2611 int i, total_vqs; in virtnet_find_vqs() local 2619 total_vqs = vi->max_queue_pairs * 2 + in virtnet_find_vqs() 2623 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtnet_find_vqs() 2626 callbacks = kmalloc_array(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtnet_find_vqs() 2629 names = kmalloc_array(total_vqs, sizeof(*names), GFP_KERNEL); in virtnet_find_vqs() 2633 ctx = kcalloc(total_vqs, sizeof(*ctx), GFP_KERNEL); in virtnet_find_vqs() 2642 callbacks[total_vqs - 1] = NULL; in virtnet_find_vqs() 2643 names[total_vqs - 1] = "control"; in virtnet_find_vqs() 2658 ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks, in virtnet_find_vqs() 2664 vi->cvq = vqs[total_vqs - 1]; in virtnet_find_vqs()
|