Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/vmbus/vmbus_brvar.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
#define txbr_rindex txbr.vbr_rindex | #define txbr_rindex txbr.vbr_rindex | ||||
#define txbr_imask txbr.vbr_imask | #define txbr_imask txbr.vbr_imask | ||||
#define txbr_data txbr.vbr_data | #define txbr_data txbr.vbr_data | ||||
#define txbr_dsize txbr.vbr_dsize | #define txbr_dsize txbr.vbr_dsize | ||||
struct sysctl_ctx_list; | struct sysctl_ctx_list; | ||||
struct sysctl_oid; | struct sysctl_oid; | ||||
static __inline int | |||||
vmbus_txbr_maxpktsz(const struct vmbus_txbr *tbr) | |||||
{ | |||||
/* 1/2 data size */ | |||||
return (tbr->txbr_dsize / 2); | |||||
} | |||||
void vmbus_br_sysctl_create(struct sysctl_ctx_list *ctx, | void vmbus_br_sysctl_create(struct sysctl_ctx_list *ctx, | ||||
struct sysctl_oid *br_tree, struct vmbus_br *br, | struct sysctl_oid *br_tree, struct vmbus_br *br, | ||||
const char *name); | const char *name); | ||||
void vmbus_rxbr_init(struct vmbus_rxbr *rbr); | void vmbus_rxbr_init(struct vmbus_rxbr *rbr); | ||||
void vmbus_rxbr_deinit(struct vmbus_rxbr *rbr); | void vmbus_rxbr_deinit(struct vmbus_rxbr *rbr); | ||||
void vmbus_rxbr_setup(struct vmbus_rxbr *rbr, void *buf, int blen); | void vmbus_rxbr_setup(struct vmbus_rxbr *rbr, void *buf, int blen); | ||||
int vmbus_rxbr_peek(struct vmbus_rxbr *rbr, void *data, int dlen); | int vmbus_rxbr_peek(struct vmbus_rxbr *rbr, void *data, int dlen); | ||||
Show All 12 Lines |