Home
last modified time | relevance | path

Searched refs:lfsr (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/arch/x86/cpu/quark/
Dmrc_util.c1333 uint32_t lfsr; in lfsr32() local
1336 lfsr = *lfsr_ptr; in lfsr32()
1339 bit = 1 ^ (lfsr & 1); in lfsr32()
1340 bit = bit ^ ((lfsr & 2) >> 1); in lfsr32()
1341 bit = bit ^ ((lfsr & 4) >> 2); in lfsr32()
1342 bit = bit ^ ((lfsr & 0x400000) >> 22); in lfsr32()
1344 lfsr = ((lfsr >> 1) | (bit << 31)); in lfsr32()
1347 *lfsr_ptr = lfsr; in lfsr32()
Dsmc.c2307 uint32_t lfsr = 0; in enable_scrambling() local
2316 lfsr = mrc_params->timings.scrambler_seed; in enable_scrambling()
2323 if (lfsr == 0) { in enable_scrambling()
2328 lfsr = rdtsc() & 0x0fffffff; in enable_scrambling()
2337 lfsr32(&lfsr); in enable_scrambling()
2341 mrc_params->timings.scrambler_seed = lfsr; in enable_scrambling()
2348 lfsr32(&lfsr); /* shift to next value */ in enable_scrambling()
2349 msg_port_write(MEM_CTLR, SCRMSEED, (lfsr & 0x0003ffff)); in enable_scrambling()
2352 msg_port_write(MEM_CTLR, SCRMLO + i, (lfsr & 0xaaaaaaaa)); in enable_scrambling()