Lines Matching refs:mq
17 struct hw_mq *mq = NULL;
51 mq = efct_hw_new_mq(cq, EFCT_HW_MQ_DEPTH);
52 if (!mq) {
247 struct hw_mq *mq = kzalloc(sizeof(*mq), GFP_KERNEL);
249 if (!mq)
252 mq->cq = cq;
253 mq->type = SLI4_QTYPE_MQ;
254 mq->instance = cq->eq->hw->mq_count++;
255 mq->entry_count = entry_count;
256 mq->entry_size = EFCT_HW_MQ_DEPTH;
257 mq->queue = &hw->mq[mq->instance];
259 if (sli_queue_alloc(&hw->sli, SLI4_QTYPE_MQ, mq->queue, mq->entry_size,
262 kfree(mq);
266 hw->hw_mq[mq->instance] = mq;
267 INIT_LIST_HEAD(&mq->list_entry);
268 list_add_tail(&mq->list_entry, &cq->q_list);
269 efc_log_debug(hw->os, "create mq[%2d] id %3d len %4d\n", mq->instance,
270 mq->queue->id, mq->entry_count);
271 return mq;
433 efct_hw_del_mq(struct hw_mq *mq)
435 if (!mq)
438 list_del(&mq->list_entry);
439 mq->cq->eq->hw->hw_mq[mq->instance] = NULL;
440 kfree(mq);