Lines Matching refs:num_queues
38 if (cptvf->num_queues) { in init_worker_threads()
40 cptvf->num_queues); in init_worker_threads()
43 for (i = 0; i < cptvf->num_queues; i++) { in init_worker_threads()
63 if (cptvf->num_queues) { in cleanup_worker_threads()
65 cptvf->num_queues); in cleanup_worker_threads()
68 for (i = 0; i < cptvf->num_queues; i++) in cleanup_worker_threads()
90 pqinfo->num_queues = 0; in free_pending_queues()
94 u32 num_queues) in alloc_pending_queues() argument
100 pqinfo->num_queues = num_queues; in alloc_pending_queues()
126 u32 num_queues) in init_pending_queues() argument
131 if (!num_queues) in init_pending_queues()
134 ret = alloc_pending_queues(&cptvf->pqinfo, qlen, num_queues); in init_pending_queues()
137 num_queues); in init_pending_queues()
147 if (!cptvf->num_queues) in cleanup_pending_queues()
151 cptvf->num_queues); in cleanup_pending_queues()
164 for (i = 0; i < cptvf->num_queues; i++) { in free_command_queues()
206 for (i = 0; i < cptvf->num_queues; i++) { in alloc_command_queues()
271 cptvf->num_queues); in init_command_queues()
281 if (!cptvf->num_queues) in cleanup_command_queues()
285 cptvf->num_queues); in cleanup_command_queues()
296 static int cptvf_sw_init(struct otx_cptvf *cptvf, u32 qlen, u32 num_queues) in cptvf_sw_init() argument
304 num_queues = min_t(u32, num_queues, max_dev_queues); in cptvf_sw_init()
305 cptvf->num_queues = num_queues; in cptvf_sw_init()
310 num_queues); in cptvf_sw_init()
314 ret = init_pending_queues(cptvf, qlen, num_queues); in cptvf_sw_init()
317 num_queues); in cptvf_sw_init()
541 if (unlikely(qno >= cptvf->num_queues)) in get_cptvf_vq_wqe()