Home
last modified time | relevance | path

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

/linux-4.1.27/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-4.1.27/drivers/clk/ti/
Dclk-3xxx-legacy.c107 .bit_shift = 6,
157 .bit_shift = 27,
222 .bit_shift = 9,
237 .bit_shift = 1,
251 .bit_shift = 2,
278 .bit_shift = 25,
355 .bit_shift = 0x1b,
397 .bit_shift = 6,
424 .bit_shift = 23,
439 .bit_shift = 0,
[all …]
Dclock.h85 u8 bit_shift; member
95 u8 bit_shift; member
113 u8 bit_shift; member
Dmux.c177 flags, (void __iomem *)reg, mux->bit_shift, mask, in ti_clk_register_mux()
258 mux->shift = setup->bit_shift; in ti_clk_build_component_mux()
Dgate.c178 (void __iomem *)reg, gate->bit_shift, in ti_clk_register_gate()
199 gate->enable_bit = setup->bit_shift; in ti_clk_build_component_gate()
Dinterface.c100 (void __iomem *)reg, gate->bit_shift, ops); in ti_clk_register_interface()
Ddivider.c386 div->shift = setup->bit_shift; in ti_clk_build_component_div()
423 flags, (void __iomem *)reg, div->bit_shift, in ti_clk_register_divider()
/linux-4.1.27/arch/arm/mach-shmobile/
Dpm-r8a7740.c53 .bit_shift = 1,
57 .bit_shift = 2,
61 .bit_shift = 3,
67 .bit_shift = 5,
71 .bit_shift = 6,
75 .bit_shift = 10,
80 .bit_shift = 11,
87 .bit_shift = 12,
93 .bit_shift = 13,
97 .bit_shift = 20,
Dpm-rmobile.c42 if (rmobile_pd->bit_shift == ~0) in rmobile_pd_power_down()
45 mask = 1 << rmobile_pd->bit_shift; in rmobile_pd_power_down()
79 if (rmobile_pd->bit_shift == ~0) in __rmobile_pd_power_up()
82 mask = 1 << rmobile_pd->bit_shift; in __rmobile_pd_power_up()
381 pd->bit_shift = idx; in rmobile_add_pm_domains()
Dpm-rmobile.h25 unsigned int bit_shift; member
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_mp.c221 u32 org_value, bit_shift, new_value; in get_bb_reg() local
224 bit_shift = bitshift(bitmask); in get_bb_reg()
225 new_value = (org_value & bitmask) >> bit_shift; in get_bb_reg()
234 u32 org_value, bit_shift, new_value; in set_bb_reg() local
238 bit_shift = bitshift(bitmask); in set_bb_reg()
239 new_value = ((org_value & (~bitmask)) | (value << bit_shift)); in set_bb_reg()
248 u32 org_value, bit_shift, new_value; in get_rf_reg() local
251 bit_shift = bitshift(bitmask); in get_rf_reg()
252 new_value = (org_value & bitmask) >> bit_shift; in get_rf_reg()
259 u32 org_value, bit_shift, new_value; in set_rf_reg() local
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Dvf.c191 u8 bit_shift = 0; in e1000_hash_mc_addr_vf() local
199 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr_vf()
200 bit_shift++; in e1000_hash_mc_addr_vf()
202 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf()
203 (((u16)mc_addr[5]) << bit_shift))); in e1000_hash_mc_addr_vf()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
De1000_mac.c375 u8 bit_shift = 0; in igb_hash_mc_addr() local
383 while (hash_mask >> bit_shift != 0xFF) in igb_hash_mc_addr()
384 bit_shift++; in igb_hash_mc_addr()
416 bit_shift += 1; in igb_hash_mc_addr()
419 bit_shift += 2; in igb_hash_mc_addr()
422 bit_shift += 4; in igb_hash_mc_addr()
426 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr()
427 (((u16) mc_addr[5]) << bit_shift))); in igb_hash_mc_addr()
/linux-4.1.27/drivers/staging/rtl8188eu/hal/
Dphy.c48 u32 return_value = 0, original_value, bit_shift; in phy_query_bb_reg() local
51 bit_shift = cal_bit_shift(bitmask); in phy_query_bb_reg()
52 return_value = (original_value & bitmask) >> bit_shift; in phy_query_bb_reg()
58 u32 original_value, bit_shift; in phy_set_bb_reg() local
62 bit_shift = cal_bit_shift(bitmask); in phy_set_bb_reg()
63 data = (original_value & (~bitmask)) | (data << bit_shift); in phy_set_bb_reg()
129 u32 original_value, readback_value, bit_shift; in phy_query_rf_reg() local
132 bit_shift = cal_bit_shift(bit_mask); in phy_query_rf_reg()
133 readback_value = (original_value & bit_mask) >> bit_shift; in phy_query_rf_reg()
140 u32 original_value, bit_shift; in phy_set_rf_reg() local
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dmac.c267 u8 bit_shift = 0; in e1000_hash_mc_addr() local
275 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr()
276 bit_shift++; in e1000_hash_mc_addr()
308 bit_shift += 1; in e1000_hash_mc_addr()
311 bit_shift += 2; in e1000_hash_mc_addr()
314 bit_shift += 4; in e1000_hash_mc_addr()
318 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr()
319 (((u16)mc_addr[5]) << bit_shift))); in e1000_hash_mc_addr()
/linux-4.1.27/arch/arm/mach-omap2/
Dcm33xx.c219 u8 bit_shift) in am33xx_cm_wait_module_ready() argument
242 u8 bit_shift) in am33xx_cm_wait_module_idle() argument
Dcminst44xx.c277 u8 bit_shift) in omap4_cminst_wait_module_ready() argument
303 u8 bit_shift) in omap4_cminst_wait_module_idle() argument
/linux-4.1.27/include/linux/isdn/
Dhdlc.h33 int bit_shift; member
/linux-4.1.27/drivers/net/wireless/rtlwifi/btcoexist/
Dhalbtcoutsrc.c512 u8 original_value, bit_shift = 0; in halbtc_bitmask_write_1byte() local
521 bit_shift = i; in halbtc_bitmask_write_1byte()
523 ((data << bit_shift) & bit_mask); in halbtc_bitmask_write_1byte()
/linux-4.1.27/drivers/mtd/nand/
Datmel_nand.c1805 int index = 0, bit_shift; in nfc_make_addr() local
1831 for (bit_shift = 0; index < acycle; bit_shift += 8) in nfc_make_addr()
1832 *addr1234 += addr_bytes[index++] << bit_shift; in nfc_make_addr()