Searched refs:num_vqs (Results 1 – 2 of 2) sorted by relevance
/drivers/block/ |
D | virtio_blk.c | 51 int num_vqs; member 385 unsigned short num_vqs; in init_vq() local 390 &num_vqs); in init_vq() 392 num_vqs = 1; in init_vq() 394 vblk->vqs = kmalloc(sizeof(*vblk->vqs) * num_vqs, GFP_KERNEL); in init_vq() 400 names = kmalloc(sizeof(*names) * num_vqs, GFP_KERNEL); in init_vq() 404 callbacks = kmalloc(sizeof(*callbacks) * num_vqs, GFP_KERNEL); in init_vq() 408 vqs = kmalloc(sizeof(*vqs) * num_vqs, GFP_KERNEL); in init_vq() 412 for (i = 0; i < num_vqs; i++) { in init_vq() 419 err = vdev->config->find_vqs(vdev, num_vqs, vqs, callbacks, names); in init_vq() [all …]
|
/drivers/scsi/ |
D | virtio_scsi.c | 245 int i, num_vqs; in virtscsi_poll_requests() local 247 num_vqs = vscsi->num_queues; in virtscsi_poll_requests() 248 for (i = 0; i < num_vqs; i++) in virtscsi_poll_requests() 881 u32 num_vqs; in virtscsi_init() local 886 num_vqs = vscsi->num_queues + VIRTIO_SCSI_VQ_BASE; in virtscsi_init() 887 vqs = kmalloc(num_vqs * sizeof(struct virtqueue *), GFP_KERNEL); in virtscsi_init() 888 callbacks = kmalloc(num_vqs * sizeof(vq_callback_t *), GFP_KERNEL); in virtscsi_init() 889 names = kmalloc(num_vqs * sizeof(char *), GFP_KERNEL); in virtscsi_init() 900 for (i = VIRTIO_SCSI_VQ_BASE; i < num_vqs; i++) { in virtscsi_init() 906 err = vdev->config->find_vqs(vdev, num_vqs, vqs, callbacks, names); in virtscsi_init() [all …]
|