Home
last modified time | relevance | path

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

/net/rds/
A 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/
A 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()
A Drose_route.c1030 if (rose_route->rand == facilities.rand && in rose_route_frame()
1060 rose_route->rand = facilities.rand; in rose_route_frame()
A Daf_rose.c858 rose->rand = ((long)rose & 0xFFFF) + rose->lci; in rose_connect()
/net/bluetooth/
A Dsmp.h85 __le64 rand; member
195 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]);
A Dsmp.c538 int smp_generate_oob(struct hci_dev *hdev, u8 hash[16], u8 rand[16]) in smp_generate_oob()
582 memcpy(rand, smp->local_rand, 16); in smp_generate_oob()
1000 __le64 rand = 0; in smp_random() local
1008 hci_le_start_enc(hcon, ediv, rand, stk, smp->enc_key_size); in smp_random()
1013 __le64 rand = 0; in smp_random() local
1031 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1287 __le64 rand; in smp_distribute_keys() local
1298 get_random_bytes(&rand, sizeof(rand)); in smp_distribute_keys()
1305 smp->enc_key_size, ediv, rand); in smp_distribute_keys()
1309 ident.rand = rand; in smp_distribute_keys()
[all …]
A Dmgmt.c5521 memcpy(mgmt_rp.rand192, rp->rand, sizeof(rp->rand)); in read_local_oob_data_complete()
5638 cp->rand, NULL, NULL); in add_remote_oob_data()
7145 key->val, key->enc_size, key->ediv, key->rand); in load_long_term_keys()
8076 r192 = rp->rand; in read_local_oob_ext_data_complete()
8181 u8 status, flags, role, addr[7], hash[16], rand[16]; in read_local_oob_ext_data() local
8246 smp_generate_oob(hdev, hash, rand) < 0) { in read_local_oob_ext_data()
8297 rand, sizeof(rand)); in read_local_oob_ext_data()
9534 ev.key.rand = key->rand; in mgmt_new_ltk()
A Dhci_conn.c520 void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __le64 rand, in hci_le_start_enc() argument
531 cp.rand = rand; in hci_le_start_enc()
A Dhci_core.c1324 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand) in hci_add_ltk() argument
1344 key->rand = rand; in hci_add_ltk()
A Dhci_debugfs.c848 __le64_to_cpu(ltk->rand), 16, ltk->val); in long_term_keys_show()
A Dhci_event.c5540 memcpy(cp.rand, data->rand192, sizeof(cp.rand)); in hci_remote_oob_data_request_evt()
6519 if (ev->ediv || ev->rand) in hci_le_ltk_request_evt()
6523 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) in hci_le_ltk_request_evt()
/net/ipv4/
A Dtcp_nv.c323 unsigned char rand; in tcpnv_acked() local
327 get_random_bytes(&rand, 1); in tcpnv_acked()
329 now + ((nv_reset_period * (384 + rand) * HZ) >> 9); in tcpnv_acked()
A Dudp.c251 unsigned int rand; in udp_lib_get_port() local
256 rand = get_random_u32(); in udp_lib_get_port()
257 first = reciprocal_scale(rand, remaining) + low; in udp_lib_get_port()
261 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
281 snum += rand; in udp_lib_get_port()
/net/mac80211/
A Dmesh_plink.c709 u32 rand; in mesh_plink_timer() local
714 get_random_bytes(&rand, sizeof(u32)); in mesh_plink_timer()
716 rand % sta->mesh->plink_timeout; in mesh_plink_timer()
/net/sunrpc/
A Dxprtsock.c1719 unsigned short rand; in xs_get_random_port() local
1724 rand = get_random_u32_below(range); in xs_get_random_port()
1725 return rand + min; in xs_get_random_port()

Completed in 713 milliseconds