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
101 pqinfo->num_queues = num_queues; in alloc_pending_queues()
128 u32 num_queues) in init_pending_queues() argument
133 if (!num_queues) in init_pending_queues()
136 ret = alloc_pending_queues(&cptvf->pqinfo, qlen, num_queues); in init_pending_queues()
139 num_queues); in init_pending_queues()
149 if (!cptvf->num_queues) in cleanup_pending_queues()
153 cptvf->num_queues); in cleanup_pending_queues()
166 for (i = 0; i < cptvf->num_queues; i++) { in free_command_queues()
208 for (i = 0; i < cptvf->num_queues; i++) { in alloc_command_queues()
274 cptvf->num_queues); in init_command_queues()
284 if (!cptvf->num_queues) in cleanup_command_queues()
288 cptvf->num_queues); in cleanup_command_queues()
299 static int cptvf_sw_init(struct otx_cptvf *cptvf, u32 qlen, u32 num_queues) in cptvf_sw_init() argument
307 num_queues = min_t(u32, num_queues, max_dev_queues); in cptvf_sw_init()
308 cptvf->num_queues = num_queues; in cptvf_sw_init()
313 num_queues); in cptvf_sw_init()
317 ret = init_pending_queues(cptvf, qlen, num_queues); in cptvf_sw_init()
320 num_queues); in cptvf_sw_init()
544 if (unlikely(qno >= cptvf->num_queues)) in get_cptvf_vq_wqe()