Lines Matching refs:dpaa2_io

21 struct dpaa2_io {
53 static struct dpaa2_io *dpio_by_cpu[NR_CPUS];
57 static inline struct dpaa2_io *service_select_by_cpu(struct dpaa2_io *d,
77 static inline struct dpaa2_io *service_select(struct dpaa2_io *d)
87 d = list_entry(dpio_list.next, struct dpaa2_io, node);
96 * dpaa2_io_service_select() - return a dpaa2_io service affined to this cpu
99 * Return the affine dpaa2_io service, or NULL if there is no service affined
103 struct dpaa2_io *dpaa2_io_service_select(int cpu)
117 struct dpaa2_io *d = container_of(dim, struct dpaa2_io, rx_dim);
124 * dpaa2_io_create() - create a dpaa2_io object.
125 * @desc: the dpaa2_io descriptor
128 * Activates a "struct dpaa2_io" corresponding to the given config of an actual
131 * Return a valid dpaa2_io object for success, or NULL for failure.
133 struct dpaa2_io *dpaa2_io_create(const struct dpaa2_io_desc *desc,
136 struct dpaa2_io *obj = kmalloc(sizeof(*obj), GFP_KERNEL);
198 * dpaa2_io_down() - release the dpaa2_io object.
199 * @d: the dpaa2_io object to be released.
201 * The "struct dpaa2_io" type can represent an individual DPIO object (as
206 void dpaa2_io_down(struct dpaa2_io *d)
226 irqreturn_t dpaa2_io_irq(struct dpaa2_io *obj)
271 int dpaa2_io_get_cpu(struct dpaa2_io *d)
296 int dpaa2_io_service_register(struct dpaa2_io *d,
336 void dpaa2_io_service_deregister(struct dpaa2_io *service,
340 struct dpaa2_io *d = ctx->dpio_private;
366 int dpaa2_io_service_rearm(struct dpaa2_io *d,
395 int dpaa2_io_service_pull_fq(struct dpaa2_io *d, u32 fqid,
426 int dpaa2_io_service_pull_channel(struct dpaa2_io *d, u32 channelid,
459 int dpaa2_io_service_enqueue_fq(struct dpaa2_io *d,
488 int dpaa2_io_service_enqueue_multiple_fq(struct dpaa2_io *d,
518 int dpaa2_io_service_enqueue_multiple_desc_fq(struct dpaa2_io *d,
560 int dpaa2_io_service_enqueue_qd(struct dpaa2_io *d,
587 int dpaa2_io_service_release(struct dpaa2_io *d,
616 int dpaa2_io_service_acquire(struct dpaa2_io *d,
765 int dpaa2_io_query_fq_count(struct dpaa2_io *d, u32 fqid,
799 int dpaa2_io_query_bp_count(struct dpaa2_io *d, u16 bpid, u32 *num)
828 int dpaa2_io_set_irq_coalescing(struct dpaa2_io *d, u32 irq_holdoff)
842 void dpaa2_io_get_irq_coalescing(struct dpaa2_io *d, u32 *irq_holdoff)
855 void dpaa2_io_set_adaptive_coalescing(struct dpaa2_io *d,
869 int dpaa2_io_get_adaptive_coalescing(struct dpaa2_io *d)
881 void dpaa2_io_update_net_dim(struct dpaa2_io *d, __u64 frames, __u64 bytes)