Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_net_vsc.c
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
static void hv_nv_on_receive_completion(struct vmbus_channel *chan, | static void hv_nv_on_receive_completion(struct vmbus_channel *chan, | ||||
uint64_t tid); | uint64_t tid); | ||||
static void hv_nv_on_receive(struct hn_softc *sc, | static void hv_nv_on_receive(struct hn_softc *sc, | ||||
struct hn_rx_ring *rxr, struct vmbus_channel *chan, | struct hn_rx_ring *rxr, struct vmbus_channel *chan, | ||||
const struct vmbus_chanpkt_hdr *pkt); | const struct vmbus_chanpkt_hdr *pkt); | ||||
static void hn_nvs_sent_none(struct hn_send_ctx *sndc, | static void hn_nvs_sent_none(struct hn_send_ctx *sndc, | ||||
struct hn_softc *, struct vmbus_channel *chan, | struct hn_softc *, struct vmbus_channel *chan, | ||||
const void *, int); | const void *, int); | ||||
static void hn_nvs_sent_xact(struct hn_send_ctx *, struct hn_softc *sc, | |||||
struct vmbus_channel *, const void *, int); | |||||
struct hn_send_ctx hn_send_ctx_none = | struct hn_send_ctx hn_send_ctx_none = | ||||
HN_SEND_CTX_INITIALIZER(hn_nvs_sent_none, NULL); | HN_SEND_CTX_INITIALIZER(hn_nvs_sent_none, NULL); | ||||
uint32_t | uint32_t | ||||
hn_chim_alloc(struct hn_softc *sc) | hn_chim_alloc(struct hn_softc *sc) | ||||
{ | { | ||||
int i, bmap_cnt = sc->hn_chim_bmap_cnt; | int i, bmap_cnt = sc->hn_chim_bmap_cnt; | ||||
▲ Show 20 Lines • Show All 563 Lines • ▼ Show 20 Lines | hv_nv_on_device_remove(struct hn_softc *sc, boolean_t destroy_channel) | ||||
/* Now, we can close the channel safely */ | /* Now, we can close the channel safely */ | ||||
vmbus_chan_close(sc->hn_prichan); | vmbus_chan_close(sc->hn_prichan); | ||||
return (0); | return (0); | ||||
} | } | ||||
static void | void | ||||
hn_nvs_sent_xact(struct hn_send_ctx *sndc, | hn_nvs_sent_xact(struct hn_send_ctx *sndc, | ||||
struct hn_softc *sc __unused, struct vmbus_channel *chan __unused, | struct hn_softc *sc __unused, struct vmbus_channel *chan __unused, | ||||
const void *data, int dlen) | const void *data, int dlen) | ||||
{ | { | ||||
vmbus_xact_wakeup(sndc->hn_cbarg, data, dlen); | vmbus_xact_wakeup(sndc->hn_cbarg, data, dlen); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |