Home
last modified time | relevance | path

Searched refs:bitshift (Results 1 – 11 of 11) sorted by relevance

/drivers/staging/comedi/drivers/
Dni_65xx.c399 int bitshift; in ni_65xx_dio_insn_bits() local
405 bitshift = base_port_channel - base_bitfield_channel; in ni_65xx_dio_insn_bits()
406 if (bitshift >= 32 || bitshift <= -32) in ni_65xx_dio_insn_bits()
408 if (bitshift > 0) { in ni_65xx_dio_insn_bits()
409 port_mask >>= bitshift; in ni_65xx_dio_insn_bits()
410 port_data >>= bitshift; in ni_65xx_dio_insn_bits()
412 port_mask <<= -bitshift; in ni_65xx_dio_insn_bits()
413 port_data <<= -bitshift; in ni_65xx_dio_insn_bits()
437 if (bitshift > 0) in ni_65xx_dio_insn_bits()
438 port_read_bits <<= bitshift; in ni_65xx_dio_insn_bits()
[all …]
/drivers/mmc/host/
Dmmc_spi.c267 int bitshift; in mmc_spi_response_get() local
314 bitshift = 0; in mmc_spi_response_get()
328 bitshift++; in mmc_spi_response_get()
378 if (bitshift) { in mmc_spi_response_get()
380 rotator |= *cp << bitshift; in mmc_spi_response_get()
401 if (bitshift) { in mmc_spi_response_get()
402 rotator |= *cp++ << bitshift; in mmc_spi_response_get()
789 unsigned int bitshift; in mmc_spi_readblock() local
810 bitshift = 7; in mmc_spi_readblock()
813 bitshift--; in mmc_spi_readblock()
[all …]
/drivers/net/wireless/rtlwifi/rtl8192ce/
Dphy.c47 u32 original_value, readback_value, bitshift; in rtl92c_phy_query_rf_reg() local
64 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_rf_reg()
65 readback_value = (original_value & bitmask) >> bitshift; in rtl92c_phy_query_rf_reg()
122 u32 original_value, bitshift; in rtl92ce_phy_set_rf_reg() local
135 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
138 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
147 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
150 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
/drivers/net/wireless/rtlwifi/rtl8192cu/
Dphy.c44 u32 original_value, readback_value, bitshift; in rtl92cu_phy_query_rf_reg() local
57 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_query_rf_reg()
58 readback_value = (original_value & bitmask) >> bitshift; in rtl92cu_phy_query_rf_reg()
71 u32 original_value, bitshift; in rtl92cu_phy_set_rf_reg() local
81 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg()
84 (data << bitshift)); in rtl92cu_phy_set_rf_reg()
92 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg()
95 (data << bitshift)); in rtl92cu_phy_set_rf_reg()
/drivers/input/joystick/
Dtwidjoy.c69 int bitshift; member
113 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
/drivers/net/wireless/rtlwifi/rtl8192se/
Dphy.c57 u32 returnvalue = 0, originalvalue, bitshift; in rtl92s_phy_query_bb_reg() local
63 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg()
64 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg()
77 u32 originalvalue, bitshift; in rtl92s_phy_set_bb_reg() local
85 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_set_bb_reg()
86 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92s_phy_set_bb_reg()
183 u32 original_value, readback_value, bitshift; in rtl92s_phy_query_rf_reg() local
193 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_rf_reg()
194 readback_value = (original_value & bitmask) >> bitshift; in rtl92s_phy_query_rf_reg()
210 u32 original_value, bitshift; in rtl92s_phy_set_rf_reg() local
[all …]
/drivers/net/wireless/rtlwifi/rtl8723ae/
Dphy.c74 u32 returnvalue, originalvalue, bitshift; in rtl8723ae_phy_query_bb_reg() local
79 bitshift = _phy_calculate_bit_shift(bitmask); in rtl8723ae_phy_query_bb_reg()
80 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8723ae_phy_query_bb_reg()
93 u32 originalvalue, bitshift; in rtl8723ae_phy_set_bb_reg() local
101 bitshift = _phy_calculate_bit_shift(bitmask); in rtl8723ae_phy_set_bb_reg()
102 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl8723ae_phy_set_bb_reg()
116 u32 original_value, readback_value, bitshift; in rtl8723ae_phy_query_rf_reg() local
131 bitshift = _phy_calculate_bit_shift(bitmask); in rtl8723ae_phy_query_rf_reg()
132 readback_value = (original_value & bitmask) >> bitshift; in rtl8723ae_phy_query_rf_reg()
149 u32 original_value, bitshift; in rtl8723ae_phy_set_rf_reg() local
[all …]
/drivers/staging/rtl8712/
Drtl871x_mp.c210 static u32 bitshift(u32 bitmask) in bitshift() function
225 bit_shift = bitshift(bitmask); in get_bb_reg()
239 bit_shift = bitshift(bitmask); in set_bb_reg()
252 bit_shift = bitshift(bitmask); in get_rf_reg()
264 bit_shift = bitshift(bitmask); in set_rf_reg()
/drivers/net/wireless/rtlwifi/rtl8188ee/
Dphy.c492 u32 returnvalue, originalvalue, bitshift; in rtl88e_phy_query_bb_reg() local
497 bitshift = cal_bit_shift(bitmask); in rtl88e_phy_query_bb_reg()
498 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl88e_phy_query_bb_reg()
511 u32 originalvalue, bitshift; in rtl88e_phy_set_bb_reg() local
519 bitshift = cal_bit_shift(bitmask); in rtl88e_phy_set_bb_reg()
520 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl88e_phy_set_bb_reg()
534 u32 original_value, readback_value, bitshift; in rtl88e_phy_query_rf_reg() local
545 bitshift = cal_bit_shift(bitmask); in rtl88e_phy_query_rf_reg()
546 readback_value = (original_value & bitmask) >> bitshift; in rtl88e_phy_query_rf_reg()
562 u32 original_value, bitshift; in rtl88e_phy_set_rf_reg() local
[all …]
/drivers/net/wireless/rtlwifi/rtl8192de/
Dphy.c204 u32 returnvalue, originalvalue, bitshift; in rtl92d_phy_query_bb_reg() local
221 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_bb_reg()
222 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92d_phy_query_bb_reg()
235 u32 originalvalue, bitshift; in rtl92d_phy_set_bb_reg() local
253 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_set_bb_reg()
254 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92d_phy_set_bb_reg()
333 u32 original_value, readback_value, bitshift; in rtl92d_phy_query_rf_reg() local
341 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_rf_reg()
342 readback_value = (original_value & bitmask) >> bitshift; in rtl92d_phy_query_rf_reg()
355 u32 original_value, bitshift; in rtl92d_phy_set_rf_reg() local
[all …]
/drivers/net/wireless/rtlwifi/rtl8192c/
Dphy_common.c40 u32 returnvalue, originalvalue, bitshift; in rtl92c_phy_query_bb_reg() local
45 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_bb_reg()
46 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92c_phy_query_bb_reg()
61 u32 originalvalue, bitshift; in rtl92c_phy_set_bb_reg() local
69 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_set_bb_reg()
70 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92c_phy_set_bb_reg()