Lines Matching defs:eq

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