zephyr/include/zephyr
Tomasz Moń 0f41950564 usb: device_next: Respect granularity in UDC buf pool define
Round up buffer size used in UDC_BUF_POOL_DEFINE() to respect the
required buffer granularity. The issue was observed with UAC2 explicit
feedback data, but the problem applies to any UDC_BUF_POOL_DEFINE() use.

In order for every buffer returned by UDC_BUF_POOL_DEFINE() to be both
aligned and to have required granurality, it is required to allocate the
buffers for ROUND_UP(size, LCM(UDC_BUF_GRANULARITY, UDC_BUF_ALIGN)).
Because we do not have Least Common Multiple nor Greatest Common Divisor
compile time macros, assume that granularity is multiple of alignment.
Validate the assumption with a build time assert. When we get a target
where this assumption fails we would have to come up with a solution to
compute LCM and/or GCD at compile time.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2024-08-27 12:45:42 +02:00
..
acpi
app_memory coding guidelines: comply with MISRA C:2012 Rule 11.2 2024-06-14 17:12:12 -04:00
arch arch: document arch_stack_walk() 2024-08-26 14:44:53 -04:00
audio
bluetooth bluetooth: BAS: add battery level status char to bas service 2024-08-20 18:59:14 -04:00
canbus
console
crypto everywhere: replace double words 2024-06-22 05:40:22 -04:00
data jwt: add missing documentation 2024-08-23 15:49:05 +01:00
debug debug: coresight: Add coresight_trace_deformatter 2024-08-12 19:23:19 -04:00
devicetree arch: sw_isr: revamp multi-level interrupt architecture 2024-05-25 11:24:32 +03:00
dfu
display fb: cfb: Add framebuffer deinitialize function 2024-06-28 07:21:47 -04:00
drivers usb: device_next: Respect granularity in UDC buf pool define 2024-08-27 12:45:42 +02:00
dsp include: fix typo in multiple directories 2024-07-10 11:48:03 -04:00
dt-bindings gnss: rename u-blox M10 driver to M8 2024-08-26 17:27:12 -04:00
fs fs: nvs: Allow application to switch sector to get free space 2024-07-28 07:31:44 +03:00
input input: kbd_matrix: add power management support 2024-08-26 14:45:21 -04:00
internal include: sys: added missing parenthesis 2024-06-14 18:50:33 -04:00
ipc ipc: icmsg: Align to NO MULTITHREADING 2024-08-01 13:31:53 +02:00
kernel kernel: mmu: support for on-demand mappings 2024-08-26 17:25:41 -04:00
linker firmware: introduce SCMI core support 2024-08-19 10:05:16 -04:00
llext doc: llext: improve Doxygen comments 2024-07-11 16:17:52 +02:00
logging logging: When strings are stripped keep source name pointers 2024-08-13 14:56:14 +02:00
lorawan
math
mem_mgmt
mgmt mgmt: mcumgr: grp: Add enumeration management group 2024-08-26 17:05:27 +02:00
misc misc: move lorem ipsum text to zephyr/misc/lorem_ipsum.h 2024-08-02 03:31:06 -04:00
modbus
modem modem: pipe: Add explicit timeout to sync APIs 2024-07-29 14:14:42 +02:00
multi_heap
net net: wifi: Display rts threshold in wifi shell 2024-08-27 12:45:02 +02:00
pm pm: refactor pm_device_driver_init 2024-08-02 03:31:17 -04:00
portability
posix posix: add stubs for signal.h functions that need process support 2024-08-23 10:35:11 -04:00
random build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
retention retention: Fix documentation issue 2024-07-25 09:25:21 +02:00
rtio rtio: Split the rx and tx buffer unions 2024-08-17 08:55:01 -04:00
sd sd: sd_spec: update trailing doxygen comments 2024-07-17 16:19:07 -04:00
sensing
settings
shell shell: Correct one comment 2024-08-16 09:21:18 +01:00
sip_svc
stats
storage storage/stream_flash: Fix write_block_size too small 2024-07-18 12:32:35 -04:00
sys sys/poweroff: remove extra doxygen group ending command 2024-08-24 07:14:57 -04:00
task_wdt
timing
toolchain toolchain/gcc.h: Link to instructions on deprecation 2024-08-15 12:40:16 +02:00
tracing net: tracing: Add TX time tracing 2024-08-19 21:50:21 -04:00
usb usb: device_next: Make stack High-Bandwidth aware 2024-08-21 18:25:30 +01:00
usb_c include: fix typo in multiple directories 2024-07-10 11:48:03 -04:00
xen include: fix typo in multiple directories 2024-07-10 11:48:03 -04:00
zbus zbus: Fix ZBUS_CHAN_DEFINE alignment 2024-07-09 14:03:33 +02:00
zvfs posix: eventfd: fix dependency cycle between net and posix 2024-06-04 16:27:12 -05:00
bindesc.h bindesc: add to os_services doxygen group 2024-07-18 09:23:33 -04:00
cache.h everywhere: replace double words 2024-06-22 05:40:22 -04:00
device.h device: remove support for deprecated init levels 2024-08-19 10:10:18 -04:00
devicetree.h include: fix typo in multiple directories 2024-07-10 11:48:03 -04:00
fatal.h kernel: Add missing @brief for z_fatal_error 2024-06-20 17:02:45 -04:00
fatal_types.h
init.h
irq.h irq: doc: fix misspelled reference to k_spinlock 2024-06-07 15:05:56 +02:00
irq_multilevel.h everywhere: replace double words 2024-06-22 05:40:22 -04:00
irq_nextlevel.h
irq_offload.h
kernel.h doc: kernel: fix doxygen for K_FP_REGS 2024-08-24 07:15:58 -04:00
kernel_includes.h
kernel_structs.h kernel: Add CONFIG_IPI_OPTIMIZE 2024-06-04 22:35:54 -04:00
kernel_version.h
shared_irq.h
smf.h Lib: SMF Modify HSM operation for UML-Style transitions 2024-05-22 21:41:06 -04:00
spinlock.h include: zephyr: coding guidelines: add explicit cast to void 2024-06-07 16:46:32 +03:00
sw_isr_table.h everywhere: replace #if IS_ENABLED() as per docs 2024-06-28 07:20:32 -04:00
sys_clock.h
syscall.h build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
toolchain.h include: fix typo in multiple directories 2024-07-10 11:48:03 -04:00
types.h