Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 11 of 11) sorted by relevance

/drivers/gpu/drm/i915/selftests/
Dscatterlist.c39 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 …]
Di915_random.c34 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()
Di915_random.h45 u64 i915_prandom_u64_state(struct rnd_state *rnd);
/drivers/gpio/
Dgpio-menz127.c43 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/
Defi-stub.c280 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/
Dhw_atl_utils.c479 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/
Drocker_main.c130 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/
Dsti_tvout.c202 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/
Dccp-dev-v5.c1075 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/
Dselftest_timeline.c280 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()
Dselftest_execlists.c3463 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()