Lines Matching defs:spec
630 const struct gdma_queue_spec *spec)
787 const struct gdma_queue_spec *spec,
799 if (spec->eq.log2_throttle_limit > log2_num_entries) {
802 spec->eq.log2_throttle_limit, log2_num_entries);
806 err = mana_gd_register_irq(queue, spec);
812 queue->eq.callback = spec->eq.callback;
813 queue->eq.context = spec->eq.context;
815 queue->eq.log2_throttle_limit = spec->eq.log2_throttle_limit ?: 1;
835 mana_gd_create_cq(const struct gdma_queue_spec *spec,
838 uint32_t log2_num_entries = ilog2(spec->queue_size / GDMA_CQE_SIZE);
841 queue->cq.parent = spec->cq.parent_eq;
842 queue->cq.context = spec->cq.context;
843 queue->cq.callback = spec->cq.callback;
862 const struct gdma_queue_spec *spec,
872 err = mana_gd_alloc_memory(gc, spec->queue_size, gmi);
879 queue->queue_size = spec->queue_size;
880 queue->monitor_avl_buf = spec->monitor_avl_buf;
881 queue->type = spec->type;
884 if (spec->type == GDMA_EQ)
885 err = mana_gd_create_eq(gd, spec, false, queue);
886 else if (spec->type == GDMA_CQ)
887 mana_gd_create_cq(spec, queue);
993 const struct gdma_queue_spec *spec,
1001 if (spec->type != GDMA_EQ)
1006 err = mana_gd_alloc_memory(gc, spec->queue_size, gmi);
1017 queue->queue_size = spec->queue_size;
1018 queue->monitor_avl_buf = spec->monitor_avl_buf;
1019 queue->type = spec->type;
1022 err = mana_gd_create_eq(gd, spec, true, queue);
1037 const struct gdma_queue_spec *spec,
1045 if (spec->type != GDMA_CQ && spec->type != GDMA_SQ &&
1046 spec->type != GDMA_RQ)
1051 err = mana_gd_alloc_memory(gc, spec->queue_size, gmi);
1062 queue->queue_size = spec->queue_size;
1063 queue->monitor_avl_buf = spec->monitor_avl_buf;
1064 queue->type = spec->type;
1067 if (spec->type == GDMA_CQ)
1068 mana_gd_create_cq(spec, queue);