freebsd-src/sys/dev/mana
Doug Moore b0056b31e9 libkern: add ilog2 macro
The kernel source contains several definitions of an ilog2 function;
some are slower than necessary, and one of them is incorrect.
Elimininate them all and define an ilog2 macro in libkern to replace
them, in a way that is fast, correct for all argument types, and, in a
GENERIC kernel, includes a check for an invalid zero parameter.

Folks at Microsoft have verified that having a correct ilog2
definition for their MANA driver doesn't break it.

Reviewed by:	alc, markj, mhorne (older version), jhibbits (older version)
Differential Revision:	https://reviews.freebsd.org/D45170
Differential Revision:	https://reviews.freebsd.org/D45235
2024-06-03 11:37:55 -05:00
..
gdma.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gdma_main.c mana: fix leaking pci resource problem detaching mana deivces 2024-02-13 09:38:31 +00:00
gdma_util.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gdma_util.h libkern: add ilog2 macro 2024-06-03 11:37:55 -05:00
hw_channel.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07: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-17 09:25:26 +00:00
mana_en.c mana: Fix TX CQE error handling 2024-01-17 09:25:26 +00:00
mana_sysctl.c mana: Fix TX CQE error handling 2024-01-17 09:25:26 +00:00
mana_sysctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
shm_channel.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
shm_channel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00