linux/drivers/accel
Rosen Penev 6101f78b68 accel/qaic: kcalloc + kzalloc to kzalloc
Consolidate the two-element allocation into a single allocation using a
flexible array member. This reduces memory fragmentation and simplifies
the error path by eliminating the need to check for allocation failure
between the two allocations.

Add __counted_by for runtime bounds checking.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Tested-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://patch.msgid.link/20260401220643.12802-1-rosenp@gmail.com
2026-05-12 10:20:40 -06:00
..
amdxdna accel/amdxdna: Add AIE4 work buffer initialization 2026-05-07 14:09:33 -07:00
ethosu Merge drm/drm-next into drm-misc-next 2026-04-27 10:49:13 +02:00
habanalabs Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
ivpu accel/ivpu: Add support for limiting NPU frequency 2026-04-29 09:41:59 +02:00
qaic accel/qaic: kcalloc + kzalloc to kzalloc 2026-05-12 10:20:40 -06:00
rocket accel/rocket: Remove drm_sched_init_args->num_rqs usage 2026-04-17 14:43:29 +02:00
drm_accel.c drm: move drm based debugfs funcs to drm_debugfs.c 2025-07-04 15:58:22 +02:00
Kconfig accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00
Makefile accel: Add Arm Ethos-U NPU driver 2025-10-24 15:07:39 -05:00