Lines Matching defs:vioif_softc

215  * + fields in vioif_softc except queues are protected by
308 struct vioif_softc {
367 static int vioif_ifflags(struct vioif_softc *);
371 static int vioif_netqueue_init(struct vioif_softc *,
373 static void vioif_netqueue_teardown(struct vioif_softc *,
375 static void vioif_net_intr_enable(struct vioif_softc *,
377 static void vioif_net_intr_disable(struct vioif_softc *,
379 static void vioif_net_sched_handle(struct vioif_softc *,
383 static void vioif_populate_rx_mbufs_locked(struct vioif_softc *,
387 static void vioif_rx_queue_clear(struct vioif_softc *,
396 static void vioif_tx_queue_clear(struct vioif_softc *, struct virtio_softc *,
401 static int vioif_ctrl_rx(struct vioif_softc *, int, bool);
402 static int vioif_set_promisc(struct vioif_softc *, bool);
403 static int vioif_set_allmulti(struct vioif_softc *, bool);
404 static int vioif_set_rx_filter(struct vioif_softc *);
405 static int vioif_rx_filter(struct vioif_softc *);
406 static int vioif_set_mac_addr(struct vioif_softc *);
407 static int vioif_ctrl_mq_vq_pairs_set(struct vioif_softc *, int);
412 static void vioif_update_link_status(struct vioif_softc *);
415 static void vioif_alloc_queues(struct vioif_softc *);
416 static void vioif_free_queues(struct vioif_softc *);
417 static int vioif_alloc_mems(struct vioif_softc *);
424 static int vioif_setup_sysctl(struct vioif_softc *);
425 static void vioif_setup_stats(struct vioif_softc *);
427 CFATTACH_DECL_NEW(vioif, sizeof(struct vioif_softc),
459 struct vioif_softc *sc = device_private(self);
687 struct vioif_softc *sc = device_private(self);
703 struct vioif_softc *sc = ifp->if_softc;
751 struct vioif_softc *sc = ifp->if_softc;
809 struct vioif_softc *sc = ifp->if_softc;
824 struct vioif_softc *sc = ifp->if_softc;
833 struct vioif_softc *sc = ifp->if_softc;
864 struct vioif_softc *sc = ifp->if_softc;
909 vioif_ifflags(struct vioif_softc *sc)
954 struct vioif_softc *sc = ifp->if_softc;
960 vioif_setup_sysctl(struct vioif_softc *sc)
1032 vioif_setup_stats(struct vioif_softc *sc)
1074 vioif_dmamap_create(struct vioif_softc *sc, bus_dmamap_t *map,
1091 vioif_dmamap_destroy(struct vioif_softc *sc, bus_dmamap_t *map)
1101 vioif_dmamap_create_load(struct vioif_softc *sc, bus_dmamap_t *map,
1148 vioif_alloc_mems(struct vioif_softc *sc)
1394 vioif_alloc_queues(struct vioif_softc *sc)
1411 vioif_free_queues(struct vioif_softc *sc)
1429 vioif_netqueue_init(struct vioif_softc *sc, struct virtio_softc *vsc,
1551 vioif_netqueue_teardown(struct vioif_softc *sc, struct virtio_softc *vsc,
1588 vioif_net_sched_handle(struct vioif_softc *sc, struct vioif_netqueue *netq)
1695 vioif_net_intr_enable(struct vioif_softc *sc, struct virtio_softc *vsc)
1721 vioif_net_intr_disable(struct vioif_softc *sc, struct virtio_softc *vsc)
1739 vioif_populate_rx_mbufs_locked(struct vioif_softc *sc, struct vioif_netqueue *netq)
1805 vioif_rx_deq_locked(struct vioif_softc *sc, struct virtio_softc *vsc,
1852 vioif_rx_queue_clear(struct vioif_softc *sc, struct virtio_softc *vsc,
1888 struct vioif_softc *sc = device_private(virtio_child(vsc));
1921 struct vioif_softc *sc = device_private(virtio_child(vsc));
1950 struct vioif_softc *sc = device_private(virtio_child(vsc));
1977 struct vioif_softc *sc = ifp->if_softc;
2069 vioif_tx_deq_locked(struct vioif_softc *sc, struct virtio_softc *vsc,
2114 vioif_tx_queue_clear(struct vioif_softc *sc, struct virtio_softc *vsc,
2173 struct vioif_softc *sc = device_private(virtio_child(vsc));
2187 struct vioif_softc *sc = device_private(virtio_child(vsc));
2231 struct vioif_softc *sc = device_private(virtio_child(vsc));
2261 struct vioif_softc *sc = device_private(virtio_child(vsc));
2285 vioif_ctrl_acquire(struct vioif_softc *sc)
2298 vioif_ctrl_release(struct vioif_softc *sc)
2313 vioif_ctrl_load_cmdspec(struct vioif_softc *sc,
2343 vioif_ctrl_unload_cmdspec(struct vioif_softc *sc,
2355 vioif_ctrl_send_command(struct vioif_softc *sc, uint8_t class, uint8_t cmd,
2445 vioif_ctrl_rx(struct vioif_softc *sc, int cmd, bool onoff)
2469 vioif_set_promisc(struct vioif_softc *sc, bool onoff)
2475 vioif_set_allmulti(struct vioif_softc *sc, bool onoff)
2481 vioif_ctrl_mq_vq_pairs_set(struct vioif_softc *sc, int nvq_pairs)
2510 vioif_set_mac_addr(struct vioif_softc *sc)
2557 vioif_set_rx_filter(struct vioif_softc *sc)
2606 vioif_rx_filter(struct vioif_softc *sc)
2686 struct vioif_softc *sc = device_private(virtio_child(vsc));
2695 struct vioif_softc *sc = arg;
2703 vioif_get_link_status(struct vioif_softc *sc)
2721 vioif_update_link_status(struct vioif_softc *sc)