• Home
  • Raw
  • Download

Lines Matching refs:stats

125 		mutex_lock(&rdev->stats.lock);  in c4iw_get_cqid()
126 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid()
127 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid()
156 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid()
157 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_cqid()
158 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_cqid()
159 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid()
194 mutex_lock(&rdev->stats.lock); in c4iw_get_qpid()
195 rdev->stats.qid.fail++; in c4iw_get_qpid()
196 mutex_unlock(&rdev->stats.lock); in c4iw_get_qpid()
199 mutex_lock(&rdev->stats.lock); in c4iw_get_qpid()
200 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_qpid()
201 mutex_unlock(&rdev->stats.lock); in c4iw_get_qpid()
230 mutex_lock(&rdev->stats.lock); in c4iw_get_qpid()
231 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_qpid()
232 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_qpid()
233 mutex_unlock(&rdev->stats.lock); in c4iw_get_qpid()
269 mutex_lock(&rdev->stats.lock); in c4iw_pblpool_alloc()
271 rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_alloc()
272 if (rdev->stats.pbl.cur > rdev->stats.pbl.max) in c4iw_pblpool_alloc()
273 rdev->stats.pbl.max = rdev->stats.pbl.cur; in c4iw_pblpool_alloc()
276 rdev->stats.pbl.fail++; in c4iw_pblpool_alloc()
277 mutex_unlock(&rdev->stats.lock); in c4iw_pblpool_alloc()
293 mutex_lock(&rdev->stats.lock); in c4iw_pblpool_free()
294 rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_free()
295 mutex_unlock(&rdev->stats.lock); in c4iw_pblpool_free()
351 mutex_lock(&rdev->stats.lock); in c4iw_rqtpool_alloc()
353 rdev->stats.rqt.cur += roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_alloc()
354 if (rdev->stats.rqt.cur > rdev->stats.rqt.max) in c4iw_rqtpool_alloc()
355 rdev->stats.rqt.max = rdev->stats.rqt.cur; in c4iw_rqtpool_alloc()
358 rdev->stats.rqt.fail++; in c4iw_rqtpool_alloc()
359 mutex_unlock(&rdev->stats.lock); in c4iw_rqtpool_alloc()
375 mutex_lock(&rdev->stats.lock); in c4iw_rqtpool_free()
376 rdev->stats.rqt.cur -= roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_free()
377 mutex_unlock(&rdev->stats.lock); in c4iw_rqtpool_free()
432 mutex_lock(&rdev->stats.lock); in c4iw_alloc_srq_idx()
434 rdev->stats.srqt.fail++; in c4iw_alloc_srq_idx()
435 mutex_unlock(&rdev->stats.lock); in c4iw_alloc_srq_idx()
438 rdev->stats.srqt.cur++; in c4iw_alloc_srq_idx()
439 if (rdev->stats.srqt.cur > rdev->stats.srqt.max) in c4iw_alloc_srq_idx()
440 rdev->stats.srqt.max = rdev->stats.srqt.cur; in c4iw_alloc_srq_idx()
441 mutex_unlock(&rdev->stats.lock); in c4iw_alloc_srq_idx()
448 mutex_lock(&rdev->stats.lock); in c4iw_free_srq_idx()
449 rdev->stats.srqt.cur--; in c4iw_free_srq_idx()
450 mutex_unlock(&rdev->stats.lock); in c4iw_free_srq_idx()
463 mutex_lock(&rdev->stats.lock); in c4iw_ocqp_pool_alloc()
464 rdev->stats.ocqp.cur += roundup(size, 1 << MIN_OCQP_SHIFT); in c4iw_ocqp_pool_alloc()
465 if (rdev->stats.ocqp.cur > rdev->stats.ocqp.max) in c4iw_ocqp_pool_alloc()
466 rdev->stats.ocqp.max = rdev->stats.ocqp.cur; in c4iw_ocqp_pool_alloc()
467 mutex_unlock(&rdev->stats.lock); in c4iw_ocqp_pool_alloc()
475 mutex_lock(&rdev->stats.lock); in c4iw_ocqp_pool_free()
476 rdev->stats.ocqp.cur -= roundup(size, 1 << MIN_OCQP_SHIFT); in c4iw_ocqp_pool_free()
477 mutex_unlock(&rdev->stats.lock); in c4iw_ocqp_pool_free()