/drivers/staging/comedi/drivers/ |
D | ni_65xx.c | 302 int bitshift = (int)(NI_65XX_PORT_TO_CHAN(port) - base_chan); in ni_65xx_update_edge_detection() local 305 if (bitshift >= 32) in ni_65xx_update_edge_detection() 308 if (bitshift >= 0) { in ni_65xx_update_edge_detection() 309 port_mask = ~0U >> bitshift; in ni_65xx_update_edge_detection() 310 port_rising = rising >> bitshift; in ni_65xx_update_edge_detection() 311 port_falling = falling >> bitshift; in ni_65xx_update_edge_detection() 313 port_mask = ~0U << -bitshift; in ni_65xx_update_edge_detection() 314 port_rising = rising << -bitshift; in ni_65xx_update_edge_detection() 315 port_falling = falling << -bitshift; in ni_65xx_update_edge_detection() 430 int bitshift = base_port_channel - base_chan; in ni_65xx_dio_insn_bits() local [all …]
|
/drivers/mmc/host/ |
D | mmc_spi.c | 254 int bitshift; in mmc_spi_response_get() local 301 bitshift = 0; in mmc_spi_response_get() 315 bitshift++; in mmc_spi_response_get() 365 if (bitshift) { in mmc_spi_response_get() 367 rotator |= *cp << bitshift; in mmc_spi_response_get() 388 if (bitshift) { in mmc_spi_response_get() 389 rotator |= *cp++ << bitshift; in mmc_spi_response_get() 767 unsigned int bitshift; in mmc_spi_readblock() local 788 bitshift = 7; in mmc_spi_readblock() 791 bitshift--; in mmc_spi_readblock() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | phy.c | 25 u32 original_value, readback_value, bitshift; in rtl92c_phy_query_rf_reg() local 42 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_rf_reg() 43 readback_value = (original_value & bitmask) >> bitshift; in rtl92c_phy_query_rf_reg() 100 u32 original_value, bitshift; in rtl92ce_phy_set_rf_reg() local 113 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg() 116 (data << bitshift)); in rtl92ce_phy_set_rf_reg() 125 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg() 128 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
|
/drivers/iio/adc/ |
D | ti-tlc4541.c | 57 #define TLC4541_V_CHAN(bits, bitshift) { \ argument 65 .shift = (bitshift), \ 70 #define DECLARE_TLC4541_CHANNELS(name, bits, bitshift) \ argument 72 TLC4541_V_CHAN(bits, bitshift), \
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | phy.c | 22 u32 original_value, readback_value, bitshift; in rtl92cu_phy_query_rf_reg() local 35 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_query_rf_reg() 36 readback_value = (original_value & bitmask) >> bitshift; in rtl92cu_phy_query_rf_reg() 49 u32 original_value, bitshift; in rtl92cu_phy_set_rf_reg() local 59 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg() 62 (data << bitshift)); in rtl92cu_phy_set_rf_reg() 70 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg() 73 (data << bitshift)); in rtl92cu_phy_set_rf_reg()
|
/drivers/staging/rtl8192u/ |
D | r819xU_phy.c | 71 u32 reg, bitshift; in rtl8192_setBBreg() local 75 bitshift = ffs(bitmask) - 1; in rtl8192_setBBreg() 77 reg |= data << bitshift; in rtl8192_setBBreg() 95 u32 reg, bitshift; in rtl8192_QueryBBReg() local 98 bitshift = ffs(bitmask) - 1; in rtl8192_QueryBBReg() 100 return (reg & bitmask) >> bitshift; in rtl8192_QueryBBReg() 282 u32 reg, bitshift; in rtl8192_phy_SetRFReg() local 291 bitshift = ffs(bitmask) - 1; in rtl8192_phy_SetRFReg() 293 reg |= data << bitshift; in rtl8192_phy_SetRFReg() 306 bitshift = ffs(bitmask) - 1; in rtl8192_phy_SetRFReg() [all …]
|
/drivers/input/joystick/ |
D | twidjoy.c | 56 int bitshift; member 100 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
D | phy_common.c | 15 u32 returnvalue, originalvalue, bitshift; in rtl8723_phy_query_bb_reg() local 20 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_query_bb_reg() 21 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8723_phy_query_bb_reg() 34 u32 originalvalue, bitshift; in rtl8723_phy_set_bb_reg() local 42 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_set_bb_reg() 43 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl8723_phy_set_bb_reg()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | phy.c | 32 u32 returnvalue = 0, originalvalue, bitshift; in rtl92s_phy_query_bb_reg() local 38 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg() 39 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg() 52 u32 originalvalue, bitshift; in rtl92s_phy_set_bb_reg() local 60 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_set_bb_reg() 61 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92s_phy_set_bb_reg() 158 u32 original_value, readback_value, bitshift; in rtl92s_phy_query_rf_reg() local 168 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_rf_reg() 169 readback_value = (original_value & bitmask) >> bitshift; in rtl92s_phy_query_rf_reg() 185 u32 original_value, bitshift; in rtl92s_phy_set_rf_reg() local [all …]
|
/drivers/staging/rtl8712/ |
D | rtl871x_mp.c | 194 static u32 bitshift(u32 bitmask) in bitshift() function 209 bit_shift = bitshift(bitmask); in get_bb_reg() 222 bit_shift = bitshift(bitmask); in set_bb_reg() 236 bit_shift = bitshift(bitmask); in get_rf_reg() 247 bit_shift = bitshift(bitmask); in set_rf_reg()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | phy.c | 44 u32 returnvalue, originalvalue, bitshift; in rtl88e_phy_query_bb_reg() local 49 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_query_bb_reg() 50 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl88e_phy_query_bb_reg() 64 u32 originalvalue, bitshift; in rtl88e_phy_set_bb_reg() local 72 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_set_bb_reg() 73 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl88e_phy_set_bb_reg() 87 u32 original_value, readback_value, bitshift; in rtl88e_phy_query_rf_reg() local 98 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_query_rf_reg() 99 readback_value = (original_value & bitmask) >> bitshift; in rtl88e_phy_query_rf_reg() 114 u32 original_value, bitshift; in rtl88e_phy_set_rf_reg() local [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | phy.c | 38 u32 original_value = 0, readback_value, bitshift; in rtl8723e_phy_query_rf_reg() local 53 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_query_rf_reg() 54 readback_value = (original_value & bitmask) >> bitshift; in rtl8723e_phy_query_rf_reg() 71 u32 original_value = 0, bitshift; in rtl8723e_phy_set_rf_reg() local 85 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_set_rf_reg() 88 (data << bitshift)); in rtl8723e_phy_set_rf_reg() 94 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_set_rf_reg() 97 (data << bitshift)); in rtl8723e_phy_set_rf_reg()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | phy.c | 44 u32 returnvalue, originalvalue, bitshift; in rtl92ee_phy_query_bb_reg() local 49 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_query_bb_reg() 50 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92ee_phy_query_bb_reg() 63 u32 originalvalue, bitshift; in rtl92ee_phy_set_bb_reg() local 71 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_set_bb_reg() 72 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92ee_phy_set_bb_reg() 86 u32 original_value, readback_value, bitshift; in rtl92ee_phy_query_rf_reg() local 96 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_query_rf_reg() 97 readback_value = (original_value & bitmask) >> bitshift; in rtl92ee_phy_query_rf_reg() 113 u32 original_value, bitshift; in rtl92ee_phy_set_rf_reg() local [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | phy_common.c | 15 u32 returnvalue, originalvalue, bitshift; in rtl92c_phy_query_bb_reg() local 20 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_bb_reg() 21 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92c_phy_query_bb_reg() 35 u32 originalvalue, bitshift; in rtl92c_phy_set_bb_reg() local 43 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_set_bb_reg() 44 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92c_phy_set_bb_reg()
|
/drivers/net/ethernet/altera/ |
D | altera_tse_main.c | 1025 unsigned int bitshift; in altera_tse_set_mcfilter() local 1027 for (bitshift = 0; bitshift < 8; bitshift++) in altera_tse_set_mcfilter() 1028 xor_bit ^= ((octet >> bitshift) & 0x01); in altera_tse_set_mcfilter()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | phy.c | 179 u32 returnvalue, originalvalue, bitshift; in rtl92d_phy_query_bb_reg() local 197 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_bb_reg() 198 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92d_phy_query_bb_reg() 211 u32 originalvalue, bitshift; in rtl92d_phy_set_bb_reg() local 229 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_set_bb_reg() 230 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92d_phy_set_bb_reg() 309 u32 original_value, readback_value, bitshift; in rtl92d_phy_query_rf_reg() local 317 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_rf_reg() 318 readback_value = (original_value & bitmask) >> bitshift; in rtl92d_phy_query_rf_reg() 331 u32 original_value, bitshift; in rtl92d_phy_set_rf_reg() local [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.c | 97 u32 returnvalue, originalvalue, bitshift; in rtl8821ae_phy_query_bb_reg() local 103 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_query_bb_reg() 104 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8821ae_phy_query_bb_reg() 116 u32 originalvalue, bitshift; in rtl8821ae_phy_set_bb_reg() local 124 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_set_bb_reg() 126 ((data << bitshift) & bitmask)); in rtl8821ae_phy_set_bb_reg() 141 u32 original_value, readback_value, bitshift; in rtl8821ae_phy_query_rf_reg() local 151 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_query_rf_reg() 152 readback_value = (original_value & bitmask) >> bitshift; in rtl8821ae_phy_query_rf_reg() 168 u32 original_value, bitshift; in rtl8821ae_phy_set_rf_reg() local [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | phy.c | 35 u32 original_value, readback_value, bitshift; in rtl8723be_phy_query_rf_reg() local 45 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723be_phy_query_rf_reg() 46 readback_value = (original_value & bitmask) >> bitshift; in rtl8723be_phy_query_rf_reg() 61 u32 original_value, bitshift; in rtl8723be_phy_set_rf_reg() local 73 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723be_phy_set_rf_reg() 75 (data << bitshift)); in rtl8723be_phy_set_rf_reg()
|
/drivers/gpu/drm/ |
D | drm_dp_mst_topology.c | 138 u8 bitshift = 7; in drm_dp_msg_header_crc4() local 146 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_header_crc4() 148 bitshift--; in drm_dp_msg_header_crc4() 151 bitshift = 7; in drm_dp_msg_header_crc4() 172 u8 bitshift = 7; in drm_dp_msg_data_crc4() local 180 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_data_crc4() 182 bitshift--; in drm_dp_msg_data_crc4() 185 bitshift = 7; in drm_dp_msg_data_crc4()
|