Home
last modified time | relevance | path

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

/net/rds/
Dthreads.c126 unsigned long rand; in rds_queue_reconnect() local
148 get_random_bytes(&rand, sizeof(rand)); in rds_queue_reconnect()
150 rand % cp->cp_reconnect_jiffies, cp->cp_reconnect_jiffies, in rds_queue_reconnect()
155 rand % cp->cp_reconnect_jiffies); in rds_queue_reconnect()
/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.c1032 if (rose_route->rand == facilities.rand && in rose_route_frame()
1062 rose_route->rand = facilities.rand; in rose_route_frame()
Daf_rose.c780 rose->rand = ((long)rose & 0xFFFF) + rose->lci; in rose_connect()
/net/bluetooth/
Dsmp.h85 __le64 rand; member
194 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]);
Dsmp.c548 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]) in smp_generate_oob()
592 memcpy(rand, smp->local_rand, 16); in smp_generate_oob()
996 __le64 rand = 0; in smp_random() local
1004 hci_le_start_enc(hcon, ediv, rand, stk, smp->enc_key_size); in smp_random()
1009 __le64 rand = 0; in smp_random() local
1027 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1277 __le64 rand; in smp_distribute_keys() local
1288 get_random_bytes(&rand, sizeof(rand)); in smp_distribute_keys()
1295 smp->enc_key_size, ediv, rand); in smp_distribute_keys()
1299 ident.rand = rand; in smp_distribute_keys()
[all …]
Dhci_conn.c357 void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __le64 rand, in hci_le_start_enc() argument
368 cp.rand = rand; in hci_le_start_enc()
Dmgmt.c3566 memcpy(mgmt_rp.rand192, rp->rand, sizeof(rp->rand)); in read_local_oob_data_complete()
3674 cp->rand, NULL, NULL); in add_remote_oob_data()
5164 key->val, key->enc_size, key->ediv, key->rand); in load_long_term_keys()
6054 r192 = rp->rand; in read_local_oob_ext_data_complete()
6162 u8 status, flags, role, addr[7], hash[16], rand[16]; in read_local_oob_ext_data() local
6222 smp_generate_oob(hdev, hash, rand) < 0) { in read_local_oob_ext_data()
6273 rand, sizeof(rand)); in read_local_oob_ext_data()
7151 ev.key.rand = key->rand; in mgmt_new_ltk()
Dhci_debugfs.c771 __le64_to_cpu(ltk->rand), 16, ltk->val); in long_term_keys_show()
Dhci_event.c4750 memcpy(cp.rand, data->rand192, sizeof(cp.rand)); in hci_remote_oob_data_request_evt()
5590 if (ev->ediv || ev->rand) in hci_le_ltk_request_evt()
5594 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
Dhci_core.c2493 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand) in hci_add_ltk() argument
2513 key->rand = rand; in hci_add_ltk()
/net/ipv4/
Dtcp_nv.c324 unsigned char rand; in tcpnv_acked() local
328 get_random_bytes(&rand, 1); in tcpnv_acked()
330 now + ((nv_reset_period * (384 + rand) * HZ) >> 9); in tcpnv_acked()
Dudp.c236 unsigned int rand; in udp_lib_get_port() local
243 rand = prandom_u32(); in udp_lib_get_port()
244 first = reciprocal_scale(rand, remaining) + low; in udp_lib_get_port()
248 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
268 snum += rand; in udp_lib_get_port()
/net/mac80211/
Dmesh_plink.c683 u32 rand; in mesh_plink_timer() local
688 get_random_bytes(&rand, sizeof(u32)); in mesh_plink_timer()
690 rand % sta->mesh->plink_timeout; in mesh_plink_timer()
/net/sunrpc/
Dxprtsock.c1697 unsigned short rand; in xs_get_random_port() local
1702 rand = (unsigned short) prandom_u32() % range; in xs_get_random_port()
1703 return rand + min; in xs_get_random_port()