Searched refs:num_vqs (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/drivers/vdpa/pds/ |
D | vdpa_dev.c | 396 for (qid = 0; qid < pdsv->num_vqs; ++qid) { in pds_vdpa_request_irqs() 444 for (qid = 0; qid < pdsv->num_vqs; qid++) in pds_vdpa_release_irqs() 475 for (i = 0; i < pdsv->num_vqs; i++) { in pds_vdpa_set_status() 484 for (i = 0; i < pdsv->num_vqs; i++) { in pds_vdpa_set_status() 522 for (i = 0; i < pdsv->num_vqs && !err; i++) { in pds_vdpa_reset() 534 for (i = 0; i < pdsv->num_vqs && !err; i++) in pds_vdpa_reset() 689 pdsv->num_vqs = 2 * vq_pairs; in pds_vdpa_dev_add() 691 pdsv->num_vqs++; in pds_vdpa_dev_add() 693 if (pdsv->num_vqs > fw_max_vqs) { in pds_vdpa_dev_add() 695 __func__, pdsv->num_vqs, fw_max_vqs); in pds_vdpa_dev_add() [all …]
|
D | vdpa_dev.h | 41 u8 num_vqs; /* num vqs in use */ member
|
D | debugfs.c | 230 seq_printf(seq, "num_vqs: %d\n", pdsv->num_vqs); in config_show() 263 for (i = 0; i < vdpa_aux->pdsv->num_vqs; i++) { in pds_vdpa_debugfs_add_vdpadev()
|
/linux-6.12.1/drivers/block/ |
D | virtio_blk.c | 81 int num_vqs; member 969 unsigned short num_vqs; in init_vq() local 976 &num_vqs); in init_vq() 978 num_vqs = 1; in init_vq() 980 if (!err && !num_vqs) { in init_vq() 985 num_vqs = min_t(unsigned int, in init_vq() 987 num_vqs); in init_vq() 989 num_poll_vqs = min_t(unsigned int, poll_queues, num_vqs - 1); in init_vq() 991 vblk->io_queues[HCTX_TYPE_DEFAULT] = num_vqs - num_poll_vqs; in init_vq() 1000 vblk->vqs = kmalloc_array(num_vqs, sizeof(*vblk->vqs), GFP_KERNEL); in init_vq() [all …]
|
/linux-6.12.1/drivers/scsi/ |
D | virtio_scsi.c | 207 int i, num_vqs; in virtscsi_poll_requests() local 209 num_vqs = vscsi->num_queues; in virtscsi_poll_requests() 210 for (i = 0; i < num_vqs; i++) in virtscsi_poll_requests() 843 u32 num_vqs, num_poll_vqs, num_req_vqs; in virtscsi_init() local 849 num_vqs = num_req_vqs + VIRTIO_SCSI_VQ_BASE; in virtscsi_init() 850 vqs = kmalloc_array(num_vqs, sizeof(struct virtqueue *), GFP_KERNEL); in virtscsi_init() 851 vqs_info = kcalloc(num_vqs, sizeof(*vqs_info), GFP_KERNEL); in virtscsi_init() 873 for (i = VIRTIO_SCSI_VQ_BASE; i < num_vqs - num_poll_vqs; i++) { in virtscsi_init() 878 for (; i < num_vqs; i++) in virtscsi_init() 882 err = virtio_find_vqs(vdev, num_vqs, vqs, vqs_info, &desc); in virtscsi_init() [all …]
|
/linux-6.12.1/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 1223 int num_vqs, in query_virtqueues() argument 1231 WARN(start_vq + num_vqs > mvdev->max_vqs, "query vq range invalid [%d, %d), max_vqs: %u\n", in query_virtqueues() 1232 start_vq, start_vq + num_vqs, mvdev->max_vqs); in query_virtqueues() 1234 cmds = kvcalloc(num_vqs, sizeof(*cmds), GFP_KERNEL); in query_virtqueues() 1235 cmd_mem = kvcalloc(num_vqs, sizeof(*cmd_mem), GFP_KERNEL); in query_virtqueues() 1241 for (int i = 0; i < num_vqs; i++) { in query_virtqueues() 1249 err = mlx5_vdpa_exec_async_cmds(&ndev->mvdev, cmds, num_vqs); in query_virtqueues() 1252 start_vq, start_vq + num_vqs, err); in query_virtqueues() 1256 for (int i = 0; i < num_vqs; i++) { in query_virtqueues() 1557 static int modify_virtqueues(struct mlx5_vdpa_net *ndev, int start_vq, int num_vqs, int state) in modify_virtqueues() argument [all …]
|