Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/comedi/drivers/
Dni_65xx.c301 int bitshift = (int)(NI_65XX_PORT_TO_CHAN(port) - base_chan); in ni_65xx_update_edge_detection() local
304 if (bitshift >= 32) in ni_65xx_update_edge_detection()
307 if (bitshift >= 0) { in ni_65xx_update_edge_detection()
308 port_mask = ~0U >> bitshift; in ni_65xx_update_edge_detection()
309 port_rising = rising >> bitshift; in ni_65xx_update_edge_detection()
310 port_falling = falling >> bitshift; in ni_65xx_update_edge_detection()
312 port_mask = ~0U << -bitshift; in ni_65xx_update_edge_detection()
313 port_rising = rising << -bitshift; in ni_65xx_update_edge_detection()
314 port_falling = falling << -bitshift; in ni_65xx_update_edge_detection()
429 int bitshift = base_port_channel - base_chan; in ni_65xx_dio_insn_bits() local
[all …]
/linux-6.12.1/drivers/mmc/host/
Dmmc_spi.c221 int bitshift; in mmc_spi_response_get() local
268 bitshift = 0; in mmc_spi_response_get()
282 bitshift++; in mmc_spi_response_get()
335 if (bitshift) { in mmc_spi_response_get()
337 rotator |= *cp << bitshift; in mmc_spi_response_get()
358 if (bitshift) { in mmc_spi_response_get()
359 rotator |= *cp++ << bitshift; in mmc_spi_response_get()
693 unsigned int bitshift; in mmc_spi_readblock() local
714 bitshift = 7; in mmc_spi_readblock()
717 bitshift--; in mmc_spi_readblock()
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
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()
/linux-6.12.1/drivers/iio/adc/
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), \
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
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()
/linux-6.12.1/drivers/input/joystick/
Dtwidjoy.c53 int bitshift; member
97 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
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()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
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 …]
/linux-6.12.1/drivers/staging/rtl8712/
Drtl871x_mp.c194 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.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
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()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
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()
72 data = ((originalvalue & (~bitmask)) | (data << bitshift)); 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
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
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()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
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 …]
/linux-6.12.1/drivers/net/ethernet/altera/
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()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
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()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192du/
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()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
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 …]
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
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()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
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()
/linux-6.12.1/drivers/gpu/drm/display/
Ddrm_dp_mst_topology.c201 u8 bitshift = 7; in drm_dp_msg_header_crc4() local
209 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_header_crc4()
211 bitshift--; in drm_dp_msg_header_crc4()
214 bitshift = 7; in drm_dp_msg_header_crc4()
235 u8 bitshift = 7; in drm_dp_msg_data_crc4() local
243 remainder |= (data[array_index] & bitmask) >> bitshift; in drm_dp_msg_data_crc4()
245 bitshift--; in drm_dp_msg_data_crc4()
248 bitshift = 7; in drm_dp_msg_data_crc4()
/linux-6.12.1/Documentation/bpf/
Dllvm_reloc.rst293 BPF_CORE_FIELD_LSHIFT_U64 = 4, /* bitfield-specific left bitshift */
294 BPF_CORE_FIELD_RSHIFT_U64 = 5, /* bitfield-specific right bitshift */
/linux-6.12.1/fs/ocfs2/
Dsuper.c571 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()