Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/isdn/i4l/
Disdnhdlc.c150 if (h->cbin == fast_flag[h->bit_shift]) { \ in isdnhdlc_decode()
151 h->ffvalue = fast_flag_value[h->bit_shift]; \ in isdnhdlc_decode()
153 h->ffbit_shift = h->bit_shift; \ in isdnhdlc_decode()
154 h->bit_shift = 1; \ in isdnhdlc_decode()
175 if (hdlc->bit_shift == 0) { in isdnhdlc_decode()
182 hdlc->bit_shift = 8; in isdnhdlc_decode()
184 hdlc->bit_shift--; in isdnhdlc_decode()
192 hdlc->bit_shift = 0; in isdnhdlc_decode()
197 hdlc->bit_shift = 8; in isdnhdlc_decode()
206 (hdlc->bit_shift == 1)) in isdnhdlc_decode()
[all …]
/Linux-v4.19/arch/sparc/include/asm/
Dcmpxchg_64.h68 int bit_shift = (((unsigned long)m & 2) ^ 2) << 3; in xchg16() local
69 unsigned int mask = 0xffff << bit_shift; in xchg16()
78 new32 = (load32 & (~mask)) | val << bit_shift; in xchg16()
82 return (load32 & mask) >> bit_shift; in xchg16()
129 int bit_shift = (((unsigned long)m & 3) ^ 3) << 3; in __cmpxchg_u8() local
130 unsigned int mask = 0xff << bit_shift; in __cmpxchg_u8()
136 new32 = (load32 & ~mask) | (new << bit_shift); in __cmpxchg_u8()
137 old32 = (load32 & ~mask) | (old << bit_shift); in __cmpxchg_u8()
141 load = (load32 & mask) >> bit_shift; in __cmpxchg_u8()
/Linux-v4.19/drivers/staging/rtl8712/
Drtl871x_mp.c221 u32 org_value, bit_shift; in get_bb_reg() local
224 bit_shift = bitshift(bitmask); in get_bb_reg()
225 return (org_value & bitmask) >> bit_shift; in get_bb_reg()
233 u32 org_value, bit_shift, new_value; in set_bb_reg() local
237 bit_shift = bitshift(bitmask); in set_bb_reg()
238 new_value = (org_value & (~bitmask)) | (value << bit_shift); in set_bb_reg()
248 u32 org_value, bit_shift; in get_rf_reg() local
251 bit_shift = bitshift(bitmask); in get_rf_reg()
252 return (org_value & bitmask) >> bit_shift; in get_rf_reg()
258 u32 org_value, bit_shift, new_value; in set_rf_reg() local
[all …]
/Linux-v4.19/arch/arm/mach-shmobile/
Dpm-rmobile.c49 if (rmobile_pd->bit_shift == ~0) in rmobile_pd_power_down()
52 mask = BIT(rmobile_pd->bit_shift); in rmobile_pd_power_down()
86 if (rmobile_pd->bit_shift == ~0) in __rmobile_pd_power_up()
89 mask = BIT(rmobile_pd->bit_shift); in __rmobile_pd_power_up()
305 pd->bit_shift = idx; in rmobile_add_pm_domains()
Dpm-rmobile.h21 unsigned int bit_shift; member
/Linux-v4.19/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-v4.19/drivers/clk/ti/
Dclock.h103 u8 bit_shift; member
113 u8 bit_shift; member
124 u8 bit_shift; member
Dmux.c165 flags, &reg, mux->bit_shift, mask, -EINVAL, in ti_clk_register_mux()
242 mux->shift = setup->bit_shift; in ti_clk_build_component_mux()
Dgate.c148 gate->enable_bit = setup->bit_shift; in ti_clk_build_component_gate()
Ddivider.c426 div->shift = setup->bit_shift; in ti_clk_build_component_div()
459 flags, &reg, div->bit_shift, in ti_clk_register_divider()
/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/include/linux/isdn/
Dhdlc.h33 int bit_shift; member
/Linux-v4.19/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.c278 u8 bit_shift) in omap4_cminst_wait_module_ready() argument
301 u8 bit_shift) in omap4_cminst_wait_module_idle() argument
/Linux-v4.19/drivers/hid/
Dhid-core.c1109 unsigned int bit_shift = offset % 8; in __extract() local
1110 int bits_to_copy = 8 - bit_shift; in __extract()
1115 value |= ((u32)report[idx] >> bit_shift) << bit_nr; in __extract()
1119 bit_shift = 0; in __extract()
1151 unsigned int bit_shift = offset % 8; in __implement() local
1152 int bits_to_set = 8 - bit_shift; in __implement()
1155 report[idx] &= ~(0xff << bit_shift); in __implement()
1156 report[idx] |= value << bit_shift; in __implement()
1160 bit_shift = 0; in __implement()
1167 report[idx] &= ~(bit_mask << bit_shift); in __implement()
[all …]
/Linux-v4.19/drivers/staging/rtlwifi/phydm/rtl8822b/
Dphydm_hal_api8822b.c103 u8 bit_shift; in phydm_check_bit_mask() local
106 for (bit_shift = 0; bit_shift <= 19; bit_shift++) { in phydm_check_bit_mask()
107 if (((bit_mask >> bit_shift) & 0x1) == 1) in phydm_check_bit_mask()
110 return ((data_original) & (~bit_mask)) | (data << bit_shift); in phydm_check_bit_mask()
/Linux-v4.19/Documentation/devicetree/bindings/phy/
Dphy-hi3798cv200-combphy.txt22 <register_offset bit_shift bit_mask>.
/Linux-v4.19/drivers/staging/rtlwifi/btcoexist/
Dhalbtcoutsrc.c906 u8 original_value, bit_shift = 0; in halbtc_bitmask_write_1byte() local
915 bit_shift = i; in halbtc_bitmask_write_1byte()
917 ((data << bit_shift) & bit_mask); in halbtc_bitmask_write_1byte()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/btcoexist/
Dhalbtcoutsrc.c978 u8 original_value, bit_shift = 0; in halbtc_bitmask_write_1byte() local
987 bit_shift = i; in halbtc_bitmask_write_1byte()
989 ((data << bit_shift) & bit_mask); in halbtc_bitmask_write_1byte()