route
PCPU_STATISTICS_PROT(route, struct rtstatistics);
PCPU_STATISTICS_FUNC(route, struct rtstatistics, u_long);
uint32_t route;
route = 0;
route |= rh_port << (4 * (depth - 1));
DPRINTF("Route=0x%08x\n", route);
temp = XHCI_SCTX_0_ROUTE_SET(route) |
au_addroute(struct au_info *au, int a, int b, int route)
au_wr(au, 0, AU_REG_RTBASE+(route<<2), 0xffffffff, 4);
au_wr(au, 0, j, route | (b<<7), 4);
au->y[route]=au->x[a];
au->x[a]=route;
au->z[route]=a & 0x000000ff;
au_setbit(au->routes, route, 1);
au_delroute(struct au_info *au, int route)
int j=au->z[route];
au_setbit(au->routes, route, 0);
au->z[route]=0x1f;
i=au_rd(au, 0, AU_REG_RTBASE+(route<<2), 4);
au_wr(au, 0, AU_REG_RTBASE+(au->y[route]<<2), i, 4);
au->y[i & 0x7f]=au->y[route];
au_wr(au, 0, AU_REG_RTBASE+(route<<2), 0xfffffffe, 4);
if (au->x[j] == route) au->x[j]=au->y[route];
au->y[route]=0x7f;
int route;
uintptr_t func, route, r;
r = BUS_READ_IVAR(device_get_parent(dev), dev, EMU_VAR_ROUTE, &route);
switch (route) {
uintptr_t route, r, ivar;
r = BUS_READ_IVAR(device_get_parent(dev), dev, EMU_VAR_ROUTE, &route);
sc->route = route;
switch (route) {
if (pcm_register(dev, sc, (route == RT_FRONT) ? MAX_CHANNELS : 1, (route == RT_FRONT) ? 1 : 0)) {
if (route != RT_MCHRECORD)
if (route == RT_FRONT) {
if (route == RT_MCHRECORD)
if (sc->route == RT_FRONT) {
if (sc->route == RT_FRONT) {
switch (sc->route) {
switch (sc->route) {
switch (sc->route) {
*result = ((struct emu_pcminfo *)func->varinfo)->route;
pcminfo->route = RT_FRONT;
pcminfo->route = RT_REAR;
pcminfo->route = RT_CENTER;
pcminfo->route = RT_SUB;
pcminfo->route = RT_SIDE;
pcminfo->route = RT_MCHRECORD;
int route;
mixer_get_recroute(struct snd_mixer *m, int *route)
*route = cnt;
mixer_set_recroute(struct snd_mixer *m, int route)
if (route == cnt)
struct route ro; /* route, for ip_output. MUST COPY */
struct route ro; /* route, for ip_output. MUST COPY */
struct route gif_ro[SMP_MAXCPU];
static int gre_compute_route(struct gre_softc *sc, struct route *);
sc->route_pcpu = kmalloc(netisr_ncpus * sizeof(struct route), M_GRE,
struct route *ro;
gre_compute_route(struct gre_softc *sc, struct route *ro)
memset(ro, 0, sizeof(struct route));
struct route *ro;
struct route *route_pcpu;/* routing entry that determines, where a
static struct route ro; /* XXX check this */
struct route v_route; /* cached route if this is a tunnel */
struct route sro; /* fake route */
struct route ro;
struct route ro;
rtalloc_ign((struct route *)&ro6, (RTF_CLONING | RTF_PRCLONING));
struct route ro;
rtalloc_ign((struct route *)&ro, 0);
struct route ro;
rtalloc_ign((struct route *)&ro, (RTF_CLONING | RTF_PRCLONING));
struct route iproute;
struct route *ro = NULL;
SYSCTL_NODE(_net, OID_AUTO, route, CTLFLAG_RW, 0, "Routing");
SYSINIT(route, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, route_init, 0);
rtalloc(struct route *ro)
rtalloc_ign(struct route *ro, u_long ignoreflags)
void rtalloc (struct route *);
void rtalloc_ign (struct route *, u_long);
DOMAIN_SET(route);
struct route *route_pcpu;
sc->route_pcpu = kmalloc(netisr_ncpus * sizeof(struct route),
struct route *ro;
static struct route igmprt;
struct route *ro = &sc->gif_ro[mycpu->gd_cpuid];
struct route *ro = &inp->inp_route;
struct route *ro;
struct route inc4_route;
struct route;
ipflow_create(const struct route *ro, struct mbuf *m)
struct route ipf_ro; /* associated route entry */
struct route;
void ipflow_create(const struct route *, struct mbuf *);
icmp_send(struct mbuf *m, struct mbuf *opts, struct route *rt)
static void icmp_send (struct mbuf *, struct mbuf *, struct route *);
struct route *ro = NULL, rt;
ip_rtaddr(struct in_addr dst, struct route *ro0)
struct route sro, *ro;
p = &opt->ip_srcrt.route[opt->ip_nhops - 1];
while (p >= opt->ip_srcrt.route) {
struct route fwd_ro;
struct in_addr route[MAX_IPOPTLEN/sizeof(struct in_addr)];
ip_output(struct mbuf *m0, struct mbuf *opt, struct route *ro,
struct route iproute;
struct route;
struct mbuf *, struct route *, int, struct ip_moptions *,
ip_rtaddr(struct in_addr, struct route *);
struct route *ro = &inc->inc_route;
rtalloc((struct route *)ro6);
struct route *ro = NULL;
struct route sro;
struct route *ro = &inp->inp_route;
rtalloc((struct route *)&ro);
rtalloc_ign((struct route *)&icmp6_reflect_rt.ro_rt,
rtalloc((struct route *)ro);
rtalloc((struct route *)ro);
rtalloc_ign((struct route *)&ip6_forward_rt,
rtalloc_ign((struct route *)&ip6_forward_rt, RTF_PRCLONING);
rtalloc_ign((struct route *)&ip6_forward_rt, RTF_PRCLONING);
rtalloc((struct route *)ro_pmtu);
rtalloc((struct route *)&ro);
rtalloc((struct route *)ro);
const struct sockaddr *, struct route *ro);
struct route;
const struct sockaddr *, struct route *);
const struct sockaddr *dst, struct route *ro)
struct route *cache_rt = &mplsforward_rt[mycpuid];
struct route mplsforward_rt[MAXCPU];
pfrule : action dir logquick interface route af proto fromto
} route;
route : /* empty */ {
%type <v.route> route
route_Add(&arg->bundle->ncp.route, addrs, &dest, &gw);
route_DeleteAll(&arg->bundle->ncp.route);
route_Delete(&arg->bundle->ncp.route, addrs, &dest);
route_Change(bundle, bundle->ncp.route, &myncpaddr, &hisncpaddr);
route_Change(bundle, bundle->ncp.route, &ipv6cp->myaddr, &ipv6cp->hisaddr);
if (ncp->route) {
route_ShowSticky(arg->prompt, ncp->route, "Sticky routes", 1);
ncp->route = NULL;
struct sticky_route *route; /* List of dynamic routes */