Home
last modified time | relevance | path

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

/drivers/staging/comedi/drivers/
Dni_65xx.c328 int bitshift = (int)(NI_65XX_PORT_TO_CHAN(port) - base_chan); in ni_65xx_update_edge_detection() local
331 if (bitshift >= 32) in ni_65xx_update_edge_detection()
334 if (bitshift >= 0) { in ni_65xx_update_edge_detection()
335 port_mask = ~0U >> bitshift; in ni_65xx_update_edge_detection()
336 port_rising = rising >> bitshift; in ni_65xx_update_edge_detection()
337 port_falling = falling >> bitshift; in ni_65xx_update_edge_detection()
339 port_mask = ~0U << -bitshift; in ni_65xx_update_edge_detection()
340 port_rising = rising << -bitshift; in ni_65xx_update_edge_detection()
341 port_falling = falling << -bitshift; in ni_65xx_update_edge_detection()
456 int bitshift = base_port_channel - base_chan; in ni_65xx_dio_insn_bits() local
[all …]
/drivers/mmc/host/
Dmmc_spi.c268 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 …]
/drivers/net/wireless/rtlwifi/rtl8192ce/
Dphy.c51 u32 original_value, readback_value, bitshift; in rtl92c_phy_query_rf_reg() local
68 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_rf_reg()
69 readback_value = (original_value & bitmask) >> bitshift; in rtl92c_phy_query_rf_reg()
126 u32 original_value, bitshift; in rtl92ce_phy_set_rf_reg() local
139 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
142 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
151 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
154 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
/drivers/staging/rtl8192u/
Dr819xU_phy.c93 u32 reg, bitshift; in rtl8192_setBBreg() local
97 bitshift = rtl8192_CalculateBitShift(bitmask); in rtl8192_setBBreg()
99 reg |= data << bitshift; in rtl8192_setBBreg()
117 u32 reg, bitshift; in rtl8192_QueryBBReg() local
120 bitshift = rtl8192_CalculateBitShift(bitmask); in rtl8192_QueryBBReg()
122 return (reg & bitmask) >> bitshift; in rtl8192_QueryBBReg()
300 u32 reg, bitshift; in rtl8192_phy_SetRFReg() local
309 bitshift = rtl8192_CalculateBitShift(bitmask); in rtl8192_phy_SetRFReg()
311 reg |= data << bitshift; in rtl8192_phy_SetRFReg()
324 bitshift = rtl8192_CalculateBitShift(bitmask); in rtl8192_phy_SetRFReg()
[all …]
/drivers/net/wireless/rtlwifi/rtl8192cu/
Dphy.c48 u32 original_value, readback_value, bitshift; in rtl92cu_phy_query_rf_reg() local
61 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_query_rf_reg()
62 readback_value = (original_value & bitmask) >> bitshift; in rtl92cu_phy_query_rf_reg()
75 u32 original_value, bitshift; in rtl92cu_phy_set_rf_reg() local
85 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg()
88 (data << bitshift)); in rtl92cu_phy_set_rf_reg()
96 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg()
99 (data << bitshift)); in rtl92cu_phy_set_rf_reg()
/drivers/input/joystick/
Dtwidjoy.c68 int bitshift; member
112 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
/drivers/net/wireless/rtlwifi/rtl8723com/
Dphy_common.c37 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()
/drivers/net/wireless/rtlwifi/rtl8192se/
Dphy.c58 u32 returnvalue = 0, originalvalue, bitshift; in rtl92s_phy_query_bb_reg() local
64 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg()
65 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg()
78 u32 originalvalue, bitshift; in rtl92s_phy_set_bb_reg() local
86 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_set_bb_reg()
87 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92s_phy_set_bb_reg()
184 u32 original_value, readback_value, bitshift; in rtl92s_phy_query_rf_reg() local
194 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_rf_reg()
195 readback_value = (original_value & bitmask) >> bitshift; in rtl92s_phy_query_rf_reg()
211 u32 original_value, bitshift; in rtl92s_phy_set_rf_reg() local
[all …]
/drivers/staging/rtl8712/
Drtl871x_mp.c209 static u32 bitshift(u32 bitmask) in bitshift() function
224 bit_shift = bitshift(bitmask); in get_bb_reg()
238 bit_shift = bitshift(bitmask); in set_bb_reg()
251 bit_shift = bitshift(bitmask); in get_rf_reg()
263 bit_shift = bitshift(bitmask); in set_rf_reg()
/drivers/net/wireless/rtlwifi/rtl8188ee/
Dphy.c66 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 …]
/drivers/net/wireless/rtlwifi/rtl8723ae/
Dphy.c60 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()
/drivers/net/wireless/rtlwifi/rtl8192ee/
Dphy.c66 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 …]
/drivers/net/ethernet/altera/
Daltera_tse_main.c1015 unsigned int bitshift; in altera_tse_set_mcfilter() local
1017 for (bitshift = 0; bitshift < 8; bitshift++) in altera_tse_set_mcfilter()
1018 xor_bit ^= ((octet >> bitshift) & 0x01); in altera_tse_set_mcfilter()
/drivers/net/wireless/rtlwifi/rtl8192c/
Dphy_common.c41 u32 returnvalue, originalvalue, bitshift; in rtl92c_phy_query_bb_reg() local
46 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_bb_reg()
47 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()
/drivers/net/wireless/rtlwifi/rtl8192de/
Dphy.c205 u32 returnvalue, originalvalue, bitshift; in rtl92d_phy_query_bb_reg() local
223 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_bb_reg()
224 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92d_phy_query_bb_reg()
237 u32 originalvalue, bitshift; in rtl92d_phy_set_bb_reg() local
255 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_set_bb_reg()
256 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92d_phy_set_bb_reg()
335 u32 original_value, readback_value, bitshift; in rtl92d_phy_query_rf_reg() local
343 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_rf_reg()
344 readback_value = (original_value & bitmask) >> bitshift; in rtl92d_phy_query_rf_reg()
357 u32 original_value, bitshift; in rtl92d_phy_set_rf_reg() local
[all …]
/drivers/gpu/drm/
Ddrm_dp_mst_topology.c71 u8 bitshift = 7; in drm_dp_msg_header_crc4() local
79 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_header_crc4()
81 bitshift--; in drm_dp_msg_header_crc4()
84 bitshift = 7; in drm_dp_msg_header_crc4()
105 u8 bitshift = 7; in drm_dp_msg_data_crc4() local
113 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_data_crc4()
115 bitshift--; in drm_dp_msg_data_crc4()
118 bitshift = 7; in drm_dp_msg_data_crc4()
/drivers/net/wireless/rtlwifi/rtl8821ae/
Dphy.c119 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 …]
/drivers/net/wireless/rtlwifi/rtl8723be/
Dphy.c56 u32 original_value, readback_value, bitshift; in rtl8723be_phy_query_rf_reg() local
66 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723be_phy_query_rf_reg()
67 readback_value = (original_value & bitmask) >> bitshift; in rtl8723be_phy_query_rf_reg()
82 u32 original_value, bitshift; in rtl8723be_phy_set_rf_reg() local
94 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723be_phy_set_rf_reg()
96 (data << bitshift)); in rtl8723be_phy_set_rf_reg()