Home
last modified time | relevance | path

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

12345678910>>...33

/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 …]
/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 …]
Dcfbfillrect.c36 unsigned long pat, unsigned n, int bits, u32 bswapmask) in bitfill_aligned() argument
44 last = ~fb_shifted_pixels_mask_long(p, (dst_idx+n) % bits, bswapmask); in bitfill_aligned()
46 if (dst_idx+n <= bits) { in bitfill_aligned()
58 n -= bits - dst_idx; in bitfill_aligned()
62 n /= bits; in bitfill_aligned()
93 unsigned long pat, int left, int right, unsigned n, int bits) in bitfill_unaligned() argument
101 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitfill_unaligned()
103 if (dst_idx+n <= bits) { in bitfill_unaligned()
115 n -= bits - dst_idx; in bitfill_unaligned()
119 n /= bits; in bitfill_unaligned()
[all …]
/drivers/staging/media/atomisp/pci/runtime/isys/src/
Drx.c26 hrt_data bits = receiver_port_reg_load(RX0_ID, in ia_css_isys_rx_enable_all_interrupts() local
30 bits |= (1U << _HRT_CSS_RECEIVER_IRQ_OVERRUN_BIT) | in ia_css_isys_rx_enable_all_interrupts()
50 _HRT_CSS_RECEIVER_IRQ_ENABLE_REG_IDX, bits); in ia_css_isys_rx_enable_all_interrupts()
104 unsigned int bits; in ia_css_isys_rx_get_irq_info() local
107 bits = ia_css_isys_rx_get_interrupt_reg(port); in ia_css_isys_rx_get_irq_info()
108 *irq_infos = ia_css_isys_rx_translate_irq_infos(bits); in ia_css_isys_rx_get_irq_info()
112 unsigned int ia_css_isys_rx_translate_irq_infos(unsigned int bits) in ia_css_isys_rx_translate_irq_infos() argument
116 if (bits & (1U << _HRT_CSS_RECEIVER_IRQ_OVERRUN_BIT)) in ia_css_isys_rx_translate_irq_infos()
118 if (bits & (1U << _HRT_CSS_RECEIVER_IRQ_INIT_TIMEOUT_BIT)) in ia_css_isys_rx_translate_irq_infos()
120 if (bits & (1U << _HRT_CSS_RECEIVER_IRQ_SLEEP_MODE_ENTRY_BIT)) in ia_css_isys_rx_translate_irq_infos()
[all …]
/drivers/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 …]
/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 …]
/drivers/iio/adc/
Dmax1363.c141 u8 bits; member
394 if (st->chip_info->bits != 8) { in max1363_read_single_chan()
402 ((1 << st->chip_info->bits) - 1); in max1363_read_single_chan()
438 *val2 = st->chip_info->bits; in max1363_read_raw()
468 #define MAX1363_CHAN_U(num, addr, si, bits, ev_spec, num_ev_spec) \ argument
479 .realbits = bits, \
480 .storagebits = (bits > 8) ? 16 : 8, \
489 #define MAX1363_CHAN_B(num, num2, addr, si, bits, ev_spec, num_ev_spec) \ argument
502 .realbits = bits, \
503 .storagebits = (bits > 8) ? 16 : 8, \
[all …]
Dti-ads7950.c53 #define TI_ADS7950_EXTRACT(val, dec, bits) \ argument
54 (((val) >> (dec)) & ((1 << (bits)) - 1))
136 #define TI_ADS7950_V_CHAN(index, bits) \ argument
148 .realbits = bits, \
150 .shift = 12 - (bits), \
155 #define DECLARE_TI_ADS7950_4_CHANNELS(name, bits) \ argument
157 TI_ADS7950_V_CHAN(0, bits), \
158 TI_ADS7950_V_CHAN(1, bits), \
159 TI_ADS7950_V_CHAN(2, bits), \
160 TI_ADS7950_V_CHAN(3, bits), \
[all …]
Dad7923.c46 #define EXTRACT(val, dec, bits) (((val) >> (dec)) & ((1 << (bits)) - 1)) argument
83 #define AD7923_V_CHAN(index, bits) \ argument
94 .realbits = (bits), \
96 .shift = 12 - (bits), \
101 #define DECLARE_AD7923_CHANNELS(name, bits) \ argument
103 AD7923_V_CHAN(0, bits), \
104 AD7923_V_CHAN(1, bits), \
105 AD7923_V_CHAN(2, bits), \
106 AD7923_V_CHAN(3, bits), \
110 #define DECLARE_AD7908_CHANNELS(name, bits) \ argument
[all …]
Dad7476.c168 #define _AD7476_CHAN(bits, _shift, _info_mask_sep) \ argument
176 .realbits = (bits), \
183 #define ADC081S_CHAN(bits) _AD7476_CHAN((bits), 12 - (bits), \ argument
185 #define AD7476_CHAN(bits) _AD7476_CHAN((bits), 13 - (bits), \ argument
187 #define AD7940_CHAN(bits) _AD7476_CHAN((bits), 15 - (bits), \ argument
189 #define AD7091R_CHAN(bits) _AD7476_CHAN((bits), 16 - (bits), 0) argument
190 #define AD7091R_CONVST_CHAN(bits) _AD7476_CHAN((bits), 16 - (bits), \ argument
192 #define ADS786X_CHAN(bits) _AD7476_CHAN((bits), 12 - (bits), \ argument
/drivers/iio/dac/
Dad5686.c191 #define AD5868_CHANNEL(chan, addr, bits, _shift) { \ argument
201 .realbits = (bits), \
208 #define DECLARE_AD5693_CHANNELS(name, bits, _shift) \ argument
210 AD5868_CHANNEL(0, 0, bits, _shift), \
213 #define DECLARE_AD5338_CHANNELS(name, bits, _shift) \ argument
215 AD5868_CHANNEL(0, 1, bits, _shift), \
216 AD5868_CHANNEL(1, 8, bits, _shift), \
219 #define DECLARE_AD5686_CHANNELS(name, bits, _shift) \ argument
221 AD5868_CHANNEL(0, 1, bits, _shift), \
222 AD5868_CHANNEL(1, 2, bits, _shift), \
[all …]
/drivers/soc/imx/
Dgpcv2.c202 } bits; member
252 if (domain->bits.pxx) { in imx_pgc_power_up()
255 domain->bits.pxx, domain->bits.pxx); in imx_pgc_power_up()
262 !(reg_val & domain->bits.pxx), in imx_pgc_power_up()
280 if (domain->bits.hskreq) { in imx_pgc_power_up()
282 domain->bits.hskreq, domain->bits.hskreq); in imx_pgc_power_up()
328 if (domain->bits.hskreq) { in imx_pgc_power_down()
330 domain->bits.hskreq); in imx_pgc_power_down()
334 !(reg_val & domain->bits.hskack), in imx_pgc_power_down()
342 if (domain->bits.pxx) { in imx_pgc_power_down()
[all …]
/drivers/gpu/drm/amd/display/dc/
Ddc_dp_types.h146 } bits; member
156 } bits; member
166 } bits; member
174 } bits; member
184 } bits; member
198 } bits; member
212 } bits; member
221 } bits; member
232 } bits; member
241 } bits; member
[all …]
/drivers/net/wireguard/
Dallowedips.c13 static void swap_endian(u8 *dst, const u8 *src, u8 bits) in swap_endian() argument
15 if (bits == 32) { in swap_endian()
17 } else if (bits == 128) { in swap_endian()
24 u8 cidr, u8 bits) in copy_and_assign_cidr() argument
29 node->bit_at_a ^= (bits / 8U - 1U) % 8U; in copy_and_assign_cidr()
32 node->bitlen = bits; in copy_and_assign_cidr()
33 memcpy(node->bits, src, bits / 8U); in copy_and_assign_cidr()
88 u8 bits) in common_bits() argument
90 if (bits == 32) in common_bits()
91 return 32U - fls(*(const u32 *)node->bits ^ *(const u32 *)key); in common_bits()
[all …]
/drivers/clk/at91/
Dsckc.c32 const struct clk_slow_bits *bits; member
41 const struct clk_slow_bits *bits; member
51 const struct clk_slow_bits *bits; member
62 const struct clk_slow_bits *bits; member
74 if (tmp & (osc->bits->cr_osc32byp | osc->bits->cr_osc32en)) in clk_slow_osc_prepare()
77 writel(tmp | osc->bits->cr_osc32en, sckcr); in clk_slow_osc_prepare()
93 if (tmp & osc->bits->cr_osc32byp) in clk_slow_osc_unprepare()
96 writel(tmp & ~osc->bits->cr_osc32en, sckcr); in clk_slow_osc_unprepare()
105 if (tmp & osc->bits->cr_osc32byp) in clk_slow_osc_is_prepared()
108 return !!(tmp & osc->bits->cr_osc32en); in clk_slow_osc_is_prepared()
[all …]
/drivers/net/ethernet/neterion/vxge/
Dvxge-reg.h31 #define vxge_bVALn(bits, loc, n) \ argument
32 ((((u64)bits) >> (64-(loc+n))) & ((0x1ULL << n) - 1))
34 #define VXGE_HW_TITAN_ASIC_ID_GET_INITIAL_DEVICE_ID(bits) \ argument
35 vxge_bVALn(bits, 0, 16)
36 #define VXGE_HW_TITAN_ASIC_ID_GET_INITIAL_MAJOR_REVISION(bits) \ argument
37 vxge_bVALn(bits, 48, 8)
38 #define VXGE_HW_TITAN_ASIC_ID_GET_INITIAL_MINOR_REVISION(bits) \ argument
39 vxge_bVALn(bits, 56, 8)
41 #define VXGE_HW_VPATH_TO_FUNC_MAP_CFG1_GET_VPATH_TO_FUNC_MAP_CFG1(bits) \ argument
42 vxge_bVALn(bits, 3, 5)
[all …]
/drivers/spi/
Dspi-bitbang-txrx.h49 u32 word, u8 bits) in bitbang_txrx_be_cpha0() argument
53 u32 oldbit = (!(word & (1<<(bits-1)))) << 31; in bitbang_txrx_be_cpha0()
55 for (word <<= (32 - bits); likely(bits); bits--) { in bitbang_txrx_be_cpha0()
81 u32 word, u8 bits) in bitbang_txrx_be_cpha1() argument
85 u32 oldbit = (!(word & (1<<(bits-1)))) << 31; in bitbang_txrx_be_cpha1()
87 for (word <<= (32 - bits); likely(bits); bits--) { in bitbang_txrx_be_cpha1()
/drivers/net/ethernet/ti/
Dcpsw_ale.c23 #define BITMASK(bits) (BIT(bits) - 1) argument
105 static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits) in cpsw_ale_get_field() argument
111 idx2 = (start + bits - 1) / 32; in cpsw_ale_get_field()
119 return (hi_val + (ale_entry[idx] >> start)) & BITMASK(bits); in cpsw_ale_get_field()
122 static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits, in cpsw_ale_set_field() argument
127 value &= BITMASK(bits); in cpsw_ale_set_field()
129 idx2 = (start + bits - 1) / 32; in cpsw_ale_set_field()
133 ale_entry[idx2] &= ~(BITMASK(bits + start - (idx2 * 32))); in cpsw_ale_set_field()
138 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field()
142 #define DEFINE_ALE_FIELD(name, start, bits) \ argument
[all …]
/drivers/gpu/drm/tegra/
Dhda.c14 unsigned int mul, div, bits, channels; in tegra_hda_parse_format() local
33 fmt->bits = 8; in tegra_hda_parse_format()
37 fmt->bits = 16; in tegra_hda_parse_format()
41 fmt->bits = 20; in tegra_hda_parse_format()
45 fmt->bits = 24; in tegra_hda_parse_format()
49 fmt->bits = 32; in tegra_hda_parse_format()
53 bits = (format & AC_FMT_BITS_MASK) >> AC_FMT_BITS_SHIFT; in tegra_hda_parse_format()
54 WARN(1, "invalid number of bits: %#x\n", bits); in tegra_hda_parse_format()
55 fmt->bits = 8; in tegra_hda_parse_format()
/drivers/gpu/drm/i915/
Di915_irq.h42 u32 bits);
47 ilk_enable_display_irq(struct drm_i915_private *dev_priv, u32 bits) in ilk_enable_display_irq() argument
49 ilk_update_display_irq(dev_priv, bits, bits); in ilk_enable_display_irq()
52 ilk_disable_display_irq(struct drm_i915_private *dev_priv, u32 bits) in ilk_disable_display_irq() argument
54 ilk_update_display_irq(dev_priv, bits, 0); in ilk_disable_display_irq()
61 enum pipe pipe, u32 bits) in bdw_enable_pipe_irq() argument
63 bdw_update_pipe_irq(dev_priv, pipe, bits, bits); in bdw_enable_pipe_irq()
66 enum pipe pipe, u32 bits) in bdw_disable_pipe_irq() argument
68 bdw_update_pipe_irq(dev_priv, pipe, bits, 0); in bdw_disable_pipe_irq()
74 ibx_enable_display_interrupt(struct drm_i915_private *dev_priv, u32 bits) in ibx_enable_display_interrupt() argument
[all …]
/drivers/net/ethernet/brocade/bna/
Dbna_hw_defs.h88 (_bna)->bits.mbox_status_bits = (__HFN_INT_MBOX_LPU0 | \
90 (_bna)->bits.mbox_mask_bits = (__HFN_INT_MBOX_LPU0 | \
92 (_bna)->bits.error_status_bits = (__HFN_INT_ERR_MASK); \
93 (_bna)->bits.error_mask_bits = (__HFN_INT_ERR_MASK); \
94 (_bna)->bits.halt_status_bits = __HFN_INT_LL_HALT; \
95 (_bna)->bits.halt_mask_bits = __HFN_INT_LL_HALT; \
108 (_bna)->bits.mbox_status_bits = (__HFN_INT_MBOX_LPU0_CT2 | \
110 (_bna)->bits.mbox_mask_bits = (__HFN_INT_MBOX_LPU0_CT2 | \
112 (_bna)->bits.error_status_bits = (__HFN_INT_ERR_MASK_CT2); \
113 (_bna)->bits.error_mask_bits = (__HFN_INT_ERR_MASK_CT2); \
[all …]
/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()
77 (imon->bits & 0x00010000) != 0); in ir_imon_decode_scancode()
79 (imon->bits & 0x00040000) != 0); in ir_imon_decode_scancode()
[all …]
/drivers/gpu/drm/zte/
Dzx_vou.c128 const struct zx_crtc_bits *bits; member
294 const struct zx_crtc_bits *bits = zcrtc->bits; in zx_vou_config_dividers() local
307 shift = bits->div_vga_shift; in zx_vou_config_dividers()
311 shift = bits->div_pic_shift; in zx_vou_config_dividers()
315 shift = bits->div_tvenc_shift; in zx_vou_config_dividers()
319 shift = bits->div_hdmi_pnx_shift; in zx_vou_config_dividers()
323 shift = bits->div_hdmi_shift; in zx_vou_config_dividers()
327 shift = bits->div_inf_shift; in zx_vou_config_dividers()
331 shift = bits->div_layer_shift; in zx_vou_config_dividers()
360 const struct zx_crtc_bits *bits = zcrtc->bits; in zx_crtc_atomic_enable() local
[all …]

12345678910>>...33