/src/sys/arch/amiga/dev/ |
a34kbbc.c | 118 a34kbbc_read(volatile struct rtclock3000 *rt, struct clock_ymdhms *dt) 122 rt->control1 = A3CONTROL1_HOLD_CLOCK; 125 dt->dt_sec = rt->second1 * 10 + rt->second2; 126 dt->dt_min = rt->minute1 * 10 + rt->minute2; 127 dt->dt_hour = rt->hour1 * 10 + rt->hour2; 128 dt->dt_wday = rt->weekday; 129 dt->dt_day = rt->day1 * 10 + rt->day2 168 volatile struct rtclock3000 *rt = sc->sc_addr; local in function:a34kusettod [all...] |
/src/usr.bin/rump_dhcpclient/ |
configure.c | 60 static struct rt *routes; 62 static struct rt * 63 find_route(struct rt *rts, const struct rt *r, struct rt **lrt, 64 const struct rt *srt) 66 struct rt *rt; local in function:find_route 70 for (rt = rts; rt; rt = rt->next) 189 struct rt *rt; local in function:get_subnet_route 229 struct rt *rt, *nrt = NULL, *r = NULL; local in function:get_routes 421 struct rt *rt; local in function:configure [all...] |
configure.h | 37 int route_deleted(const struct rt *);
|
/src/sys/net/ |
route.c | 143 #define RT_REFCNT_TRACE(rt) printf("%s:%d: rt=%p refcnt=%d\n", \ 144 __func__, __LINE__, (rt), (rt)->rt_refcnt) 146 #define RT_REFCNT_TRACE(rt) do {} while (0) 330 rt_destroy(struct rtentry *rt) 332 if (rt->_rt_key != NULL) 333 sockaddr_free(rt->_rt_key); 334 if (rt->rt_gateway != NULL) 335 sockaddr_free(rt->rt_gateway) 552 struct rtentry *rt; local in function:rtalloc1_locked 611 struct rtentry *rt; local in function:rtalloc1 718 struct rtentry *rt; local in function:rt_free_work 833 struct rtentry *rt; local in function:rtredirect 1012 struct rtentry *rt; local in function:ifa_ifwithroute_psref 1145 struct rtentry *rt; local in function:rtrequest1 1618 struct rtentry *rt; local in function:rtinit 1691 struct rtentry *rt; local in function:rt_ifa_addlocal 1739 struct rtentry *rt; local in function:rt_ifa_remlocal 2016 struct rtentry *rt; local in function:_rtcache_init 2064 struct rtentry *rt; local in function:rtcache_copy 2136 struct rtentry *rt = NULL; local in function:rtcache_validate 2181 struct rtentry *rt = NULL; local in function:rtcache_lookup2 2316 struct rtentry *rt, *retrt = NULL; local in function:rt_delete_matched_entries 2372 struct rtentry *rt; local in function:rt_replace_ifa_matched_entries [all...] |
if_faith.c | 174 const struct rtentry *rt) 192 if (rt && rt->rt_flags & (RTF_REJECT|RTF_BLACKHOLE)) { 194 return (rt->rt_flags & RTF_BLACKHOLE ? 0 : 195 rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); 234 faithrtrequest(int cmd, struct rtentry *rt, 237 if (rt) 238 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; /* for ISO */ 301 struct rtentry *rt; local in function:faithprefix [all...] |
if_mpls.c | 215 const struct rtentry *rt) 229 if (rt_gettag(rt) == NULL || rt_gettag(rt)->sa_family != AF_MPLS) { 237 mh.s_addr = MPLS_GETSADDR(rt); 242 pms = &((struct sockaddr_mpls*)rt_gettag(rt))->smpls_addr; 244 while (psize <= rt_gettag(rt)->sa_len - sizeof(mh)) { 280 if ((rt1 = rtalloc1(rt->rt_gateway, 1)) == NULL) { 285 err = mpls_send_frame(m, rt1->rt_ifp, rt); 346 struct rtentry *rt = NULL; local in function:mpls_lse 430 if ((rt = rtalloc1((const struct sockaddr*)&dst, 1)) == NULL [all...] |
/src/sys/netmpls/ |
mpls_var.h | 47 #define MPLS_GETSADDR(rt) ntohl(((struct sockaddr_mpls*)rt_gettag(rt))->smpls_addr.s_addr)
|
/src/sys/netinet6/ |
ip6_forward.c | 123 struct rtentry *rt = NULL; local in function:ip6_forward 156 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */ 203 rt = rtcache_lookup(ro, &u.dst); 204 if (rt == NULL) { 206 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_noroute) */ 213 } else if ((rt = rtcache_validate(ro)) == NULL && 214 (rt = rtcache_update(ro, 1)) == NULL) { 220 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_noroute) */ 240 if (in6_setscope(&src_in6, rt->rt_ifp, &outzone) != 0 || 243 ip6_cantforward(ip6, rcvif, rt->rt_ifp [all...] |
ip6_mroute.c | 241 #define MF6CFIND(o, g, rt) do { \ 243 rt = NULL; \ 249 rt = _rt; \ 254 if (rt == NULL) { \ 416 struct mf6c *rt; local in function:get_sg_cnt 420 MF6CFIND(req->src.sin6_addr, req->grp.sin6_addr, rt); 422 if (rt != NULL) { 423 req->pktcnt = rt->mf6c_pkt_cnt; 424 req->bytecnt = rt->mf6c_byte_cnt; 425 req->wrong_if = rt->mf6c_wrong_if 518 struct mf6c *rt; local in function:ip6_mrouter_done 766 struct mf6c *rt; local in function:add_m6fc 958 struct mf6c *rt; local in function:del_m6fc 1029 struct mf6c *rt; local in function:ip6_mforward [all...] |
ip6_flow.c | 259 struct rtentry *rt = NULL; local in function:ip6flow_fastforward 320 if ((rt = rtcache_validate(&ip6f->ip6f_ro)) == NULL || 321 (rt->rt_ifp->if_flags & IFF_UP) == 0 || 322 (rt->rt_flags & RTF_BLACKHOLE) != 0) 328 if (m->m_pkthdr.len > rt->rt_ifp->if_mtu) { 344 if (rt->rt_flags & RTF_GATEWAY) 345 dst = rt->rt_gateway; 363 if ((error = if_output_lock(rt->rt_ifp, rt->rt_ifp, m, dst, rt)) != 0) 399 struct rtentry *rt; local in function:ip6flow_addstats 459 struct rtentry *rt; local in function:ip6flow_reap_locked 522 struct rtentry *rt = NULL; local in function:ip6flow_slowtimo_work [all...] |
nd6.c | 576 struct rtentry *rt; local in function:nd6_create 579 rt = rtalloc1(sin6tosa(&sin6), 0); 582 ln = lla_create(LLTABLE6(ifp), LLE_EXCLUSIVE, sin6tosa(&sin6), rt); 585 if (rt != NULL) 586 rt_unref(rt); 652 struct rtentry *rt; local in function:nd6_is_addr_neighbor 690 rt = rtalloc1(sin6tocsa(addr), 0); 691 if (rt == NULL) 694 if ((rt->rt_flags & RTF_CONNECTED) && (rt->rt_ifp == if [all...] |
/src/usr.bin/netstat/ |
route.c | 242 p_krtentry(struct rtentry *rt) 250 addr = sockcopy(kgetsa(rt_getkey(rt)), &addr_un); 251 if (rt_mask(rt)) 252 mask = sockcopy(kgetsa(rt_mask(rt)), &mask_un); 255 p_addr(addr, mask, rt->rt_flags, nflag); 256 p_gwaddr(kgetsa(rt->rt_gateway), kgetsa(rt->rt_gateway)->sa_family, 258 p_flags(rt->rt_flags); 259 printf("%6d %8"PRIu64" ", rt->rt_refcnt, rt->rt_use) [all...] |
/src/usr.bin/xlint/lint1/ |
ckbool.c | 62 const tnode_t *rn, tspec_t rt) 64 if ((lt == BOOL) == (rt == BOOL)) 71 (is_int_constant_zero(ln, lt) || is_int_constant_zero(rn, rt))) 97 const tnode_t *rn, tspec_t rt) 99 if (is_typeok_strict_bool_binary(op, ln, lt, rn, rt)) 104 error(334, arg, tspec_name(lt), tspec_name(rt)); 107 error(211, tspec_name(lt), tspec_name(rt)); 110 error(107, op_name(op), tspec_name(lt), tspec_name(rt)); 126 tspec_t rt = NO_TSPEC; local in function:typeok_scalar_strict_bool 129 rt = rn->tn_type->t_tspec [all...] |
/src/sys/external/isc/atheros_hal/dist/ar5210/ |
ar5210_phy.c | 70 HAL_RATE_TABLE *rt; local in function:ar5210GetRateTable 73 rt = &ar5210_11a_table; 76 rt = &ar5210_turbo_table; 83 ath_hal_setupratetable(ah, rt); 84 return rt;
|
/src/sys/dev/ic/ |
athrate-sample.h | 190 const HAL_RATE_TABLE *rt = sc->sc_currates; local in function:calc_usecs_unicast_packet 200 int cix = rt->info[rix].controlRate; 202 KASSERTMSG(rt != NULL, "no rate table, mode %u", sc->sc_curmode); 204 if (!rt->info[rix].rateKbps) { 206 rix, rt->info[rix].dot11Rate, 207 rt->info[rix].rateKbps, 217 switch (rt->info[rix].phy) { 240 rt->info[rix].phy == IEEE80211_T_OFDM) { 246 cix = rt->info[sc->sc_protrix].controlRate; 255 int ctsrate = rt->info[cix].rateCode [all...] |
/src/sys/external/isc/atheros_hal/dist/ar5211/ |
ar5211_phy.c | 86 HAL_RATE_TABLE *rt; local in function:ar5211GetRateTable 89 rt = &ar5211_11a_table; 92 rt = &ar5211_11b_table; 95 rt = &ar5211_turbo_table; 102 ath_hal_setupratetable(ah, rt); 103 return rt;
|
/src/sys/arch/mips/mips/ |
db_disasm.c | 263 (i.RType.rt == 0) && 298 && i.RType.rt == 0) { 326 reg_name[i.RType.rt], 338 reg_name[i.RType.rt], 368 reg_name[i.RType.rt]); 380 db_printf("\t%d", (i.RType.rs << 5) | i.RType.rt); 386 reg_name[i.RType.rt], 394 reg_name[i.RType.rt]); 404 reg_name[i.RType.rt]); 418 reg_name[i.RType.rt]); [all...] |
/src/sys/external/bsd/compiler_rt/dist/test/Unit/ |
umodti3_test.c | 32 utwords rt; local in function:test__umodti3 33 rt.all = r; 38 at.s.high, at.s.low, bt.s.high, bt.s.low, rt.s.high, rt.s.low,
|
/src/sys/external/bsd/compiler_rt/dist/test/builtins/Unit/ |
umodti3_test.c | 32 utwords rt; local in function:test__umodti3 33 rt.all = r; 38 at.s.high, at.s.low, bt.s.high, bt.s.low, rt.s.high, rt.s.low,
|
/src/sys/external/isc/atheros_hal/dist/ar5212/ |
ar5212_phy.c | 163 HAL_RATE_TABLE *rt; local in function:ar5212GetRateTable 166 rt = &ar5212_11a_table; 169 rt = &ar5212_11b_table; 175 rt = &ar5212_11g_table; 179 rt = &ar5212_turboa_table; 182 rt = &ar5212_turbog_table; 186 rt = &ar5212_half_table; 190 rt = &ar5212_quarter_table; 197 ath_hal_setupratetable(ah, rt); 198 return rt; [all...] |
/src/sys/netinet/ |
ip_mroute.c | 366 struct mfc *rt; local in function:mfc_find 368 LIST_FOREACH(rt, &mfchashtbl[MFCHASH(*o, *g)], mfc_hash) { 369 if (in_hosteq(rt->mfc_origin, *o) && 370 in_hosteq(rt->mfc_mcastgrp, *g) && 371 (rt->mfc_stall == NULL)) 375 return rt; 545 struct mfc *rt; local in function:get_sg_cnt 548 rt = mfc_find(&req->src, &req->grp); 549 if (rt == NULL) { 554 req->pktcnt = rt->mfc_pkt_cnt 659 struct mfc *rt, *nrt; local in function:ip_mrouter_done 692 struct mfc *rt; local in function:ip_mrouter_detach 1037 struct mfc *rt; local in function:add_mfc 1196 struct mfc *rt; local in function:del_mfc 1302 struct mfc *rt; local in function:ip_mforward_real 1531 struct mfc *rt, *nrt; local in function:expire_upcalls [all...] |
ip_icmp.c | 417 struct rtentry *rt; local in function:_icmp_input 643 rt = NULL; 645 NULL, RTF_GATEWAY | RTF_HOST, sintosa(&icmpgw), &rt); 647 if (rt != NULL && icmp_redirtimeout != 0) { 648 i = rt_timer_add(rt, icmp_redirect_timeout, 659 if (rt != NULL) 660 rt_unref(rt); 1147 struct rtentry *rt; local in function:icmp_mtudisc 1151 rt = rtalloc1(dst, 1); 1152 if (rt == NULL [all...] |
/src/sbin/routed/ |
trace.c | 670 trace_upslot(struct rt_entry *rt, 687 (int)(rts - rt->rt_spares), 688 rtname(rt->rt_dst, rt->rt_mask, rts->rts_gate)); 690 (rts != rt->rt_spares 691 || AGE_RT(rt->rt_state,new->rts_ifp))); 695 (int)(rts - rt->rt_spares), 696 rtname(rt->rt_dst, rt->rt_mask, rts->rts_gate)); 700 rts != rt->rt_spares || AGE_RT(rt->rt_state [all...] |
table.c | 832 struct rt_entry *rt; local in function:kern_check_static 845 rt = rtget(k->k_dst, k->k_mask); 846 if (rt != 0) { 847 if (!(rt->rt_state & RS_STATIC)) 848 rtchange(rt, rt->rt_state | RS_STATIC, &new, 0); 1413 #undef RT 1422 #define RT ((struct rt_entry *)rn) 1428 if (RT->rt_state & RS_NET_SYN) 1431 if (!(RT->rt_state & RS_IF)) 1581 struct rt_entry *rt; local in function:del_static 1690 struct rt_entry *rt; local in function:rtget 1723 struct rt_entry *rt; local in function:rtadd [all...] |
if.c | 429 struct rt_entry *rt; local in function:check_remote 435 rt = rtfind(ifp->int_addr); 436 if (rt != 0 437 && rt->rt_ifp != 0 439 rt->rt_ifp->int_net, rt->rt_ifp->int_mask)) 697 struct rt_entry *rt; local in function:ifinit 1187 rt = rtget(myaddr, HOST_MASK); 1188 if (rt != 0) { 1189 if (rt->rt_ifp != if 1302 struct rt_entry *rt; local in function:check_net_syn 1349 struct rt_entry *rt; local in function:addrouteforif [all...] |