Searched refs:lfsr (Results 1 – 2 of 2) sorted by relevance
1333 uint32_t lfsr; in lfsr32() local1336 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()
2307 uint32_t lfsr = 0; in enable_scrambling() local2316 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()