freebsd-src/sys/dev/cxgbe
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
..
common cxgbe(4): Consolidate all mk_set_tcb_field_ulp in one place. 2024-05-17 15:52:33 -07:00
crypto cxgbe(4): Rename rx_c_chan to rx_chan. 2024-04-30 16:07:24 -07:00
cudbg sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
cxgbei
firmware cxgbe(4): Update firmwares to 1.27.5.0 2024-01-04 12:37:27 -08:00
iw_cxgbe sockets: don't malloc/free sockaddr memory on getpeername/getsockname 2023-11-30 08:31:10 -08:00
tom cxgbe(4): Consolidate all mk_set_tcb_field_ulp in one place. 2024-05-17 15:52:33 -07:00
adapter.h cxgbe(4): Rename rx_c_chan to rx_chan. 2024-04-30 16:07:24 -07:00
if_cc.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
if_ccv.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
if_cxl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
if_cxlv.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
offload.h cxgbe(4): Reword the comment explaining the atid/cookie split. 2024-04-29 13:40:40 -07:00
osdep.h libkern: add ilog2 macro 2024-06-03 11:37:55 -05:00
t4_clip.c
t4_clip.h
t4_filter.c cxgbe(4): Consolidate all mk_set_tcb_field_ulp in one place. 2024-05-17 15:52:33 -07:00
t4_if.m
t4_ioctl.h
t4_iov.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
t4_l2t.c
t4_l2t.h
t4_main.c cxgbe: Use device_set_descf() 2024-06-02 19:38:40 -04:00
t4_mp_ring.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
t4_mp_ring.h
t4_netmap.c cxgbe(4): Add support for netmap offsets. 2024-01-08 12:04:07 -08:00
t4_sched.c cxgbe(4): sc->port is indexed by port_id and not tx_chan. 2024-05-17 15:42:23 -07:00
t4_sge.c cxgbe(4): Allocate a taskqueue per port instead of per channel. 2024-04-30 11:11:23 -07:00
t4_smt.c
t4_smt.h
t4_tracer.c
t4_vf.c