Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 39 of 39) sorted by relevance

/linux-4.1.27/arch/x86/kernel/
Despfix_64.c105 unsigned long rand; in init_espfix_random() local
111 if (!arch_get_random_long(&rand)) { in init_espfix_random()
113 rdtscll(rand); in init_espfix_random()
114 rand *= 0xc345c6b72fd16123UL; in init_espfix_random()
117 slot_random = rand % ESPFIX_STACKS_PER_PAGE; in init_espfix_random()
118 page_random = (rand / ESPFIX_STACKS_PER_PAGE) in init_espfix_random()
/linux-4.1.27/net/rds/
Dthreads.c115 unsigned long rand; in rds_queue_reconnect() local
128 get_random_bytes(&rand, sizeof(rand)); in rds_queue_reconnect()
130 rand % conn->c_reconnect_jiffies, conn->c_reconnect_jiffies, in rds_queue_reconnect()
133 rand % conn->c_reconnect_jiffies); in rds_queue_reconnect()
/linux-4.1.27/kernel/rcu/
Drcutorture.c864 static DEFINE_TORTURE_RANDOM(rand); in rcu_torture_writer()
915 udelay(torture_random(&rand) & 0x3ff); in rcu_torture_writer()
928 switch (synctype[torture_random(&rand) % nsynctypes]) { in rcu_torture_writer()
941 i = torture_random(&rand) % 16; in rcu_torture_writer()
944 udelay(torture_random(&rand) % 1000); in rcu_torture_writer()
962 !(torture_random(&rand) & 0xff & (!!expediting - 1))) { in rcu_torture_writer()
992 DEFINE_TORTURE_RANDOM(rand); in rcu_torture_fakewriter()
998 schedule_timeout_uninterruptible(1 + torture_random(&rand)%10); in rcu_torture_fakewriter()
999 udelay(torture_random(&rand) & 0x3ff); in rcu_torture_fakewriter()
1001 torture_random(&rand) % (nfakewriters * 8) == 0) { in rcu_torture_fakewriter()
[all …]
/linux-4.1.27/net/netfilter/
Dxt_connlimit.c369 u_int32_t rand; in connlimit_mt_check() local
372 get_random_bytes(&rand, sizeof(rand)); in connlimit_mt_check()
373 } while (!rand); in connlimit_mt_check()
374 cmpxchg(&connlimit_rnd, 0, rand); in connlimit_mt_check()
Dnf_conntrack_core.c777 unsigned int rand; in init_nf_conntrack_hash_rnd() local
785 get_random_bytes(&rand, sizeof(rand)); in init_nf_conntrack_hash_rnd()
786 } while (!rand); in init_nf_conntrack_hash_rnd()
787 cmpxchg(&nf_conntrack_hash_rnd, 0, rand); in init_nf_conntrack_hash_rnd()
/linux-4.1.27/net/rose/
Drose_subr.c259 facilities->rand = ((p[1] << 8) & 0xFF00) + ((p[2] << 0) & 0x00FF); in rose_parse_national()
443 if (rose->rand != 0 || rose->source_ndigis == 1 || rose->dest_ndigis == 1) { in rose_create_facilities()
447 if (rose->rand != 0) { in rose_create_facilities()
449 *p++ = (rose->rand >> 8) & 0xFF; in rose_create_facilities()
450 *p++ = (rose->rand >> 0) & 0xFF; in rose_create_facilities()
Drose_route.c1029 if (rose_route->rand == facilities.rand && in rose_route_frame()
1059 rose_route->rand = facilities.rand; in rose_route_frame()
Daf_rose.c801 rose->rand = ((long)rose & 0xFFFF) + rose->lci; in rose_connect()
/linux-4.1.27/kernel/locking/
Dlocktorture.c436 static DEFINE_TORTURE_RANDOM(rand); in lock_torture_writer()
442 if ((torture_random(&rand) & 0xfffff) == 0) in lock_torture_writer()
453 cxt.cur_ops->write_delay(&rand); in lock_torture_writer()
470 static DEFINE_TORTURE_RANDOM(rand); in lock_torture_reader()
476 if ((torture_random(&rand) & 0xfffff) == 0) in lock_torture_reader()
485 cxt.cur_ops->read_delay(&rand); in lock_torture_reader()
/linux-4.1.27/net/bluetooth/
Dsmp.h84 __le64 rand; member
191 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]);
Dsmp.c537 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]) in smp_generate_oob()
579 memcpy(rand, smp->local_rand, 16); in smp_generate_oob()
983 __le64 rand = 0; in smp_random() local
994 hci_le_start_enc(hcon, ediv, rand, stk); in smp_random()
999 __le64 rand = 0; in smp_random() local
1020 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1269 __le64 rand; in smp_distribute_keys() local
1273 get_random_bytes(&rand, sizeof(rand)); in smp_distribute_keys()
1280 smp->enc_key_size, ediv, rand); in smp_distribute_keys()
1284 ident.rand = rand; in smp_distribute_keys()
[all …]
Decc.c802 u64 rand[NUM_ECC_DIGITS]; in ecdh_shared_secret() local
805 get_random_bytes(rand, ECC_BYTES); in ecdh_shared_secret()
811 ecc_point_mult(&product, &pk, priv, rand, vli_num_bits(priv)); in ecdh_shared_secret()
Dhci_conn.c278 void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __le64 rand, in hci_le_start_enc() argument
289 cp.rand = rand; in hci_le_start_enc()
Dmgmt.c3822 memcpy(mgmt_rp.rand192, rp->rand, sizeof(rp->rand)); in read_local_oob_data_complete()
3930 cp->rand, NULL, NULL); in add_remote_oob_data()
5570 key->rand); in load_long_term_keys()
6509 r192 = rp->rand; in read_local_oob_ext_data_complete()
6617 u8 status, flags, role, addr[7], hash[16], rand[16]; in read_local_oob_ext_data() local
6677 smp_generate_oob(hdev, hash, rand) < 0) { in read_local_oob_ext_data()
6728 rand, sizeof(rand)); in read_local_oob_ext_data()
7603 ev.key.rand = key->rand; in mgmt_new_ltk()
Dhci_event.c4306 memcpy(cp.rand, data->rand192, sizeof(cp.rand)); in hci_remote_oob_data_request_evt()
4950 if (ev->ediv || ev->rand) in hci_le_ltk_request_evt()
4954 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
Dhci_debugfs.c860 __le64_to_cpu(ltk->rand), 16, ltk->val); in long_term_keys_show()
Dhci_core.c2373 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand) in hci_add_ltk() argument
2393 key->rand = rand; in hci_add_ltk()
/linux-4.1.27/net/irda/
Dirlap.c649 static int rand; in irlap_generate_rand_time_slot() local
654 rand += jiffies; in irlap_generate_rand_time_slot()
655 rand ^= (rand << 12); in irlap_generate_rand_time_slot()
656 rand ^= (rand >> 20); in irlap_generate_rand_time_slot()
658 slot = s + rand % (S-s); in irlap_generate_rand_time_slot()
/linux-4.1.27/include/net/
Drose.h122 unsigned int rand; member
134 unsigned int lci, rand; member
/linux-4.1.27/include/uapi/linux/
Drose.h85 unsigned int rand; member
/linux-4.1.27/kernel/
Dtorture.c94 DEFINE_TORTURE_RANDOM(rand); in torture_onoff()
108 cpu = (torture_random(&rand) >> 4) % (maxcpu + 1); in torture_onoff()
/linux-4.1.27/tools/perf/tests/
Dmmap-basic.c88 expected_nr_events[i] = 1 + rand() % 127; in test__basic_mmap()
/linux-4.1.27/lib/raid6/test/
Dtest.c37 data[i][j] = rand(); in makedata()
/linux-4.1.27/drivers/net/hamradio/
Ddmascc.c272 static unsigned long rand; variable
318 rand = jiffies; in dmascc_init()
1090 rand = rand * 1664525L + 1013904223L; in random()
1091 return (unsigned char) (rand >> 24); in random()
/linux-4.1.27/include/net/bluetooth/
Dmgmt.h200 __le64 rand; member
317 __u8 rand[16]; member
Dhci.h686 __u8 rand[16]; member
1002 __u8 rand[16]; member
1388 __le64 rand; member
1887 __le64 rand; member
Dhci_core.h125 __le64 rand; member
984 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand);
1410 void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __le64 rand,
/linux-4.1.27/net/mac80211/
Dmesh_plink.c591 u32 rand; in mesh_plink_timer() local
596 get_random_bytes(&rand, sizeof(u32)); in mesh_plink_timer()
598 rand % sta->plink_timeout; in mesh_plink_timer()
/linux-4.1.27/net/ipv4/
Dudp.c221 unsigned int rand; in udp_lib_get_port() local
228 rand = prandom_u32(); in udp_lib_get_port()
229 first = reciprocal_scale(rand, remaining) + low; in udp_lib_get_port()
233 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
253 snum += rand; in udp_lib_get_port()
/linux-4.1.27/drivers/md/bcache/
Drequest.c327 long rand; in bch_get_congested() local
346 rand = get_random_int(); in bch_get_congested()
347 i -= bitmap_weight(&rand, BITS_PER_LONG); in bch_get_congested()
/linux-4.1.27/scripts/kconfig/
Dconfdata.c1080 def = (rand() % cnt); in randomize_choice_values()
1194 cnt = rand() % 100; in conf_set_all_new_symbols()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dmac-ctxt.c1109 u32 rand = (prandom_u32() % (64 - 36)) + 36; in iwl_mvm_mac_ctxt_cmd_fill_ap() local
1111 ieee80211_tu_to_usec(data.beacon_int * rand / in iwl_mvm_mac_ctxt_cmd_fill_ap()
/linux-4.1.27/Documentation/kbuild/
Dkconfig.txt49 Environment variables for '{allyes/allmod/allno/rand}config'
/linux-4.1.27/tools/perf/bench/
Dnuma.c355 long off = rand(); in alloc_data()
1249 td->val = rand(); in worker_process()
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c530 int rand = cfs_rand() & MGC_TIMEOUT_RAND_CENTISEC; in mgc_requeue_thread() local
547 to += rand * HZ / 100; /* rand is centi-seconds */ in mgc_requeue_thread()
/linux-4.1.27/drivers/leds/
Dleds-blinkm.c81 u8 rand:1; /* rand fade mode on = 1 */ member
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_tpacket.c169 ((uint8_t *) pay)[i + sizeof(*eth)] = (uint8_t) rand(); in create_payload()
/linux-4.1.27/net/sunrpc/
Dxprtsock.c1620 unsigned short rand = (unsigned short) prandom_u32() % range; in xs_get_random_port() local
1621 return rand + xprt_min_resvport; in xs_get_random_port()
/linux-4.1.27/Documentation/networking/
Dfilter.txt285 rand prandom_u32()
319 ld rand