Home
last modified time | relevance | path

Searched refs:total_vqs (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/virtio/
H A Dvirtio_crypto_core.c104 int i, total_vqs; in virtcrypto_find_vqs() local
113 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs()
116 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtcrypto_find_vqs()
119 callbacks = kcalloc(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtcrypto_find_vqs()
122 names = kcalloc(total_vqs, sizeof(*names), GFP_KERNEL); in virtcrypto_find_vqs()
127 callbacks[total_vqs - 1] = virtcrypto_ctrlq_callback; in virtcrypto_find_vqs()
128 names[total_vqs - 1] = "controlq"; in virtcrypto_find_vqs()
138 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
142 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
/kernel/linux/linux-6.6/drivers/crypto/virtio/
H A Dvirtio_crypto_core.c104 int i, total_vqs; in virtcrypto_find_vqs() local
113 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs()
116 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtcrypto_find_vqs()
119 callbacks = kcalloc(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtcrypto_find_vqs()
122 names = kcalloc(total_vqs, sizeof(*names), GFP_KERNEL); in virtcrypto_find_vqs()
127 callbacks[total_vqs - 1] = virtcrypto_ctrlq_callback; in virtcrypto_find_vqs()
128 names[total_vqs - 1] = "controlq"; in virtcrypto_find_vqs()
138 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
142 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
/kernel/linux/linux-5.10/drivers/net/
H A Dvirtio_net.c2824 int total_vqs; in virtnet_find_vqs() local
2832 total_vqs = vi->max_queue_pairs * 2 + in virtnet_find_vqs()
2836 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtnet_find_vqs()
2839 callbacks = kmalloc_array(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtnet_find_vqs()
2842 names = kmalloc_array(total_vqs, sizeof(*names), GFP_KERNEL); in virtnet_find_vqs()
2846 ctx = kcalloc(total_vqs, sizeof(*ctx), GFP_KERNEL); in virtnet_find_vqs()
2855 callbacks[total_vqs - 1] = NULL; in virtnet_find_vqs()
2856 names[total_vqs - 1] = "control"; in virtnet_find_vqs()
2871 ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks, in virtnet_find_vqs()
2877 vi->cvq = vqs[total_vqs in virtnet_find_vqs()
[all...]
/kernel/linux/linux-6.6/drivers/net/
H A Dvirtio_net.c4101 int total_vqs; in virtnet_find_vqs() local
4109 total_vqs = vi->max_queue_pairs * 2 + in virtnet_find_vqs()
4113 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtnet_find_vqs()
4116 callbacks = kmalloc_array(total_vqs, sizeof(*callbacks), GFP_KERNEL); in virtnet_find_vqs()
4119 names = kmalloc_array(total_vqs, sizeof(*names), GFP_KERNEL); in virtnet_find_vqs()
4123 ctx = kcalloc(total_vqs, sizeof(*ctx), GFP_KERNEL); in virtnet_find_vqs()
4132 callbacks[total_vqs - 1] = NULL; in virtnet_find_vqs()
4133 names[total_vqs - 1] = "control"; in virtnet_find_vqs()
4148 ret = virtio_find_vqs_ctx(vi->vdev, total_vqs, vqs, callbacks, in virtnet_find_vqs()
4154 vi->cvq = vqs[total_vqs in virtnet_find_vqs()
[all...]

Completed in 11 milliseconds