Home
last modified time | relevance | path

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

12345678910>>...86

/Linux-v5.4/include/sound/
Dcs8403.h24 SND_CS8403_DECL void SND_CS8403_DECODE(struct snd_aes_iec958 *diga, unsigned char bits) in SND_CS8403_DECODE() argument
26 if (bits & 0x01) { /* consumer */ in SND_CS8403_DECODE()
27 if (!(bits & 0x02)) in SND_CS8403_DECODE()
29 if (!(bits & 0x08)) in SND_CS8403_DECODE()
31 switch (bits & 0x10) { in SND_CS8403_DECODE()
35 if (!(bits & 0x80)) in SND_CS8403_DECODE()
37 switch (bits & 0x60) { in SND_CS8403_DECODE()
43 switch (bits & 0x06) { in SND_CS8403_DECODE()
50 switch (bits & 0x18) { in SND_CS8403_DECODE()
56 switch (bits & 0x60) { in SND_CS8403_DECODE()
[all …]
/Linux-v5.4/Documentation/media/uapi/v4l/
Dpixfmt-srggb10-ipu3.rst25 sRGB / Bayer formats with 10 bits per sample with every 25 pixels packed
26 to 32 bytes leaving 6 most significant bits padding in the last byte.
41 - G\ :sub:`0001low`\ (bits 7--2)
43 B\ :sub:`0000high`\ (bits 1--0)
44 - B\ :sub:`0002low`\ (bits 7--4)
46 G\ :sub:`0001high`\ (bits 3--0)
47 - G\ :sub:`0003low`\ (bits 7--6)
49 B\ :sub:`0002high`\ (bits 5--0)
53 - G\ :sub:`0005low`\ (bits 7--2)
55 B\ :sub:`0004high`\ (bits 1--0)
[all …]
Dpixfmt-srggb14p.rst31 bits per colour. Every four consecutive samples are packed into seven
32 bytes. Each of the first four bytes contain the eight high order bits
34 significants bits of each pixel, in the same order.
68 - G\ :sub:`01low bits 1--0`\ (bits 7--6)
70 B\ :sub:`00low bits 5--0`\ (bits 5--0)
72 - R\ :sub:`02low bits 3--0`\ (bits 7--4)
74 G\ :sub:`01low bits 5--2`\ (bits 3--0)
76 - G\ :sub:`03low bits 5--0`\ (bits 7--2)
78 R\ :sub:`02low bits 5--4`\ (bits 1--0)
92 - R\ :sub:`01low bits 1--0`\ (bits 7--6)
[all …]
/Linux-v5.4/drivers/net/wireless/zydas/zd1211rw/
Dzd_rf_rf2959.c32 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(rw, 0, 5));
70 PDEBUG("reg3 IFPLL3 num %d", bits(rw, 0, 17));
74 bits(rw, 8, 16), bits(rw, 4, 7), bits(rw, 0, 3));
82 bits(rw, 7, 9), bits(rw, 4, 6), bits(rw, 0,3));
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/leds/
Dleds-lp55xx.txt41 clock-mode = /bits/ 8 <2>;
44 led-cur = /bits/ 8 <0x2f>;
45 max-cur = /bits/ 8 <0x5f>;
50 led-cur = /bits/ 8 <0x2f>;
51 max-cur = /bits/ 8 <0x5f>;
55 led-cur = /bits/ 8 <0x2f>;
56 max-cur = /bits/ 8 <0x5f>;
75 clock-mode = /bits/ 8 <1>;
79 led-cur = /bits/ 8 <0x14>;
80 max-cur = /bits/ 8 <0x20>;
[all …]
/Linux-v5.4/arch/arm64/boot/dts/amlogic/
Dmeson-g12b-a311d.dtsi15 opp-hz = /bits/ 64 <100000000>;
20 opp-hz = /bits/ 64 <250000000>;
25 opp-hz = /bits/ 64 <500000000>;
30 opp-hz = /bits/ 64 <667000000>;
35 opp-hz = /bits/ 64 <1000000000>;
40 opp-hz = /bits/ 64 <1200000000>;
45 opp-hz = /bits/ 64 <1398000000>;
50 opp-hz = /bits/ 64 <1512000000>;
55 opp-hz = /bits/ 64 <1608000000>;
60 opp-hz = /bits/ 64 <1704000000>;
[all …]
Dmeson-g12b-s922x.dtsi15 opp-hz = /bits/ 64 <100000000>;
20 opp-hz = /bits/ 64 <250000000>;
25 opp-hz = /bits/ 64 <500000000>;
30 opp-hz = /bits/ 64 <667000000>;
35 opp-hz = /bits/ 64 <1000000000>;
40 opp-hz = /bits/ 64 <1200000000>;
45 opp-hz = /bits/ 64 <1398000000>;
50 opp-hz = /bits/ 64 <1512000000>;
55 opp-hz = /bits/ 64 <1608000000>;
60 opp-hz = /bits/ 64 <1704000000>;
[all …]
/Linux-v5.4/fs/btrfs/
Dstruct-funcs.c40 #define DEFINE_BTRFS_SETGET_BITS(bits) \ argument
41 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \
52 int size = sizeof(u##bits); \
53 u##bits res; \
62 res = get_unaligned_le##bits(p + off); \
68 __le##bits leres; \
71 return le##bits##_to_cpu(leres); \
74 res = get_unaligned_le##bits(p + off); \
79 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \
89 int size = sizeof(u##bits); \
[all …]
/Linux-v5.4/drivers/video/fbdev/core/
Dsyscopyarea.c29 const unsigned long *src, unsigned src_idx, int bits, unsigned n) in bitcpy() argument
36 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitcpy()
40 if (dst_idx+n <= bits) { in bitcpy()
52 n -= bits - dst_idx; in bitcpy()
56 n /= bits; in bitcpy()
80 right = shift & (bits - 1); in bitcpy()
81 left = -shift & (bits - 1); in bitcpy()
83 if (dst_idx+n <= bits) { in bitcpy()
90 } else if (src_idx+n <= bits) { in bitcpy()
114 n -= bits - dst_idx; in bitcpy()
[all …]
Dcfbcopyarea.c47 const unsigned long __iomem *src, unsigned src_idx, int bits, in bitcpy() argument
58 memmove((char *)dst + ((dst_idx & (bits - 1))) / 8, in bitcpy()
59 (char *)src + ((src_idx & (bits - 1))) / 8, n / 8); in bitcpy()
64 last = ~fb_shifted_pixels_mask_long(p, (dst_idx+n) % bits, bswapmask); in bitcpy()
69 if (dst_idx+n <= bits) { in bitcpy()
82 n -= bits - dst_idx; in bitcpy()
86 n /= bits; in bitcpy()
110 int const left = shift & (bits - 1); in bitcpy()
111 int const right = -shift & (bits - 1); in bitcpy()
113 if (dst_idx+n <= bits) { in bitcpy()
[all …]
Dsysfillrect.c26 unsigned long pat, unsigned n, int bits) in bitfill_aligned() argument
34 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitfill_aligned()
36 if (dst_idx+n <= bits) { in bitfill_aligned()
48 n -= bits - dst_idx; in bitfill_aligned()
52 n /= bits; in bitfill_aligned()
82 unsigned long pat, int left, int right, unsigned n, int bits) in bitfill_unaligned() argument
90 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitfill_unaligned()
92 if (dst_idx+n <= bits) { in bitfill_unaligned()
104 n -= bits - dst_idx; in bitfill_unaligned()
108 n /= bits; in bitfill_unaligned()
[all …]
/Linux-v5.4/arch/arm64/boot/dts/rockchip/
Drk3399-op1-opp.dtsi12 opp-hz = /bits/ 64 <408000000>;
17 opp-hz = /bits/ 64 <600000000>;
21 opp-hz = /bits/ 64 <816000000>;
25 opp-hz = /bits/ 64 <1008000000>;
29 opp-hz = /bits/ 64 <1200000000>;
33 opp-hz = /bits/ 64 <1416000000>;
37 opp-hz = /bits/ 64 <1512000000>;
47 opp-hz = /bits/ 64 <408000000>;
52 opp-hz = /bits/ 64 <600000000>;
56 opp-hz = /bits/ 64 <816000000>;
[all …]
Drk3399-opp.dtsi12 opp-hz = /bits/ 64 <408000000>;
17 opp-hz = /bits/ 64 <600000000>;
21 opp-hz = /bits/ 64 <816000000>;
25 opp-hz = /bits/ 64 <1008000000>;
29 opp-hz = /bits/ 64 <1200000000>;
33 opp-hz = /bits/ 64 <1416000000>;
43 opp-hz = /bits/ 64 <408000000>;
48 opp-hz = /bits/ 64 <600000000>;
52 opp-hz = /bits/ 64 <816000000>;
56 opp-hz = /bits/ 64 <1008000000>;
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/staging/comedi/drivers/
Dc6xdigio.c71 unsigned int *bits, in c6xdigio_get_encoder_bits() argument
81 *bits = val; in c6xdigio_get_encoder_bits()
90 unsigned int bits; in c6xdigio_pwm_write() local
97 bits = (val >> 0) & 0x03; in c6xdigio_pwm_write()
98 c6xdigio_write_data(dev, cmd | bits | (0 << 2), 0x00); in c6xdigio_pwm_write()
99 bits = (val >> 2) & 0x03; in c6xdigio_pwm_write()
100 c6xdigio_write_data(dev, cmd | bits | (1 << 2), 0x80); in c6xdigio_pwm_write()
101 bits = (val >> 4) & 0x03; in c6xdigio_pwm_write()
102 c6xdigio_write_data(dev, cmd | bits | (0 << 2), 0x00); in c6xdigio_pwm_write()
103 bits = (val >> 6) & 0x03; in c6xdigio_pwm_write()
[all …]
/Linux-v5.4/drivers/block/drbd/
Ddrbd_vli.h207 static inline void bitstream_cursor_advance(struct bitstream_cursor *cur, unsigned int bits) in bitstream_cursor_advance() argument
209 bits += cur->bit; in bitstream_cursor_advance()
210 cur->b = cur->b + (bits >> 3); in bitstream_cursor_advance()
211 cur->bit = bits & 7; in bitstream_cursor_advance()
248 static inline int bitstream_put_bits(struct bitstream *bs, u64 val, const unsigned int bits) in bitstream_put_bits() argument
253 if (bits == 0) in bitstream_put_bits()
256 if ((bs->cur.b + ((bs->cur.bit + bits -1) >> 3)) - bs->buf >= bs->buf_len) in bitstream_put_bits()
260 if (bits < 64) in bitstream_put_bits()
261 val &= ~0ULL >> (64 - bits); in bitstream_put_bits()
265 for (tmp = 8 - bs->cur.bit; tmp < bits; tmp += 8) in bitstream_put_bits()
[all …]
/Linux-v5.4/arch/alpha/include/asm/
Dword-at-a-time.h22 static inline unsigned long has_zero(unsigned long val, unsigned long *bits, const struct word_at_a… in has_zero() argument
25 *bits = zero_locations; in has_zero()
29 static inline unsigned long prep_zero_mask(unsigned long val, unsigned long bits, const struct word… in prep_zero_mask() argument
31 return bits; in prep_zero_mask()
34 #define create_zero_mask(bits) (bits) argument
36 static inline unsigned long find_zero(unsigned long bits) in find_zero() argument
40 return __kernel_cttz(bits); in find_zero()
44 bits &= -bits; in find_zero()
46 t1 = bits & 0xf0; in find_zero()
47 t2 = bits & 0xcc; in find_zero()
[all …]
/Linux-v5.4/lib/zlib_inflate/
Dinffast.c104 unsigned bits; /* local strm->bits */ in inflate_fast() local
131 bits = state->bits; in inflate_fast()
140 if (bits < 15) { in inflate_fast()
141 hold += (unsigned long)(PUP(in)) << bits; in inflate_fast()
142 bits += 8; in inflate_fast()
143 hold += (unsigned long)(PUP(in)) << bits; in inflate_fast()
144 bits += 8; in inflate_fast()
148 op = (unsigned)(this.bits); in inflate_fast()
150 bits -= op; in inflate_fast()
159 if (bits < op) { in inflate_fast()
[all …]
/Linux-v5.4/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-v5.4/Documentation/devicetree/bindings/opp/
Dqcom-nvmem-cpufreq.txt148 opp-hz = /bits/ 64 <307200000>;
154 opp-hz = /bits/ 64 <384000000>;
160 opp-hz = /bits/ 64 <422400000>;
166 opp-hz = /bits/ 64 <460800000>;
172 opp-hz = /bits/ 64 <480000000>;
178 opp-hz = /bits/ 64 <537600000>;
184 opp-hz = /bits/ 64 <556800000>;
190 opp-hz = /bits/ 64 <614400000>;
196 opp-hz = /bits/ 64 <652800000>;
202 opp-hz = /bits/ 64 <691200000>;
[all …]
/Linux-v5.4/arch/arm64/boot/dts/exynos/
Dexynos5433-bus.dtsi95 opp-hz = /bits/ 64 <400000000>;
99 opp-hz = /bits/ 64 <267000000>;
103 opp-hz = /bits/ 64 <200000000>;
107 opp-hz = /bits/ 64 <160000000>;
111 opp-hz = /bits/ 64 <134000000>;
115 opp-hz = /bits/ 64 <100000000>;
124 opp-hz = /bits/ 64 <267000000>;
127 opp-hz = /bits/ 64 <200000000>;
130 opp-hz = /bits/ 64 <160000000>;
133 opp-hz = /bits/ 64 <134000000>;
[all …]
/Linux-v5.4/arch/powerpc/include/asm/
Dword-at-a-time.h60 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, const struct word_at_a_t… in has_zero() argument
66 *bits = ret; in has_zero()
71 static inline unsigned long prep_zero_mask(unsigned long a, unsigned long bits, const struct word_a… in prep_zero_mask() argument
73 return bits; in prep_zero_mask()
77 static inline unsigned long create_zero_mask(unsigned long bits) in create_zero_mask() argument
86 : "b" (bits)); in create_zero_mask()
127 static inline unsigned long create_zero_mask(unsigned long bits) in create_zero_mask() argument
129 bits = (bits - 1) & ~bits; in create_zero_mask()
130 return bits >> 7; in create_zero_mask()
139 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, const struct word_at_a_t… in has_zero() argument
[all …]
/Linux-v5.4/tools/testing/selftests/powerpc/primitives/
Dword-at-a-time.h60 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, const struct word_at_a_t… in has_zero() argument
66 *bits = ret; in has_zero()
71 static inline unsigned long prep_zero_mask(unsigned long a, unsigned long bits, const struct word_a… in prep_zero_mask() argument
73 return bits; in prep_zero_mask()
77 static inline unsigned long create_zero_mask(unsigned long bits) in create_zero_mask() argument
86 : "b" (bits)); in create_zero_mask()
127 static inline unsigned long create_zero_mask(unsigned long bits) in create_zero_mask() argument
129 bits = (bits - 1) & ~bits; in create_zero_mask()
130 return bits >> 7; in create_zero_mask()
139 static inline unsigned long has_zero(unsigned long a, unsigned long *bits, const struct word_at_a_t… in has_zero() argument
[all …]
/Linux-v5.4/fs/ocfs2/cluster/
Dmasklog.h120 #define __mlog_test_u64(mask, bits) \ argument
121 ( (u32)(mask & 0xffffffff) & bits.words[0] || \
122 ((u64)(mask) >> 32) & bits.words[1] )
123 #define __mlog_set_u64(mask, bits) do { \ argument
124 bits.words[0] |= (u32)(mask & 0xffffffff); \
125 bits.words[1] |= (u64)(mask) >> 32; \
127 #define __mlog_clear_u64(mask, bits) do { \ argument
128 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \
129 bits.words[1] &= ~((u64)(mask) >> 32); \
140 #define __mlog_test_u64(mask, bits) ((mask) & bits.words[0]) argument
[all …]
/Linux-v5.4/Documentation/media/uapi/rc/
Drc-protos.rst34 This IR protocol uses manchester encoding to encode 14 bits. There is a
40 .. flat-table:: rc5 bits scancode mapping
83 done to keep it compatible with plain rc-5 where there are two start bits.
90 .. flat-table:: rc-5-sz bits scancode mapping
93 * - rc-5-sz bits
132 This rc-5 extended to encoded 20 bits. The is a 3555 microseconds space
135 .. flat-table:: rc-5x-20 bits scancode mapping
138 * - rc-5-sz bits
187 The scancode is a 16 bits value, where the address is the lower 8 bits
188 and the command the higher 8 bits; this is reversed from IR order.
[all …]

12345678910>>...86