Lines Matching refs:qsp
155 static __always_inline void hbm_update_stats(struct hbm_queue_stats *qsp,
167 if (qsp != NULL) {
169 __sync_add_and_fetch(&(qsp->bytes_total), len);
170 if (qsp->stats) {
172 if (qsp->firstPacketTime == 0)
173 qsp->firstPacketTime = curtime;
174 qsp->lastPacketTime = curtime;
175 __sync_add_and_fetch(&(qsp->pkts_total), 1);
177 __sync_add_and_fetch(&(qsp->pkts_marked), 1);
178 __sync_add_and_fetch(&(qsp->bytes_marked), len);
181 __sync_add_and_fetch(&(qsp->pkts_dropped), 1);
182 __sync_add_and_fetch(&(qsp->bytes_dropped),
186 __sync_add_and_fetch(&(qsp->pkts_ecn_ce), 1);
188 __sync_add_and_fetch(&(qsp->sum_cwnd),
190 __sync_add_and_fetch(&(qsp->sum_cwnd_cnt), 1);
193 __sync_add_and_fetch(&(qsp->sum_rtt),
195 __sync_add_and_fetch(&(qsp->sum_credit), credit);
202 __sync_add_and_fetch(&(qsp->returnValCount[0]),
205 __sync_add_and_fetch(&(qsp->returnValCount[1]),
208 __sync_add_and_fetch(&(qsp->returnValCount[2]),
211 __sync_add_and_fetch(&(qsp->returnValCount[3]),