Lines Matching refs:vtnet_softc
96 static void vtnet_negotiate_features(struct vtnet_softc *);
97 static void vtnet_setup_features(struct vtnet_softc *);
98 static int vtnet_init_rxq(struct vtnet_softc *, int);
99 static int vtnet_init_txq(struct vtnet_softc *, int);
100 static int vtnet_alloc_rxtx_queues(struct vtnet_softc *);
101 static void vtnet_free_rxtx_queues(struct vtnet_softc *);
102 static int vtnet_alloc_rx_filters(struct vtnet_softc *);
103 static void vtnet_free_rx_filters(struct vtnet_softc *);
104 static int vtnet_alloc_virtqueues(struct vtnet_softc *);
105 static int vtnet_setup_interface(struct vtnet_softc *);
106 static int vtnet_change_mtu(struct vtnet_softc *, int);
112 vtnet_rx_alloc_buf(struct vtnet_softc *, int , struct mbuf **);
154 static void vtnet_tx_start_all(struct vtnet_softc *);
165 static void vtnet_accumulate_stats(struct vtnet_softc *);
168 static void vtnet_start_taskqueues(struct vtnet_softc *);
169 static void vtnet_free_taskqueues(struct vtnet_softc *);
170 static void vtnet_drain_taskqueues(struct vtnet_softc *);
172 static void vtnet_drain_rxtx_queues(struct vtnet_softc *);
173 static void vtnet_stop_rendezvous(struct vtnet_softc *);
174 static void vtnet_stop(struct vtnet_softc *);
175 static int vtnet_virtio_reinit(struct vtnet_softc *);
176 static void vtnet_init_rx_filters(struct vtnet_softc *);
177 static int vtnet_init_rx_queues(struct vtnet_softc *);
178 static int vtnet_init_tx_queues(struct vtnet_softc *);
179 static int vtnet_init_rxtx_queues(struct vtnet_softc *);
180 static void vtnet_set_active_vq_pairs(struct vtnet_softc *);
181 static int vtnet_reinit(struct vtnet_softc *);
182 static void vtnet_init_locked(struct vtnet_softc *);
185 static void vtnet_free_ctrl_vq(struct vtnet_softc *);
186 static void vtnet_exec_ctrl_cmd(struct vtnet_softc *, void *,
188 static int vtnet_ctrl_mac_cmd(struct vtnet_softc *, uint8_t *);
189 static int vtnet_ctrl_mq_cmd(struct vtnet_softc *, uint16_t);
190 static int vtnet_ctrl_rx_cmd(struct vtnet_softc *, int, int);
191 static int vtnet_set_promisc(struct vtnet_softc *, int);
192 static int vtnet_set_allmulti(struct vtnet_softc *, int);
193 static void vtnet_attach_disable_promisc(struct vtnet_softc *);
194 static void vtnet_rx_filter(struct vtnet_softc *);
195 static void vtnet_rx_filter_mac(struct vtnet_softc *);
196 static int vtnet_exec_vlan_filter(struct vtnet_softc *, int, uint16_t);
197 static void vtnet_rx_filter_vlan(struct vtnet_softc *);
198 static void vtnet_update_vlan_filter(struct vtnet_softc *, int, uint16_t);
202 static int vtnet_is_link_up(struct vtnet_softc *);
203 static void vtnet_update_link_status(struct vtnet_softc *);
206 static void vtnet_get_hwaddr(struct vtnet_softc *);
207 static void vtnet_set_hwaddr(struct vtnet_softc *);
209 static void vtnet_set_rx_process_limit(struct vtnet_softc *);
210 static void vtnet_set_tx_intr_threshold(struct vtnet_softc *);
216 static void vtnet_setup_queue_sysctl(struct vtnet_softc *);
217 static void vtnet_setup_sysctl(struct vtnet_softc *);
223 static void vtnet_enable_rx_interrupts(struct vtnet_softc *);
224 static void vtnet_enable_tx_interrupts(struct vtnet_softc *);
225 static void vtnet_enable_interrupts(struct vtnet_softc *);
226 static void vtnet_disable_rx_interrupts(struct vtnet_softc *);
227 static void vtnet_disable_tx_interrupts(struct vtnet_softc *);
228 static void vtnet_disable_interrupts(struct vtnet_softc *);
230 static int vtnet_tunable_int(struct vtnet_softc *, const char *, int);
297 sizeof(struct vtnet_softc)
353 struct vtnet_softc *sc;
416 struct vtnet_softc *sc;
469 struct vtnet_softc *sc;
484 struct vtnet_softc *sc;
522 struct vtnet_softc *sc;
536 vtnet_negotiate_features(struct vtnet_softc *sc)
591 vtnet_setup_features(struct vtnet_softc *sc)
672 vtnet_init_rxq(struct vtnet_softc *sc, int id)
697 vtnet_init_txq(struct vtnet_softc *sc, int id)
732 vtnet_alloc_rxtx_queues(struct vtnet_softc *sc)
799 vtnet_free_rxtx_queues(struct vtnet_softc *sc)
819 vtnet_alloc_rx_filters(struct vtnet_softc *sc)
840 vtnet_free_rx_filters(struct vtnet_softc *sc)
855 vtnet_alloc_virtqueues(struct vtnet_softc *sc)
905 vtnet_setup_interface(struct vtnet_softc *sc)
1013 vtnet_change_mtu(struct vtnet_softc *sc, int new_mtu)
1054 struct vtnet_softc *sc;
1212 vtnet_rx_alloc_buf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp)
1259 struct vtnet_softc *sc;
1349 struct vtnet_softc *sc;
1387 struct vtnet_softc *sc;
1427 struct vtnet_softc *sc;
1452 struct vtnet_softc *sc;
1505 struct vtnet_softc *sc;
1639 struct vtnet_softc *sc;
1689 struct vtnet_softc *sc;
1737 struct vtnet_softc *sc;
1831 struct vtnet_softc *sc;
1881 struct vtnet_softc *sc;
1911 struct vtnet_softc *sc;
1973 struct vtnet_softc *sc;
2028 struct vtnet_softc *sc;
2068 struct vtnet_softc *sc;
2117 struct vtnet_softc *sc;
2217 struct vtnet_softc *sc;
2267 struct vtnet_softc *sc;
2283 struct vtnet_softc *sc;
2349 struct vtnet_softc *sc;
2378 struct vtnet_softc *sc;
2395 struct vtnet_softc *sc;
2413 struct vtnet_softc *sc;
2475 struct vtnet_softc *sc;
2508 vtnet_tx_start_all(struct vtnet_softc *sc)
2528 struct vtnet_softc *sc;
2609 vtnet_accumulate_stats(struct vtnet_softc *sc)
2653 struct vtnet_softc *sc;
2675 vtnet_start_taskqueues(struct vtnet_softc *sc)
2713 vtnet_free_taskqueues(struct vtnet_softc *sc)
2735 vtnet_drain_taskqueues(struct vtnet_softc *sc)
2757 vtnet_drain_rxtx_queues(struct vtnet_softc *sc)
2778 vtnet_stop_rendezvous(struct vtnet_softc *sc)
2802 vtnet_stop(struct vtnet_softc *sc)
2832 vtnet_virtio_reinit(struct vtnet_softc *sc)
2885 vtnet_init_rx_filters(struct vtnet_softc *sc)
2903 vtnet_init_rx_queues(struct vtnet_softc *sc)
2956 vtnet_init_tx_queues(struct vtnet_softc *sc)
2970 vtnet_init_rxtx_queues(struct vtnet_softc *sc)
2986 vtnet_set_active_vq_pairs(struct vtnet_softc *sc)
3012 vtnet_reinit(struct vtnet_softc *sc)
3049 vtnet_init_locked(struct vtnet_softc *sc)
3085 struct vtnet_softc *sc;
3102 vtnet_free_ctrl_vq(struct vtnet_softc *sc)
3117 vtnet_exec_ctrl_cmd(struct vtnet_softc *sc, void *cookie,
3142 vtnet_ctrl_mac_cmd(struct vtnet_softc *sc, uint8_t *hwaddr)
3168 vtnet_ctrl_mq_cmd(struct vtnet_softc *sc, uint16_t npairs)
3200 vtnet_ctrl_rx_cmd(struct vtnet_softc *sc, int cmd, int on)
3235 vtnet_set_promisc(struct vtnet_softc *sc, int on)
3242 vtnet_set_allmulti(struct vtnet_softc *sc, int on)
3253 vtnet_attach_disable_promisc(struct vtnet_softc *sc)
3271 vtnet_rx_filter(struct vtnet_softc *sc)
3291 vtnet_rx_filter_mac(struct vtnet_softc *sc)
3396 vtnet_exec_vlan_filter(struct vtnet_softc *sc, int add, uint16_t tag)
3428 vtnet_rx_filter_vlan(struct vtnet_softc *sc)
3455 vtnet_update_vlan_filter(struct vtnet_softc *sc, int add, uint16_t tag)
3505 vtnet_is_link_up(struct vtnet_softc *sc)
3524 vtnet_update_link_status(struct vtnet_softc *sc)
3547 struct vtnet_softc *sc;
3562 struct vtnet_softc *sc;
3579 vtnet_set_hwaddr(struct vtnet_softc *sc)
3599 vtnet_get_hwaddr(struct vtnet_softc *sc)
3642 vtnet_set_rx_process_limit(struct vtnet_softc *sc)
3654 vtnet_set_tx_intr_threshold(struct vtnet_softc *sc)
3750 vtnet_setup_queue_sysctl(struct vtnet_softc *sc)
3771 struct sysctl_oid_list *child, struct vtnet_softc *sc)
3841 vtnet_setup_sysctl(struct vtnet_softc *sc)
3902 vtnet_enable_rx_interrupts(struct vtnet_softc *sc)
3911 vtnet_enable_tx_interrupts(struct vtnet_softc *sc)
3920 vtnet_enable_interrupts(struct vtnet_softc *sc)
3928 vtnet_disable_rx_interrupts(struct vtnet_softc *sc)
3937 vtnet_disable_tx_interrupts(struct vtnet_softc *sc)
3946 vtnet_disable_interrupts(struct vtnet_softc *sc)
3954 vtnet_tunable_int(struct vtnet_softc *sc, const char *knob, int def)