Searched refs:random_reg (Results 1 – 1 of 1) sorted by relevance
210 u16 random_reg = seed; in rockchip_av1_init_random_generator() local212 random_reg ^= ((luma_num * 37 + 178) & 255) << 8; in rockchip_av1_init_random_generator()213 random_reg ^= ((luma_num * 173 + 105) & 255); in rockchip_av1_init_random_generator()214 *random_register = random_reg; in rockchip_av1_init_random_generator()220 u16 random_reg = *random_register; in rockchip_av1_update_random_register() local222 bit = ((random_reg >> 0) ^ (random_reg >> 1) ^ (random_reg >> 3) ^ in rockchip_av1_update_random_register()223 (random_reg >> 12)) & 1; in rockchip_av1_update_random_register()224 *random_register = (random_reg >> 1) | (bit << 15); in rockchip_av1_update_random_register()