Home
last modified time | relevance | path

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

/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
/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 …]
/drivers/net/ethernet/intel/igc/
Digc_mac.c791 u8 bit_shift = 0; in igc_hash_mc_addr() local
799 while (hash_mask >> bit_shift != 0xFF) in igc_hash_mc_addr()
800 bit_shift++; in igc_hash_mc_addr()
832 bit_shift += 1; in igc_hash_mc_addr()
835 bit_shift += 2; in igc_hash_mc_addr()
838 bit_shift += 4; in igc_hash_mc_addr()
842 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igc_hash_mc_addr()
843 (((u16)mc_addr[5]) << bit_shift))); in igc_hash_mc_addr()
/drivers/soc/renesas/
Drmobile-sysc.c37 unsigned int bit_shift; member
49 unsigned int mask = BIT(rmobile_pd->bit_shift); in rmobile_pd_power_down()
77 unsigned int mask = BIT(rmobile_pd->bit_shift); in __rmobile_pd_power_up()
267 if (pd->bit_shift == ~0) { in rmobile_setup_pm_domain()
300 pd->bit_shift = idx; in rmobile_add_pm_domains()
/drivers/net/ethernet/intel/igbvf/
Dvf.c178 u8 bit_shift = 0; in e1000_hash_mc_addr_vf() local
186 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr_vf()
187 bit_shift++; in e1000_hash_mc_addr_vf()
189 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf()
190 (((u16)mc_addr[5]) << bit_shift))); in e1000_hash_mc_addr_vf()
/drivers/net/ethernet/intel/igb/
De1000_mac.c429 u8 bit_shift = 1; in igb_hash_mc_addr() local
437 while (hash_mask >> bit_shift != 0xFF && bit_shift < 4) in igb_hash_mc_addr()
438 bit_shift++; in igb_hash_mc_addr()
470 bit_shift += 1; in igb_hash_mc_addr()
473 bit_shift += 2; in igb_hash_mc_addr()
476 bit_shift += 4; in igb_hash_mc_addr()
480 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr()
481 (((u16) mc_addr[5]) << bit_shift))); in igb_hash_mc_addr()
/drivers/clk/ti/
Dclock.h106 u8 bit_shift; member
116 u8 bit_shift; member
127 u8 bit_shift; member
Dmux.c234 mux->shift = setup->bit_shift; in ti_clk_build_component_mux()
/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()
/drivers/hid/
Dhid-core.c1371 unsigned int bit_shift = offset % 8; in __extract() local
1372 int bits_to_copy = 8 - bit_shift; in __extract()
1377 value |= ((u32)report[idx] >> bit_shift) << bit_nr; in __extract()
1381 bit_shift = 0; in __extract()
1413 unsigned int bit_shift = offset % 8; in __implement() local
1414 int bits_to_set = 8 - bit_shift; in __implement()
1417 report[idx] &= ~(0xff << bit_shift); in __implement()
1418 report[idx] |= value << bit_shift; in __implement()
1422 bit_shift = 0; in __implement()
1429 report[idx] &= ~(bit_mask << bit_shift); in __implement()
[all …]
/drivers/net/wireless/realtek/rtlwifi/btcoexist/
Dhalbtcoutsrc.c932 u8 original_value, bit_shift = 0; in halbtc_bitmask_write_1byte() local
941 bit_shift = i; in halbtc_bitmask_write_1byte()
943 ((data << bit_shift) & bit_mask); in halbtc_bitmask_write_1byte()
/drivers/net/wireless/realtek/rtw89/
Dphy.c754 u8 bit_shift; in rtw89_phy_write_rf_a() local
773 bit_shift = __ffs(mask); in rtw89_phy_write_rf_a()
774 data = (data << bit_shift) & RFREG_MASK; in rtw89_phy_write_rf_a()