Home
last modified time | relevance | path

Searched refs:drv_sc (Results 1 – 6 of 6) sorted by relevance

/third_party/FreeBSD/sys/dev/usb/net/
Dusb_ethernet.c166 struct eth_drv_sc *drv_sc; in if_alloc() local
173 drv_sc = (struct eth_drv_sc *)zalloc(sizeof(struct eth_drv_sc)); in if_alloc()
174 if (drv_sc == NULL) { in if_alloc()
179 drv_sc->funs = (struct eth_hwr_funs*)zalloc(sizeof(struct eth_hwr_funs)); in if_alloc()
180 if (drv_sc->funs == NULL) { in if_alloc()
183 free(drv_sc); in if_alloc()
186 sc->driver_context = drv_sc; in if_alloc()
194 struct eth_drv_sc *drv_sc; in if_free() local
199 drv_sc = (struct eth_drv_sc *)sc->driver_context; in if_free()
200 if (drv_sc != NULL) { in if_free()
[all …]
Dusb_eth_drv.c64 struct eth_drv_sc *drv_sc = (struct eth_drv_sc*)sc->driver_context; in eth_drv_init() local
85 (drv_sc->funs->start)(sc, NULL, 0); in eth_drv_init()
132 struct eth_drv_sc *drv_sc = (struct eth_drv_sc*)sc->driver_context; in eth_drv_recv() local
155 (drv_sc->funs->recv)(sc, sg_list, sg_len); in eth_drv_recv()
168 struct eth_drv_sc *drv_sc = (struct eth_drv_sc*)sc->driver_context; in eth_drv_send() local
172 while (!(drv_sc->funs->can_send)(sc)); in eth_drv_send()
179 (drv_sc->funs->send) (sc, sg_list, sg_len, p ? p->tot_len : 0, (UINTPTR)p); in eth_drv_send()
Dif_axe.c661 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axe_miibus_statchg() local
663 if (drv_sc->state & IFF_DRV_RUNNING) { in axe_miibus_statchg()
909 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axe_bulk_write_callback() local
921 drv_sc->state &= ~IFF_DRV_OACTIVE; in axe_bulk_write_callback()
925 if (drv_sc->state & IFF_DRV_OACTIVE) in axe_bulk_write_callback()
968 drv_sc->state |= IFF_DRV_OACTIVE; in axe_bulk_write_callback()
975 drv_sc->state &= ~IFF_DRV_OACTIVE; in axe_bulk_write_callback()
1009 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axe_init() local
1012 drv_sc->state = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; in axe_init()
1015 if ((drv_sc->state & IFF_DRV_RUNNING) != 0) in axe_init()
[all …]
Dif_axge.c574 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axge_bulk_write_callback() local
586 drv_sc->state &= ~IFF_DRV_OACTIVE; in axge_bulk_write_callback()
590 if (drv_sc->state & IFF_DRV_OACTIVE) in axge_bulk_write_callback()
633 drv_sc->state |= IFF_DRV_OACTIVE; in axge_bulk_write_callback()
638 drv_sc->state &= ~IFF_DRV_OACTIVE; in axge_bulk_write_callback()
666 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axge_init() local
669 drv_sc->state = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; in axge_init()
672 if ((drv_sc->state & IFF_DRV_RUNNING) != 0) in axge_init()
709 drv_sc->state |= IFF_DRV_RUNNING; in axge_init()
717 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axge_stop() local
[all …]
Dif_urndis.c347 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in urndis_init() local
351 drv_sc->state |= IFF_DRV_RUNNING; in urndis_init()
365 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in urndis_stop() local
369 drv_sc->state &= ~IFF_DRV_RUNNING; in urndis_stop()
Dif_cdce.c784 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in cdce_init() local
790 drv_sc->state |= IFF_DRV_RUNNING; in cdce_init()
814 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in cdce_stop() local
820 drv_sc->state &= ~IFF_DRV_RUNNING; in cdce_stop()