Lines Matching refs:log
140 struct b43legacy_txstatus_log *log = &dev->dfsentry->txstatlog; in txstat_read_file() local
146 spin_lock_irqsave(&log->lock, flags); in txstat_read_file()
147 if (log->end < 0) { in txstat_read_file()
155 i = log->end + 1; in txstat_read_file()
160 stat = &(log->log[i]); in txstat_read_file()
175 if (i == log->end) in txstat_read_file()
180 spin_unlock_irqrestore(&log->lock, flags); in txstat_read_file()
384 struct b43legacy_txstatus_log *log; in b43legacy_debugfs_add_device() local
394 log = &e->txstatlog; in b43legacy_debugfs_add_device()
395 log->log = kcalloc(B43legacy_NR_LOGGED_TXSTATUS, in b43legacy_debugfs_add_device()
397 if (!log->log) { in b43legacy_debugfs_add_device()
402 log->end = -1; in b43legacy_debugfs_add_device()
403 spin_lock_init(&log->lock); in b43legacy_debugfs_add_device()
418 kfree(log->log); in b43legacy_debugfs_add_device()
464 kfree(e->txstatlog.log); in b43legacy_debugfs_remove_device()
472 struct b43legacy_txstatus_log *log; in b43legacy_debugfs_log_txstat() local
478 log = &e->txstatlog; in b43legacy_debugfs_log_txstat()
480 spin_lock(&log->lock); in b43legacy_debugfs_log_txstat()
481 i = log->end + 1; in b43legacy_debugfs_log_txstat()
484 log->end = i; in b43legacy_debugfs_log_txstat()
485 cur = &(log->log[i]); in b43legacy_debugfs_log_txstat()
487 spin_unlock(&log->lock); in b43legacy_debugfs_log_txstat()