opnsense-src/sys/dev/mana
Doug Moore 16b7da6f7a dev/mana: replace power2 function
Replace is_power_of_2(length) with power2(length).  When length != 0, as in
this case, they produce the same result.  This will allow an implementation
of is_power_of_two to be dropped.

Reviewed by:	alc, markj
Differential Revision:	https://reviews.freebsd.org/D45536

(cherry picked from commit a94ed493b50752cee09245fc312c63b00331f217)
2025-02-10 04:50:32 -06:00
..
gdma.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gdma_main.c dev/mana: replace power2 function 2025-02-10 04:50:32 -06:00
gdma_util.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gdma_util.h log2: move log2 functions from linuxkpi to libkern 2025-02-10 04:29:23 -06:00
hw_channel.c mana: Stop checking for failures from malloc/mallocarray/buf_ring_alloc(M_WAITOK) 2024-09-30 12:44:24 +08:00
hw_channel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mana.h mana: Fix TX CQE error handling 2024-01-24 12:36:13 +00:00
mana_en.c mana: Remove stray semicolons 2024-10-31 12:40:17 +08:00
mana_sysctl.c mana: Fix TX CQE error handling 2024-01-24 12:36:13 +00:00
mana_sysctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
shm_channel.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
shm_channel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00