freebsd-src/sys/dev/mlx5
Doug Moore f0a0420dfd powerof2: replace loops with fls or ilog2
In several places, a loop tests for powers of two, or iterates through
powers of two.  In those places, replace the loop with an invocation
of fls or ilog2 without changing the meaning of the code.

Reviewed by:	alc, markj, kib, np, erj, avg (previous version)
Differential Revision:	https://reviews.freebsd.org/D45494
2024-06-12 05:00:48 -05:00
..
mlx5_accel sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_core mlx5: Zero DMA memory mlx5_alloc_cmd_msg() and alloc_cmd_page() 2024-01-18 16:52:17 -05:00
mlx5_en powerof2: replace loops with fls or ilog2 2024-06-12 05:00:48 -05:00
mlx5_fpga sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_fpga_tools sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5_ib mlx5ib: adjust for the mlx5_create_auto_grouped_flow_table() interface change 2023-11-16 01:08:17 +02:00
mlx5_lib sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cmd.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cq.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
device.h mlx5: Introduce new destination type TABLE_TYPE 2023-11-16 01:08:17 +02:00
diagnostics.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
doorbell.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
driver.h mlx5(4): only detach IOV children if iov was successfully initialized 2024-01-05 06:52:39 +02:00
fs.h mlx5core: add linux/bitops.h include for mlx5_ifc.h use of BIT() 2023-11-16 01:08:17 +02:00
mlx5_ifc.h mlx5: Introduce new destination type TABLE_TYPE 2023-11-16 01:08:17 +02:00
mlx5_rdma_if.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mlx5io.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mpfs.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
port.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
qp.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
srq.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
tls.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vport.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00