Home
last modified time | relevance | path

Searched refs:bit_shift (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.4/drivers/isdn/hardware/mISDN/
Disdnhdlc.c137 if (h->cbin == fast_flag[h->bit_shift]) { \ in isdnhdlc_decode()
138 h->ffvalue = fast_flag_value[h->bit_shift]; \ in isdnhdlc_decode()
140 h->ffbit_shift = h->bit_shift; \ in isdnhdlc_decode()
141 h->bit_shift = 1; \ in isdnhdlc_decode()
162 if (hdlc->bit_shift == 0) { in isdnhdlc_decode()
169 hdlc->bit_shift = 8; in isdnhdlc_decode()
171 hdlc->bit_shift--; in isdnhdlc_decode()
179 hdlc->bit_shift = 0; in isdnhdlc_decode()
184 hdlc->bit_shift = 8; in isdnhdlc_decode()
193 (hdlc->bit_shift == 1)) in isdnhdlc_decode()
[all …]
Disdnhdlc.h20 int bit_shift; member
/Linux-v5.4/arch/sparc/include/asm/
Dcmpxchg_64.h73 int bit_shift = (((unsigned long)m & 2) ^ 2) << 3; in xchg16() local
74 unsigned int mask = 0xffff << bit_shift; in xchg16()
83 new32 = (load32 & (~mask)) | val << bit_shift; in xchg16()
87 return (load32 & mask) >> bit_shift; in xchg16()
134 int bit_shift = (((unsigned long)m & 3) ^ 3) << 3; in __cmpxchg_u8() local
135 unsigned int mask = 0xff << bit_shift; in __cmpxchg_u8()
141 new32 = (load32 & ~mask) | (new << bit_shift); in __cmpxchg_u8()
142 old32 = (load32 & ~mask) | (old << bit_shift); in __cmpxchg_u8()
146 load = (load32 & mask) >> bit_shift; in __cmpxchg_u8()
/Linux-v5.4/drivers/staging/rtl8712/
Drtl871x_mp.c206 u32 org_value, bit_shift; in get_bb_reg() local
209 bit_shift = bitshift(bitmask); in get_bb_reg()
210 return (org_value & bitmask) >> bit_shift; in get_bb_reg()
218 u32 org_value, bit_shift, new_value; in set_bb_reg() local
222 bit_shift = bitshift(bitmask); in set_bb_reg()
223 new_value = (org_value & (~bitmask)) | (value << bit_shift); in set_bb_reg()
233 u32 org_value, bit_shift; in get_rf_reg() local
236 bit_shift = bitshift(bitmask); in get_rf_reg()
237 return (org_value & bitmask) >> bit_shift; in get_rf_reg()
243 u32 org_value, bit_shift, new_value; in set_rf_reg() local
[all …]
/Linux-v5.4/drivers/soc/renesas/
Drmobile-sysc.c39 unsigned int bit_shift; member
51 unsigned int mask = BIT(rmobile_pd->bit_shift); in rmobile_pd_power_down()
79 unsigned int mask = BIT(rmobile_pd->bit_shift); in __rmobile_pd_power_up()
269 if (pd->bit_shift == ~0) { in rmobile_setup_pm_domain()
302 pd->bit_shift = idx; in rmobile_add_pm_domains()
/Linux-v5.4/drivers/net/ethernet/intel/igbvf/
Dvf.c171 u8 bit_shift = 0; in e1000_hash_mc_addr_vf() local
179 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr_vf()
180 bit_shift++; in e1000_hash_mc_addr_vf()
182 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf()
183 (((u16)mc_addr[5]) << bit_shift))); in e1000_hash_mc_addr_vf()
/Linux-v5.4/drivers/staging/rtl8188eu/hal/
Dphy.c34 u32 original_value, bit_shift; in phy_query_bb_reg() local
37 bit_shift = cal_bit_shift(bitmask); in phy_query_bb_reg()
38 return (original_value & bitmask) >> bit_shift; in phy_query_bb_reg()
43 u32 original_value, bit_shift; in phy_set_bb_reg() local
47 bit_shift = cal_bit_shift(bitmask); in phy_set_bb_reg()
48 data = (original_value & (~bitmask)) | (data << bit_shift); in phy_set_bb_reg()
112 u32 original_value, bit_shift; in rtw_hal_read_rfreg() local
115 bit_shift = cal_bit_shift(bit_mask); in rtw_hal_read_rfreg()
116 return (original_value & bit_mask) >> bit_shift; in rtw_hal_read_rfreg()
122 u32 original_value, bit_shift; in phy_set_rf_reg() local
[all …]
/Linux-v5.4/drivers/clk/ti/
Dclock.h112 u8 bit_shift; member
122 u8 bit_shift; member
133 u8 bit_shift; member
Dmux.c240 mux->shift = setup->bit_shift; in ti_clk_build_component_mux()
/Linux-v5.4/drivers/net/ethernet/intel/igb/
De1000_mac.c428 u8 bit_shift = 0; in igb_hash_mc_addr() local
436 while (hash_mask >> bit_shift != 0xFF) in igb_hash_mc_addr()
437 bit_shift++; in igb_hash_mc_addr()
469 bit_shift += 1; in igb_hash_mc_addr()
472 bit_shift += 2; in igb_hash_mc_addr()
475 bit_shift += 4; in igb_hash_mc_addr()
479 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr()
480 (((u16) mc_addr[5]) << bit_shift))); in igb_hash_mc_addr()
/Linux-v5.4/drivers/net/ethernet/intel/e1000e/
Dmac.c249 u8 bit_shift = 0; in e1000_hash_mc_addr() local
257 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr()
258 bit_shift++; in e1000_hash_mc_addr()
290 bit_shift += 1; in e1000_hash_mc_addr()
293 bit_shift += 2; in e1000_hash_mc_addr()
296 bit_shift += 4; in e1000_hash_mc_addr()
300 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr()
301 (((u16)mc_addr[5]) << bit_shift))); in e1000_hash_mc_addr()
/Linux-v5.4/arch/arm/mach-omap2/
Dcm33xx.c230 u8 bit_shift) in am33xx_cm_wait_module_ready() argument
253 u8 bit_shift) in am33xx_cm_wait_module_idle() argument
Dcminst44xx.c275 u8 bit_shift) in omap4_cminst_wait_module_ready() argument
298 u8 bit_shift) in omap4_cminst_wait_module_idle() argument
/Linux-v5.4/drivers/hid/
Dhid-core.c1296 unsigned int bit_shift = offset % 8; in __extract() local
1297 int bits_to_copy = 8 - bit_shift; in __extract()
1302 value |= ((u32)report[idx] >> bit_shift) << bit_nr; in __extract()
1306 bit_shift = 0; in __extract()
1338 unsigned int bit_shift = offset % 8; in __implement() local
1339 int bits_to_set = 8 - bit_shift; in __implement()
1342 report[idx] &= ~(0xff << bit_shift); in __implement()
1343 report[idx] |= value << bit_shift; in __implement()
1347 bit_shift = 0; in __implement()
1354 report[idx] &= ~(bit_mask << bit_shift); in __implement()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/phy/
Dphy-hi3798cv200-combphy.txt22 <register_offset bit_shift bit_mask>.
/Linux-v5.4/crypto/
Decc.c610 int bit_shift = shift % 64; in vli_mmod_slow() local
613 if (bit_shift > 0) { in vli_mmod_slow()
615 mod_m[word_shift + i] = (mod[i] << bit_shift) | carry; in vli_mmod_slow()
616 carry = mod[i] >> (64 - bit_shift); in vli_mmod_slow()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/btcoexist/
Dhalbtcoutsrc.c946 u8 original_value, bit_shift = 0; in halbtc_bitmask_write_1byte() local
955 bit_shift = i; in halbtc_bitmask_write_1byte()
957 ((data << bit_shift) & bit_mask); in halbtc_bitmask_write_1byte()