/linux-6.3-rc2/drivers/comedi/drivers/ |
A D | ni_65xx.c | 304 if (bitshift >= 32) in ni_65xx_update_edge_detection() 307 if (bitshift >= 0) { in ni_65xx_update_edge_detection() 431 if (bitshift >= 32) in ni_65xx_dio_insn_bits() 435 if (bitshift > 0) { in ni_65xx_dio_insn_bits() 436 port_mask >>= bitshift; in ni_65xx_dio_insn_bits() 437 port_data >>= bitshift; in ni_65xx_dio_insn_bits() 439 port_mask <<= -bitshift; in ni_65xx_dio_insn_bits() 440 port_data <<= -bitshift; in ni_65xx_dio_insn_bits() 458 if (bitshift > 0) in ni_65xx_dio_insn_bits() 459 bits <<= bitshift; in ni_65xx_dio_insn_bits() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
A 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()
|
/linux-6.3-rc2/drivers/iio/adc/ |
A D | ti-tlc4541.c | 58 #define TLC4541_V_CHAN(bits, bitshift) { \ argument 66 .shift = (bitshift), \ 71 #define DECLARE_TLC4541_CHANNELS(name, bits, bitshift) \ argument 73 TLC4541_V_CHAN(bits, bitshift), \
|
/linux-6.3-rc2/drivers/mmc/host/ |
A D | mmc_spi.c | 242 int bitshift; in mmc_spi_response_get() local 289 bitshift = 0; in mmc_spi_response_get() 303 bitshift++; in mmc_spi_response_get() 356 if (bitshift) { in mmc_spi_response_get() 358 rotator |= *cp << bitshift; in mmc_spi_response_get() 379 if (bitshift) { in mmc_spi_response_get() 380 rotator |= *cp++ << bitshift; in mmc_spi_response_get() 758 unsigned int bitshift; in mmc_spi_readblock() local 779 bitshift = 7; in mmc_spi_readblock() 782 bitshift--; in mmc_spi_readblock() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
A 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()
|
/linux-6.3-rc2/drivers/staging/rtl8192u/ |
A D | r819xU_phy.c | 70 u32 reg, bitshift; in rtl8192_setBBreg() local 74 bitshift = ffs(bitmask) - 1; in rtl8192_setBBreg() 76 reg |= data << bitshift; in rtl8192_setBBreg() 94 u32 reg, bitshift; in rtl8192_QueryBBReg() local 97 bitshift = ffs(bitmask) - 1; in rtl8192_QueryBBReg() 277 u32 reg, bitshift; in rtl8192_phy_SetRFReg() local 286 bitshift = ffs(bitmask) - 1; in rtl8192_phy_SetRFReg() 288 reg |= data << bitshift; in rtl8192_phy_SetRFReg() 303 reg |= data << bitshift; in rtl8192_phy_SetRFReg() 325 u32 reg, bitshift; in rtl8192_phy_QueryRFReg() local [all …]
|
/linux-6.3-rc2/drivers/input/joystick/ |
A D | twidjoy.c | 53 int bitshift; member 97 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
A 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()
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
A D | phy.c | 27 u32 returnvalue = 0, originalvalue, bitshift; in rtl92s_phy_query_bb_reg() local 33 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg() 34 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg() 47 u32 originalvalue, bitshift; in rtl92s_phy_set_bb_reg() local 55 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_set_bb_reg() 56 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92s_phy_set_bb_reg() 150 u32 original_value, readback_value, bitshift; in rtl92s_phy_query_rf_reg() local 160 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_rf_reg() 161 readback_value = (original_value & bitmask) >> bitshift; in rtl92s_phy_query_rf_reg() 177 u32 original_value, bitshift; in rtl92s_phy_set_rf_reg() local [all …]
|
/linux-6.3-rc2/drivers/staging/rtl8712/ |
A 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()
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
A D | phy.c | 49 u32 returnvalue, originalvalue, bitshift; in rtl88e_phy_query_bb_reg() local 54 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_query_bb_reg() 55 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl88e_phy_query_bb_reg() 69 u32 originalvalue, bitshift; in rtl88e_phy_set_bb_reg() local 77 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_set_bb_reg() 92 u32 original_value, readback_value, bitshift; in rtl88e_phy_query_rf_reg() local 102 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_query_rf_reg() 103 readback_value = (original_value & bitmask) >> bitshift; in rtl88e_phy_query_rf_reg() 118 u32 original_value, bitshift; in rtl88e_phy_set_rf_reg() local 130 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_set_rf_reg() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
A D | phy.c | 38 u32 original_value = 0, readback_value, bitshift; in rtl8723e_phy_query_rf_reg() local 52 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_query_rf_reg() 53 readback_value = (original_value & bitmask) >> bitshift; in rtl8723e_phy_query_rf_reg() 70 u32 original_value = 0, bitshift; in rtl8723e_phy_set_rf_reg() local 83 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_set_rf_reg() 86 (data << bitshift)); in rtl8723e_phy_set_rf_reg() 92 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_set_rf_reg() 95 (data << bitshift)); in rtl8723e_phy_set_rf_reg()
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
A 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 95 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_query_rf_reg() 96 readback_value = (original_value & bitmask) >> bitshift; in rtl92ee_phy_query_rf_reg() 112 u32 original_value, bitshift; in rtl92ee_phy_set_rf_reg() local [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/altera/ |
A D | altera_tse_main.c | 814 unsigned int bitshift; in altera_tse_set_mcfilter() local 816 for (bitshift = 0; bitshift < 8; bitshift++) in altera_tse_set_mcfilter() 817 xor_bit ^= ((octet >> bitshift) & 0x01); in altera_tse_set_mcfilter()
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
A 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()
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
A D | phy.c | 183 u32 returnvalue, originalvalue, bitshift; in rtl92d_phy_query_bb_reg() local 201 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_bb_reg() 202 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92d_phy_query_bb_reg() 215 u32 originalvalue, bitshift; in rtl92d_phy_set_bb_reg() local 233 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_set_bb_reg() 313 u32 original_value, readback_value, bitshift; in rtl92d_phy_query_rf_reg() local 320 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_rf_reg() 321 readback_value = (original_value & bitmask) >> bitshift; in rtl92d_phy_query_rf_reg() 334 u32 original_value, bitshift; in rtl92d_phy_set_rf_reg() local 346 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_set_rf_reg() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
A D | phy.c | 102 u32 returnvalue, originalvalue, bitshift; in rtl8821ae_phy_query_bb_reg() local 108 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_query_bb_reg() 109 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8821ae_phy_query_bb_reg() 121 u32 originalvalue, bitshift; in rtl8821ae_phy_set_bb_reg() local 129 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_set_bb_reg() 131 ((data << bitshift) & bitmask)); in rtl8821ae_phy_set_bb_reg() 146 u32 original_value, readback_value, bitshift; in rtl8821ae_phy_query_rf_reg() local 155 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_query_rf_reg() 156 readback_value = (original_value & bitmask) >> bitshift; in rtl8821ae_phy_query_rf_reg() 172 u32 original_value, bitshift; in rtl8821ae_phy_set_rf_reg() local [all …]
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
A D | phy.c | 35 u32 original_value, readback_value, bitshift; in rtl8723be_phy_query_rf_reg() local 44 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723be_phy_query_rf_reg() 45 readback_value = (original_value & bitmask) >> bitshift; in rtl8723be_phy_query_rf_reg() 60 u32 original_value, bitshift; in rtl8723be_phy_set_rf_reg() local 71 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723be_phy_set_rf_reg() 73 (data << bitshift)); in rtl8723be_phy_set_rf_reg()
|
/linux-6.3-rc2/drivers/gpu/drm/display/ |
A D | drm_dp_mst_topology.c | 200 u8 bitshift = 7; in drm_dp_msg_header_crc4() local 208 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_header_crc4() 210 bitshift--; in drm_dp_msg_header_crc4() 213 bitshift = 7; in drm_dp_msg_header_crc4() 234 u8 bitshift = 7; in drm_dp_msg_data_crc4() local 242 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_data_crc4() 244 bitshift--; in drm_dp_msg_data_crc4() 247 bitshift = 7; in drm_dp_msg_data_crc4()
|
/linux-6.3-rc2/fs/ocfs2/ |
A D | super.c | 571 unsigned int bitshift = 32; in ocfs2_max_file_offset() local 591 bitshift = 31; in ocfs2_max_file_offset() 600 return (((unsigned long long)bytes) << bitshift) - trim; in ocfs2_max_file_offset()
|