Lines Matching refs:hn_softc
291 static bool hn_ismyvf(const struct hn_softc *,
293 static void hn_rxvf_change(struct hn_softc *,
295 static void hn_rxvf_set(struct hn_softc *, if_t);
298 static int hn_xpnt_vf_iocsetflags(struct hn_softc *);
299 static int hn_xpnt_vf_iocsetcaps(struct hn_softc *,
301 static void hn_xpnt_vf_saveifflags(struct hn_softc *);
302 static bool hn_xpnt_vf_isready(struct hn_softc *);
303 static void hn_xpnt_vf_setready(struct hn_softc *);
305 static void hn_xpnt_vf_init(struct hn_softc *);
306 static void hn_xpnt_vf_setenable(struct hn_softc *);
307 static void hn_xpnt_vf_setdisable(struct hn_softc *, bool);
308 static void hn_vf_rss_fixup(struct hn_softc *, bool);
309 static void hn_vf_rss_restore(struct hn_softc *);
315 static void hn_rndis_rx_status(struct hn_softc *,
317 static void hn_rndis_init_fixat(struct hn_softc *, int);
319 static void hn_nvs_handle_notify(struct hn_softc *,
321 static void hn_nvs_handle_comp(struct hn_softc *,
361 static void hn_stop(struct hn_softc *, bool);
362 static void hn_init_locked(struct hn_softc *);
363 static int hn_chan_attach(struct hn_softc *,
365 static void hn_chan_detach(struct hn_softc *,
367 static int hn_attach_subchans(struct hn_softc *);
368 static void hn_detach_allchans(struct hn_softc *);
371 static void hn_set_ring_inuse(struct hn_softc *, int);
372 static int hn_synth_attach(struct hn_softc *, int);
373 static void hn_synth_detach(struct hn_softc *);
374 static int hn_synth_alloc_subchans(struct hn_softc *,
376 static bool hn_synth_attachable(const struct hn_softc *);
377 static void hn_suspend(struct hn_softc *);
378 static void hn_suspend_data(struct hn_softc *);
379 static void hn_suspend_mgmt(struct hn_softc *);
380 static void hn_resume(struct hn_softc *);
381 static void hn_resume_data(struct hn_softc *);
382 static void hn_resume_mgmt(struct hn_softc *);
384 static void hn_chan_drain(struct hn_softc *,
386 static void hn_disable_rx(struct hn_softc *);
387 static void hn_drain_rxtx(struct hn_softc *, int);
388 static void hn_polling(struct hn_softc *, u_int);
390 static void hn_mtu_change_fixup(struct hn_softc *);
392 static void hn_update_link_status(struct hn_softc *);
393 static void hn_change_network(struct hn_softc *);
397 static void hn_link_status(struct hn_softc *);
399 static int hn_create_rx_data(struct hn_softc *, int);
400 static void hn_destroy_rx_data(struct hn_softc *);
403 static int hn_set_rxfilter(struct hn_softc *, uint32_t);
404 static int hn_rxfilter_config(struct hn_softc *);
405 static int hn_rss_reconfig(struct hn_softc *);
406 static void hn_rss_ind_fixup(struct hn_softc *);
407 static void hn_rss_mbuf_hash(struct hn_softc *, uint32_t);
412 static int hn_tx_ring_create(struct hn_softc *, int);
414 static int hn_create_tx_data(struct hn_softc *, int);
415 static void hn_fixup_tx_data(struct hn_softc *);
416 static void hn_fixup_rx_data(struct hn_softc *);
417 static void hn_destroy_tx_data(struct hn_softc *);
425 static void hn_set_chim_size(struct hn_softc *, int);
426 static void hn_set_tso_maxsize(struct hn_softc *, int, int);
429 static void hn_resume_tx(struct hn_softc *, int);
430 static void hn_set_txagg(struct hn_softc *);
436 struct hn_softc *, struct vmbus_channel *,
653 sizeof(struct hn_softc)
661 hn_set_lro_lenlim(struct hn_softc *sc, int lenlim) in hn_set_lro_lenlim()
697 hn_chim_alloc(struct hn_softc *sc) in hn_chim_alloc()
724 hn_chim_free(struct hn_softc *sc, uint32_t chim_idx) in hn_chim_free()
911 hn_set_rxfilter(struct hn_softc *sc, uint32_t filter) in hn_set_rxfilter()
926 hn_rxfilter_config(struct hn_softc *sc) in hn_rxfilter_config()
953 hn_set_txagg(struct hn_softc *sc) in hn_set_txagg()
1041 hn_rss_reconfig(struct hn_softc *sc) in hn_rss_reconfig()
1080 hn_rss_ind_fixup(struct hn_softc *sc) in hn_rss_ind_fixup()
1113 struct hn_softc *sc = if_getsoftc(ifp); in hn_ifmedia_sts()
1135 hn_rxvf_set(struct hn_softc *sc, if_t vf_ifp) in hn_rxvf_set()
1160 hn_ismyvf(const struct hn_softc *sc, const if_t ifp) in hn_ismyvf()
1191 hn_rxvf_change(struct hn_softc *sc, if_t ifp, bool rxvf) in hn_rxvf_change()
1265 hn_xpnt_vf_iocsetcaps(struct hn_softc *sc, struct ifreq *ifr __unused) in hn_xpnt_vf_iocsetcaps()
1283 hn_xpnt_vf_iocsetflags(struct hn_softc *sc) in hn_xpnt_vf_iocsetflags()
1299 hn_xpnt_vf_saveifflags(struct hn_softc *sc) in hn_xpnt_vf_saveifflags()
1377 hn_mtu_change_fixup(struct hn_softc *sc) in hn_mtu_change_fixup()
1437 hn_rss_mbuf_hash(struct hn_softc *sc, uint32_t mbuf_hash) in hn_rss_mbuf_hash()
1448 hn_vf_rss_fixup(struct hn_softc *sc, bool reconf) in hn_vf_rss_fixup()
1612 hn_vf_rss_restore(struct hn_softc *sc) in hn_vf_rss_restore()
1642 hn_xpnt_vf_setready(struct hn_softc *sc) in hn_xpnt_vf_setready()
1723 hn_xpnt_vf_isready(struct hn_softc *sc) in hn_xpnt_vf_isready()
1743 hn_xpnt_vf_setenable(struct hn_softc *sc) in hn_xpnt_vf_setenable()
1759 hn_xpnt_vf_setdisable(struct hn_softc *sc, bool clear_vf) in hn_xpnt_vf_setdisable()
1777 hn_xpnt_vf_init(struct hn_softc *sc) in hn_xpnt_vf_init()
1823 struct hn_softc *sc = xsc; in hn_xpnt_vf_init_taskfunc()
1856 struct hn_softc *sc = xsc; in hn_ifnet_attevent()
1944 struct hn_softc *sc = xsc; in hn_ifnet_detevent()
2031 struct hn_softc *sc = xsc; in hn_ifnet_lnkevent()
2040 struct hn_softc *sc = arg1; in hn_tsomax_sysctl()
2052 struct hn_softc *sc = arg1; in hn_tsomaxsegcnt_sysctl()
2064 struct hn_softc *sc = arg1; in hn_tsomaxsegsz_sysctl()
2087 struct hn_softc *sc = device_get_softc(dev); in hn_attach()
2489 struct hn_softc *sc = device_get_softc(dev); in hn_detach()
2576 hn_link_status(struct hn_softc *sc) in hn_link_status()
2599 struct hn_softc *sc = xsc; in hn_link_taskfunc()
2609 struct hn_softc *sc = xsc; in hn_netchg_init_taskfunc()
2628 struct hn_softc *sc = xsc; in hn_netchg_status_taskfunc()
2636 hn_update_link_status(struct hn_softc *sc) in hn_update_link_status()
2644 hn_change_network(struct hn_softc *sc) in hn_change_network()
2848 hn_txpkt_done(struct hn_nvs_sendctx *sndc, struct hn_softc *sc, in hn_txpkt_done()
3727 struct hn_softc *sc = if_getsoftc(ifp); in hn_ioctl()
4048 hn_stop(struct hn_softc *sc, bool detaching) in hn_stop()
4103 hn_init_locked(struct hn_softc *sc) in hn_init_locked()
4143 struct hn_softc *sc = xsc; in hn_init()
4153 struct hn_softc *sc = arg1; in hn_lro_lenlim_sysctl()
4177 struct hn_softc *sc = arg1; in hn_lro_ackcnt_sysctl()
4207 struct hn_softc *sc = arg1; in hn_trust_hcsum_sysctl()
4235 struct hn_softc *sc = arg1; in hn_chim_size_sysctl()
4255 struct hn_softc *sc = arg1; in hn_rx_stat_u64_sysctl()
4281 struct hn_softc *sc = arg1; in hn_rx_stat_ulong_sysctl()
4307 struct hn_softc *sc = arg1; in hn_tx_stat_ulong_sysctl()
4333 struct hn_softc *sc = arg1; in hn_tx_conf_int_sysctl()
4357 struct hn_softc *sc = arg1; in hn_txagg_size_sysctl()
4376 struct hn_softc *sc = arg1; in hn_txagg_pkts_sysctl()
4395 struct hn_softc *sc = arg1; in hn_txagg_pktmax_sysctl()
4405 struct hn_softc *sc = arg1; in hn_txagg_align_sysctl()
4422 hn_polling(struct hn_softc *sc, u_int pollhz) in hn_polling()
4443 struct hn_softc *sc = arg1; in hn_polling_sysctl()
4470 struct hn_softc *sc = arg1; in hn_ndis_version_sysctl()
4482 struct hn_softc *sc = arg1; in hn_caps_sysctl()
4496 struct hn_softc *sc = arg1; in hn_hwassist_sysctl()
4510 struct hn_softc *sc = arg1; in hn_rxfilter_sysctl()
4525 struct hn_softc *sc = arg1; in hn_rsc_sysctl()
4549 struct hn_softc *sc = arg1; in hn_rss_key_sysctl()
4587 struct hn_softc *sc = arg1; in hn_rss_ind_sysctl()
4622 struct hn_softc *sc = arg1; in hn_rss_hash_sysctl()
4636 struct hn_softc *sc = arg1; in hn_rss_hcap_sysctl()
4650 struct hn_softc *sc = arg1; in hn_rss_mbuf_sysctl()
4664 struct hn_softc *sc = arg1; in hn_vf_sysctl()
4680 struct hn_softc *sc = arg1; in hn_rxvf_sysctl()
4790 struct hn_softc *sc = arg1; in hn_xpnt_vf_accbpf_sysctl()
4815 struct hn_softc *sc = arg1; in hn_xpnt_vf_enabled_sysctl()
4929 hn_create_rx_data(struct hn_softc *sc, int ring_cnt) in hn_create_rx_data()
5126 hn_destroy_rx_data(struct hn_softc *sc) in hn_destroy_rx_data()
5167 hn_tx_ring_create(struct hn_softc *sc, int id) in hn_tx_ring_create()
5441 hn_create_tx_data(struct hn_softc *sc, int ring_cnt) in hn_create_tx_data()
5549 hn_set_chim_size(struct hn_softc *sc, int chim_size) in hn_set_chim_size()
5558 hn_set_tso_maxsize(struct hn_softc *sc, int tso_maxlen, int mtu) in hn_set_tso_maxsize()
5595 hn_fixup_tx_data(struct hn_softc *sc) in hn_fixup_tx_data()
5631 hn_fixup_rx_data(struct hn_softc *sc) in hn_fixup_rx_data()
5643 hn_destroy_tx_data(struct hn_softc *sc) in hn_destroy_tx_data()
5685 struct hn_softc *sc = txr->hn_sc; in hn_start_locked()
5796 struct hn_softc *sc = if_getsoftc(ifp); in hn_start()
5828 struct hn_softc *sc = txr->hn_sc; in hn_start_txeof()
5864 struct hn_softc *sc = txr->hn_sc; in hn_xmit()
5957 struct hn_softc *sc = if_getsoftc(ifp); in hn_transmit()
6111 struct hn_softc *sc = if_getsoftc(ifp); in hn_xmit_qflush()
6177 hn_chan_attach(struct hn_softc *sc, struct vmbus_channel *chan) in hn_chan_attach()
6241 hn_chan_detach(struct hn_softc *sc, struct vmbus_channel *chan) in hn_chan_detach()
6285 hn_attach_subchans(struct hn_softc *sc) in hn_attach_subchans()
6318 hn_detach_allchans(struct hn_softc *sc) in hn_detach_allchans()
6358 hn_synth_alloc_subchans(struct hn_softc *sc, int *nsubch) in hn_synth_alloc_subchans()
6415 hn_synth_attachable(const struct hn_softc *sc) in hn_synth_attachable()
6445 hn_rndis_init_fixat(struct hn_softc *sc, int nchan) in hn_rndis_init_fixat()
6453 hn_synth_attach(struct hn_softc *sc, int mtu) in hn_synth_attach()
6638 hn_synth_detach(struct hn_softc *sc) in hn_synth_detach()
6689 hn_set_ring_inuse(struct hn_softc *sc, int ring_cnt) in hn_set_ring_inuse()
6715 hn_chan_drain(struct hn_softc *sc, struct vmbus_channel *chan) in hn_chan_drain()
6731 hn_disable_rx(struct hn_softc *sc) in hn_disable_rx()
6752 hn_drain_rxtx(struct hn_softc *sc, int nchan) in hn_drain_rxtx()
6777 hn_suspend_data(struct hn_softc *sc) in hn_suspend_data()
6836 ((struct hn_softc *)xsc)->hn_mgmt_taskq = NULL; in hn_suspend_mgmt_taskfunc()
6840 hn_suspend_mgmt(struct hn_softc *sc) in hn_suspend_mgmt()
6862 hn_suspend(struct hn_softc *sc) in hn_suspend()
6880 hn_resume_tx(struct hn_softc *sc, int tx_ring_cnt) in hn_resume_tx()
6897 hn_resume_data(struct hn_softc *sc) in hn_resume_data()
6942 hn_resume_mgmt(struct hn_softc *sc) in hn_resume_mgmt()
6960 hn_resume(struct hn_softc *sc) in hn_resume()
6992 hn_rndis_rx_status(struct hn_softc *sc, const void *data, int dlen) in hn_rndis_rx_status()
7391 hn_nvs_handle_notify(struct hn_softc *sc, const struct vmbus_chanpkt_hdr *pkt) in hn_nvs_handle_notify()
7409 hn_nvs_handle_comp(struct hn_softc *sc, struct vmbus_channel *chan, in hn_nvs_handle_comp()
7529 struct hn_softc *sc = if_getsoftc(rxr->hn_ifp); in hn_chan_callback()