Lines Matching refs:qe
82 struct sched_queue_entry *qe; in t4_sched_bind_unbind_op() local
84 qe = (struct sched_queue_entry *)arg; in t4_sched_bind_unbind_op()
92 fw_class = bind ? qe->param.class : FW_SCHED_CLS_NONE; in t4_sched_bind_unbind_op()
93 fw_param = (fw_mnem | FW_PARAMS_PARAM_YZ_V(qe->cntxt_id)); in t4_sched_bind_unbind_op()
137 struct sched_queue_entry *qe; in t4_sched_entry_lookup() local
139 list_for_each_entry(qe, &e->entry_list, list) { in t4_sched_entry_lookup()
140 if (qe->cntxt_id == val) { in t4_sched_entry_lookup()
141 found = qe; in t4_sched_entry_lookup()
173 struct sched_queue_entry *qe = NULL; in cxgb4_sched_queue_lookup() local
181 qe = t4_sched_entry_lookup(pi, SCHED_QUEUE, txq->q.cntxt_id); in cxgb4_sched_queue_lookup()
182 return qe ? &pi->sched_tbl->tab[qe->param.class] : NULL; in cxgb4_sched_queue_lookup()
187 struct sched_queue_entry *qe = NULL; in t4_sched_queue_unbind() local
199 qe = t4_sched_entry_lookup(pi, SCHED_QUEUE, txq->q.cntxt_id); in t4_sched_queue_unbind()
200 if (qe) { in t4_sched_queue_unbind()
201 err = t4_sched_bind_unbind_op(pi, (void *)qe, SCHED_QUEUE, in t4_sched_queue_unbind()
206 e = &pi->sched_tbl->tab[qe->param.class]; in t4_sched_queue_unbind()
207 list_del(&qe->list); in t4_sched_queue_unbind()
208 kvfree(qe); in t4_sched_queue_unbind()
218 struct sched_queue_entry *qe = NULL; in t4_sched_queue_bind() local
228 qe = kvzalloc(sizeof(struct sched_queue_entry), GFP_KERNEL); in t4_sched_queue_bind()
229 if (!qe) in t4_sched_queue_bind()
241 qe->cntxt_id = qid; in t4_sched_queue_bind()
242 memcpy(&qe->param, p, sizeof(qe->param)); in t4_sched_queue_bind()
244 e = &s->tab[qe->param.class]; in t4_sched_queue_bind()
245 err = t4_sched_bind_unbind_op(pi, (void *)qe, SCHED_QUEUE, true); in t4_sched_queue_bind()
249 list_add_tail(&qe->list, &e->entry_list); in t4_sched_queue_bind()
255 kvfree(qe); in t4_sched_queue_bind()
333 struct sched_queue_entry *qe; in t4_sched_class_unbind_all() local
335 list_for_each_entry(qe, &e->entry_list, list) in t4_sched_class_unbind_all()
336 t4_sched_queue_unbind(pi, &qe->param); in t4_sched_class_unbind_all()
361 struct ch_sched_queue *qe = (struct ch_sched_queue *)arg; in t4_sched_class_bind_unbind_op() local
364 err = t4_sched_queue_bind(pi, qe); in t4_sched_class_bind_unbind_op()
366 err = t4_sched_queue_unbind(pi, qe); in t4_sched_class_bind_unbind_op()
410 struct ch_sched_queue *qe = (struct ch_sched_queue *)arg; in cxgb4_sched_class_bind() local
412 class_id = qe->class; in cxgb4_sched_class_bind()
457 struct ch_sched_queue *qe = (struct ch_sched_queue *)arg; in cxgb4_sched_class_unbind() local
459 class_id = qe->class; in cxgb4_sched_class_unbind()