Lines Matching refs:ringbuf
82 statlog->ringbuf = dhd_ring_init(dhdp, buf, statlog->bufsize, in dhd_attach_statlog()
84 if (!statlog->ringbuf) { in dhd_attach_statlog()
116 if (statlog->ringbuf) { in dhd_attach_statlog()
117 dhd_ring_deinit(dhdp, statlog->ringbuf); in dhd_attach_statlog()
118 VMFREE(dhdp->osh, statlog->ringbuf, statlog->bufsize); in dhd_attach_statlog()
155 if (statlog->ringbuf) { in dhd_detach_statlog()
156 dhd_ring_deinit(dhdp, statlog->ringbuf); in dhd_detach_statlog()
157 VMFREE(dhdp->osh, statlog->ringbuf, statlog->bufsize); in dhd_detach_statlog()
192 elem = (stat_elem_t *)dhd_ring_get_empty(statlog->ringbuf); in dhd_statlog_ring_log()
723 dhd_ring_whole_lock(statlog->ringbuf); in dhd_statlog_dump()
724 elem = (stat_elem_t *)dhd_ring_get_first(statlog->ringbuf); in dhd_statlog_dump()
736 elem = (stat_elem_t *)dhd_ring_get_next(statlog->ringbuf, (void *)elem); in dhd_statlog_dump()
738 dhd_ring_whole_unlock(statlog->ringbuf); in dhd_statlog_dump()
859 void *ringbuf; in dhd_statlog_get_latest_info() local
887 ringbuf = statlog->bdlog_ringbuf; in dhd_statlog_get_latest_info()
889 ringbuf = statlog->ringbuf; in dhd_statlog_get_latest_info()
900 dhd_ring_whole_lock(ringbuf); in dhd_statlog_get_latest_info()
901 elem = (stat_elem_t *)dhd_ring_get_last(ringbuf); in dhd_statlog_get_latest_info()
906 dhd_ring_whole_unlock(ringbuf); in dhd_statlog_get_latest_info()
920 elem = (stat_elem_t *)dhd_ring_get_prev(ringbuf, (void *)elem); in dhd_statlog_get_latest_info()
922 dhd_ring_whole_unlock(ringbuf); in dhd_statlog_get_latest_info()
1063 dhd_ring_whole_lock(statlog->ringbuf); in dhd_statlog_dump_scr()
1064 elem = (stat_elem_t *)dhd_ring_get_first(statlog->ringbuf); in dhd_statlog_dump_scr()
1076 elem = (stat_elem_t *)dhd_ring_get_next(statlog->ringbuf, (void *)elem); in dhd_statlog_dump_scr()
1078 dhd_ring_whole_unlock(statlog->ringbuf); in dhd_statlog_dump_scr()