Lines Matching refs:rq
314 struct hw_rq *rq = NULL;
324 * encapsulates 2 SLI queues (for rq pair)
327 rq = kzalloc(sizeof(*rq), GFP_KERNEL);
328 if (!rq)
331 rqs[i] = rq;
332 rq->instance = hw->hw_rq_count++;
333 rq->cq = cqs[i];
334 rq->type = SLI4_QTYPE_RQ;
335 rq->entry_count = entry_count;
338 rq->hdr = &hw->rq[hw->rq_count];
339 rq->hdr_entry_size = EFCT_HW_RQ_HEADER_SIZE;
340 hw->hw_rq_lookup[hw->rq_count] = rq->instance;
342 qs[q_count] = rq->hdr;
345 rq->data = &hw->rq[hw->rq_count];
346 rq->data_entry_size = hw->config.rq_default_buffer_size;
347 hw->hw_rq_lookup[hw->rq_count] = rq->instance;
349 qs[q_count + 1] = rq->data;
351 rq->rq_tracker = NULL;
455 efct_hw_del_rq(struct hw_rq *rq)
459 if (!rq)
462 kfree(rq->rq_tracker);
463 rq->rq_tracker = NULL;
464 list_del(&rq->list_entry);
465 hw = rq->cq->eq->hw;
466 hw->hw_rq[rq->instance] = NULL;
467 kfree(rq);
492 struct sli4_queue *rq_hdr = &hw->rq[rqindex];
494 struct hw_rq *rq = hw->hw_rq[hw->hw_rq_lookup[rqindex]];
507 seq = rq->rq_tracker[bufindex];
508 rq->rq_tracker[bufindex] = NULL;
531 struct hw_rq *rq;
581 rq = hw->hw_rq[hw->hw_rq_lookup[rqindex]];
582 rq->use_count++;
604 struct sli4_queue *rq_hdr = &hw->rq[seq->header->rqindex];
605 struct sli4_queue *rq_payload = &hw->rq[seq->payload->rqindex];
607 struct hw_rq *rq = hw->hw_rq[hw_rq_index];
642 if (!rq->rq_tracker[qindex_hdr]) {
643 rq->rq_tracker[qindex_hdr] = seq;