Home
last modified time | relevance | path

Searched refs:logbuffer_head (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/usb/typec/tcpm/
Dfusb302.c116 int logbuffer_head; member
130 (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in fusb302_log_full()
141 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log()
142 chip->logbuffer[chip->logbuffer_head] = in _fusb302_log()
144 if (!chip->logbuffer[chip->logbuffer_head]) in _fusb302_log()
153 chip->logbuffer_head = max(chip->logbuffer_head - 1, 0); in _fusb302_log()
157 if (chip->logbuffer_head < 0 || in _fusb302_log()
158 chip->logbuffer_head >= LOG_BUFFER_ENTRIES) { in _fusb302_log()
160 "Bad log buffer index %d\n", chip->logbuffer_head); in _fusb302_log()
164 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log()
[all …]
Dtcpm.c558 int logbuffer_head; member
661 (port->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in tcpm_log_full()
672 if (!port->logbuffer[port->logbuffer_head]) { in _tcpm_log()
673 port->logbuffer[port->logbuffer_head] = in _tcpm_log()
675 if (!port->logbuffer[port->logbuffer_head]) { in _tcpm_log()
684 port->logbuffer_head = max(port->logbuffer_head - 1, 0); in _tcpm_log()
688 if (port->logbuffer_head < 0 || in _tcpm_log()
689 port->logbuffer_head >= LOG_BUFFER_ENTRIES) { in _tcpm_log()
691 "Bad log buffer index %d\n", port->logbuffer_head); in _tcpm_log()
695 if (!port->logbuffer[port->logbuffer_head]) { in _tcpm_log()
[all …]