Home
last modified time | relevance | path

Searched refs:wn (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/sys/net/route/
H A Dnhgrp_ctl.c78 static void sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops);
81 struct weightened_nhop *wn, int num_nhops, uint32_t uidx, int *perror);
107 sort_weightened_nhops(struct weightened_nhop *wn, int num_nhops) in sort_weightened_nhops() argument
110 qsort(wn, num_nhops, sizeof(struct weightened_nhop), wn_cmp_idx); in sort_weightened_nhops()
121 sort_weightened_nhops_weights(struct weightened_nhop *wn, int num_items) in sort_weightened_nhops_weights() argument
123 wn[0].storage = wn[0].weight; in sort_weightened_nhops_weights()
125 uint32_t weight = wn[i].weight; // read from 'weight' as it's not reordered in sort_weightened_nhops_weights()
127 for (j = i - 1; j >= 0 && wn[j].storage > weight; j--) in sort_weightened_nhops_weights()
128 wn[j + 1].storage = wn[j].storage; in sort_weightened_nhops_weights()
129 wn[j + 1].storage = weight; in sort_weightened_nhops_weights()
[all …]
H A Droute_rtentry.c117 const struct weightened_nhop *wn; in destroy_rtentry() local
119 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in destroy_rtentry()
120 nh = wn[0].nh; in destroy_rtentry()
H A Droute_helpers.c384 const struct weightened_nhop *wn; in rib_decompose_notification() local
393 wn = nhgrp_get_nhops((struct nhgrp_object *)rc->rc_nh_new, &num_nhops); in rib_decompose_notification()
395 notify_add(&rc_new, &wn[i], cb, cbdata); in rib_decompose_notification()
401 wn = nhgrp_get_nhops((struct nhgrp_object *)rc->rc_nh_old, &num_nhops); in rib_decompose_notification()
403 notify_del(&rc_new, &wn[i], cb, cbdata); in rib_decompose_notification()
H A Droute_ctl.c1141 const struct weightened_nhop *wn = NULL; in change_mpath_route() local
1145 wn = nhgrp_get_nhops(rnd_orig->rnd_nhgrp, &num_nhops); in change_mpath_route()
1147 if (check_info_match_nhop(info, NULL, wn[i].nh) == 0) { in change_mpath_route()
1148 nh_orig = wn[i].nh; in change_mpath_route()
1168 memcpy(wn_new, wn, num_nhops * sizeof(struct weightened_nhop)); in change_mpath_route()
1170 wn_new[found_idx].weight = get_info_weight(info, wn[found_idx].weight); in change_mpath_route()
1515 const struct weightened_nhop *wn; in rib_walk_del() local
1519 wn = nhgrp_get_nhops(nhg, &num_nhops); in rib_walk_del()
1521 rt_routemsg(RTM_DELETE, rt, wn[i].nh, fibnum); in rib_walk_del()
/freebsd/usr.bin/calendar/tests/
H A Dregress.sh37 REGRESSION_TEST(`wn-1',`$CALENDAR -W 0 -t 28.12.2006')
38 REGRESSION_TEST(`wn-2',`$CALENDAR -W 1 -t 28.12.2006')
39 REGRESSION_TEST(`wn-3',`$CALENDAR -W 2 -t 28.12.2006')
40 REGRESSION_TEST(`wn-4',`$CALENDAR -W 3 -t 28.12.2006')
41 REGRESSION_TEST(`wn-5',`$CALENDAR -W 4 -t 28.12.2006')
42 REGRESSION_TEST(`wn-6',`$CALENDAR -W 5 -t 28.12.2006')
43 REGRESSION_TEST(`wn-7',`$CALENDAR -W 6 -t 28.12.2006')
H A DMakefile41 ${PACKAGE}FILES+= regress.wn-1.out
42 ${PACKAGE}FILES+= regress.wn-2.out
43 ${PACKAGE}FILES+= regress.wn-3.out
44 ${PACKAGE}FILES+= regress.wn-4.out
45 ${PACKAGE}FILES+= regress.wn-5.out
46 ${PACKAGE}FILES+= regress.wn-6.out
47 ${PACKAGE}FILES+= regress.wn-7.out
/freebsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_conv.c163 uint16_t wn[WIN_MAXLEN], *p; in winChkName() local
185 len = char8ucs2str(un, unlen, wn, WIN_MAXLEN); in winChkName()
186 ucs2pad(wn, len, WIN_MAXLEN); in winChkName()
206 if (!(char8match(&wn[i], buf, WIN_CHARS))) in winChkName()
235 uint16_t wn[WIN_MAXLEN], *p; in unix2winfn() local
254 len = char8ucs2str(un, unlen, wn, WIN_MAXLEN); in unix2winfn()
255 ucs2pad(wn, len, WIN_MAXLEN); in unix2winfn()
270 p = &wn[i]; in unix2winfn()
/freebsd/contrib/tzcode/
H A Dasctime.c87 const char * wn; in asctime_r()
97 wn = "???"; in asctime_r()
98 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
114 wn, mn,
75 const char * wn; asctime_r() local
/freebsd/sys/netlink/route/
H A Dnexthop.c272 const struct weightened_nhop *wn; in clone_unhop() local
302 wn = unhop->un_nhgrp_src; in clone_unhop()
313 uint32_t uidx = nhop_get_uidx(wn[i].nh); in clone_unhop()
318 wn_new[i].weight = wn[i].weight; in clone_unhop()
409 struct weightened_nhop *wn = unhop->un_nhgrp_src; in dump_nhgrp() local
421 grp->id = nhop_get_uidx(wn[i].nh); in dump_nhgrp()
422 grp->weight = wn[i].weight; in dump_nhgrp()
756 struct weightened_nhop *wn; in newnhg() local
758 wn = malloc(sizeof(*wn) * count, M_NETLINK, M_NOWAIT | M_ZERO); in newnhg()
759 if (wn == NULL) in newnhg()
[all …]
H A Drt.c183 const struct weightened_nhop *wn = nhgrp_get_nhops(nhg, &num_nhops); in dump_rc_nhg() local
184 uint32_t base_rtflags = nhop_get_rtflags(wn[0].nh); in dump_rc_nhg()
201 rtnh->rtnh_ifindex = if_getindex(wn[i].nh->nh_ifp); in dump_rc_nhg()
202 rtnh->rtnh_hops = wn[i].weight; in dump_rc_nhg()
203 dump_rc_nhop_gw(nw, wn[i].nh); in dump_rc_nhg()
204 uint32_t rtflags = nhop_get_rtflags(wn[i].nh); in dump_rc_nhg()
208 dump_rc_nhop_mtu(nw, wn[i].nh); in dump_rc_nhg()
846 struct weightened_nhop *wn = npt_alloc(npt, sizeof(*wn) * num_nhops); in create_nexthop_from_attrs() local
851 error = create_nexthop_one(attrs, mpnh, npt, &wn[i].nh); in create_nexthop_from_attrs()
854 nhop_free(wn[j].nh); in create_nexthop_from_attrs()
[all …]
/freebsd/contrib/bearssl/src/rsa/
H A Drsa_i32_priv.c95 uint32_t wn, wx; in br_rsa_i32_private() local
98 wn = ((unsigned char *)(t2 + 2 * U))[u]; in br_rsa_i32_private()
100 r = ((wx - (wn + r)) >> 8) & 1; in br_rsa_i32_private()
H A Drsa_i15_priv.c130 uint32_t wn, wx; in br_rsa_i15_private() local
133 wn = ((unsigned char *)t3)[u]; in br_rsa_i15_private()
135 r = ((wx - (wn + r)) >> 8) & 1; in br_rsa_i15_private()
H A Drsa_i31_priv.c124 uint32_t wn, wx; in br_rsa_i31_private() local
127 wn = ((unsigned char *)t3)[u]; in br_rsa_i31_private()
129 r = ((wx - (wn + r)) >> 8) & 1; in br_rsa_i31_private()
H A Drsa_i62_priv.c126 uint32_t wn, wx; in br_rsa_i62_private() local
129 wn = ((unsigned char *)t3)[u]; in br_rsa_i62_private()
131 r = ((wx - (wn + r)) >> 8) & 1; in br_rsa_i62_private()
/freebsd/sys/dev/wpi/
H A Dif_wpi.c1622 struct wpi_node *wn; in wpi_node_alloc() local
1624 wn = malloc(sizeof (struct wpi_node), M_80211_NODE, in wpi_node_alloc()
1627 if (wn == NULL) in wpi_node_alloc()
1630 wn->id = WPI_ID_UNDEFINED; in wpi_node_alloc()
1632 return &wn->ni; in wpi_node_alloc()
1639 struct wpi_node *wn = WPI_NODE(ni); in wpi_node_free() local
1641 if (wn->id != WPI_ID_UNDEFINED) { in wpi_node_free()
1643 if (wpi_check_node_entry(sc, wn->id)) { in wpi_node_free()
1644 wpi_del_node_entry(sc, wn->id); in wpi_node_free()
1690 struct wpi_node *wn = WPI_NODE(ni); in wpi_restore_node() local
[all …]
/freebsd/sys/netinet/
H A Din_fib.c198 const struct weightened_nhop *wn; in check_urpf() local
200 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in check_urpf()
202 if (check_urpf_nhop(wn[i].nh, flags, src_if) != 0) in check_urpf()
/freebsd/sys/netinet6/
H A Din6_fib.c207 const struct weightened_nhop *wn; in check_urpf() local
209 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in check_urpf()
211 if (check_urpf_nhop(wn[i].nh, flags, src_if) != 0) in check_urpf()
/freebsd/contrib/bmake/
H A Dmake.c1321 add_wait_dependency(GNodeListNode *owln, GNode *wn) in add_wait_dependency() argument
1326 for (cln = owln; (cn = cln->datum) != wn; cln = cln->next) { in add_wait_dependency()
1328 cn->name, cn->cohort_num, wn->name); in add_wait_dependency()
1333 Lst_Append(&wn->children, cn); in add_wait_dependency()
1334 wn->unmade++; in add_wait_dependency()
1335 Lst_Append(&cn->parents, wn); in add_wait_dependency()
/freebsd/tools/test/stress2/misc/
H A Dpoll.sh57 dtrace -wn '*::pipe_poll:entry {@rw[execname,probefunc] = count(); }'
/freebsd/sys/dev/iwn/
H A Dif_iwn.c2691 struct iwn_node *wn; in iwn_node_alloc() local
2693 wn = malloc(sizeof (struct iwn_node), M_80211_NODE, M_NOWAIT | M_ZERO); in iwn_node_alloc()
2694 if (wn == NULL) in iwn_node_alloc()
2697 wn->id = IWN_ID_UNDEFINED; in iwn_node_alloc()
2699 return (&wn->ni); in iwn_node_alloc()
3204 struct iwn_node *wn; in iwn_agg_tx_complete() local
3217 wn = (void *)ni; in iwn_agg_tx_complete()
3227 txs->short_retries = wn->agg[tid].short_retries; in iwn_agg_tx_complete()
3233 wn->agg[tid].short_retries = 0; in iwn_agg_tx_complete()
3248 struct iwn_node *wn; in iwn_rx_compressed_ba() local
[all …]
/freebsd/contrib/unbound/validator/
H A Dval_utils.c936 uint8_t* wn; in val_rrset_wildcard() local
952 wn = rrset->rk.dname; in val_rrset_wildcard()
955 if(dname_is_wild(wn)) { in val_rrset_wildcard()
956 wn += 2; in val_rrset_wildcard()
959 labdiff = (dname_count_labels(wn) - 1) - (int)labcount; in val_rrset_wildcard()
961 *wc = wn; in val_rrset_wildcard()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_palisade.c546 uint16_t wn; in TSIP_decode() local
933 wn = (uint16_t)getint((u_char *) &mb(4)); in TSIP_decode()
950 wd = gpscal_from_gpsweek((wn % 1024), (int32_t)tow, ugo); in TSIP_decode()
962 printf("GPS WN: %d\n", wn); in TSIP_decode()
/freebsd/sys/net/
H A Drtsock.c723 const struct weightened_nhop *wn; in select_nhop() local
725 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in select_nhop()
727 return (wn[0].nh); in select_nhop()
729 if (match_nhop_gw(wn[i].nh, gw)) in select_nhop()
730 return (wn[i].nh); in select_nhop()
2230 const struct weightened_nhop *wn; in sysctl_dumpentry() local
2233 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in sysctl_dumpentry()
2235 error = sysctl_dumpnhop(rt, wn[i].nh, wn[i].weight, w); in sysctl_dumpentry()
/freebsd/crypto/openssl/test/certs/
H A Dee-key-8192.pem71 eVBj1snnB/08igkExTydW9FEtx6nBbu+wn+T1K1T19EwFUStFN8ISMyjJaHHNJ6U
/freebsd/contrib/ntp/libparse/
H A Ddata_mbg.c129 tgpsp->wn = get_lsb_uint16(bufpp); in get_mbg_tgps()
287 tgpsp->wn, (long) tgpsp->sec / SECSPERDAY, in mbg_tgps_str()

12