Lines Matching refs:dpaa2_io
20 struct dpaa2_io {
44 static struct dpaa2_io *dpio_by_cpu[NR_CPUS];
48 static inline struct dpaa2_io *service_select_by_cpu(struct dpaa2_io *d,
68 static inline struct dpaa2_io *service_select(struct dpaa2_io *d)
78 d = list_entry(dpio_list.next, struct dpaa2_io, node);
87 * dpaa2_io_service_select() - return a dpaa2_io service affined to this cpu
90 * Return the affine dpaa2_io service, or NULL if there is no service affined
94 struct dpaa2_io *dpaa2_io_service_select(int cpu)
104 * dpaa2_io_create() - create a dpaa2_io object.
105 * @desc: the dpaa2_io descriptor
108 * Activates a "struct dpaa2_io" corresponding to the given config of an actual
111 * Return a valid dpaa2_io object for success, or NULL for failure.
113 struct dpaa2_io *dpaa2_io_create(const struct dpaa2_io_desc *desc,
116 struct dpaa2_io *obj = kmalloc(sizeof(*obj), GFP_KERNEL);
162 * dpaa2_io_down() - release the dpaa2_io object.
163 * @d: the dpaa2_io object to be released.
165 * The "struct dpaa2_io" type can represent an individual DPIO object (as
170 void dpaa2_io_down(struct dpaa2_io *d)
190 irqreturn_t dpaa2_io_irq(struct dpaa2_io *obj)
233 int dpaa2_io_get_cpu(struct dpaa2_io *d)
258 int dpaa2_io_service_register(struct dpaa2_io *d,
298 void dpaa2_io_service_deregister(struct dpaa2_io *service,
302 struct dpaa2_io *d = ctx->dpio_private;
328 int dpaa2_io_service_rearm(struct dpaa2_io *d,
357 int dpaa2_io_service_pull_fq(struct dpaa2_io *d, u32 fqid,
388 int dpaa2_io_service_pull_channel(struct dpaa2_io *d, u32 channelid,
421 int dpaa2_io_service_enqueue_fq(struct dpaa2_io *d,
450 int dpaa2_io_service_enqueue_multiple_fq(struct dpaa2_io *d,
480 int dpaa2_io_service_enqueue_multiple_desc_fq(struct dpaa2_io *d,
522 int dpaa2_io_service_enqueue_qd(struct dpaa2_io *d,
549 int dpaa2_io_service_release(struct dpaa2_io *d,
578 int dpaa2_io_service_acquire(struct dpaa2_io *d,
727 int dpaa2_io_query_fq_count(struct dpaa2_io *d, u32 fqid,
761 int dpaa2_io_query_bp_count(struct dpaa2_io *d, u16 bpid, u32 *num)