Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_net_vsc.c
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | 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, | static void hn_nvs_sent_xact(struct hn_send_ctx *, struct hn_softc *sc, | ||||
struct vmbus_channel *, const void *, int); | struct vmbus_channel *, const void *, int); | ||||
static 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; | ||||
u_long *bmap = sc->hn_chim_bmap; | u_long *bmap = sc->hn_chim_bmap; | ||||
uint32_t ret = HN_NVS_CHIM_IDX_INVALID; | uint32_t ret = HN_NVS_CHIM_IDX_INVALID; | ||||
▲ Show 20 Lines • Show All 809 Lines • Show Last 20 Lines |