Lines Matching +full:- +full:1 +full:ul

8  * 1. Redistributions of source code must retain the above copyright
53 #define RBDR_SIZE0 0UL /* 8K entries */
54 #define RBDR_SIZE1 1UL /* 16K entries */
55 #define RBDR_SIZE2 2UL /* 32K entries */
56 #define RBDR_SIZE3 3UL /* 64K entries */
57 #define RBDR_SIZE4 4UL /* 126K entries */
58 #define RBDR_SIZE5 5UL /* 256K entries */
59 #define RBDR_SIZE6 6UL /* 512K entries */
61 #define SND_QUEUE_SIZE0 0UL /* 1K entries */
62 #define SND_QUEUE_SIZE1 1UL /* 2K entries */
63 #define SND_QUEUE_SIZE2 2UL /* 4K entries */
64 #define SND_QUEUE_SIZE3 3UL /* 8K entries */
65 #define SND_QUEUE_SIZE4 4UL /* 16K entries */
66 #define SND_QUEUE_SIZE5 5UL /* 32K entries */
67 #define SND_QUEUE_SIZE6 6UL /* 64K entries */
69 #define CMP_QUEUE_SIZE0 0UL /* 1K entries */
70 #define CMP_QUEUE_SIZE1 1UL /* 2K entries */
71 #define CMP_QUEUE_SIZE2 2UL /* 4K entries */
72 #define CMP_QUEUE_SIZE3 3UL /* 8K entries */
73 #define CMP_QUEUE_SIZE4 4UL /* 16K entries */
74 #define CMP_QUEUE_SIZE5 5UL /* 32K entries */
75 #define CMP_QUEUE_SIZE6 6UL /* 64K entries */
78 #define RBDR_CNT 1
84 #define SND_QUEUE_LEN (1UL << (SND_QSIZE + 10))
85 #define MAX_SND_QUEUE_LEN (1UL << (SND_QUEUE_SIZE6 + 10))
86 #define SND_QUEUE_THRESH 2UL
89 #define MAX_CQE_PER_PKT_XMIT 1
96 #define CMP_QUEUE_LEN (1UL << (CMP_QSIZE + 10))
101 #define RCV_BUF_COUNT (1UL << (RBDR_SIZE + 13))
102 #define MAX_RCV_BUF_COUNT (1UL << (RBDR_SIZE6 + 13))
109 * Its 1/256th level of CQ size.
110 * '+ 1' to account for pipelining
113 ((256 / (CMP_QUEUE_LEN / (CMP_QUEUE_LEN - MAX_CQES_FOR_TX))) + 1)
121 #define NICVF_RCV_BUF_ALIGN_BYTES (1UL << NICVF_RCV_BUF_ALIGN)
128 (NICVF_ALIGNED_ADDR((addr), (bytes)) - (bytes))
130 (NICVF_ALIGNED_ADDR((addr), NICVF_RCV_BUF_ALIGN_BYTES) - (addr))
135 /* TSO-related definitions */
141 #define NICVF_SQ_EN (1UL << 19)
144 #define NICVF_CQ_RESET (1UL << 41)
145 #define NICVF_SQ_RESET (1UL << 17)
146 #define NICVF_RBDR_RESET (1UL << 43)
273 uint8_t cont_rbdr_qs; /* Continue buffer ptrs - QS num */
275 uint8_t start_rbdr_qs; /* First buffer ptrs - QS num */
359 (&(((struct rbdr_entry_t *)((RING)->desc))[(idx)]))
361 (&(((struct sq_hdr_subdesc *)((RING)->desc))[(idx)]))
363 (&(((union cq_desc_t *)((RING)->desc))[(idx)]))
366 #define CQ_WR_FUL (1UL << 26)
367 #define CQ_WR_DISABLE (1UL << 25)
368 #define CQ_WR_FAULT (1UL << 24)
373 #define NICVF_TX_LOCK(sq) mtx_lock(&(sq)->mtx)
374 #define NICVF_TX_TRYLOCK(sq) mtx_trylock(&(sq)->mtx)
375 #define NICVF_TX_UNLOCK(sq) mtx_unlock(&(sq)->mtx)
376 #define NICVF_TX_LOCK_ASSERT(sq) mtx_assert(&(sq)->mtx, MA_OWNED)
378 #define NICVF_CMP_LOCK(cq) mtx_lock(&(cq)->mtx)
379 #define NICVF_CMP_UNLOCK(cq) mtx_unlock(&(cq)->mtx)