Searched refs:ifp (Results 251 - 275 of 568) sorted by relevance

<<11121314151617181920>>

/freebsd-current/sys/dev/netmap/
H A Dnetmap.c174 * This is a system netdev/ifp with native netmap support.
175 * The ifp is detached from the host stack by redirecting:
179 * the ifp is attached to a bridge using bwrap, in which case it
183 * A system netdev/ifp without native netmap support.
278 * A generic adapter for the wrapped ifp will be created if needed, when
286 * na == NA(ifp) == netmap_hw_adapter created in DEVICE_netmap_attach()
319 * na == NA(ifp) == generic_netmap_adapter created in generic_netmap_attach()
327 * ifp->ndo_start_xmit == generic_ndo_start_xmit()
345 * ifp->ndo_start_xmit == generic_ndo_start_xmit()
639 netmap_disable_all_rings(if_t ifp) argument
652 netmap_enable_all_rings(if_t ifp) argument
660 netmap_make_zombie(if_t ifp) argument
671 netmap_undo_zombie(if_t ifp) argument
1467 netmap_get_hw_na(if_t ifp, struct netmap_mem_d *nmd, struct netmap_adapter **na) argument
1556 netmap_get_na(struct nmreq_header *hdr, struct netmap_adapter **na, if_t *ifp, struct netmap_mem_d *nmd, int create) argument
1673 netmap_unget_na(struct netmap_adapter *na, if_t ifp) argument
2746 if_t ifp = NULL; local
3041 if_t ifp; local
4080 if_t ifp = NULL; local
4214 netmap_detach(if_t ifp) argument
4260 netmap_transmit(if_t ifp, struct mbuf *m) argument
4500 netmap_rx_irq(if_t ifp, u_int q, u_int *work_done) argument
4525 if_t ifp = na->ifp; local
4541 if_t ifp = na->ifp; local
[all...]
/freebsd-current/sys/dev/usb/net/
H A Dif_cdceem.c424 if_t ifp; local
435 ifp = uether_getifp(ue);
447 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
455 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
462 if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1);
471 if_inc_counter(ifp, IFCOUNTER_IQDROPS, 1);
491 if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
647 if_t ifp; local
656 ifp = uether_getifp(&sc->sc_ue);
659 m = if_dequeue(ifp);
712 if_t ifp; local
805 if_t ifp; local
833 if_t ifp; local
[all...]
/freebsd-current/sys/netinet6/
H A Dip6_mroute.c267 * ifp->if_afdata. But it does not have any routes point
674 struct ifnet *ifp; local
690 if ((ifp = ifnet_byindex(mifcp->mif6c_pifi)) == NULL) {
695 NET_EPOCH_EXIT(et); /* XXXGL: unsafe ifp */
699 ifp = if_alloc(IFT_OTHER);
701 if_initname(ifp, "register_mif", 0);
702 ifp->if_flags |= IFF_LOOPBACK;
703 if_attach(ifp);
704 multicast_register_if6 = ifp;
711 mifcp->mif6c_pifi = ifp
757 struct ifnet *ifp; local
1060 X_ip6_mforward(struct ip6_hdr *ip6, struct ifnet *ifp, struct mbuf *m) argument
1357 ip6_mdq(struct mbuf *m, struct ifnet *ifp, struct mf6c *rt) argument
1526 struct ifnet *ifp = mifp->m6_ifp; local
[all...]
/freebsd-current/sys/dev/mana/
H A Dmana_en.c87 mana_ifmedia_change(if_t ifp __unused)
93 mana_ifmedia_status(if_t ifp, struct ifmediareq *ifmr) argument
95 struct mana_port_context *apc = if_getsoftc(ifp);
98 if_printf(ifp, "Port not available\n");
120 mana_get_counter(if_t ifp, ift_counter cnt) argument
122 struct mana_port_context *apc = if_getsoftc(ifp);
139 return (if_get_counter_default(ifp, cnt));
144 mana_qflush(if_t ifp) argument
146 if_qflush(ifp);
165 mana_ioctl(if_t ifp, u_lon argument
802 mana_start_xmit(if_t ifp, struct mbuf *m) argument
[all...]
/freebsd-current/sys/dev/al_eth/
H A Dal_eth.c214 static int al_ioctl(if_t ifp, u_long, caddr_t);
274 if_t ifp; local
283 ifp = NULL;
337 adapter->netdev = ifp = if_alloc(IFT_ETHER);
339 if_setsoftc(ifp, adapter);
340 if_initname(ifp, device_get_name(dev), device_get_unit(dev));
341 if_setdrvflagbits(ifp, 0, IFF_DRV_OACTIVE);
342 if_setflags(ifp, if_getdrvflags(ifp));
343 if_setflagbits(ifp, IFF_BROADCAS
1020 if_t ifp = adapter->netdev; local
1724 al_mq_start(if_t ifp, struct mbuf *m) argument
1760 al_qflush(if_t ifp) argument
2827 al_get_counter(if_t ifp, ift_counter cnt) argument
2904 if_t ifp = adapter->netdev; local
3126 al_media_update(if_t ifp) argument
3137 al_media_status(if_t ifp, struct ifmediareq *ifmr) argument
3180 if_t ifp = adapter->netdev; local
3296 al_ioctl(if_t ifp, u_long command, caddr_t data) argument
[all...]
/freebsd-current/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c280 if_t ifp = rq->ifp; local
352 mb->m_pkthdr.rcvif = ifp;
353 mb->m_pkthdr.leaf_rcvif = ifp;
376 } else if (likely((if_getcapenable(ifp) & (IFCAP_RXCSUM |
502 CURVNET_SET_QUIET(if_getvnet(rq->ifp));
538 rq->mbuf[wqe_counter].data, seglen, rq->ifp, &mb);
587 mb->m_pkthdr.numa_domain = if_getnumadomain(rq->ifp);
594 (if_getcapenable(rq->ifp) & IFCAP_LRO) == 0 ||
597 if_input(rq->ifp, m
[all...]
/freebsd-current/sys/dev/qlxgb/
H A Dqla_isr.c59 if_t ifp = ha->ifp; local
117 mp->m_pkthdr.rcvif = ifp;
146 if_input(ifp, mp);
387 if_t ifp; local
392 ifp = ha->ifp;
398 } else if (!if_sendq_empty(ifp) &&
399 QL_RUNNING(ifp)) {
H A Dqla_def.h147 if_t ifp; member in struct:qla_host
206 #define QL_RUNNING(ifp) \
207 ((if_getdrvflags(ifp) & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) == \
H A Dqla_ioctl.c54 if_getdunit(ha->ifp),
59 if_name(ha->ifp));
/freebsd-current/sys/nfs/
H A Dnfs_diskless.c182 if_t ifp; local
236 for (ifp = if_iter_start(&iter); ifp != NULL; ifp = if_iter_next(&iter)) {
237 cnt = if_foreach_lladdr(ifp, nfs_setup_diskless_ifa_cb, &ourdl);
244 if (ifp != NULL)
254 kern_setenv("boot.netif.name", if_name(ifp));
256 strlcpy(nd3->myif.ifra_name, if_name(ifp),
295 strlcpy(nd->myif.ifra_name, if_name(ifp),
/freebsd-current/usr.sbin/yp_mkdb/
H A Dyp_mkdb.c114 FILE *ifp; local
186 ifp = stdin;
188 if ((ifp = fopen(infile, "r")) == NULL)
248 while (fgets((char *)&buf, sizeof(buf), ifp)) {
259 sizeof(buf) - strlen(buf), ifp);
/freebsd-current/sys/netinet/
H A Dtcp_offload.c64 struct ifnet *ifp; local
97 ifp = nh->nh_ifp;
99 if (nam->sa_family == AF_INET && !(ifp->if_capenable & IFCAP_TOE4))
101 if (nam->sa_family == AF_INET6 && !(ifp->if_capenable & IFCAP_TOE6))
104 tod = TOEDEV(ifp);
H A Din_var.h105 #define LLTABLE(ifp) \
106 ((struct in_ifinfo *)(ifp)->if_afdata[AF_INET])->ii_llt
145 #define INADDR_TO_IFP(addr, ifp) \
147 /* struct ifnet *ifp; */ \
152 (ifp) = (ia == NULL) ? NULL : ia->ia_ifp; \
159 #define IFP_TO_IA(ifp, ia) \
160 /* struct ifnet *ifp; */ \
165 (ia) != NULL && (ia)->ia_ifp != (ifp); \
/freebsd-current/sys/arm/ti/cpsw/
H A Dif_cpsw.c998 if_t ifp; local
1027 ifp = sc->ifp = if_alloc(IFT_ETHER);
1028 if (ifp == NULL) {
1033 if_initname(ifp, device_get_name(sc->dev), sc->unit);
1034 if_setsoftc(ifp, sc);
1035 if_setflags(ifp, IFF_SIMPLEX | IFF_MULTICAST | IFF_BROADCAST);
1037 if_setcapenable(ifp, if_getcapabilities(ifp));
1039 if_setinitfn(ifp, cpswp_ini
1161 if_t ifp; local
1292 if_t ifp; local
1399 cpswp_ioctl(if_t ifp, u_long command, caddr_t data) argument
1582 if_t ifp; local
1816 cpswp_start(if_t ifp) argument
2075 if_t ifp; local
2224 cpswp_ifmedia_sts(if_t ifp, struct ifmediareq *ifmr) argument
2242 cpswp_ifmedia_upd(if_t ifp) argument
[all...]
/freebsd-current/sys/dev/gve/
H A Dgve_tx.c309 if (__predict_false((if_getdrvflags(priv->ifp) & IFF_DRV_RUNNING) == 0))
342 if (__predict_false((if_getdrvflags(priv->ifp) & IFF_DRV_RUNNING) == 0))
696 struct ifnet *ifp = priv->ifp; local
699 while ((if_getdrvflags(ifp) & IFF_DRV_RUNNING) != 0 &&
700 (mbuf = drbr_peek(ifp, tx->br)) != NULL) {
703 drbr_putback(ifp, tx->br, mbuf);
708 drbr_advance(ifp, tx->br);
709 BPF_MTAP(ifp, mbuf);
737 gve_xmit_ifp(if_t ifp, struc argument
789 gve_qflush(if_t ifp) argument
[all...]
/freebsd-current/sys/dev/dwc/
H A Ddwc1000_dma.c353 if_t ifp; local
359 ifp = sc->ifp;
387 if_inc_counter(sc->ifp, IFCOUNTER_IQDROPS, 1);
395 m->m_pkthdr.rcvif = ifp;
398 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
400 if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0 &&
416 if_input(ifp, m);
426 if_t ifp; local
432 ifp
[all...]
/freebsd-current/sys/netpfil/ipfilter/netinet/
H A Dip_log.c344 qif_t *ifp; local
346 struct ifnet *ifp; local
354 ifp = fin->fin_ifp;
419 ipfl.fl_unit = (u_int)ifp->qf_ppa;
421 COPYIFNAME(fin->fin_v, ifp, ipfl.fl_ifname);
425 COPYIFNAME(fin->fin_v, ifp, ipfl.fl_ifname);
427 ipfl.fl_unit = (u_int)ifp->if_unit;
429 if ((ipfl.fl_ifname[0] = ifp->if_name[0]))
430 if ((ipfl.fl_ifname[1] = ifp->if_name[1]))
431 if ((ipfl.fl_ifname[2] = ifp
[all...]
/freebsd-current/sys/dev/qlxge/
H A Dqls_isr.c57 if_inc_counter(ha->ifp, IFCOUNTER_OPACKETS, 1);
128 if_t ifp = ha->ifp; local
169 mp->m_pkthdr.rcvif = ifp;
201 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
209 if_input(ifp, mp);
/freebsd-current/sys/dev/bxe/
H A Dbxe_debug.c296 if_t ifp = NULL; local
332 if ((ifp = ifunit_ref(if_xname)) == NULL) /* XXX */
338 sc = (struct bxe_softc *)if_getsoftc(ifp);
339 db_printf("ifnet=%p (%s)\n", ifp, if_xname);
358 if (ifp) if_rele(ifp);
/freebsd-current/sys/security/mac_ipacl/
H A Dmac_ipacl.c320 struct ipacl_addr *ip_addr, if_t ifp)
347 strcmp(rule->if_name, if_name(ifp)))
400 const struct in_addr *ia, if_t ifp)
411 return rules_check(cred, &ip4_addr, ifp);
420 const struct in6_addr *ia6, if_t ifp)
432 return rules_check(cred, &ip6_addr, ifp);
319 rules_check(struct ucred *cred, struct ipacl_addr *ip_addr, if_t ifp) argument
399 ipacl_ip4_check_jail(struct ucred *cred, const struct in_addr *ia, if_t ifp) argument
419 ipacl_ip6_check_jail(struct ucred *cred, const struct in6_addr *ia6, if_t ifp) argument
/freebsd-current/sys/dev/ixgbe/
H A Dif_fdir.c56 if_t ifp = iflib_get_ifp(ctx); local
67 if_setdrvflagbits(ifp, IFF_DRV_RUNNING, 0);
/freebsd-current/sys/dev/liquidio/
H A Dlio_network.h97 if_t ifp; member in struct:lio
137 * @param ifp pointer to network device
141 int lio_set_feature(if_t ifp, int cmd, uint16_t param1);
/freebsd-current/sys/dev/sfxge/
H A Dsfxge_tx.h245 extern void sfxge_if_qflush(if_t ifp);
246 extern int sfxge_if_transmit(if_t ifp, struct mbuf *m);
/freebsd-current/sys/net/
H A Dpfil.c123 pfil_fake_mbuf(pfil_mbuf_chk_t func, void *mem, u_int len, struct ifnet *ifp, argument
134 rv = func(mp, ifp, flags, ruleset, NULL);
148 struct ifnet *ifp, struct mbuf **m)
161 rv = link->link_mem_chk(mem, len, flags, ifp,
164 rv = pfil_fake_mbuf(link->link_mbuf_chk, mem, len, ifp,
167 rv = link->link_mbuf_chk(m, ifp, flags,
181 pfil_mem_in(struct pfil_head *head, void *mem, u_int len, struct ifnet *ifp, argument
185 return (pfil_mem_common(&head->head_in, mem, len, PFIL_IN, ifp, m));
189 pfil_mem_out(struct pfil_head *head, void *mem, u_int len, struct ifnet *ifp, argument
193 return (pfil_mem_common(&head->head_out, mem, len, PFIL_OUT, ifp,
147 pfil_mem_common(pfil_chain_t *pch, void *mem, u_int len, int flags, struct ifnet *ifp, struct mbuf **m) argument
197 pfil_mbuf_common(pfil_chain_t *pch, struct mbuf **m, struct ifnet *ifp, int flags, struct inpcb *inp) argument
226 pfil_mbuf_in(struct pfil_head *head, struct mbuf **m, struct ifnet *ifp, struct inpcb *inp) argument
234 pfil_mbuf_out(struct pfil_head *head, struct mbuf **m, struct ifnet *ifp, struct inpcb *inp) argument
242 pfil_mbuf_fwd(struct pfil_head *head, struct mbuf **m, struct ifnet *ifp, struct inpcb *inp) argument
[all...]
/freebsd-current/sys/dev/ice/
H A Dice_iflib.h201 struct ifnet *ifp; member in struct:ice_mirr_if
228 * @ifp: pointer to the ifnet structure
277 struct ifnet *ifp; member in struct:ice_softc

Completed in 568 milliseconds

<<11121314151617181920>>