Home
last modified time | relevance | path

Searched refs:total_vqs (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/crypto/virtio/
Dvirtio_crypto_core.c102 int i, total_vqs; in virtcrypto_find_vqs() local
110 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs()
113 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtcrypto_find_vqs()
116 vqs_info = kcalloc(total_vqs, sizeof(*vqs_info), GFP_KERNEL); in virtcrypto_find_vqs()
121 vqs_info[total_vqs - 1].callback = virtcrypto_ctrlq_callback; in virtcrypto_find_vqs()
122 vqs_info[total_vqs - 1].name = "controlq"; in virtcrypto_find_vqs()
132 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, vqs_info, NULL); in virtcrypto_find_vqs()
136 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
/linux-6.12.1/drivers/net/
Dvirtio_net.c6047 int total_vqs; in virtnet_find_vqs() local
6055 total_vqs = vi->max_queue_pairs * 2 + in virtnet_find_vqs()
6059 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtnet_find_vqs()
6062 vqs_info = kcalloc(total_vqs, sizeof(*vqs_info), GFP_KERNEL); in virtnet_find_vqs()
6066 ctx = kcalloc(total_vqs, sizeof(*ctx), GFP_KERNEL); in virtnet_find_vqs()
6075 vqs_info[total_vqs - 1].name = "control"; in virtnet_find_vqs()
6090 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, vqs_info, NULL); in virtnet_find_vqs()
6095 vi->cvq = vqs[total_vqs - 1]; in virtnet_find_vqs()