Lines Matching refs:a
103 #define MP_TX_AGGR_IN_PROGRESS(a) (a->mpa_tx.pkt_cnt > 0) argument
106 #define MP_TX_AGGR_BUF_HAS_ROOM(a, len) ((a->mpa_tx.buf_len+len) \ argument
107 <= a->mpa_tx.buf_size)
110 #define MP_TX_AGGR_BUF_PUT(a, payload, pkt_len, port) do { \ argument
111 memmove(&a->mpa_tx.buf[a->mpa_tx.buf_len], \
113 a->mpa_tx.buf_len += pkt_len; \
114 if (!a->mpa_tx.pkt_cnt) \
115 a->mpa_tx.start_port = port; \
116 if (a->mpa_tx.start_port <= port) \
117 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \
119 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+ \
120 (a->max_ports - \
121 a->mp_end_port))); \
122 a->mpa_tx.pkt_cnt++; \
126 #define MP_TX_AGGR_PKT_LIMIT_REACHED(a) \ argument
127 (a->mpa_tx.pkt_cnt == a->mpa_tx.pkt_aggr_limit)
130 #define MP_TX_AGGR_BUF_RESET(a) do { \ argument
131 a->mpa_tx.pkt_cnt = 0; \
132 a->mpa_tx.buf_len = 0; \
133 a->mpa_tx.ports = 0; \
134 a->mpa_tx.start_port = 0; \
138 #define MP_RX_AGGR_PKT_LIMIT_REACHED(a) \ argument
139 (a->mpa_rx.pkt_cnt == a->mpa_rx.pkt_aggr_limit)
142 #define MP_RX_AGGR_IN_PROGRESS(a) (a->mpa_rx.pkt_cnt > 0) argument
145 #define MP_RX_AGGR_BUF_HAS_ROOM(a, rx_len) \ argument
146 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size)
149 #define MP_RX_AGGR_BUF_RESET(a) do { \ argument
150 a->mpa_rx.pkt_cnt = 0; \
151 a->mpa_rx.buf_len = 0; \
152 a->mpa_rx.ports = 0; \
153 a->mpa_rx.start_port = 0; \