Lines Matching refs:a
95 #define MP_TX_AGGR_IN_PROGRESS(a) (a->mpa_tx.pkt_cnt > 0) argument
98 #define MP_TX_AGGR_BUF_HAS_ROOM(a, len) ((a->mpa_tx.buf_len+len) \ argument
99 <= a->mpa_tx.buf_size)
102 #define MP_TX_AGGR_BUF_PUT(a, payload, pkt_len, port) do { \ argument
103 memmove(&a->mpa_tx.buf[a->mpa_tx.buf_len], \
105 a->mpa_tx.buf_len += pkt_len; \
106 if (!a->mpa_tx.pkt_cnt) \
107 a->mpa_tx.start_port = port; \
108 if (a->mpa_tx.start_port <= port) \
109 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \
111 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+ \
112 (a->max_ports - \
113 a->mp_end_port))); \
114 a->mpa_tx.pkt_cnt++; \
118 #define MP_TX_AGGR_PKT_LIMIT_REACHED(a) \ argument
119 (a->mpa_tx.pkt_cnt == a->mpa_tx.pkt_aggr_limit)
122 #define MP_TX_AGGR_BUF_RESET(a) do { \ argument
123 a->mpa_tx.pkt_cnt = 0; \
124 a->mpa_tx.buf_len = 0; \
125 a->mpa_tx.ports = 0; \
126 a->mpa_tx.start_port = 0; \
130 #define MP_RX_AGGR_PKT_LIMIT_REACHED(a) \ argument
131 (a->mpa_rx.pkt_cnt == a->mpa_rx.pkt_aggr_limit)
134 #define MP_RX_AGGR_IN_PROGRESS(a) (a->mpa_rx.pkt_cnt > 0) argument
137 #define MP_RX_AGGR_BUF_HAS_ROOM(a, rx_len) \ argument
138 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size)
141 #define MP_RX_AGGR_BUF_RESET(a) do { \ argument
142 a->mpa_rx.pkt_cnt = 0; \
143 a->mpa_rx.buf_len = 0; \
144 a->mpa_rx.ports = 0; \
145 a->mpa_rx.start_port = 0; \