Lines Matching refs:eq

14 	struct hw_eq *eq = NULL;  in efct_hw_init_queues()  local
34 eq = efct_hw_new_eq(hw, EFCT_HW_EQ_DEPTH); in efct_hw_init_queues()
35 if (!eq) { in efct_hw_init_queues()
40 eqs[i] = eq; in efct_hw_init_queues()
44 cq = efct_hw_new_cq(eq, in efct_hw_init_queues()
59 cq = efct_hw_new_cq(eq, hw->num_qentries[SLI4_QTYPE_CQ]); in efct_hw_init_queues()
130 struct hw_eq *eq = kzalloc(sizeof(*eq), GFP_KERNEL); in efct_hw_new_eq() local
132 if (!eq) in efct_hw_new_eq()
135 eq->type = SLI4_QTYPE_EQ; in efct_hw_new_eq()
136 eq->hw = hw; in efct_hw_new_eq()
137 eq->entry_count = entry_count; in efct_hw_new_eq()
138 eq->instance = hw->eq_count++; in efct_hw_new_eq()
139 eq->queue = &hw->eq[eq->instance]; in efct_hw_new_eq()
140 INIT_LIST_HEAD(&eq->cq_list); in efct_hw_new_eq()
142 if (sli_queue_alloc(&hw->sli, SLI4_QTYPE_EQ, eq->queue, entry_count, in efct_hw_new_eq()
144 efc_log_err(hw->os, "EQ[%d] alloc failure\n", eq->instance); in efct_hw_new_eq()
145 kfree(eq); in efct_hw_new_eq()
149 sli_eq_modify_delay(&hw->sli, eq->queue, 1, 0, 8); in efct_hw_new_eq()
150 hw->hw_eq[eq->instance] = eq; in efct_hw_new_eq()
151 INIT_LIST_HEAD(&eq->list_entry); in efct_hw_new_eq()
152 list_add_tail(&eq->list_entry, &hw->eq_list); in efct_hw_new_eq()
153 efc_log_debug(hw->os, "create eq[%2d] id %3d len %4d\n", eq->instance, in efct_hw_new_eq()
154 eq->queue->id, eq->entry_count); in efct_hw_new_eq()
155 return eq; in efct_hw_new_eq()
159 efct_hw_new_cq(struct hw_eq *eq, u32 entry_count) in efct_hw_new_cq() argument
161 struct efct_hw *hw = eq->hw; in efct_hw_new_cq()
167 cq->eq = eq; in efct_hw_new_cq()
169 cq->instance = eq->hw->cq_count++; in efct_hw_new_cq()
176 cq->entry_count, eq->queue)) { in efct_hw_new_cq()
178 eq->instance, eq->entry_count); in efct_hw_new_cq()
185 list_add_tail(&cq->list_entry, &eq->cq_list); in efct_hw_new_cq()
212 cq->eq = eqs[i]; in efct_hw_new_cq_set()
230 list_add_tail(&cqs[i]->list_entry, &cqs[i]->eq->cq_list); in efct_hw_new_cq_set()
246 struct efct_hw *hw = cq->eq->hw; in efct_hw_new_mq()
254 mq->instance = cq->eq->hw->mq_count++; in efct_hw_new_mq()
277 struct efct_hw *hw = cq->eq->hw; in efct_hw_new_wq()
283 wq->hw = cq->eq->hw; in efct_hw_new_wq()
286 wq->instance = cq->eq->hw->wq_count++; in efct_hw_new_wq()
313 struct efct_hw *hw = cqs[0]->eq->hw; in efct_hw_new_rq_set()
388 efct_hw_del_eq(struct hw_eq *eq) in efct_hw_del_eq() argument
393 if (!eq) in efct_hw_del_eq()
396 list_for_each_entry_safe(cq, cq_next, &eq->cq_list, list_entry) in efct_hw_del_eq()
398 list_del(&eq->list_entry); in efct_hw_del_eq()
399 eq->hw->hw_eq[eq->instance] = NULL; in efct_hw_del_eq()
400 kfree(eq); in efct_hw_del_eq()
428 cq->eq->hw->hw_cq[cq->instance] = NULL; in efct_hw_del_cq()
439 mq->cq->eq->hw->hw_mq[mq->instance] = NULL; in efct_hw_del_mq()
450 wq->cq->eq->hw->hw_wq[wq->instance] = NULL; in efct_hw_del_wq()
465 hw = rq->cq->eq->hw; in efct_hw_del_rq()
473 struct hw_eq *eq; in efct_hw_queue_teardown() local
479 list_for_each_entry_safe(eq, eq_next, &hw->eq_list, list_entry) in efct_hw_queue_teardown()
480 efct_hw_del_eq(eq); in efct_hw_queue_teardown()
594 seq->hw_priv = cq->eq; in efct_hw_rqpair_process_rq()