Lines Matching defs:queue
11 * get_free_pending_entry - get free entry from pending queue
13 * @param qno: queue number
37 struct pending_queue *queue = &pqinfo->queue[qno];
39 queue->front++;
40 if (unlikely(queue->front == pqinfo->qlen))
41 queue->front = 0;
228 struct command_queue *queue;
234 dev_err(&pdev->dev, "Invalid queue (qno: %d, nr_queues: %d)\n",
240 queue = &qinfo->queue[qno];
241 /* lock commad queue */
242 spin_lock(&queue->lock);
243 ent = &queue->qhead->head[queue->idx * qinfo->cmd_size];
246 if (++queue->idx >= queue->qhead->size / 64) {
249 hlist_for_each(node, &queue->chead) {
252 if (chunk == queue->qhead) {
255 queue->qhead = chunk;
259 queue->idx = 0;
264 /* unlock command queue */
265 spin_unlock(&queue->lock);
333 struct pending_queue *pqueue = &pqinfo->queue[qno];
412 int ret = 0, clear = 0, queue = 0;
478 /* Always queue 0, because 1 queue per VF */
479 queue = 0;
480 pqueue = &cptvf->pqinfo.queue[queue];
484 process_pending_queue(cptvf, &cptvf->pqinfo, queue);
493 process_pending_queue(cptvf, &cptvf->pqinfo, queue);
498 dev_err(&pdev->dev, "queue: %d, rear: %d, front: %d\n",
499 queue, pqueue->rear, pqueue->front);
528 ret = send_cpt_command(cptvf, &cptinst, queue);
550 dev_err(&pdev->dev, "Request for post processing on invalid pending queue: %u\n",