/drivers/gpu/drm/i915/selftests/ |
D | scatterlist.c | 39 struct rnd_state *rnd); 43 struct rnd_state *rnd, in expect_pfn_sg() argument 53 unsigned int npages = npages_fn(n, pt->st.nents, rnd); in expect_pfn_sg() 144 struct rnd_state *rnd, in expect_pfn_sgtable() argument 150 err = expect_pfn_sg(pt, npages_fn, rnd, who, timeout); in expect_pfn_sgtable() 167 struct rnd_state *rnd) in one() argument 174 struct rnd_state *rnd) in grow() argument 181 struct rnd_state *rnd) in shrink() argument 188 struct rnd_state *rnd) in random() argument 190 return 1 + (prandom_u32_state(rnd) % 1024); in random() [all …]
|
D | i915_random.c | 34 u64 i915_prandom_u64_state(struct rnd_state *rnd) in i915_prandom_u64_state() argument 38 x = prandom_u32_state(rnd); in i915_prandom_u64_state() 40 x |= prandom_u32_state(rnd); in i915_prandom_u64_state()
|
D | i915_random.h | 45 u64 i915_prandom_u64_state(struct rnd_state *rnd);
|
/drivers/gpio/ |
D | gpio-menz127.c | 43 unsigned int rnd; in men_z127_debounce() local 53 rnd = fls(debounce) - 1; in men_z127_debounce() 55 if (rnd && (debounce & BIT(rnd - 1))) in men_z127_debounce()
|
/drivers/firmware/efi/libstub/ |
D | efi-stub.c | 280 u32 rnd; in efi_pe_entry() local 282 status = efi_get_random_bytes(sizeof(rnd), (u8 *)&rnd); in efi_pe_entry() 285 (((headroom >> 21) * rnd) >> (32 - 21)); in efi_pe_entry()
|
/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_utils.c | 479 unsigned int rnd = 0U; in hw_atl_utils_init_ucp() local 482 get_random_bytes(&rnd, sizeof(unsigned int)); in hw_atl_utils_init_ucp() 484 ucp_0x370 = 0x02020202U | (0xFEFEFEFEU & rnd); in hw_atl_utils_init_ucp() 753 unsigned int rnd = 0; in hw_atl_utils_get_mac_permanent() local 755 get_random_bytes(&rnd, sizeof(unsigned int)); in hw_atl_utils_get_mac_permanent() 757 ucp_0x370 = 0x02020202 | (0xFEFEFEFE & rnd); in hw_atl_utils_get_mac_permanent()
|
/drivers/net/ethernet/rocker/ |
D | rocker_main.c | 130 u64 rnd; in rocker_reg_test() local 132 rnd = prandom_u32(); in rocker_reg_test() 133 rnd >>= 1; in rocker_reg_test() 134 rocker_write32(rocker, TEST_REG, rnd); in rocker_reg_test() 136 if (test_reg != rnd * 2) { in rocker_reg_test() 138 test_reg, rnd * 2); in rocker_reg_test() 142 rnd = prandom_u32(); in rocker_reg_test() 143 rnd <<= 31; in rocker_reg_test() 144 rnd |= prandom_u32(); in rocker_reg_test() 145 rocker_write64(rocker, TEST_REG64, rnd); in rocker_reg_test() [all …]
|
/drivers/gpu/drm/sti/ |
D | sti_tvout.c | 202 static void tvout_vip_set_rnd(struct sti_tvout *tvout, int reg, u32 rnd) in tvout_vip_set_rnd() argument 207 val |= rnd << TVO_VIP_RND_SHIFT; in tvout_vip_set_rnd()
|
/drivers/crypto/ccp/ |
D | ccp-dev-v5.c | 1075 u32 rnd; in ccp5other_config() local 1082 rnd = ioread32(ccp->io_regs + TRNG_OUT_REG); in ccp5other_config() 1083 iowrite32(rnd, ccp->io_regs + CMD5_AES_MASK_OFFSET); in ccp5other_config()
|
/drivers/gpu/drm/i915/gt/ |
D | selftest_timeline.c | 280 static unsigned int random_engine(struct rnd_state *rnd) in random_engine() argument 282 return i915_prandom_u32_max_state(I915_NUM_ENGINES, rnd); in random_engine()
|
D | selftest_execlists.c | 3463 static int random_range(struct rnd_state *rnd, int min, int max) in random_range() argument 3465 return i915_prandom_u32_max_state(max - min, rnd) + min; in random_range() 3468 static int random_priority(struct rnd_state *rnd) in random_priority() argument 3470 return random_range(rnd, I915_PRIORITY_MIN, I915_PRIORITY_MAX); in random_priority()
|