Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/staging/comedi/drivers/
Dni_65xx.c427 int bitshift = base_port_channel - base_bitfield_channel; in ni_65xx_dio_insn_bits() local
429 if (bitshift >= 32) in ni_65xx_dio_insn_bits()
433 if (bitshift > 0) { in ni_65xx_dio_insn_bits()
434 port_mask >>= bitshift; in ni_65xx_dio_insn_bits()
435 port_data >>= bitshift; in ni_65xx_dio_insn_bits()
437 port_mask <<= -bitshift; in ni_65xx_dio_insn_bits()
438 port_data <<= -bitshift; in ni_65xx_dio_insn_bits()
464 if (bitshift > 0) in ni_65xx_dio_insn_bits()
465 port_read_bits <<= bitshift; in ni_65xx_dio_insn_bits()
467 port_read_bits >>= -bitshift; in ni_65xx_dio_insn_bits()
/linux-3.4.99/drivers/mmc/host/
Dmmc_spi.c267 int bitshift; in mmc_spi_response_get() local
314 bitshift = 0; in mmc_spi_response_get()
328 bitshift++; in mmc_spi_response_get()
378 if (bitshift) { in mmc_spi_response_get()
380 rotator |= *cp << bitshift; in mmc_spi_response_get()
401 if (bitshift) { in mmc_spi_response_get()
402 rotator |= *cp++ << bitshift; in mmc_spi_response_get()
789 unsigned int bitshift; in mmc_spi_readblock() local
810 bitshift = 7; in mmc_spi_readblock()
813 bitshift--; in mmc_spi_readblock()
[all …]
/linux-3.4.99/drivers/net/wireless/rtlwifi/rtl8192cu/
Dphy.c44 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-3.4.99/drivers/net/wireless/rtlwifi/rtl8192ce/
Dphy.c47 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()
120 u32 original_value, bitshift; in rtl92ce_phy_set_rf_reg() local
133 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
136 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
145 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
148 (data << bitshift)); in rtl92ce_phy_set_rf_reg()
/linux-3.4.99/drivers/input/joystick/
Dtwidjoy.c69 int bitshift; member
113 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
/linux-3.4.99/Documentation/ABI/obsolete/
Dproc-pid-oom_adj9 implemented as a bitshift on a score generated by the badness()
12 task allocating pages, so using a bitshift which grows the score
/linux-3.4.99/drivers/net/wireless/rtlwifi/rtl8192se/
Dphy.c57 u32 returnvalue = 0, originalvalue, bitshift; in rtl92s_phy_query_bb_reg() local
63 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg()
64 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg()
77 u32 originalvalue, bitshift; in rtl92s_phy_set_bb_reg() local
85 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_set_bb_reg()
86 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92s_phy_set_bb_reg()
183 u32 original_value, readback_value, bitshift; in rtl92s_phy_query_rf_reg() local
193 bitshift = _rtl92s_phy_calculate_bit_shift(bitmask); in rtl92s_phy_query_rf_reg()
194 readback_value = (original_value & bitmask) >> bitshift; in rtl92s_phy_query_rf_reg()
210 u32 original_value, bitshift; in rtl92s_phy_set_rf_reg() local
[all …]
/linux-3.4.99/drivers/staging/rtl8712/
Drtl871x_mp.c210 static u32 bitshift(u32 bitmask) in bitshift() function
225 bit_shift = bitshift(bitmask); in get_bb_reg()
239 bit_shift = bitshift(bitmask); in set_bb_reg()
252 bit_shift = bitshift(bitmask); in get_rf_reg()
264 bit_shift = bitshift(bitmask); in set_rf_reg()
/linux-3.4.99/drivers/net/wireless/rtlwifi/rtl8192de/
Dphy.c204 u32 returnvalue, originalvalue, bitshift; in rtl92d_phy_query_bb_reg() local
221 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_bb_reg()
222 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92d_phy_query_bb_reg()
235 u32 originalvalue, bitshift; in rtl92d_phy_set_bb_reg() local
253 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_set_bb_reg()
254 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92d_phy_set_bb_reg()
333 u32 original_value, readback_value, bitshift; in rtl92d_phy_query_rf_reg() local
341 bitshift = _rtl92d_phy_calculate_bit_shift(bitmask); in rtl92d_phy_query_rf_reg()
342 readback_value = (original_value & bitmask) >> bitshift; in rtl92d_phy_query_rf_reg()
355 u32 original_value, bitshift; in rtl92d_phy_set_rf_reg() local
[all …]
/linux-3.4.99/drivers/net/wireless/rtlwifi/rtl8192c/
Dphy_common.c43 u32 returnvalue, originalvalue, bitshift; in rtl92c_phy_query_bb_reg() local
48 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_bb_reg()
49 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92c_phy_query_bb_reg()
64 u32 originalvalue, bitshift; in rtl92c_phy_set_bb_reg() local
72 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_set_bb_reg()
73 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92c_phy_set_bb_reg()
/linux-3.4.99/fs/xfs/
Dxfs_super.c566 unsigned int bitshift = BITS_PER_LONG - 1; in xfs_max_file_offset() local
586 bitshift = BITS_PER_LONG; in xfs_max_file_offset()
592 return (((__uint64_t)pagefactor) << bitshift) - 1; in xfs_max_file_offset()
/linux-3.4.99/fs/ocfs2/
Dsuper.c585 unsigned int bitshift = 32; in ocfs2_max_file_offset() local
606 bitshift = 31; in ocfs2_max_file_offset()
615 bitshift = 31; in ocfs2_max_file_offset()
624 return (((unsigned long long)bytes) << bitshift) - trim; in ocfs2_max_file_offset()
/linux-3.4.99/Documentation/
Dfeature-removal-schedule.txt125 implemented as a bitshift on a score generated by the badness()
128 task allocating pages, so using a bitshift which grows the score