Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/drivers/clk/ti/
Dclk-3xxx-legacy.c108 .bit_shift = 6,
158 .bit_shift = 27,
223 .bit_shift = 9,
238 .bit_shift = 1,
252 .bit_shift = 2,
279 .bit_shift = 25,
356 .bit_shift = 0x1b,
398 .bit_shift = 6,
425 .bit_shift = 23,
440 .bit_shift = 0,
[all …]
Dclock.h85 u8 bit_shift; member
95 u8 bit_shift; member
113 u8 bit_shift; member
Dmux.c169 flags, (void __iomem *)reg, mux->bit_shift, mask, in ti_clk_register_mux()
247 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.c377 div->shift = setup->bit_shift; in ti_clk_build_component_div()
414 flags, (void __iomem *)reg, div->bit_shift, in ti_clk_register_divider()
/linux-4.4.14/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-4.4.14/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()
323 pd->bit_shift = idx; in rmobile_add_pm_domains()
Dpm-rmobile.h21 unsigned int bit_shift; member
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/include/linux/isdn/
Dhdlc.h33 int bit_shift; member
/linux-4.4.14/drivers/net/wireless/realtek/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.4.14/drivers/mtd/nand/
Datmel_nand.c1806 int index = 0, bit_shift; in nfc_make_addr() local
1832 for (bit_shift = 0; index < acycle; bit_shift += 8) in nfc_make_addr()
1833 *addr1234 += addr_bytes[index++] << bit_shift; in nfc_make_addr()