/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/iio/adc/ |
D | ti-tlc4541.c | 60 #define TLC4541_V_CHAN(bits, bitshift) { \ argument 68 .shift = (bitshift), \ 73 #define DECLARE_TLC4541_CHANNELS(name, bits, bitshift) \ argument 75 TLC4541_V_CHAN(bits, bitshift), \
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | phy.c | 47 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()
|
/Linux-v4.19/drivers/mmc/host/ |
D | mmc_spi.c | 268 int bitshift; in mmc_spi_response_get() local 315 bitshift = 0; in mmc_spi_response_get() 329 bitshift++; in mmc_spi_response_get() 379 if (bitshift) { in mmc_spi_response_get() 381 rotator |= *cp << bitshift; in mmc_spi_response_get() 402 if (bitshift) { in mmc_spi_response_get() 403 rotator |= *cp++ << bitshift; in mmc_spi_response_get() 784 unsigned int bitshift; in mmc_spi_readblock() local 805 bitshift = 7; in mmc_spi_readblock() 808 bitshift--; in mmc_spi_readblock() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | phy.c | 44 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()
|
/Linux-v4.19/drivers/input/joystick/ |
D | twidjoy.c | 68 int bitshift; member 112 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
D | phy_common.c | 37 u32 returnvalue, originalvalue, bitshift; in rtl8723_phy_query_bb_reg() local 42 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_query_bb_reg() 43 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8723_phy_query_bb_reg() 56 u32 originalvalue, bitshift; in rtl8723_phy_set_bb_reg() local 64 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_set_bb_reg() 65 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl8723_phy_set_bb_reg()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | phy.c | 54 u32 returnvalue = 0, originalvalue, bitshift; in rtl92s_phy_query_bb_reg() local 60 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg() 61 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg() 74 u32 originalvalue, bitshift; in rtl92s_phy_set_bb_reg() local 82 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_set_bb_reg() 83 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92s_phy_set_bb_reg() 180 u32 original_value, readback_value, bitshift; in rtl92s_phy_query_rf_reg() local 190 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_rf_reg() 191 readback_value = (original_value & bitmask) >> bitshift; in rtl92s_phy_query_rf_reg() 207 u32 original_value, bitshift; in rtl92s_phy_set_rf_reg() local [all …]
|
/Linux-v4.19/drivers/staging/rtl8712/ |
D | rtl871x_mp.c | 209 static u32 bitshift(u32 bitmask) in bitshift() function 224 bit_shift = bitshift(bitmask); in get_bb_reg() 237 bit_shift = bitshift(bitmask); in set_bb_reg() 251 bit_shift = bitshift(bitmask); in get_rf_reg() 262 bit_shift = bitshift(bitmask); in set_rf_reg()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | phy.c | 66 u32 returnvalue, originalvalue, bitshift; in rtl88e_phy_query_bb_reg() local 71 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_query_bb_reg() 72 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl88e_phy_query_bb_reg() 86 u32 originalvalue, bitshift; in rtl88e_phy_set_bb_reg() local 94 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_set_bb_reg() 95 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl88e_phy_set_bb_reg() 109 u32 original_value, readback_value, bitshift; in rtl88e_phy_query_rf_reg() local 120 bitshift = _rtl88e_phy_calculate_bit_shift(bitmask); in rtl88e_phy_query_rf_reg() 121 readback_value = (original_value & bitmask) >> bitshift; in rtl88e_phy_query_rf_reg() 136 u32 original_value, bitshift; in rtl88e_phy_set_rf_reg() local [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | phy.c | 60 u32 original_value = 0, readback_value, bitshift; in rtl8723e_phy_query_rf_reg() local 75 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_query_rf_reg() 76 readback_value = (original_value & bitmask) >> bitshift; in rtl8723e_phy_query_rf_reg() 93 u32 original_value = 0, bitshift; in rtl8723e_phy_set_rf_reg() local 107 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_set_rf_reg() 110 (data << bitshift)); in rtl8723e_phy_set_rf_reg() 116 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723e_phy_set_rf_reg() 119 (data << bitshift)); in rtl8723e_phy_set_rf_reg()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | phy.c | 66 u32 returnvalue, originalvalue, bitshift; in rtl92ee_phy_query_bb_reg() local 71 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_query_bb_reg() 72 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92ee_phy_query_bb_reg() 85 u32 originalvalue, bitshift; in rtl92ee_phy_set_bb_reg() local 93 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_set_bb_reg() 94 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92ee_phy_set_bb_reg() 108 u32 original_value, readback_value, bitshift; in rtl92ee_phy_query_rf_reg() local 118 bitshift = _rtl92ee_phy_calculate_bit_shift(bitmask); in rtl92ee_phy_query_rf_reg() 119 readback_value = (original_value & bitmask) >> bitshift; in rtl92ee_phy_query_rf_reg() 135 u32 original_value, bitshift; in rtl92ee_phy_set_rf_reg() local [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | phy_common.c | 37 u32 returnvalue, originalvalue, bitshift; in rtl92c_phy_query_bb_reg() local 42 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_bb_reg() 43 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92c_phy_query_bb_reg() 57 u32 originalvalue, bitshift; in rtl92c_phy_set_bb_reg() local 65 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_set_bb_reg() 66 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92c_phy_set_bb_reg()
|
/Linux-v4.19/drivers/net/ethernet/altera/ |
D | altera_tse_main.c | 1037 unsigned int bitshift; in altera_tse_set_mcfilter() local 1039 for (bitshift = 0; bitshift < 8; bitshift++) in altera_tse_set_mcfilter() 1040 xor_bit ^= ((octet >> bitshift) & 0x01); in altera_tse_set_mcfilter()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | phy.c | 201 u32 returnvalue, originalvalue, bitshift; in rtl92d_phy_query_bb_reg() local 219 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_bb_reg() 220 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92d_phy_query_bb_reg() 233 u32 originalvalue, bitshift; in rtl92d_phy_set_bb_reg() local 251 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_set_bb_reg() 252 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92d_phy_set_bb_reg() 331 u32 original_value, readback_value, bitshift; in rtl92d_phy_query_rf_reg() local 339 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_rf_reg() 340 readback_value = (original_value & bitmask) >> bitshift; in rtl92d_phy_query_rf_reg() 353 u32 original_value, bitshift; in rtl92d_phy_set_rf_reg() local [all …]
|
/Linux-v4.19/drivers/staging/rtlwifi/rtl8822be/ |
D | phy.c | 67 u32 returnvalue, originalvalue, bitshift; in rtl8822be_phy_query_bb_reg() local 72 bitshift = _rtl8822be_phy_calculate_bit_shift(bitmask); in rtl8822be_phy_query_bb_reg() 73 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8822be_phy_query_bb_reg() 85 u32 originalvalue, bitshift; in rtl8822be_phy_set_bb_reg() local 93 bitshift = _rtl8822be_phy_calculate_bit_shift(bitmask); in rtl8822be_phy_set_bb_reg() 95 ((data << bitshift) & bitmask)); in rtl8822be_phy_set_bb_reg()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.c | 119 u32 returnvalue, originalvalue, bitshift; in rtl8821ae_phy_query_bb_reg() local 125 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_query_bb_reg() 126 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8821ae_phy_query_bb_reg() 138 u32 originalvalue, bitshift; in rtl8821ae_phy_set_bb_reg() local 146 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_set_bb_reg() 148 ((data << bitshift) & bitmask)); in rtl8821ae_phy_set_bb_reg() 163 u32 original_value, readback_value, bitshift; in rtl8821ae_phy_query_rf_reg() local 173 bitshift = _rtl8821ae_phy_calculate_bit_shift(bitmask); in rtl8821ae_phy_query_rf_reg() 174 readback_value = (original_value & bitmask) >> bitshift; in rtl8821ae_phy_query_rf_reg() 190 u32 original_value, bitshift; in rtl8821ae_phy_set_rf_reg() local [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | phy.c | 57 u32 original_value, readback_value, bitshift; in rtl8723be_phy_query_rf_reg() local 67 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723be_phy_query_rf_reg() 68 readback_value = (original_value & bitmask) >> bitshift; in rtl8723be_phy_query_rf_reg() 83 u32 original_value, bitshift; in rtl8723be_phy_set_rf_reg() local 95 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723be_phy_set_rf_reg() 97 (data << bitshift)); in rtl8723be_phy_set_rf_reg()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_dp_mst_topology.c | 73 u8 bitshift = 7; in drm_dp_msg_header_crc4() local 81 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_header_crc4() 83 bitshift--; in drm_dp_msg_header_crc4() 86 bitshift = 7; in drm_dp_msg_header_crc4() 107 u8 bitshift = 7; in drm_dp_msg_data_crc4() local 115 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_data_crc4() 117 bitshift--; in drm_dp_msg_data_crc4() 120 bitshift = 7; in drm_dp_msg_data_crc4()
|
/Linux-v4.19/fs/xfs/ |
D | xfs_super.c | 536 unsigned int bitshift = BITS_PER_LONG - 1; in xfs_max_file_offset() local 556 bitshift = BITS_PER_LONG; in xfs_max_file_offset() 562 return (((uint64_t)pagefactor) << bitshift) - 1; in xfs_max_file_offset()
|
/Linux-v4.19/fs/ocfs2/ |
D | super.c | 594 unsigned int bitshift = 32; in ocfs2_max_file_offset() local 615 bitshift = 31; in ocfs2_max_file_offset() 624 bitshift = 31; in ocfs2_max_file_offset() 633 return (((unsigned long long)bytes) << bitshift) - trim; in ocfs2_max_file_offset()
|