History log of /src/sys/compat/linuxkpi/common/include/linux/math64.h (Results 1 – 25 of 25)
Revision Date Author Comments
# 2a44e10e 04-Sep-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: maths64: implement roundup_u64()

Needed by a wifi driver update.

Sponsored by: The FreeBSD Foundation (initially)
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://re

LinuxKPI: maths64: implement roundup_u64()

Needed by a wifi driver update.

Sponsored by: The FreeBSD Foundation (initially)
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D52080

show more ...


# cf16d65c 18-Jun-2025 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Define `div64_ul()` as a synonym to `div64_u64()`

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50986


# b6a61d68 18-Aug-2023 Doug Moore <dougm@FreeBSD.org>

linuxkpi math: fix kassert in math64.h

Include <sys/systm.h> in math64.h, so that KASSERT and bool are
defined, to allow compilation to succeed after
b80ea452375f52a3ab7d82a9aef10da0d89985d9 and dab

linuxkpi math: fix kassert in math64.h

Include <sys/systm.h> in math64.h, so that KASSERT and bool are
defined, to allow compilation to succeed after
b80ea452375f52a3ab7d82a9aef10da0d89985d9 and dabbbebcb0f5...

show more ...


# dabbbebc 18-Aug-2023 Kyle Evans <kevans@FreeBSD.org>

linuxkpi: fix buildkernel after b80ea452375f

Unbalanced parentheses broke the build; re-balance.

Fixes: b80ea452375f ("LinuxKPI: implement mul_u64_u64_div_u64()")


# b80ea452 16-May-2023 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: implement mul_u64_u64_div_u64()

Implement mul_u64_u64_div_u64() for an updated iwlwifi driver (though
we do not yet use it there; it is used for in-kernel ptp on wifi).

Sponsored by: The

LinuxKPI: implement mul_u64_u64_div_u64()

Implement mul_u64_u64_div_u64() for an updated iwlwifi driver (though
we do not yet use it there; it is used for in-kernel ptp on wifi).

Sponsored by: The FreeBSD Foundation
Submitted by: cperciva
MFC after: 10 days
Reviewed by: cperciva, dwmalone
Differential Revision: https://reviews.freebsd.org/D40120

show more ...


# 95ee2897 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 885ab0db 26-Jul-2022 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: math.h: Add mul_u64_u32_div and mul_u64_u32_shr

Needed by drm-kmod.

Reviewed by: hselasky
Obtained from: OpenBSD
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: htt

linuxkpi: math.h: Add mul_u64_u32_div and mul_u64_u32_shr

Needed by drm-kmod.

Reviewed by: hselasky
Obtained from: OpenBSD
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35937

show more ...


# 307f78f3 19-Dec-2021 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards

MFC after: 1 week
Reviewed by: bz, emaste, hselasky, manu
Differential Revision: https://reviews.freebsd.org/D33562


# 3ff7ec1c 01-May-2020 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement DIV64_U64_ROUND_UP() in the LinuxKPI.

Submitted by: ashafer_badland.io (Austin Shafer)
MFC after: 1 week
Sponsored by: Mellanox Technologies


# 2a44e10e 04-Sep-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: maths64: implement roundup_u64()

Needed by a wifi driver update.

Sponsored by: The FreeBSD Foundation (initially)
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://re

LinuxKPI: maths64: implement roundup_u64()

Needed by a wifi driver update.

Sponsored by: The FreeBSD Foundation (initially)
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D52080

show more ...


# cf16d65c 18-Jun-2025 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Define `div64_ul()` as a synonym to `div64_u64()`

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50986


# b6a61d68 18-Aug-2023 Doug Moore <dougm@FreeBSD.org>

linuxkpi math: fix kassert in math64.h

Include <sys/systm.h> in math64.h, so that KASSERT and bool are
defined, to allow compilation to succeed after
b80ea452375f52a3ab7d82a9aef10da0d89985d9 and dab

linuxkpi math: fix kassert in math64.h

Include <sys/systm.h> in math64.h, so that KASSERT and bool are
defined, to allow compilation to succeed after
b80ea452375f52a3ab7d82a9aef10da0d89985d9 and dabbbebcb0f5...

show more ...


# dabbbebc 18-Aug-2023 Kyle Evans <kevans@FreeBSD.org>

linuxkpi: fix buildkernel after b80ea452375f

Unbalanced parentheses broke the build; re-balance.

Fixes: b80ea452375f ("LinuxKPI: implement mul_u64_u64_div_u64()")


# b80ea452 16-May-2023 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: implement mul_u64_u64_div_u64()

Implement mul_u64_u64_div_u64() for an updated iwlwifi driver (though
we do not yet use it there; it is used for in-kernel ptp on wifi).

Sponsored by: The

LinuxKPI: implement mul_u64_u64_div_u64()

Implement mul_u64_u64_div_u64() for an updated iwlwifi driver (though
we do not yet use it there; it is used for in-kernel ptp on wifi).

Sponsored by: The FreeBSD Foundation
Submitted by: cperciva
MFC after: 10 days
Reviewed by: cperciva, dwmalone
Differential Revision: https://reviews.freebsd.org/D40120

show more ...


# 95ee2897 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 885ab0db 26-Jul-2022 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: math.h: Add mul_u64_u32_div and mul_u64_u32_shr

Needed by drm-kmod.

Reviewed by: hselasky
Obtained from: OpenBSD
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: htt

linuxkpi: math.h: Add mul_u64_u32_div and mul_u64_u32_shr

Needed by drm-kmod.

Reviewed by: hselasky
Obtained from: OpenBSD
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35937

show more ...


# 307f78f3 19-Dec-2021 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards

MFC after: 1 week
Reviewed by: bz, emaste, hselasky, manu
Differential Revision: https://reviews.freebsd.org/D33562


# 3ff7ec1c 01-May-2020 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement DIV64_U64_ROUND_UP() in the LinuxKPI.

Submitted by: ashafer_badland.io (Austin Shafer)
MFC after: 1 week
Sponsored by: Mellanox Technologies


# 0d2dce0b 05-Jun-2018 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement mul_u32_u32() function in the LinuxKPI.

Submitted by: Johannes Lundberg <johalun0@gmail.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
Sponsored by: Limelight Networks


# 70bb2cdb 09-Jul-2017 Mark Johnston <markj@FreeBSD.org>

Add some functions to math64.h in the LinuxKPI, and fix nearby style.

Reviewed by: hselasky
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D11535


# 8d59ecb2 29-Oct-2015 Hans Petter Selasky <hselasky@FreeBSD.org>

Finish process of moving the LinuxKPI module into the default kernel build.

- Move all files related to the LinuxKPI into sys/compat/linuxkpi and
its subfolders.
- Update sys/conf/files and some M

Finish process of moving the LinuxKPI module into the default kernel build.

- Move all files related to the LinuxKPI into sys/compat/linuxkpi and
its subfolders.
- Update sys/conf/files and some Makefiles to use new file locations.
- Added description of COMPAT_LINUXKPI to sys/conf/NOTES which in turn
adds the LinuxKPI to all LINT builds.
- The LinuxKPI can be added to the kernel by setting the
COMPAT_LINUXKPI option. The OFED kernel option no longer builds the
LinuxKPI into the kernel. This was done to keep the build rules for
the LinuxKPI in sys/conf/files simple.
- Extend the LinuxKPI module to include support for USB by moving the
Linux USB compat from usb.ko to linuxkpi.ko.
- Bump the FreeBSD_version.
- A universe kernel build has been done.

Reviewed by: np @ (cxgb and cxgbe related changes only)
Sponsored by: Mellanox Technologies

show more ...


# 382d6beb 20-Oct-2015 Hans Petter Selasky <hselasky@FreeBSD.org>

Move location of RCS keyword according to style.

Suggested by: jhb @
Sponsored by: Mellanox Technologies


# 77320fe8 20-Oct-2015 Hans Petter Selasky <hselasky@FreeBSD.org>

Add missing FreeBSD RCS keyword and SVN properties.

Sponsored by: Mellanox Technologies


# 1610bf8e 19-Oct-2015 Hans Petter Selasky <hselasky@FreeBSD.org>

Merge LinuxKPI changes from DragonflyBSD:
- Reimplement math64 header file to distinguish more from Linux.

Sponsored by: Mellanox Technologies


# c7818b48 27-Aug-2014 Hans Petter Selasky <hselasky@FreeBSD.org>

- Update the OFED Linux Emulation layer as a preparation for a
hardware driver update from Mellanox Technologies.
- Remove empty files from the OFED Linux Emulation layer.
- Fix compile warnings rela

- Update the OFED Linux Emulation layer as a preparation for a
hardware driver update from Mellanox Technologies.
- Remove empty files from the OFED Linux Emulation layer.
- Fix compile warnings related to printf() and the "%lld" and "%llx"
format specifiers.
- Add some missing 2-clause BSD copyrights.
- Add "Mellanox Technologies, Ltd." to list of copyright holders.
- Add some new compatibility files.
- Fix order of uninit in the mlx4ib module to avoid crash at unload
using the new module_exit_order() function.

MFC after: 1 week
Sponsored by: Mellanox Technologies

show more ...