FreeBSD kernel CXGBE device code
offload.h File Reference
#include <sys/param.h>
#include <sys/proc.h>
#include <sys/condvar.h>
Include dependency graph for offload.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stid_region
 
union  aopen_entry
 
struct  cxgbe_rate_tag
 
union  etid_entry
 
struct  tid_info
 
struct  t4_range
 
struct  t4_virt_res
 
struct  uld_info
 
struct  tom_tunables
 
struct  iw_tunables
 
struct  tls_tunables
 

Macros

#define INIT_ULPTX_WRH(w, wrlen, atomic, tid)
 
#define INIT_ULPTX_WR(w, wrlen, atomic, tid)    INIT_ULPTX_WRH(&((w)->wr), wrlen, atomic, tid)
 
#define INIT_TP_WR(w, tid)
 
#define INIT_TP_WR_MIT_CPL(w, cpl, tid)
 
#define MAX_ATIDS   2048U
 

Enumerations

enum  { EO_FLOWC_PENDING = (1 << 0) , EO_FLOWC_RPL_PENDING = (1 << 1) , EO_SND_TAG_REF = (1 << 2) , EO_FLUSH_RPL_PENDING = (1 << 3) }
 
enum  { ULD_TOM = 0 , ULD_IWARP , ULD_ISCSI , ULD_MAX = ULD_ISCSI }
 

Functions

 TAILQ_HEAD (stid_head, stid_region)
 
static struct cxgbe_rate_tagmst_to_crt (struct m_snd_tag *t)
 

Macro Definition Documentation

◆ INIT_TP_WR

#define INIT_TP_WR (   w,
  tid 
)
Value:
do { \
(w)->wr.wr_hi = htonl(V_FW_WR_OP(FW_TP_WR) | \
V_FW_WR_IMMDLEN(sizeof(*w) - sizeof(w->wr))); \
(w)->wr.wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(sizeof(*w), 16)) | \
V_FW_WR_FLOWID(tid)); \
(w)->wr.wr_lo = cpu_to_be64(0); \
} while (0)
#define cpu_to_be64(x)
Definition: osdep.h:111
#define DIV_ROUND_UP(x, y)
Definition: osdep.h:92
#define V_FW_WR_OP(x)
#define V_FW_WR_LEN16(x)
#define V_FW_WR_FLOWID(x)
@ FW_TP_WR

Definition at line 49 of file offload.h.

◆ INIT_TP_WR_MIT_CPL

#define INIT_TP_WR_MIT_CPL (   w,
  cpl,
  tid 
)
Value:
do { \
INIT_TP_WR(w, tid); \
OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
} while (0)
#define MK_OPCODE_TID(opcode, tid)
Definition: t4_msg.h:325

Definition at line 57 of file offload.h.

◆ INIT_ULPTX_WR

#define INIT_ULPTX_WR (   w,
  wrlen,
  atomic,
  tid 
)     INIT_ULPTX_WRH(&((w)->wr), wrlen, atomic, tid)

Definition at line 46 of file offload.h.

◆ INIT_ULPTX_WRH

#define INIT_ULPTX_WRH (   w,
  wrlen,
  atomic,
  tid 
)
Value:
do { \
(w)->wr_hi = htonl(V_FW_WR_OP(FW_ULPTX_WR) | V_FW_WR_ATOMIC(atomic)); \
(w)->wr_mid = htonl(V_FW_WR_LEN16(DIV_ROUND_UP(wrlen, 16)) | \
V_FW_WR_FLOWID(tid)); \
(w)->wr_lo = cpu_to_be64(0); \
} while (0)
#define V_FW_WR_ATOMIC(x)
@ FW_ULPTX_WR

Definition at line 39 of file offload.h.

◆ MAX_ATIDS

#define MAX_ATIDS   2048U

Definition at line 75 of file offload.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
EO_FLOWC_PENDING 
EO_FLOWC_RPL_PENDING 
EO_SND_TAG_REF 
EO_FLUSH_RPL_PENDING 

Definition at line 83 of file offload.h.

◆ anonymous enum

anonymous enum
Enumerator
ULD_TOM 
ULD_IWARP 
ULD_ISCSI 
ULD_MAX 

Definition at line 204 of file offload.h.

Function Documentation

◆ mst_to_crt()

static struct cxgbe_rate_tag * mst_to_crt ( struct m_snd_tag *  t)
inlinestatic

Definition at line 111 of file offload.h.

References cxgbe_rate_tag::com.

◆ TAILQ_HEAD()

TAILQ_HEAD ( stid_head  ,
stid_region   
)