Searched refs:drv_sc (Results 1 – 6 of 6) sorted by relevance
166 struct eth_drv_sc *drv_sc; in if_alloc() local173 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() local199 drv_sc = (struct eth_drv_sc *)sc->driver_context; in if_free()200 if (drv_sc != NULL) { in if_free()[all …]
64 struct eth_drv_sc *drv_sc = (struct eth_drv_sc*)sc->driver_context; in eth_drv_init() local85 (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() local155 (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() local172 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()
661 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axe_miibus_statchg() local663 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() local921 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() local1012 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 …]
574 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axge_bulk_write_callback() local586 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() local669 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 …]
347 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in urndis_init() local351 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() local369 drv_sc->state &= ~IFF_DRV_RUNNING; in urndis_stop()
784 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in cdce_init() local790 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() local820 drv_sc->state &= ~IFF_DRV_RUNNING; in cdce_stop()