Lines Matching refs:a
104 #define MP_TX_AGGR_IN_PROGRESS(a) (a->mpa_tx.pkt_cnt > 0) argument
107 #define MP_TX_AGGR_BUF_HAS_ROOM(a, len) ((a->mpa_tx.buf_len+len) \ argument
108 <= a->mpa_tx.buf_size)
111 #define MP_TX_AGGR_BUF_PUT(a, payload, pkt_len, port) do { \ argument
112 memmove(&a->mpa_tx.buf[a->mpa_tx.buf_len], \
114 a->mpa_tx.buf_len += pkt_len; \
115 if (!a->mpa_tx.pkt_cnt) \
116 a->mpa_tx.start_port = port; \
117 if (a->mpa_tx.start_port <= port) \
118 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \
120 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+ \
121 (a->max_ports - \
122 a->mp_end_port))); \
123 a->mpa_tx.pkt_cnt++; \
127 #define MP_TX_AGGR_PKT_LIMIT_REACHED(a) \ argument
128 (a->mpa_tx.pkt_cnt == a->mpa_tx.pkt_aggr_limit)
131 #define MP_TX_AGGR_BUF_RESET(a) do { \ argument
132 a->mpa_tx.pkt_cnt = 0; \
133 a->mpa_tx.buf_len = 0; \
134 a->mpa_tx.ports = 0; \
135 a->mpa_tx.start_port = 0; \
139 #define MP_RX_AGGR_PKT_LIMIT_REACHED(a) \ argument
140 (a->mpa_rx.pkt_cnt == a->mpa_rx.pkt_aggr_limit)
143 #define MP_RX_AGGR_IN_PROGRESS(a) (a->mpa_rx.pkt_cnt > 0) argument
146 #define MP_RX_AGGR_BUF_HAS_ROOM(a, rx_len) \ argument
147 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size)
150 #define MP_RX_AGGR_BUF_RESET(a) do { \ argument
151 a->mpa_rx.pkt_cnt = 0; \
152 a->mpa_rx.buf_len = 0; \
153 a->mpa_rx.ports = 0; \
154 a->mpa_rx.start_port = 0; \