Searched refs:rand (Results 1 - 16 of 16) sorted by relevance

/net/rds/
H A Dthreads.c115 unsigned long rand; local
128 get_random_bytes(&rand, sizeof(rand));
130 rand % conn->c_reconnect_jiffies, conn->c_reconnect_jiffies,
133 rand % conn->c_reconnect_jiffies);
/net/netfilter/
H A Dxt_connlimit.c366 u_int32_t rand; local
369 get_random_bytes(&rand, sizeof(rand));
370 } while (!rand);
371 cmpxchg(&connlimit_rnd, 0, rand);
H A Dnf_conntrack_core.c779 unsigned int rand; local
787 get_random_bytes(&rand, sizeof(rand));
788 } while (!rand);
789 cmpxchg(&nf_conntrack_hash_rnd, 0, rand);
/net/rose/
H A Drose_subr.c259 facilities->rand = ((p[1] << 8) & 0xFF00) + ((p[2] << 0) & 0x00FF);
443 if (rose->rand != 0 || rose->source_ndigis == 1 || rose->dest_ndigis == 1) {
447 if (rose->rand != 0) {
449 *p++ = (rose->rand >> 8) & 0xFF;
450 *p++ = (rose->rand >> 0) & 0xFF;
H A Drose_route.c1029 if (rose_route->rand == facilities.rand &&
1059 rose_route->rand = facilities.rand;
H A Daf_rose.c801 rose->rand = ((long)rose & 0xFFFF) + rose->lci;
/net/bluetooth/
H A Dsmp.h81 __le64 rand; member in struct:smp_cmd_master_ident
H A Dsmp.c594 __le64 rand = 0; local
605 hci_le_start_enc(hcon, ediv, rand, stk);
610 __le64 rand = 0; local
631 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand);
754 __le64 rand; local
758 get_random_bytes(&rand, sizeof(rand));
765 smp->enc_key_size, ediv, rand);
769 ident.rand = rand;
[all...]
H A Dhci_conn.c275 void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __le64 rand, argument
286 cp.rand = rand;
H A Dhci_core.c814 __le64_to_cpu(ltk->rand), 16, ltk->val);
3202 struct smp_ltk *hci_find_ltk(struct hci_dev *hdev, __le16 ediv, __le64 rand, argument
3208 if (k->ediv != ediv || k->rand != rand)
3320 u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand)
3340 key->rand = rand;
3318 hci_add_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type, u8 type, u8 authenticated, u8 tk[16], u8 enc_size, __le16 ediv, __le64 rand) argument
H A Dmgmt.c4865 key->rand);
6072 ev.key.rand = key->rand;
H A Dhci_event.c4508 ltk = hci_find_ltk(hdev, ev->ediv, ev->rand, conn->role);
/net/irda/
H A Dirlap.c673 static int rand; local
678 rand += jiffies;
679 rand ^= (rand << 12);
680 rand ^= (rand >> 20);
682 slot = s + rand % (S-s);
/net/mac80211/
H A Dmesh_plink.c587 u32 rand; local
592 get_random_bytes(&rand, sizeof(u32));
594 rand % sta->plink_timeout;
/net/ipv4/
H A Dudp.c220 unsigned int rand; local
227 rand = prandom_u32();
228 first = reciprocal_scale(rand, remaining) + low;
230 * force rand to be an odd multiple of UDP_HTABLE_SIZE
232 rand = (rand | 1) * (udptable->mask + 1);
252 snum += rand;
/net/sunrpc/
H A Dxprtsock.c1716 unsigned short rand = (unsigned short) prandom_u32() % range; local
1717 return rand + xprt_min_resvport;

Completed in 773 milliseconds