/freebsd-current/sys/dev/dpaa2/ |
H A D | dpaa2_ni.c | 495 if_t ifp; local 500 sc->ifp = NULL; 550 ifp = if_alloc(IFT_ETHER); 551 if (ifp == NULL) { 556 sc->ifp = ifp; 557 if_initname(ifp, DPAA2_NI_IFNAME, device_get_unit(sc->dev)); 559 if_setsoftc(ifp, sc); 560 if_setflags(ifp, IFF_SIMPLEX | IFF_MULTICAST | IFF_BROADCAST); 561 if_setinitfn(ifp, dpaa2_ni_ini 654 dpaa2_ni_fixed_media_status(if_t ifp, struct ifmediareq* ifmr) argument 2171 if_t ifp = sc->ifp; local 2376 dpaa2_ni_media_change(if_t ifp) argument 2391 dpaa2_ni_media_status(if_t ifp, struct ifmediareq *ifmr) argument 2430 if_t ifp = sc->ifp; local 2494 dpaa2_ni_transmit(if_t ifp, struct mbuf *m) argument 2535 dpaa2_ni_qflush(if_t ifp) argument 2542 dpaa2_ni_ioctl(if_t ifp, u_long c, caddr_t data) argument 2669 dpaa2_ni_update_mac_filters(if_t ifp) argument [all...] |
/freebsd-current/sys/netpfil/ipfw/ |
H A D | ip_fw_pfil.c | 121 ipfw_check_packet(struct mbuf **m0, struct ifnet *ifp, int flags, argument 145 args.ifp = ifp; 332 ipfw_check_frame_mbuf(struct mbuf **m0, struct ifnet *ifp, const int flags, argument 338 .ifp = ifp, 412 ipfw_check_frame_mem(void *mem, u_int len, int flags, struct ifnet *ifp, argument 418 .ifp = ifp, 442 *m = m_devget(mem, len, 0, ifp, NUL [all...] |
/freebsd-current/sys/dev/qlxgbe/ |
H A D | ql_ioctl.c | 60 if_getdunit(ha->ifp), 65 if_name(ha->ifp)); 90 if_t ifp; local 141 ifp = ha->ifp; 143 if (ifp == NULL) { 148 if (if_getdrvflags(ifp) & IFF_DRV_RUNNING) { 168 ifp = ha->ifp; 170 if (ifp [all...] |
H A D | ql_isr.c | 63 if_t ifp = ha->ifp; local 127 mp->m_pkthdr.rcvif = ifp; 162 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); 173 if_input(ifp, mpf); 193 if_t ifp = ha->ifp; local 268 mp->m_pkthdr.rcvif = ifp; 343 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); 345 if_input(ifp, mp 953 if_t ifp; local [all...] |
/freebsd-current/sys/dev/etherswitch/rtl8366/ |
H A D | rtl8366rb.c | 76 if_t ifp[RTL8366_NUM_PHYS]; member in struct:rtl8366rb_softc 240 sc->ifp[i] = if_alloc(IFT_ETHER); 241 if (sc->ifp[i] == NULL) { 247 if_setsoftc(sc->ifp[i], sc); 248 if_setflagbits(sc->ifp[i], IFF_UP | IFF_BROADCAST | IFF_DRV_RUNNING 253 if_initname(sc->ifp[i], sc->ifname[i], i); 254 err = mii_attach(dev, &sc->miibus[i], sc->ifp[i], rtl8366rb_ifmedia_upd, \ 286 if (sc->ifp[i] != NULL) 287 if_free(sc->ifp[i]); 682 err = ifmedia_ioctl(sc->ifp[ 896 rtl8366rb_ifmedia_upd(if_t ifp) argument 909 rtl8366rb_ifmedia_sts(if_t ifp, struct ifmediareq *ifmr) argument [all...] |
/freebsd-current/sys/dev/ath/ |
H A D | if_ath_ioctl.c | 243 if_t ifp; local 250 ifp = vap->iv_ifp; 251 sc->sc_stats.ast_tx_packets += if_getcounter(ifp, 253 sc->sc_stats.ast_rx_packets += if_getcounter(ifp,
|
/freebsd-current/sys/dev/mxge/ |
H A D | if_mxge_var.h | 42 #define VLAN_CAPABILITIES(ifp) 43 #define mxge_vlans_active(sc) (sc)->ifp->if_nvlans 45 #define mxge_vlans_active(sc) if_getvlantrunk((sc)->ifp) 194 if_t ifp; member in struct:mxge_softc
|
/freebsd-current/sys/dev/oce/ |
H A D | oce_user.h | 56 if_t ifp; member in struct:oce_dev_info
|
/freebsd-current/sys/dev/usb/ |
H A D | usb_bus.h | 109 struct ifnet *ifp; /* only for USB Packet Filter */ member in struct:usb_bus
|
/freebsd-current/sys/dev/cxgbe/ |
H A D | t4_l2t.h | 67 if_t ifp; /* outgoing interface */ member in struct:l2t_entry
|
/freebsd-current/sys/dev/etherswitch/ip17x/ |
H A D | ip17x_var.h | 60 if_t *ifp; member in struct:ip17x_softc
|
/freebsd-current/sys/compat/linux/ |
H A D | linux.h | 363 #define IFP_IS_ETH(ifp) (if_gettype(ifp) == IFT_ETHER) 364 #define IFP_IS_LOOP(ifp) (if_gettype(ifp) == IFT_LOOP)
|
/freebsd-current/sys/net/ |
H A D | route.h | 251 u_short rtm_index; /* index for associated ifp */ 377 #define RT_LINK_IS_UP(ifp) (!((ifp)->if_capabilities & IFCAP_LINKSTATE) \ 378 || (ifp)->if_link_state == LINK_STATE_UP) 437 void rt_flushifroutes(struct ifnet *ifp);
|
H A D | if_media.c | 206 ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr, struct ifmedia *ifm, argument 213 if (ifp == NULL || ifr == NULL || ifm == NULL) 256 ifp->if_xname); 264 error = (*ifm->ifm_change)(ifp); 293 (*ifm->ifm_status)(ifp, ifmr);
|
/freebsd-current/sys/netinet6/ |
H A D | in6_pcb.h | 93 struct ifnet *ifp, struct mbuf *);
|
/freebsd-current/sys/dev/usb/net/ |
H A D | if_ipheth.c | 344 if_t ifp = uether_getifp(ue); local 348 if_setdrvflagbits(ifp, IFF_DRV_RUNNING, 0); 386 if_t ifp = uether_getifp(&sc->sc_ue); local 402 if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1); 411 m = if_dequeue(ifp); 439 BPF_MTAP(ifp, m); 456 if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
|
/freebsd-current/sys/net/altq/ |
H A D | altq_codel.c | 81 struct ifnet *ifp; local 83 if ((ifp = ifunit(a->ifname)) == NULL || a->altq_disc == NULL) 86 return (altq_attach(&ifp->if_snd, ALTQT_CODEL, a->altq_disc, 91 codel_add_altq(struct ifnet *ifp, struct pf_altq *a) argument 96 if (ifp == NULL) 98 if (!ALTQ_IS_READY(&ifp->if_snd)) 107 cif->cif_ifq = &ifp->if_snd;
|
/freebsd-current/sys/dev/vnic/ |
H A D | thunder_mdio.c | 351 thunder_ifmedia_change_stub(if_t ifp __unused) 358 thunder_ifmedia_status_stub(if_t ifp __unused, struct ifmediareq 455 pd->ifp = if_alloc(IFT_ETHER); 456 if (pd->ifp == NULL) { 463 err = mii_attach(dev, &pd->miibus, pd->ifp, 469 if_free(pd->ifp); 503 if_free(pd->ifp);
|
/freebsd-current/sys/dev/gve/ |
H A D | gve_rx.c | 235 if ((if_getcapenable(priv->ifp) & IFCAP_LRO) != 0) { 238 rx->lro.ifp = priv->ifp; 332 if (__predict_false((if_getdrvflags(priv->ifp) & IFF_DRV_RUNNING) == 0)) 504 if_t ifp = priv->ifp; local 548 mbuf->m_pkthdr.rcvif = priv->ifp; 570 if (((if_getcapenable(priv->ifp) & IFCAP_LRO) != 0) && /* LRO is enabled */ 578 if_input(ifp, mbuf); 666 if (__predict_false((if_getdrvflags(priv->ifp) [all...] |
/freebsd-current/sys/netlink/ |
H A D | netlink_message_parser.c | 417 struct ifnet *ifp = ifnet_byindex(ifindex); local 418 if (__predict_false(ifp == NULL)) { 423 *((struct ifnet **)target) = ifp; 425 ifindex, if_name(ifp)); 539 struct ifnet *ifp = ifnet_byindex(ifindex); local 540 if (ifp == NULL) { 544 *((struct ifnet **)target) = ifp; 556 struct ifnet *ifp = ifnet_byindex(ifindex); local 557 if (ifindex != 0 && ifp == NULL) { 561 *((struct ifnet **)target) = ifp; [all...] |
/freebsd-current/sys/dev/virtio/network/ |
H A D | virtio_net.h | 358 if_printf(ifp, "cksum offload of unsupported " 466 virtio_net_tx_offload_tso(if_t ifp, struct mbuf *m, int eth_type, argument 492 if_printf(ifp, 505 virtio_net_tx_offload(if_t ifp, struct mbuf *m, bool allow_ecn, argument 541 error = virtio_net_tx_offload_tso(ifp, m, etype, csum_start,
|
/freebsd-current/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_flow_table.c | 455 mlx5_en_err(priv->ifp, "alloc failed\n"); 624 mlx5_en_err(priv->ifp, "alloc failed\n"); 639 if_t ifp = priv->ifp; local 654 mlx5_en_err(ifp, 673 mlx5_en_err(ifp, "Failed to modify vport vlans list err(%d)\n", 740 mlx5_en_err(priv->ifp, "add rule failed\n"); 757 mlx5_en_err(priv->ifp, "alloc failed\n"); 823 if (if_getflags(priv->ifp) & IFF_PROMISC) 835 if (if_getflags(priv->ifp) 843 mlx5e_vlan_rx_add_vid(void *arg, if_t ifp, u16 vid) argument 858 mlx5e_vlan_rx_kill_vid(void *arg, if_t ifp, u16 vid) argument 996 if_t ifp = priv->ifp; local 1066 if_t ifp = priv->ifp; local [all...] |
/freebsd-current/sys/dev/cxgbe/tom/ |
H A D | t4_listen.c | 346 if_t ifp = m->m_pkthdr.rcvif; local 347 struct vi_info *vi = if_getsoftc(ifp); 567 if_getcapenable(vi->ifp) & IFCAP_TOE) 1076 get_l2te_for_nexthop(struct port_info *pi, if_t ifp, argument 1091 e = t4_l2t_get(pi, ifp, dst); 1098 if (nh->nh_ifp != ifp) 1111 if (nh->nh_ifp != ifp) 1122 e = t4_l2t_get(pi, ifp, dst); 1172 * XXX: Every use of ifp in this routine has a bad race with up/down, toe/-toe, 1192 if_t hw_ifp, ifp; local 1456 if_t ifp; local [all...] |
/freebsd-current/sys/nfs/ |
H A D | bootp_subr.c | 138 if_t ifp; member in struct:bootpc_ifcontext 296 bootpboot_p_ifa(void *ifp, struct ifaddr *ifa, u_int count __unused) argument 300 if_name(ifp), if_getflags(ifp)); 316 if_t ifp; local 320 for (ifp = if_iter_start(&iter); ifp != NULL; ifp = if_iter_next(&iter)) 321 if_foreach_addr_type(ifp, AF_INET, bootpboot_p_ifa, ifp); 1519 if_t ifp; local [all...] |
/freebsd-current/sys/security/mac/ |
H A D | mac_framework.h | 107 int mac_bpfdesc_check_receive(struct bpf_d *d, struct ifnet *ifp); 155 int mac_ifnet_check_transmit_impl(struct ifnet *ifp, struct mbuf *m); 163 mac_ifnet_check_transmit(struct ifnet *ifp, struct mbuf *m) argument 167 return (mac_ifnet_check_transmit_impl(ifp, m)); 171 void mac_ifnet_create(struct ifnet *ifp); 173 void mac_ifnet_create_mbuf_impl(struct ifnet *ifp, struct mbuf *m); 181 mac_ifnet_create_mbuf(struct ifnet *ifp, struct mbuf *m) argument 185 mac_ifnet_create_mbuf_impl(ifp, m); 191 struct ifnet *ifp); 193 struct ifnet *ifp); [all...] |