Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/linux-4.19.296/include/sound/
Dcs8403.h39 SND_CS8403_DECL void SND_CS8403_DECODE(struct snd_aes_iec958 *diga, unsigned char bits) in SND_CS8403_DECODE() argument
41 if (bits & 0x01) { /* consumer */ in SND_CS8403_DECODE()
42 if (!(bits & 0x02)) in SND_CS8403_DECODE()
44 if (!(bits & 0x08)) in SND_CS8403_DECODE()
46 switch (bits & 0x10) { in SND_CS8403_DECODE()
50 if (!(bits & 0x80)) in SND_CS8403_DECODE()
52 switch (bits & 0x60) { in SND_CS8403_DECODE()
58 switch (bits & 0x06) { in SND_CS8403_DECODE()
65 switch (bits & 0x18) { in SND_CS8403_DECODE()
71 switch (bits & 0x60) { in SND_CS8403_DECODE()
[all …]
Dpcm_params.h60 if (mask->bits[i]) in snd_mask_empty()
69 if (mask->bits[i]) in snd_mask_min()
70 return __ffs(mask->bits[i]) + (i << 5); in snd_mask_min()
79 if (mask->bits[i]) in snd_mask_max()
80 return __fls(mask->bits[i]) + (i << 5); in snd_mask_max()
87 mask->bits[MASK_OFS(val)] |= MASK_BIT(val); in snd_mask_set()
99 mask->bits[MASK_OFS(val)] &= ~MASK_BIT(val); in snd_mask_reset()
107 mask->bits[MASK_OFS(i)] |= MASK_BIT(i); in snd_mask_set_range()
115 mask->bits[MASK_OFS(i)] &= ~MASK_BIT(i); in snd_mask_reset_range()
121 v = mask->bits[MASK_OFS(val)] & MASK_BIT(val); in snd_mask_leave()
[all …]
/linux-4.19.296/lib/zlib_inflate/
Dinffast.c83 unsigned bits; /* local strm->bits */ in inflate_fast() local
110 bits = state->bits; in inflate_fast()
119 if (bits < 15) { in inflate_fast()
120 hold += (unsigned long)(*in++) << bits; in inflate_fast()
121 bits += 8; in inflate_fast()
122 hold += (unsigned long)(*in++) << bits; in inflate_fast()
123 bits += 8; in inflate_fast()
127 op = (unsigned)(this.bits); in inflate_fast()
129 bits -= op; in inflate_fast()
138 if (bits < op) { in inflate_fast()
[all …]
Dinflate.c37 state->bits = 0; in zlib_inflateReset()
153 if (state->mode == STORED && state->bits == 0) { in zlib_inflateSyncPacket()
173 bits = state->bits; \
184 state->bits = bits; \
191 bits = 0; \
200 hold += (unsigned long)(*next++) << bits; \
201 bits += 8; \
208 while (bits < (unsigned)(n)) \
220 bits -= (unsigned)(n); \
226 hold >>= bits & 7; \
[all …]
/linux-4.19.296/include/linux/
Dnodemask.h98 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
115 return m ? m->bits : NULL; in __nodemask_pr_bits()
130 set_bit(node, dstp->bits); in __node_set()
136 clear_bit(node, dstp->bits); in __node_clear()
142 bitmap_fill(dstp->bits, nbits); in __nodes_setall()
148 bitmap_zero(dstp->bits, nbits); in __nodes_clear()
152 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits)
158 return test_and_set_bit(node, addr->bits); in __node_test_and_set()
166 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_and()
174 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_or()
[all …]
Dhash.h16 #define hash_long(val, bits) hash_32(val, bits) argument
18 #define hash_long(val, bits) hash_64(val, bits) argument
68 static inline u32 hash_32_generic(u32 val, unsigned int bits) in hash_32_generic() argument
71 return __hash_32(val) >> (32 - bits); in hash_32_generic()
77 static __always_inline u32 hash_64_generic(u64 val, unsigned int bits) in hash_64_generic() argument
81 return val * GOLDEN_RATIO_64 >> (64 - bits); in hash_64_generic()
84 return hash_32((u32)val ^ __hash_32(val >> 32), bits); in hash_64_generic()
88 static inline u32 hash_ptr(const void *ptr, unsigned int bits) in hash_ptr() argument
90 return hash_long((unsigned long)ptr, bits); in hash_ptr()
Dhashtable.h16 #define DEFINE_HASHTABLE(name, bits) \ argument
17 struct hlist_head name[1 << (bits)] = \
18 { [0 ... ((1 << (bits)) - 1)] = HLIST_HEAD_INIT }
20 #define DEFINE_READ_MOSTLY_HASHTABLE(name, bits) \ argument
21 struct hlist_head name[1 << (bits)] __read_mostly = \
22 { [0 ... ((1 << (bits)) - 1)] = HLIST_HEAD_INIT }
24 #define DECLARE_HASHTABLE(name, bits) \ argument
25 struct hlist_head name[1 << (bits)]
31 #define hash_min(val, bits) \ argument
32 (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
/linux-4.19.296/drivers/iio/adc/
Dti-ads7950.c49 #define TI_ADS7950_EXTRACT(val, dec, bits) \ argument
50 (((val) >> (dec)) & ((1 << (bits)) - 1))
99 #define TI_ADS7950_V_CHAN(index, bits) \ argument
111 .realbits = bits, \
113 .shift = 12 - (bits), \
118 #define DECLARE_TI_ADS7950_4_CHANNELS(name, bits) \ argument
120 TI_ADS7950_V_CHAN(0, bits), \
121 TI_ADS7950_V_CHAN(1, bits), \
122 TI_ADS7950_V_CHAN(2, bits), \
123 TI_ADS7950_V_CHAN(3, bits), \
[all …]
Dmax1363.c144 u8 bits; member
391 if (st->chip_info->bits != 8) { in max1363_read_single_chan()
399 ((1 << st->chip_info->bits) - 1); in max1363_read_single_chan()
433 *val2 = st->chip_info->bits; in max1363_read_raw()
463 #define MAX1363_CHAN_U(num, addr, si, bits, ev_spec, num_ev_spec) \ argument
474 .realbits = bits, \
475 .storagebits = (bits > 8) ? 16 : 8, \
484 #define MAX1363_CHAN_B(num, num2, addr, si, bits, ev_spec, num_ev_spec) \ argument
497 .realbits = bits, \
498 .storagebits = (bits > 8) ? 16 : 8, \
[all …]
Dad7476.c138 #define _AD7476_CHAN(bits, _shift, _info_mask_sep) \ argument
146 .realbits = (bits), \
153 #define ADC081S_CHAN(bits) _AD7476_CHAN((bits), 12 - (bits), \ argument
155 #define AD7476_CHAN(bits) _AD7476_CHAN((bits), 13 - (bits), \ argument
157 #define AD7940_CHAN(bits) _AD7476_CHAN((bits), 15 - (bits), \ argument
159 #define AD7091R_CHAN(bits) _AD7476_CHAN((bits), 16 - (bits), 0) argument
/linux-4.19.296/fs/jffs2/
Dcompr_rubin.c44 int bits[8]; member
88 static void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument
98 rs->bits[c] = bits[c]; in init_rubin()
151 static void init_decode(struct rubin_state *rs, int div, int *bits) in init_decode() argument
153 init_rubin(rs, div, bits); in init_decode()
168 int c, bits = 0; in __do_decode() local
176 bits++; in __do_decode()
185 rs->bit_number += bits; in __do_decode()
196 } while (--bits); in __do_decode()
237 ret = encode(rs, rs->bit_divider-rs->bits[i], in out_byte()
[all …]
/linux-4.19.296/fs/ocfs2/cluster/
Dmasklog.h134 #define __mlog_test_u64(mask, bits) \ argument
135 ( (u32)(mask & 0xffffffff) & bits.words[0] || \
136 ((u64)(mask) >> 32) & bits.words[1] )
137 #define __mlog_set_u64(mask, bits) do { \ argument
138 bits.words[0] |= (u32)(mask & 0xffffffff); \
139 bits.words[1] |= (u64)(mask) >> 32; \
141 #define __mlog_clear_u64(mask, bits) do { \ argument
142 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \
143 bits.words[1] &= ~((u64)(mask) >> 32); \
154 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument
[all …]
/linux-4.19.296/fs/btrfs/
Dstruct-funcs.c38 #define DEFINE_BTRFS_SETGET_BITS(bits) \ argument
39 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \
50 int size = sizeof(u##bits); \
51 u##bits res; \
58 res = get_unaligned_le##bits(p + off); \
64 __le##bits leres; \
67 return le##bits##_to_cpu(leres); \
70 res = get_unaligned_le##bits(p + off); \
78 void btrfs_set_token_##bits(struct extent_buffer *eb, \
80 u##bits val, \
[all …]
/linux-4.19.296/include/trace/events/
Dfsi_master_gpio.h12 TP_PROTO(const struct fsi_master_gpio *master, int bits, uint64_t msg),
13 TP_ARGS(master, bits, msg),
16 __field(int, bits)
21 __entry->bits = bits;
22 __entry->msg = msg & ((1ull<<bits) - 1);
26 (__entry->bits + 3) / 4,
28 __entry->bits
33 TP_PROTO(const struct fsi_master_gpio *master, int bits, uint64_t msg),
34 TP_ARGS(master, bits, msg),
37 __field(int, bits)
[all …]
/linux-4.19.296/include/linux/iio/imu/
Dadis.h161 #define ADIS_VOLTAGE_CHAN(addr, si, chan, name, info_all, bits) { \ argument
173 .realbits = (bits), \
179 #define ADIS_SUPPLY_CHAN(addr, si, info_all, bits) \ argument
180 ADIS_VOLTAGE_CHAN(addr, si, 0, "supply", info_all, bits)
182 #define ADIS_AUX_ADC_CHAN(addr, si, info_all, bits) \ argument
183 ADIS_VOLTAGE_CHAN(addr, si, 1, NULL, info_all, bits)
185 #define ADIS_TEMP_CHAN(addr, si, info_all, bits) { \ argument
197 .realbits = (bits), \
203 #define ADIS_MOD_CHAN(_type, mod, addr, si, info_sep, info_all, bits) { \ argument
215 .realbits = (bits), \
[all …]
/linux-4.19.296/include/asm-generic/
Dword-at-a-time.h93 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, const struct word_at_a_t… in has_zero() argument
96 *bits = mask; in has_zero()
100 static inline unsigned long prep_zero_mask(unsigned long a, unsigned long bits, const struct word_a… in prep_zero_mask() argument
102 return bits; in prep_zero_mask()
105 static inline unsigned long create_zero_mask(unsigned long bits) in create_zero_mask() argument
107 bits = (bits - 1) & ~bits; in create_zero_mask()
108 return bits >> 7; in create_zero_mask()
/linux-4.19.296/lib/
Dbitmap.c52 const unsigned long *bitmap2, unsigned int bits) in __bitmap_equal() argument
54 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
59 if (bits % BITS_PER_LONG) in __bitmap_equal()
60 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
67 void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int bits) in __bitmap_complement() argument
69 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement()
157 const unsigned long *bitmap2, unsigned int bits) in __bitmap_and() argument
160 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
165 if (bits % BITS_PER_LONG) in __bitmap_and()
167 BITMAP_LAST_WORD_MASK(bits)); in __bitmap_and()
[all …]
Dtest_printf.c430 unsigned long *bits = kcalloc(BITS_TO_LONGS(nbits), sizeof(long), GFP_KERNEL); in large_bitmap() local
431 if (!bits) in large_bitmap()
434 bitmap_set(bits, 1, 20); in large_bitmap()
435 bitmap_set(bits, 60000, 15); in large_bitmap()
436 test("1-20,60000-60014", "%*pbl", nbits, bits); in large_bitmap()
437 kfree(bits); in large_bitmap()
443 DECLARE_BITMAP(bits, 20); in bitmap()
447 bitmap_zero(bits, 20); in bitmap()
448 test("00000|00000", "%20pb|%*pb", bits, 20, bits); in bitmap()
449 test("|", "%20pbl|%*pbl", bits, 20, bits); in bitmap()
[all …]
Dcrc4.c27 uint8_t crc4(uint8_t c, uint64_t x, int bits) in crc4() argument
32 x &= (1ull << bits) - 1; in crc4()
35 bits = (bits + 3) & ~0x3; in crc4()
38 for (i = bits - 4; i >= 0; i -= 4) in crc4()
/linux-4.19.296/drivers/media/rc/
Dir-imon-decoder.c43 if (imon->bits == 0x299115b7) in ir_imon_decode_scancode()
46 if ((imon->bits & 0xfc0000ff) == 0x680000b7) { in ir_imon_decode_scancode()
50 buf = imon->bits >> 16; in ir_imon_decode_scancode()
53 if (imon->bits & 0x02000000) in ir_imon_decode_scancode()
55 buf = imon->bits >> 8; in ir_imon_decode_scancode()
58 if (imon->bits & 0x01000000) in ir_imon_decode_scancode()
63 imon->bits = rel_y > 0 ? in ir_imon_decode_scancode()
67 imon->bits = rel_x > 0 ? in ir_imon_decode_scancode()
74 .scancode = imon->bits, in ir_imon_decode_scancode()
80 input_event(imon->idev, EV_MSC, MSC_SCAN, imon->bits); in ir_imon_decode_scancode()
[all …]
Dir-rc5-decoder.c83 data->bits <<= 1; in ir_rc5_decode()
85 data->bits |= 1; in ir_rc5_decode()
119 xdata = (data->bits & 0x0003F) >> 0; in ir_rc5_decode()
120 command = (data->bits & 0x00FC0) >> 6; in ir_rc5_decode()
121 system = (data->bits & 0x1F000) >> 12; in ir_rc5_decode()
122 toggle = (data->bits & 0x20000) ? 1 : 0; in ir_rc5_decode()
123 command += (data->bits & 0x40000) ? 0 : 0x40; in ir_rc5_decode()
134 command = (data->bits & 0x0003F) >> 0; in ir_rc5_decode()
135 system = (data->bits & 0x007C0) >> 6; in ir_rc5_decode()
136 toggle = (data->bits & 0x00800) ? 1 : 0; in ir_rc5_decode()
[all …]
/linux-4.19.296/drivers/cpufreq/
Dpowernow-k7.c64 } bits; member
223 if (fidvidctl.bits.FID != fid) { in change_FID()
224 fidvidctl.bits.SGTC = latency; in change_FID()
225 fidvidctl.bits.FID = fid; in change_FID()
226 fidvidctl.bits.VIDC = 0; in change_FID()
227 fidvidctl.bits.FIDC = 1; in change_FID()
238 if (fidvidctl.bits.VID != vid) { in change_VID()
239 fidvidctl.bits.SGTC = latency; in change_VID()
240 fidvidctl.bits.VID = vid; in change_VID()
241 fidvidctl.bits.FIDC = 0; in change_VID()
[all …]
/linux-4.19.296/drivers/edac/
Dti_edac.c134 int bits; in ti_edac_setup_dimm() local
143 bits = ((val & SDRAM_PAGESIZE_MASK) >> SDRAM_PAGESIZE_SHIFT) + 8; in ti_edac_setup_dimm()
144 bits += ((val & SDRAM_ROWSIZE_MASK) >> SDRAM_ROWSIZE_SHIFT) + 9; in ti_edac_setup_dimm()
145 bits += (val & SDRAM_IBANK_MASK) >> SDRAM_IBANK_SHIFT; in ti_edac_setup_dimm()
148 bits++; in ti_edac_setup_dimm()
151 bits += 2; in ti_edac_setup_dimm()
155 bits = 16; in ti_edac_setup_dimm()
156 bits += ((val & SDRAM_K2_PAGESIZE_MASK) >> in ti_edac_setup_dimm()
158 bits += (val & SDRAM_K2_IBANK_MASK) >> SDRAM_K2_IBANK_SHIFT; in ti_edac_setup_dimm()
159 bits += (val & SDRAM_K2_EBANK_MASK) >> SDRAM_K2_EBANK_SHIFT; in ti_edac_setup_dimm()
[all …]
/linux-4.19.296/drivers/iio/dac/
Dad5686.c183 #define AD5868_CHANNEL(chan, addr, bits, _shift) { \ argument
193 .realbits = (bits), \
200 #define DECLARE_AD5693_CHANNELS(name, bits, _shift) \ argument
202 AD5868_CHANNEL(0, 0, bits, _shift), \
205 #define DECLARE_AD5686_CHANNELS(name, bits, _shift) \ argument
207 AD5868_CHANNEL(0, 1, bits, _shift), \
208 AD5868_CHANNEL(1, 2, bits, _shift), \
209 AD5868_CHANNEL(2, 4, bits, _shift), \
210 AD5868_CHANNEL(3, 8, bits, _shift), \
213 #define DECLARE_AD5676_CHANNELS(name, bits, _shift) \ argument
[all …]
/linux-4.19.296/drivers/media/radio/
Dradio-maxiradio.c86 u8 bits = 0; in maxiradio_tea575x_set_pins() local
88 bits |= (pins & TEA575X_DATA) ? data : 0; in maxiradio_tea575x_set_pins()
89 bits |= (pins & TEA575X_CLK) ? clk : 0; in maxiradio_tea575x_set_pins()
90 bits |= (pins & TEA575X_WREN) ? wren : 0; in maxiradio_tea575x_set_pins()
91 bits |= power; in maxiradio_tea575x_set_pins()
93 outb(bits, dev->io); in maxiradio_tea575x_set_pins()
101 u8 bits = inb(dev->io); in maxiradio_tea575x_get_pins() local
103 return ((bits & data) ? TEA575X_DATA : 0) | in maxiradio_tea575x_get_pins()
104 ((bits & mo_st) ? TEA575X_MOST : 0); in maxiradio_tea575x_get_pins()

12345678910>>...12