Lines Matching refs:log
127 struct b43legacy_txstatus_log *log = &dev->dfsentry->txstatlog; in txstat_read_file() local
133 spin_lock_irqsave(&log->lock, flags); in txstat_read_file()
134 if (log->end < 0) { in txstat_read_file()
142 i = log->end + 1; in txstat_read_file()
147 stat = &(log->log[i]); in txstat_read_file()
162 if (i == log->end) in txstat_read_file()
167 spin_unlock_irqrestore(&log->lock, flags); in txstat_read_file()
361 struct b43legacy_txstatus_log *log; in b43legacy_debugfs_add_device() local
371 log = &e->txstatlog; in b43legacy_debugfs_add_device()
372 log->log = kcalloc(B43legacy_NR_LOGGED_TXSTATUS, in b43legacy_debugfs_add_device()
374 if (!log->log) { in b43legacy_debugfs_add_device()
379 log->end = -1; in b43legacy_debugfs_add_device()
380 spin_lock_init(&log->lock); in b43legacy_debugfs_add_device()
417 kfree(e->txstatlog.log); in b43legacy_debugfs_remove_device()
425 struct b43legacy_txstatus_log *log; in b43legacy_debugfs_log_txstat() local
431 log = &e->txstatlog; in b43legacy_debugfs_log_txstat()
433 spin_lock(&log->lock); in b43legacy_debugfs_log_txstat()
434 i = log->end + 1; in b43legacy_debugfs_log_txstat()
437 log->end = i; in b43legacy_debugfs_log_txstat()
438 cur = &(log->log[i]); in b43legacy_debugfs_log_txstat()
440 spin_unlock(&log->lock); in b43legacy_debugfs_log_txstat()