Lines Matching refs:elem

173 	stat_elem_t *elem;  in dhd_statlog_ring_log()  local
192 elem = (stat_elem_t *)dhd_ring_get_empty(statlog->ringbuf); in dhd_statlog_ring_log()
193 if (!elem) { in dhd_statlog_ring_log()
200 elem->ts_tz = OSL_SYSTZTIME_US(); in dhd_statlog_ring_log()
201 elem->ts = OSL_LOCALTIME_NS(); in dhd_statlog_ring_log()
202 elem->stat = stat; in dhd_statlog_ring_log()
203 elem->ifidx = ifidx; in dhd_statlog_ring_log()
204 elem->dir = dir; in dhd_statlog_ring_log()
205 elem->reason = reason; in dhd_statlog_ring_log()
206 elem->status = status; in dhd_statlog_ring_log()
218 bcopy(elem, elem_bd, sizeof(stat_elem_t)); in dhd_statlog_ring_log()
670 dhd_statlog_get_timestamp(stat_elem_t *elem, uint64 *sec, uint64 *usec) in dhd_statlog_get_timestamp() argument
674 ts_nsec = elem->ts; in dhd_statlog_get_timestamp()
681 dhd_statlog_convert_time(stat_elem_t *elem, uint8 *buf, uint32 buflen) in dhd_statlog_convert_time() argument
693 ts_sec = elem->ts_tz; in dhd_statlog_convert_time()
708 stat_elem_t *elem; in dhd_statlog_dump() local
724 elem = (stat_elem_t *)dhd_ring_get_first(statlog->ringbuf); in dhd_statlog_dump()
725 while (elem) { in dhd_statlog_dump()
726 if (DHD_STATLOG_VALID(elem->stat)) { in dhd_statlog_dump()
728 elem->stat, elem->dir); in dhd_statlog_dump()
729 dhd_statlog_get_timestamp(elem, &sec, &usec); in dhd_statlog_dump()
730 dhd_statlog_convert_time(elem, ts_str, sizeof(ts_str)); in dhd_statlog_dump()
733 (unsigned long)usec, stat_str, elem->ifidx, in dhd_statlog_dump()
734 elem->reason, elem->status); in dhd_statlog_dump()
736 elem = (stat_elem_t *)dhd_ring_get_next(statlog->ringbuf, (void *)elem); in dhd_statlog_dump()
853 stat_elem_t *elem; in dhd_statlog_get_latest_info() local
901 elem = (stat_elem_t *)dhd_ring_get_last(ringbuf); in dhd_statlog_get_latest_info()
902 while (elem) { in dhd_statlog_get_latest_info()
903 if (query_bigdata || isset(filter, elem->stat)) { in dhd_statlog_get_latest_info()
909 bcopy((char *)elem, sp, sizeof(stat_elem_t)); in dhd_statlog_get_latest_info()
920 elem = (stat_elem_t *)dhd_ring_get_prev(ringbuf, (void *)elem); in dhd_statlog_get_latest_info()
930 stat_elem_t *elem = NULL; in dhd_statlog_query() local
1014 elem = (stat_elem_t *)resp_buf; in dhd_statlog_query()
1016 if (DHD_STATLOG_VALID(elem->stat)) { in dhd_statlog_query()
1018 elem->stat, elem->dir); in dhd_statlog_query()
1019 dhd_statlog_get_timestamp(elem, &sec, &usec); in dhd_statlog_query()
1020 dhd_statlog_convert_time(elem, ts_str, sizeof(ts_str)); in dhd_statlog_query()
1022 " ifidx=%d, reason=%d, status=%d\n", elem->ts_tz, in dhd_statlog_query()
1024 stat_str, elem->ifidx, elem->reason, elem->status)); in dhd_statlog_query()
1026 elem++; in dhd_statlog_query()
1048 stat_elem_t *elem; in dhd_statlog_dump_scr() local
1064 elem = (stat_elem_t *)dhd_ring_get_first(statlog->ringbuf); in dhd_statlog_dump_scr()
1065 while (elem) { in dhd_statlog_dump_scr()
1066 if (DHD_STATLOG_VALID(elem->stat)) { in dhd_statlog_dump_scr()
1068 elem->stat, elem->dir); in dhd_statlog_dump_scr()
1069 dhd_statlog_get_timestamp(elem, &sec, &usec); in dhd_statlog_dump_scr()
1070 dhd_statlog_convert_time(elem, ts_str, sizeof(ts_str)); in dhd_statlog_dump_scr()
1072 " ifidx=%d, reason=%d, status=%d\n", elem->ts_tz, ts_str, in dhd_statlog_dump_scr()
1074 elem->ifidx, elem->reason, elem->status)); in dhd_statlog_dump_scr()
1076 elem = (stat_elem_t *)dhd_ring_get_next(statlog->ringbuf, (void *)elem); in dhd_statlog_dump_scr()