/linux-master/arch/alpha/include/asm/ |
H A D | word-at-a-time.h | 22 static inline unsigned long has_zero(unsigned long val, unsigned long *bits, const struct word_at_a_time *c) argument 25 *bits = zero_locations; 29 static inline unsigned long prep_zero_mask(unsigned long val, unsigned long bits, const struct word_at_a_time *c) argument 31 return bits; 34 #define create_zero_mask(bits) (bits) 36 static inline unsigned long find_zero(unsigned long bits) argument 40 return __kernel_cttz(bits); 44 bits &= -bits; [all...] |
H A D | extable.h | 34 } bits; member in union:exception_table_entry::exception_fixup 41 if ((_fixup)->fixup.bits.valreg != 31) \ 42 map_reg((_fixup)->fixup.bits.valreg) = 0; \ 43 if ((_fixup)->fixup.bits.errreg != 31) \ 44 map_reg((_fixup)->fixup.bits.errreg) = -EFAULT; \ 45 (pc) + (_fixup)->fixup.bits.nextinsn; \
|
/linux-master/lib/ |
H A D | base64.c | 35 int bits = 0; local 41 bits += 8; 43 bits -= 6; 44 *cp++ = base64_table[(ac >> bits) & 0x3f]; 45 } while (bits >= 6); 47 if (bits) { 48 *cp++ = base64_table[(ac << (6 - bits)) & 0x3f]; 49 bits -= 6; 51 while (bits < 0) { 53 bits 76 int bits = 0; local [all...] |
H A D | crc4.c | 18 * @bits: number of bits in @x to checksum 22 * The @x value is treated as left-aligned, and bits above @bits are ignored 25 uint8_t crc4(uint8_t c, uint64_t x, int bits) argument 30 x &= (1ull << bits) - 1; 32 /* Align to 4-bits */ 33 bits = (bits + 3) & ~0x3; 36 for (i = bits [all...] |
/linux-master/include/sound/ |
H A D | cs8403.h | 24 SND_CS8403_DECL void SND_CS8403_DECODE(struct snd_aes_iec958 *diga, unsigned char bits) argument 26 if (bits & 0x01) { /* consumer */ 27 if (!(bits & 0x02)) 29 if (!(bits & 0x08)) 31 switch (bits & 0x10) { 35 if (!(bits & 0x80)) 37 switch (bits & 0x60) { 43 switch (bits & 0x06) { 50 switch (bits & 0x18) { 56 switch (bits 69 unsigned char bits; local 154 SND_CS8404_DECODE(struct snd_aes_iec958 *diga, unsigned char bits) argument 195 unsigned char bits; local [all...] |
/linux-master/arch/mips/include/asm/octeon/ |
H A D | cvmx-helper-jtag.h | 39 extern uint32_t cvmx_helper_qlm_jtag_shift(int qlm, int bits, uint32_t data); 40 extern void cvmx_helper_qlm_jtag_shift_zeros(int qlm, int bits);
|
/linux-master/tools/perf/util/ |
H A D | sharded_mutex.c | 10 unsigned int bits; local 12 for (bits = 0; ((size_t)1 << bits) < num_shards; bits++) 15 size = sizeof(*result) + sizeof(struct mutex) * (1 << bits); 20 result->cap_bits = bits; 21 for (size_t i = 0; i < ((size_t)1 << bits); i++)
|
H A D | pmu.y | 29 static void perf_pmu__set_format(unsigned long *bits, long from, long to) 36 memset(bits, 0, BITS_TO_BYTES(PERF_PMU_FORMAT_BITS)); 38 __set_bit(b, bits); 46 %type <bits> bit_term 47 %type <bits> bits 52 DECLARE_BITMAP(bits, PERF_PMU_FORMAT_BITS); 63 PP_CONFIG ':' bits 68 PP_CONFIG PP_VALUE ':' bits 73 bits label [all...] |
/linux-master/drivers/gpu/drm/tegra/ |
H A D | hda.c | 14 unsigned int mul, div, bits, channels; local 33 fmt->bits = 8; 37 fmt->bits = 16; 41 fmt->bits = 20; 45 fmt->bits = 24; 49 fmt->bits = 32; 53 bits = (format & AC_FMT_BITS_MASK) >> AC_FMT_BITS_SHIFT; 54 WARN(1, "invalid number of bits: %#x\n", bits); 55 fmt->bits [all...] |
H A D | hda.h | 14 unsigned int bits; member in struct:tegra_hda_format
|
/linux-master/arch/arm/include/asm/ |
H A D | word-at-a-time.h | 20 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, argument 24 *bits = mask; 28 #define prep_zero_mask(a, bits, c) (bits) 30 static inline unsigned long create_zero_mask(unsigned long bits) argument 32 bits = (bits - 1) & ~bits; 33 return bits >> 7;
|
/linux-master/arch/arm64/include/asm/ |
H A D | word-at-a-time.h | 21 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, argument 25 *bits = mask; 29 #define prep_zero_mask(a, bits, c) (bits) 31 static inline unsigned long create_zero_mask(unsigned long bits) argument 33 bits = (bits - 1) & ~bits; 34 return bits >> 7;
|
/linux-master/arch/sh/include/asm/ |
H A D | word-at-a-time.h | 29 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, const struct word_at_a_time *c) argument 32 *bits = mask; 36 static inline unsigned long prep_zero_mask(unsigned long a, unsigned long bits, const struct word_at_a_time *c) argument 38 return bits; 41 static inline unsigned long create_zero_mask(unsigned long bits) argument 43 bits = (bits - 1) & ~bits; 44 return bits >> 7;
|
/linux-master/arch/riscv/include/asm/ |
H A D | word-at-a-time.h | 23 unsigned long *bits, const struct word_at_a_time *c) 26 *bits = mask; 31 unsigned long bits, const struct word_at_a_time *c) 33 return bits; 36 static inline unsigned long create_zero_mask(unsigned long bits) argument 38 bits = (bits - 1) & ~bits; 39 return bits >> 7; 22 has_zero(unsigned long val, unsigned long *bits, const struct word_at_a_time *c) argument 30 prep_zero_mask(unsigned long val, unsigned long bits, const struct word_at_a_time *c) argument
|
/linux-master/arch/x86/include/asm/ |
H A D | word-at-a-time.h | 48 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, const struct word_at_a_time *c) argument 51 *bits = mask; 55 static inline unsigned long prep_zero_mask(unsigned long a, unsigned long bits, const struct word_at_a_time *c) argument 57 return bits; 60 static inline unsigned long create_zero_mask(unsigned long bits) argument 62 bits = (bits - 1) & ~bits; 63 return bits >> 7;
|
/linux-master/tools/include/linux/ |
H A D | hash.h | 16 #define hash_long(val, bits) hash_32(val, bits) 18 #define hash_long(val, bits) hash_64(val, bits) 26 * high bits. Since multiplication propagates changes to the most 27 * significant end only, it is essential that the high bits of the 65 static inline u32 hash_32(u32 val, unsigned int bits) argument 67 /* High bits are more random, so use them. */ 68 return __hash_32(val) >> (32 - bits); 74 static __always_inline u32 hash_64_generic(u64 val, unsigned int bits) argument 85 hash_ptr(const void *ptr, unsigned int bits) argument [all...] |
/linux-master/include/linux/ |
H A D | hash.h | 16 #define hash_long(val, bits) hash_32(val, bits) 18 #define hash_long(val, bits) hash_64(val, bits) 26 * high bits. Since multiplication propagates changes to the most 27 * significant end only, it is essential that the high bits of the 65 static inline u32 hash_32(u32 val, unsigned int bits) argument 67 /* High bits are more random, so use them. */ 68 return __hash_32(val) >> (32 - bits); 74 static __always_inline u32 hash_64_generic(u64 val, unsigned int bits) argument 85 hash_ptr(const void *ptr, unsigned int bits) argument [all...] |
H A D | crc4.h | 7 extern uint8_t crc4(uint8_t c, uint64_t x, int bits);
|
H A D | nodemask_types.h | 8 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
|
/linux-master/tools/lib/ |
H A D | bitmap.c | 8 unsigned int __bitmap_weight(const unsigned long *bitmap, int bits) argument 10 unsigned int k, w = 0, lim = bits/BITS_PER_LONG; 15 if (bits % BITS_PER_LONG) 16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); 22 const unsigned long *bitmap2, int bits) 25 int nr = BITS_TO_LONGS(bits); 61 const unsigned long *bitmap2, unsigned int bits) 64 unsigned int lim = bits/BITS_PER_LONG; 69 if (bits % BITS_PER_LONG) 71 BITMAP_LAST_WORD_MASK(bits)); 21 __bitmap_or(unsigned long *dst, const unsigned long *bitmap1, const unsigned long *bitmap2, int bits) argument 60 __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, const unsigned long *bitmap2, unsigned int bits) argument 75 __bitmap_equal(const unsigned long *bitmap1, const unsigned long *bitmap2, unsigned int bits) argument 90 __bitmap_intersects(const unsigned long *bitmap1, const unsigned long *bitmap2, unsigned int bits) argument [all...] |
/linux-master/drivers/spi/ |
H A D | spi-bitbang-txrx.h | 51 u32 word, u8 bits) 55 u32 oldbit = (!(word & (1<<(bits-1)))) << 31; 57 for (word <<= (32 - bits); likely(bits); bits--) { 83 u32 word, u8 bits) 87 u32 oldbit = (!(word & (1<<(bits-1)))) << 31; 89 for (word <<= (32 - bits); likely(bits); bits 49 bitbang_txrx_be_cpha0(struct spi_device *spi, unsigned nsecs, unsigned cpol, unsigned flags, u32 word, u8 bits) argument 81 bitbang_txrx_be_cpha1(struct spi_device *spi, unsigned nsecs, unsigned cpol, unsigned flags, u32 word, u8 bits) argument 113 bitbang_txrx_le_cpha0(struct spi_device *spi, unsigned int nsecs, unsigned int cpol, unsigned int flags, u32 word, u8 bits) argument 146 bitbang_txrx_le_cpha1(struct spi_device *spi, unsigned int nsecs, unsigned int cpol, unsigned int flags, u32 word, u8 bits) argument [all...] |
/linux-master/drivers/block/drbd/ |
H A D | drbd_vli.h | 29 * gives the number of set or unset bits. 35 * Still, there may be areas where the polarity flips every few bits, 44 * For some cases, we produce more code bits than plaintext input. 76 * Number of data bits follow fibonacci sequence, with the exception of the 78 * encoding bit polarity runlength is 1 plain bits => 2 code bits. 79 prefix data bits max val N�� data bits 107 #................. s ........................... plain bits .......... 112 /* LEVEL: (total bits, prefi 207 bitstream_cursor_advance(struct bitstream_cursor *cur, unsigned int bits) argument 248 bitstream_put_bits(struct bitstream *bs, u64 val, const unsigned int bits) argument 281 bitstream_get_bits(struct bitstream *bs, u64 *out, int bits) argument 331 int bits = __vli_encode_bits(&code, in); local [all...] |
/linux-master/include/asm-generic/ |
H A D | word-at-a-time.h | 94 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, const struct word_at_a_time *c) argument 97 *bits = mask; 101 static inline unsigned long prep_zero_mask(unsigned long a, unsigned long bits, const struct word_at_a_time *c) argument 103 return bits; 106 static inline unsigned long create_zero_mask(unsigned long bits) argument 108 bits = (bits - 1) & ~bits; 109 return bits >> 7;
|
/linux-master/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_rf_rf2959.c | 32 static int bits(u32 rw, int from, int to) 41 return bits(rw, bit, bit); 46 int reg = bits(rw, 18, 22); 47 int rw_flag = bits(rw, 23, 23); 54 bits(rw, 14, 15), bit(rw, 3), bit(rw, 2), bit(rw, 1), 63 bits(rw, 7, 9), bits(rw, 4, 6), bits(rw, 0, 3)); 67 bits(rw, 6, 17), bits(r [all...] |
/linux-master/fs/ocfs2/cluster/ |
H A D | masklog.h | 16 * maintained with help from /proc. If any of the bits match the message is 24 * one of the longs. This leads to having infrequently given bits that are 25 * frequently matched in the high bits. 37 * indication of which bits are allowed (allow) or denied (off/deny). 51 * Echoing allow/deny/off string into the logmask files can flip the bits 59 * The debugfs.ocfs2 tool can also flip the bits with the -l option: 67 /* bits that are frequently given and infrequently matched in the low word */ 87 /* bits that are infrequently given and frequently matched in the high word */ 118 #define __mlog_test_u64(mask, bits) \ 119 ( (u32)(mask & 0xffffffff) & bits [all...] |