Searched defs:bit_shift (Results 1 - 7 of 7) sorted by relevance

/drivers/mfd/
H A Danatop-mfd.c44 u32 anatop_get_bits(struct anatop *adata, u32 addr, int bit_shift, argument
55 val = (val >> bit_shift) & mask;
61 void anatop_set_bits(struct anatop *adata, u32 addr, int bit_shift, argument
72 val = readl(adata->ioreg + addr) & ~(mask << bit_shift);
73 writel((data << bit_shift) | val, adata->ioreg + addr);
/drivers/net/ethernet/intel/igbvf/
H A Dvf.c192 u8 bit_shift = 0; local
198 * The bit_shift is the number of left-shifts
201 while (hash_mask >> bit_shift != 0xFF)
202 bit_shift++;
204 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) |
205 (((u16) mc_addr[5]) << bit_shift)));
/drivers/net/ethernet/intel/e1000e/
H A Dmac.c271 u8 bit_shift = 0; local
277 * For a mc_filter_type of 0, bit_shift is the number of left-shifts
280 while (hash_mask >> bit_shift != 0xFF)
281 bit_shift++;
287 * The bit_shift for a mc_filter_type of 0 represents the number of
291 * remaining number of bits. Thus 8 - bit_shift. The rest of the
298 * we can see that the bit_shift for case 0 is 4. These are the hash
314 bit_shift += 1;
317 bit_shift += 2;
320 bit_shift
[all...]
/drivers/net/ethernet/intel/igb/
H A De1000_mac.c384 u8 bit_shift = 0; local
390 * For a mc_filter_type of 0, bit_shift is the number of left-shifts
393 while (hash_mask >> bit_shift != 0xFF)
394 bit_shift++;
400 * The bit_shift for a mc_filter_type of 0 represents the number of
404 * remaining number of bits. Thus 8 - bit_shift. The rest of the
411 * we can see that the bit_shift for case 0 is 4. These are the hash
427 bit_shift += 1;
430 bit_shift += 2;
433 bit_shift
[all...]
/drivers/staging/rtl8712/
H A Drtl871x_mp.c222 u32 org_value, bit_shift, new_value; local
225 bit_shift = bitshift(bitmask);
226 new_value = (org_value & bitmask) >> bit_shift;
235 u32 org_value, bit_shift, new_value; local
239 bit_shift = bitshift(bitmask);
240 new_value = ((org_value & (~bitmask)) | (value << bit_shift));
249 u32 org_value, bit_shift, new_value; local
252 bit_shift = bitshift(bitmask);
253 new_value = (org_value & bitmask) >> bit_shift;
260 u32 org_value, bit_shift, new_valu local
[all...]
/drivers/staging/comedi/
H A Dcomedi_fops.c255 int bit_shift; local
272 bit_shift = sizeof(int) * 8;
274 ((unsigned long)aux_data) >> bit_shift;
H A Dcomedidev.h435 int bit_shift; local
440 bit_shift = sizeof(int) * 8;
441 address <<= bit_shift; local
443 addressLow &= (1UL << bit_shift) - 1;

Completed in 180 milliseconds