Home
last modified time | relevance | path

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

/linux/drivers/isdn/hardware/mISDN/
H A 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 in isdnhdlc_decode()
[all...]
H A Disdnhdlc.h20 int bit_shift; member
/linux/arch/sparc/include/asm/
H A 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/drivers/pmdomain/renesas/
H A Drmobile-sysc.c37 unsigned int bit_shift; member
49 unsigned int mask = BIT(rmobile_pd->bit_shift); in rmobile_pd_power_down()
74 unsigned int val, mask = BIT(rmobile_pd->bit_shift); in __rmobile_pd_power_up()
256 if (pd->bit_shift == ~0) { in rmobile_setup_pm_domain()
285 pd->bit_shift = idx; in rmobile_add_pm_domains()
/linux/drivers/net/ethernet/intel/igc/
H A Digc_mac.c781 u8 bit_shift = 0; in igc_hash_mc_addr() local
786 /* For a mc_filter_type of 0, bit_shift is the number of left-shifts in igc_hash_mc_addr()
789 while (hash_mask >> bit_shift != 0xFF) in igc_hash_mc_addr()
790 bit_shift++; in igc_hash_mc_addr()
795 * The bit_shift for a mc_filter_type of 0 represents the number of in igc_hash_mc_addr()
799 * remaining number of bits. Thus 8 - bit_shift. The rest of the in igc_hash_mc_addr()
806 * we can see that the bit_shift for case 0 is 4. These are the hash in igc_hash_mc_addr()
822 bit_shift += 1; in igc_hash_mc_addr()
825 bit_shift += 2; in igc_hash_mc_addr()
828 bit_shift in igc_hash_mc_addr()
[all...]
/linux/drivers/net/ethernet/intel/igbvf/
H A Dvf.c178 u8 bit_shift = 0; in e1000_hash_mc_addr_vf() local
183 /* The bit_shift is the number of left-shifts in e1000_hash_mc_addr_vf()
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()
/linux/drivers/net/ethernet/intel/igb/
H A De1000_mac.c429 u8 bit_shift = 1; in igb_hash_mc_addr() local
434 /* For a mc_filter_type of 0, bit_shift is the number of left-shifts in igb_hash_mc_addr()
437 while (hash_mask >> bit_shift != 0xFF && bit_shift < 4) in igb_hash_mc_addr()
438 bit_shift++; in igb_hash_mc_addr()
443 * The bit_shift for a mc_filter_type of 0 represents the number of in igb_hash_mc_addr()
447 * remaining number of bits. Thus 8 - bit_shift. The rest of the in igb_hash_mc_addr()
454 * we can see that the bit_shift for case 0 is 4. These are the hash in igb_hash_mc_addr()
470 bit_shift += 1; in igb_hash_mc_addr()
473 bit_shift in igb_hash_mc_addr()
[all...]
/linux/drivers/clk/ti/
H A Dclock.h106 u8 bit_shift; member
116 u8 bit_shift; member
127 u8 bit_shift; member
H A Dmux.c234 mux->shift = setup->bit_shift; in ti_clk_build_component_mux()
/linux/drivers/net/ethernet/intel/e1000e/
H A Dmac.c247 u8 bit_shift = 0; in e1000_hash_mc_addr() local
252 /* For a mc_filter_type of 0, bit_shift is the number of left-shifts in e1000_hash_mc_addr()
255 while (hash_mask >> bit_shift != 0xFF) in e1000_hash_mc_addr()
256 bit_shift++; in e1000_hash_mc_addr()
261 * The bit_shift for a mc_filter_type of 0 represents the number of in e1000_hash_mc_addr()
265 * remaining number of bits. Thus 8 - bit_shift. The rest of the in e1000_hash_mc_addr()
272 * we can see that the bit_shift for case 0 is 4. These are the hash in e1000_hash_mc_addr()
288 bit_shift += 1; in e1000_hash_mc_addr()
291 bit_shift += 2; in e1000_hash_mc_addr()
294 bit_shift in e1000_hash_mc_addr()
[all...]
/linux/arch/arm/mach-omap2/
H A Dcm33xx.c217 * @bit_shift: bit shift for the register, ignored for AM33xx
225 u8 bit_shift) in am33xx_cm_wait_module_ready() argument
241 * @bit_shift: bit shift for the register, ignored for AM33xx
248 u8 bit_shift) in am33xx_cm_wait_module_idle() argument
/linux/drivers/hid/
H A Dhid-core.c1390 unsigned int bit_shift = offset % 8; in __extract() local
1391 int bits_to_copy = 8 - bit_shift; in __extract()
1396 value |= ((u32)report[idx] >> bit_shift) << bit_nr; in __extract()
1400 bit_shift = 0; in __extract()
1432 unsigned int bit_shift = offset % 8; in __implement() local
1433 int bits_to_set = 8 - bit_shift; in __implement()
1436 report[idx] &= ~(0xff << bit_shift); in __implement()
1437 report[idx] |= value << bit_shift; in __implement()
1441 bit_shift = 0; in __implement()
1448 report[idx] &= ~(bit_mask << bit_shift); in __implement()
[all...]
/linux/crypto/
H A Decc.c648 int bit_shift = shift % 64; in vli_mmod_slow() local
651 if (bit_shift > 0) { in vli_mmod_slow()
653 mod_m[word_shift + i] = (mod[i] << bit_shift) | carry; in vli_mmod_slow()
654 carry = mod[i] >> (64 - bit_shift); in vli_mmod_slow()
/linux/drivers/net/wireless/realtek/rtlwifi/btcoexist/
H A 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()