Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/cxgbei/cxgbei.c
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | |||||
#include "common/t4_regs.h" /* for PCIE_MEM_ACCESS */ | #include "common/t4_regs.h" /* for PCIE_MEM_ACCESS */ | ||||
#include "tom/t4_tom.h" | #include "tom/t4_tom.h" | ||||
#include "cxgbei.h" | #include "cxgbei.h" | ||||
static int worker_thread_count; | static int worker_thread_count; | ||||
static struct cxgbei_worker_thread_softc *cwt_softc; | static struct cxgbei_worker_thread_softc *cwt_softc; | ||||
static struct proc *cxgbei_proc; | static struct proc *cxgbei_proc; | ||||
/* XXXNP some header instead. */ | |||||
struct icl_pdu *icl_cxgbei_new_pdu(int); | |||||
void icl_cxgbei_new_pdu_set_conn(struct icl_pdu *, struct icl_conn *); | |||||
void icl_cxgbei_conn_pdu_free(struct icl_conn *, struct icl_pdu *); | |||||
static void | static void | ||||
free_ci_counters(struct cxgbei_data *ci) | free_ci_counters(struct cxgbei_data *ci) | ||||
{ | { | ||||
#define FREE_CI_COUNTER(x) do { \ | #define FREE_CI_COUNTER(x) do { \ | ||||
if (ci->x != NULL) { \ | if (ci->x != NULL) { \ | ||||
counter_u64_free(ci->x); \ | counter_u64_free(ci->x); \ | ||||
ci->x = NULL; \ | ci->x = NULL; \ | ||||
▲ Show 20 Lines • Show All 717 Lines • Show Last 20 Lines |