Lines Matching refs:log
126 struct b43legacy_txstatus_log *log = &dev->dfsentry->txstatlog; in txstat_read_file() local
132 spin_lock_irqsave(&log->lock, flags); in txstat_read_file()
133 if (log->end < 0) { in txstat_read_file()
141 i = log->end + 1; in txstat_read_file()
146 stat = &(log->log[i]); in txstat_read_file()
161 if (i == log->end) in txstat_read_file()
166 spin_unlock_irqrestore(&log->lock, flags); in txstat_read_file()
357 struct b43legacy_txstatus_log *log; in b43legacy_debugfs_add_device() local
367 log = &e->txstatlog; in b43legacy_debugfs_add_device()
368 log->log = kcalloc(B43legacy_NR_LOGGED_TXSTATUS, in b43legacy_debugfs_add_device()
370 if (!log->log) { in b43legacy_debugfs_add_device()
375 log->end = -1; in b43legacy_debugfs_add_device()
376 spin_lock_init(&log->lock); in b43legacy_debugfs_add_device()
413 kfree(e->txstatlog.log); in b43legacy_debugfs_remove_device()
421 struct b43legacy_txstatus_log *log; in b43legacy_debugfs_log_txstat() local
427 log = &e->txstatlog; in b43legacy_debugfs_log_txstat()
429 spin_lock(&log->lock); in b43legacy_debugfs_log_txstat()
430 i = log->end + 1; in b43legacy_debugfs_log_txstat()
433 log->end = i; in b43legacy_debugfs_log_txstat()
434 cur = &(log->log[i]); in b43legacy_debugfs_log_txstat()
436 spin_unlock(&log->lock); in b43legacy_debugfs_log_txstat()