/* cyclic helper for rings */ staticinline u8 dpaa_cyc_diff(u8 ringsize, u8 first, u8 last)
{ /* 'first' is included, 'last' is excluded */ if (first <= last) return last - first; return ringsize + last - first;
}
/* Offset applied to genalloc pools due to zero being an error return */ #define DPAA_GENALLOC_OFF 0x80000000
/* Initialize the devices private memory region */ int qbman_init_private_mem(struct device *dev, int idx, constchar *compat,
dma_addr_t *addr, size_t *size);
/* memremap() attributes for different platforms */ #ifdef CONFIG_PPC #define QBMAN_MEMREMAP_ATTR MEMREMAP_WB #else #define QBMAN_MEMREMAP_ATTR MEMREMAP_WC #endif
staticinlineint dpaa_set_portal_irq_affinity(struct device *dev, int irq, int cpu)
{ int ret = 0;
if (!irq_can_set_affinity(irq)) {
dev_err(dev, "unable to set IRQ affinity\n"); return -EINVAL;
}
if (cpu == -1 || !cpu_online(cpu))
cpu = cpumask_any(cpu_online_mask);
ret = irq_set_affinity(irq, cpumask_of(cpu)); if (ret)
dev_err(dev, "irq_set_affinity() on CPU %d failed\n", cpu);
return ret;
}
#endif/* __DPAA_SYS_H */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.21 Sekunden
(vorverarbeitet am 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.