Ignore:
Timestamp:
Jan 1, 2021, 5:31:48 AM (5 years ago)
Author:
Paul Smedley
Message:

Add source for uniaud32 based on code from linux kernel 5.4.86

Location:
GPL/branches/uniaud32-next
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/asm/bitops.h

    r442 r615  
    9393extern int __constant_test_bit(int nr, const volatile void * addr);
    9494extern int __test_bit(int nr, volatile void * addr);
    95 extern int find_first_zero_bit(void * addr, unsigned size);
    96 extern int find_next_zero_bit (void * addr, int size, int offset);
     95/**
     96 * find_first_zero_bit - find the first cleared bit in a memory region
     97 * @addr: The address to start the search at
     98 * @size: The maximum size to search
     99 *
     100 * Returns the bit number of the first cleared bit.
     101 */
     102extern unsigned long find_first_zero_bit(const unsigned long *addr,
     103                                         unsigned long size);
     104
     105/**
     106 * find_next_zero_bit - find the next cleared bit in a memory region
     107 * @addr: The address to base the search on
     108 * @offset: The bitnumber to start searching at
     109 * @size: The bitmap size in bits
     110 */
     111extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
     112                long size, unsigned long offset);
     113
    97114
    98115/*
     
    101118#define test_bit(nr, addr) (((1UL << (nr & 31)) & (((const unsigned int *) addr)[nr >> 5])) != 0)
    102119
     120extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
     121                size, unsigned long offset);
     122
    103123#endif /* _ASM_BITOPS_H */
Note: See TracChangeset for help on using the changeset viewer.