Home
last modified time | relevance | path

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

/drivers/comedi/drivers/
A Dni_65xx.c304 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 …]
/drivers/mmc/host/
A Dmmc_spi.c221 int bitshift; in mmc_spi_response_get() local
264 bitshift = 0; in mmc_spi_response_get()
278 bitshift++; in mmc_spi_response_get()
331 if (bitshift) { in mmc_spi_response_get()
333 rotator |= *cp << bitshift; in mmc_spi_response_get()
354 if (bitshift) { in mmc_spi_response_get()
355 rotator |= *cp++ << bitshift; in mmc_spi_response_get()
690 unsigned int bitshift; in mmc_spi_readblock() local
711 bitshift = 7; in mmc_spi_readblock()
714 bitshift--; in mmc_spi_readblock()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
A Dphy.c25 u32 original_value, readback_value, bitshift; in rtl92c_phy_query_rf_reg() local
42 bitshift = 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 = calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
116 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
125 bitshift = calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
128 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
A Dphy.c22 u32 original_value, readback_value, bitshift; in rtl92cu_phy_query_rf_reg() local
35 bitshift = 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 = calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg()
62 (data << bitshift)); in rtl92cu_phy_set_rf_reg()
70 bitshift = calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg()
73 (data << bitshift)); in rtl92cu_phy_set_rf_reg()
/drivers/iio/adc/
A Dti-tlc4541.c58 #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), \
/drivers/input/joystick/
A Dtwidjoy.c53 int bitshift; member
97 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
A Dphy_common.c15 u32 returnvalue, originalvalue, bitshift; in rtl8723_phy_query_bb_reg() local
20 bitshift = 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 = 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/
A Dphy.c20 u32 returnvalue = 0, originalvalue, bitshift; in rtl92s_phy_query_bb_reg() local
26 bitshift = calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg()
27 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg()
40 u32 originalvalue, bitshift; in rtl92s_phy_set_bb_reg() local
48 bitshift = calculate_bit_shift(bitmask); in rtl92s_phy_set_bb_reg()
49 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92s_phy_set_bb_reg()
143 u32 original_value, readback_value, bitshift; in rtl92s_phy_query_rf_reg() local
153 bitshift = calculate_bit_shift(bitmask); in rtl92s_phy_query_rf_reg()
154 readback_value = (original_value & bitmask) >> bitshift; in rtl92s_phy_query_rf_reg()
170 u32 original_value, bitshift; in rtl92s_phy_set_rf_reg() local
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
A Dphy_common.c87 u32 original_value, readback_value, bitshift; in rtl92d_phy_query_rf_reg() local
94 bitshift = calculate_bit_shift(bitmask); in rtl92d_phy_query_rf_reg()
95 readback_value = (original_value & bitmask) >> bitshift; in rtl92d_phy_query_rf_reg()
109 u32 original_value, bitshift; in rtl92d_phy_set_rf_reg() local
122 bitshift = calculate_bit_shift(bitmask); in rtl92d_phy_set_rf_reg()
124 (data << bitshift)); in rtl92d_phy_set_rf_reg()
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
A Dphy.c43 u32 returnvalue, originalvalue, bitshift; in rtl88e_phy_query_bb_reg() local
48 bitshift = calculate_bit_shift(bitmask); in rtl88e_phy_query_bb_reg()
49 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl88e_phy_query_bb_reg()
63 u32 originalvalue, bitshift; in rtl88e_phy_set_bb_reg() local
71 bitshift = calculate_bit_shift(bitmask); in rtl88e_phy_set_bb_reg()
86 u32 original_value, readback_value, bitshift; in rtl88e_phy_query_rf_reg() local
96 bitshift = calculate_bit_shift(bitmask); in rtl88e_phy_query_rf_reg()
97 readback_value = (original_value & bitmask) >> bitshift; in rtl88e_phy_query_rf_reg()
112 u32 original_value, bitshift; in rtl88e_phy_set_rf_reg() local
124 bitshift = calculate_bit_shift(bitmask); in rtl88e_phy_set_rf_reg()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
A Dphy.c38 u32 original_value = 0, readback_value, bitshift; in rtl8723e_phy_query_rf_reg() local
52 bitshift = 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 = calculate_bit_shift(bitmask); in rtl8723e_phy_set_rf_reg()
86 (data << bitshift)); in rtl8723e_phy_set_rf_reg()
92 bitshift = calculate_bit_shift(bitmask); in rtl8723e_phy_set_rf_reg()
95 (data << bitshift)); in rtl8723e_phy_set_rf_reg()
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
A Dphy.c43 u32 returnvalue, originalvalue, bitshift; in rtl92ee_phy_query_bb_reg() local
48 bitshift = calculate_bit_shift(bitmask); in rtl92ee_phy_query_bb_reg()
49 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92ee_phy_query_bb_reg()
62 u32 originalvalue, bitshift; in rtl92ee_phy_set_bb_reg() local
70 bitshift = calculate_bit_shift(bitmask); in rtl92ee_phy_set_bb_reg()
71 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92ee_phy_set_bb_reg()
85 u32 original_value, readback_value, bitshift; in rtl92ee_phy_query_rf_reg() local
94 bitshift = calculate_bit_shift(bitmask); in rtl92ee_phy_query_rf_reg()
95 readback_value = (original_value & bitmask) >> bitshift; in rtl92ee_phy_query_rf_reg()
111 u32 original_value, bitshift; in rtl92ee_phy_set_rf_reg() local
[all …]
/drivers/net/ethernet/altera/
A Daltera_tse_main.c814 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()
/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
A Dphy_common.c15 u32 returnvalue, originalvalue, bitshift; in rtl92c_phy_query_bb_reg() local
20 bitshift = 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 = calculate_bit_shift(bitmask); in rtl92c_phy_set_bb_reg()
44 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92c_phy_set_bb_reg()
/drivers/net/wireless/realtek/rtlwifi/rtl8192du/
A Dphy.c160 u32 returnvalue, originalvalue, bitshift; in rtl92du_phy_query_bb_reg() local
171 bitshift = calculate_bit_shift(bitmask); in rtl92du_phy_query_bb_reg()
172 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92du_phy_query_bb_reg()
184 u32 originalvalue, bitshift; in rtl92du_phy_set_bb_reg() local
197 bitshift = calculate_bit_shift(bitmask); in rtl92du_phy_set_bb_reg()
199 ((data << bitshift) & bitmask); in rtl92du_phy_set_bb_reg()
213 u32 originalvalue, bitshift, offset; in rtl92du_phy_set_bb_reg_1byte() local
219 bitshift = calculate_bit_shift(bitmask); in rtl92du_phy_set_bb_reg_1byte()
220 offset = bitshift / 8; in rtl92du_phy_set_bb_reg_1byte()
223 data = (originalvalue & (~bitmask)) | ((data << bitshift) & bitmask); in rtl92du_phy_set_bb_reg_1byte()
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
A Dphy.c96 u32 returnvalue, originalvalue, bitshift; in rtl8821ae_phy_query_bb_reg() local
102 bitshift = calculate_bit_shift(bitmask); in rtl8821ae_phy_query_bb_reg()
103 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8821ae_phy_query_bb_reg()
115 u32 originalvalue, bitshift; in rtl8821ae_phy_set_bb_reg() local
123 bitshift = calculate_bit_shift(bitmask); in rtl8821ae_phy_set_bb_reg()
125 ((data << bitshift) & bitmask)); in rtl8821ae_phy_set_bb_reg()
140 u32 original_value, readback_value, bitshift; in rtl8821ae_phy_query_rf_reg() local
149 bitshift = calculate_bit_shift(bitmask); in rtl8821ae_phy_query_rf_reg()
150 readback_value = (original_value & bitmask) >> bitshift; in rtl8821ae_phy_query_rf_reg()
166 u32 original_value, bitshift; in rtl8821ae_phy_set_rf_reg() local
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
A Dphy.c35 u32 original_value, readback_value, bitshift; in rtl8723be_phy_query_rf_reg() local
44 bitshift = 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 = calculate_bit_shift(bitmask); in rtl8723be_phy_set_rf_reg()
73 (data << bitshift)); in rtl8723be_phy_set_rf_reg()
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
A Dphy.c167 u32 returnvalue, originalvalue, bitshift; in rtl92d_phy_query_bb_reg() local
185 bitshift = calculate_bit_shift(bitmask); in rtl92d_phy_query_bb_reg()
186 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92d_phy_query_bb_reg()
199 u32 originalvalue, bitshift; in rtl92d_phy_set_bb_reg() local
217 bitshift = calculate_bit_shift(bitmask); in rtl92d_phy_set_bb_reg()
218 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92d_phy_set_bb_reg()
/drivers/gpu/drm/display/
A Ddrm_dp_mst_topology.c210 u8 bitshift = 7; in drm_dp_msg_header_crc4() local
218 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_header_crc4()
220 bitshift--; in drm_dp_msg_header_crc4()
223 bitshift = 7; in drm_dp_msg_header_crc4()
244 u8 bitshift = 7; in drm_dp_msg_data_crc4() local
252 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_data_crc4()
254 bitshift--; in drm_dp_msg_data_crc4()
257 bitshift = 7; in drm_dp_msg_data_crc4()

Completed in 72 milliseconds