History log of /freebsd/sys/compat/linuxkpi/common/include/linux/bitmap.h (Results 1 – 12 of 12)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# dbca4424 24-Dec-2023 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Constify src parameter of bitmap_copy

in bitmap_from_arr32() to fix build on 32 bit archs.

Sponsored by: Serenity Cyber Security, LLC
Fixes: 5ae2e6f913fa ("LinuxKPI: Add bitmap_intersects

LinuxKPI: Constify src parameter of bitmap_copy

in bitmap_from_arr32() to fix build on 32 bit archs.

Sponsored by: Serenity Cyber Security, LLC
Fixes: 5ae2e6f913fa ("LinuxKPI: Add bitmap_intersects(), bitmap_from_arr32()")
MFC after: 1 week

show more ...


# 5ae2e6f9 24-Dec-2023 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add bitmap_intersects(), bitmap_from_arr32()

and bitmap_shift_right() functions to linux/bitmap.h

They perform calculation of two bitmaps intersection,
copying the contents of u32 array o

LinuxKPI: Add bitmap_intersects(), bitmap_from_arr32()

and bitmap_shift_right() functions to linux/bitmap.h

They perform calculation of two bitmaps intersection,
copying the contents of u32 array of bits to bitmap and
logical right shifting of the bits in a bitmap.

Sponsored by: Serenity Cyber Security, LLC
Reviewed by: manu
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42812

show more ...


Revision tags: release/14.0.0
# 95ee2897 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

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

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


# 06c844e1 22-Apr-2023 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Fix building on 32bit archs

Reported by: Jenkins
Fixes: e5cf9deb61fd ("LinuxKPI: Add bitmap_to_arr32() to <linux/bitmap.h>")


# e5cf9deb 22-Apr-2023 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add bitmap_to_arr32() to <linux/bitmap.h>

bitmap_to_arr32() copies contents of bitmap to a uint32_t array of bits

Required by: drm-kmod 5.15-lts
Reviewed by: manu
Differential Revision: h

LinuxKPI: Add bitmap_to_arr32() to <linux/bitmap.h>

bitmap_to_arr32() copies contents of bitmap to a uint32_t array of bits

Required by: drm-kmod 5.15-lts
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D39552

show more ...


Revision tags: release/13.2.0, release/12.4.0, release/13.1.0
# 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


Revision tags: release/12.3.0, release/13.0.0, release/12.2.0
# 127d8cfa 10-Jul-2020 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement the bitmap_subset() function in the LinuxKPI. This function
checks if the bitmap pointed to by the first argument is a subset of
the bitmap pointed to by the second argument. The function r

Implement the bitmap_subset() function in the LinuxKPI. This function
checks if the bitmap pointed to by the first argument is a subset of
the bitmap pointed to by the second argument. The function returns one
on success and zero on failure.

MFC after: 1 week
Sponsored by: Mellanox Technologies

show more ...


Revision tags: release/11.4.0
# 3d84874d 10-May-2020 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: Really add bitmap_alloc and bitmap_zalloc

This was missing in r360870

Sponsored-by: The FreeBSD Foundation


# ce03b301 10-May-2020 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: Add bitmap_alloc and bitmap_free

This is a simple call to kmallock_array/kfree, therefore include linux/slab.h as
this is where the kmalloc_array/kfree definition is.

Sponsored-by: The Fr

linuxkpi: Add bitmap_alloc and bitmap_free

This is a simple call to kmallock_array/kfree, therefore include linux/slab.h as
this is where the kmalloc_array/kfree definition is.

Sponsored-by: The FreeBSD Foundation
Reviewed by: hselsasky
Differential Revision: https://reviews.freebsd.org/D24794

show more ...


# 26a57869 09-May-2020 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: Add bitmap_copy and bitmap_andnot

bitmap_copy simply copy the bitmaps, no idea why it exists.
bitmap_andnot is similar to bitmap_and but uses !src2.

Sponsored-by: The FreeBSD Foundation
R

linuxkpi: Add bitmap_copy and bitmap_andnot

bitmap_copy simply copy the bitmaps, no idea why it exists.
bitmap_andnot is similar to bitmap_and but uses !src2.

Sponsored-by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D24782

show more ...


Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0
# 7ce7605e 31-May-2018 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement bitmap_complement() in the LinuxKPI.

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


Revision tags: release/10.4.0, release/11.1.0
# c9dd0b48 06-Apr-2017 Hans Petter Selasky <hselasky@FreeBSD.org>

Cleanup the bitmap_xxx() functions in the LinuxKPI:

- Move all bitmap related functions from bitops.h to bitmap.h, similar
to what Linux does.

- Apply some minor code cleanup and simplifications

Cleanup the bitmap_xxx() functions in the LinuxKPI:

- Move all bitmap related functions from bitops.h to bitmap.h, similar
to what Linux does.

- Apply some minor code cleanup and simplifications to optimize the
generated code when using static inline functions.

- Implement the following list of bitmap functions which are needed by
drm-next and ibcore:
- bitmap_find_next_zero_area_off()
- bitmap_find_next_zero_area()
- bitmap_or()
- bitmap_and()
- bitmap_xor()

- Add missing include directives to the qlnxe driver
(davidcs@ has been notified)

MFC after: 1 week
Sponsored by: Mellanox Technologies

show more ...