Lines Matching refs:observed

57 } observed = {  variable
58 .lock = __SPIN_LOCK_UNLOCKED(observed.lock),
108 spin_lock_irqsave(&observed.lock, flags); in probe_console()
109 nlines = observed.nlines; in probe_console()
118 strscpy(observed.lines[0], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
121 strscpy(observed.lines[nlines++], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
128 strcpy(observed.lines[nlines++], "<none>"); in probe_console()
133 WRITE_ONCE(observed.nlines, nlines); /* Publish new nlines. */ in probe_console()
134 spin_unlock_irqrestore(&observed.lock, flags); in probe_console()
141 return READ_ONCE(observed.nlines) == ARRAY_SIZE(observed.lines); in report_available()
162 typeof(*observed.lines) *expect; in __report_matches()
171 expect = kmalloc(sizeof(observed.lines), GFP_KERNEL); in __report_matches()
247 spin_lock_irqsave(&observed.lock, flags); in __report_matches()
252 ret = strstr(observed.lines[0], expect[0]) && in __report_matches()
254 ((strstr(observed.lines[1], expect[1]) && in __report_matches()
255 strstr(observed.lines[2], expect[2])) || in __report_matches()
256 (strstr(observed.lines[1], expect[2]) && in __report_matches()
257 strstr(observed.lines[2], expect[1]))); in __report_matches()
259 spin_unlock_irqrestore(&observed.lock, flags); in __report_matches()
1503 spin_lock_irqsave(&observed.lock, flags); in test_init()
1504 for (i = 0; i < ARRAY_SIZE(observed.lines); ++i) in test_init()
1505 observed.lines[i][0] = '\0'; in test_init()
1506 observed.nlines = 0; in test_init()
1507 spin_unlock_irqrestore(&observed.lock, flags); in test_init()