Home
last modified time | relevance | path

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

/f-stack/freebsd/net/route/
H A Droute_ctl.c504 rnd->rnd_nhop = rt->rt_nhop; in lookup_prefix_bysa()
507 rnd->rnd_nhop = NULL; in lookup_prefix_bysa()
508 rnd->rnd_weight = 0; in lookup_prefix_bysa()
522 struct route_nhop_data *rnd) in lookup_prefix() argument
776 struct route_nhop_data rnd; in rt_unlinkrte() local
1067 rt->rt_nhop = rnd->rnd_nhop; in add_route_nhop()
1082 rc->rc_nh_new = rnd->rnd_nhop; in add_route_nhop()
1110 if (rnd->rnd_nhop != NULL) { in change_route_nhop()
1113 rt->rt_nhop = rnd->rnd_nhop; in change_route_nhop()
1133 if (rnd->rnd_nhop == NULL) in change_route_nhop()
[all …]
H A Dmpath_ctl.c168 struct route_nhop_data rnd; in del_route_mpath() local
185 &rnd); in del_route_mpath()
187 error = change_route_nhop(rh, rt, info, &rnd, rc); in del_route_mpath()
H A Dnhgrp_ctl.c566 struct route_nhop_data *rnd) in nhgrp_get_group() argument
574 rnd->rnd_nhgrp = nhg_priv->nhg; in nhgrp_get_group()
575 rnd->rnd_weight = 0; in nhgrp_get_group()
587 nhgrp_filter_cb_t flt_func, void *flt_data, struct route_nhop_data *rnd) in nhgrp_get_filtered_group() argument
618 rnd->rnd_nhgrp = NULL; in nhgrp_get_filtered_group()
619 rnd->rnd_weight = 0; in nhgrp_get_filtered_group()
621 rnd->rnd_nhop = pnhops[0].nh; in nhgrp_get_filtered_group()
622 rnd->rnd_weight = pnhops[0].weight; in nhgrp_get_filtered_group()
623 if (nhop_try_ref_object(rnd->rnd_nhop) == 0) in nhgrp_get_filtered_group()
628 rnd->rnd_nhgrp = mp_priv->nhg; in nhgrp_get_filtered_group()
[all …]
H A Droute_var.h212 struct rt_addrinfo *info, struct route_nhop_data *rnd,
218 const struct rt_addrinfo *info, struct route_nhop_data *rnd);
297 int num_nhops, struct route_nhop_data *rnd);
300 nhgrp_filter_cb_t flt_func, void *flt_data, struct route_nhop_data *rnd);
H A Droute_ctl.h100 struct route_nhop_data *rnd);
102 const struct sockaddr *dst, struct route_nhop_data *rnd);
/f-stack/freebsd/netinet/
H A Din_fib.c282 uint32_t flags, struct route_nhop_data *rnd) in fib4_lookup_rt() argument
307 rnd->rnd_nhop = rt->rt_nhop; in fib4_lookup_rt()
308 rnd->rnd_weight = rt->rt_weight; in fib4_lookup_rt()
321 struct route_nhop_data rnd; in fib4_lookup_debugnet() local
323 rt = fib4_lookup_rt(fibnum, dst, scopeid, NHR_UNLOCKED, &rnd); in fib4_lookup_debugnet()
325 struct nhop_object *nh = nhop_select(rnd.rnd_nhop, 0); in fib4_lookup_debugnet()
/f-stack/freebsd/netinet6/
H A Din6_fib.c295 uint32_t scopeid, uint32_t flags, struct route_nhop_data *rnd) in fib6_lookup_rt() argument
322 rnd->rnd_nhop = rt->rt_nhop; in fib6_lookup_rt()
323 rnd->rnd_weight = rt->rt_weight; in fib6_lookup_rt()
336 struct route_nhop_data rnd; in fib6_lookup_debugnet() local
338 rt = fib6_lookup_rt(fibnum, dst6, scopeid, NHR_UNLOCKED, &rnd); in fib6_lookup_debugnet()
340 struct nhop_object *nh = nhop_select(rnd.rnd_nhop, 0); in fib6_lookup_debugnet()
H A Din6_fib.h44 uint32_t scopeid, uint32_t flags, struct route_nhop_data *rnd);
/f-stack/app/redis-5.0.5/deps/jemalloc/msvc/test_threads/
H A Dtest_threads.cpp42 minstd_rand rnd(tid * 17); in test_threads() local
48 const int numAllocs = numAllocsMax - sizeDist(rnd); in test_threads()
50 const int x = sizeDist(rnd); in test_threads()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/file_write/
H A Dfile_write.c51 char rnd = rand() & 0xff; in randomize_buffer() local
53 bigbuffer[i] ^= rnd; in randomize_buffer()
/f-stack/freebsd/netgraph/netflow/
H A Dnetflow.c352 struct route_nhop_data rnd; in hash_insert() local
354 rt = fib4_lookup_rt(r->fib, fle->f.r.r_dst, 0, NHR_NONE, &rnd); in hash_insert()
358 struct nhop_object *nh = nhop_select_func(rnd.rnd_nhop, 0); in hash_insert()
372 struct route_nhop_data rnd; in hash_insert() local
374 rt = fib4_lookup_rt(r->fib, fle->f.r.r_src, 0, NHR_NONE, &rnd); in hash_insert()
426 struct route_nhop_data rnd; in hash6_insert() local
428 rt = fib6_lookup_rt(r->fib, &fle6->f.r.dst.r_dst6, 0, NHR_NONE, &rnd); in hash6_insert()
432 struct nhop_object *nh = nhop_select_func(rnd.rnd_nhop, 0); in hash6_insert()
446 struct route_nhop_data rnd; in hash6_insert() local
448 rt = fib6_lookup_rt(r->fib, &fle6->f.r.src.r_src6, 0, NHR_NONE, &rnd); in hash6_insert()
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Ddpdk_lpm.c139 struct route_nhop_data rnd; in get_parent_rule() local
142 rt = fib4_lookup_rt(dd->fibnum, addr, 0, NHR_UNLOCKED, &rnd); in get_parent_rule()
150 *nhop_idx = fib_get_nhop_idx(dd->fd, rnd.rnd_nhop); in get_parent_rule()
H A Ddpdk_lpm6.c172 struct route_nhop_data rnd; in pack_parent_rule() local
176 rt = fib6_lookup_rt(dd->fibnum, addr6, 0, NHR_UNLOCKED, &rnd); in pack_parent_rule()
183 uint32_t nhidx = fib_get_nhop_idx(dd->fd, rnd.rnd_nhop); in pack_parent_rule()
/f-stack/dpdk/app/test-sad/
H A Dmain.c237 unsigned int i, j, rnd; in get_random_rules() local
244 rnd = rte_rand() % 100; in get_random_rules()
257 if (rnd >= (100UL - config.fract_32)) { in get_random_rules()
260 } else if (rnd >= (100UL - (config.fract_32 + in get_random_rules()
270 if (rnd >= 100UL - config.fract_rnd_tuples) { in get_random_rules()
/f-stack/freebsd/mips/cavium/
H A Docteon_rnd.c75 DRIVER_MODULE(rnd, nexus, octeon_rnd_driver, octeon_rnd_devclass, 0, 0);
/f-stack/dpdk/drivers/net/atlantic/hw_atl/
H A Dhw_atl_utils.c388 unsigned int rnd = (uint32_t)rte_rand(); in hw_atl_utils_init_ucp() local
391 ucp_0x370 = 0x02020202U | (0xFEFEFEFEU & rnd); in hw_atl_utils_init_ucp()
637 unsigned int rnd = (uint32_t)rte_rand(); in hw_atl_utils_get_mac_permanent() local
642 ucp_0x370 = 0x02020202 | (0xFEFEFEFE & rnd); in hw_atl_utils_get_mac_permanent()
H A Dhw_atl_utils_fw2x.c238 unsigned int rnd = (uint32_t)rte_rand(); in aq_fw2x_get_mac_permanent() local
243 | (0xFFFFU & rnd) in aq_fw2x_get_mac_permanent()
/f-stack/freebsd/arm/allwinner/
H A Dif_emac.c171 uint32_t val0, val1, rnd; in emac_get_hwaddr() local
208 rnd = arc4random() & 0x00ffffff; in emac_get_hwaddr()
212 hwaddr[3] = (rnd >> 16) & 0xff; in emac_get_hwaddr()
213 hwaddr[4] = (rnd >> 8) & 0xff; in emac_get_hwaddr()
214 hwaddr[5] = (rnd >> 0) & 0xff; in emac_get_hwaddr()
H A Dif_awg.c499 uint32_t maclo, machi, rnd; in awg_get_eaddr() local
521 rnd = arc4random(); in awg_get_eaddr()
522 maclo = 0x00f2 | (rnd & 0xffff0000); in awg_get_eaddr()
523 machi = rnd & 0xffff; in awg_get_eaddr()
/f-stack/dpdk/app/test-fib/
H A Dmain.c349 complete_v6_addr(uint32_t *addr, uint32_t rnd, int n) in complete_v6_addr() argument
355 addr[i++] = rnd; in complete_v6_addr()
373 uint32_t rnd; in gen_random_rt_6() local
381 rnd = rte_cpu_to_be_32(rnd_val << (32 - i)); in gen_random_rt_6()
383 rnd, a); in gen_random_rt_6()
/f-stack/freebsd/sys/
H A Dqmath.h165 #define Q_BITSPERBASE(base, rnd) Q_BITSPERBASE##rnd(base) argument
/f-stack/freebsd/kern/
H A Dsched_ule.c675 int cpu, i, hload, lload, load, total, rnd; in cpu_search() local
724 rnd = sched_random() % 32; in cpu_search()
733 lgroup.cs_load = load - rnd; in cpu_search()
741 hgroup.cs_load = load - rnd; in cpu_search()
/f-stack/freebsd/contrib/octeon-sdk/
H A Dcvmx-pow-defs.h1260 uint64_t rnd : 8; /**< Round mask for round Xx4 */ member
1262 uint64_t rnd : 8;
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_table_algo.c3939 struct route_nhop_data rnd; in ta_find_kfib_tentry() local
3948 rt = fib4_lookup_rt(ti->data, tent->k.addr, 0, 0, &rnd); in ta_find_kfib_tentry()
3953 rt = fib6_lookup_rt(ti->data, &tent->k.addr6, 0, 0, &rnd); in ta_find_kfib_tentry()