#include "util/debug.h"
#include "asm/bug.h"
Go to the source code of this file.
◆ DEFINE_TRIGGER
#define DEFINE_TRIGGER |
( |
|
n | ) |
struct trigger n = {.state = TRIGGER_OFF, .name = #n} |
◆ TRIGGER_WARN_ONCE
#define TRIGGER_WARN_ONCE |
( |
|
t, |
|
|
|
exp |
|
) |
| |
Value:WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \
t->name, t->state, __func__)
Definition at line 37 of file trigger.h.
◆ trigger_error()
static void trigger_error |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |
◆ trigger_hit()
static void trigger_hit |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |
◆ trigger_is_available()
static bool trigger_is_available |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |
◆ trigger_is_error()
static bool trigger_is_error |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |
◆ trigger_is_hit()
static bool trigger_is_hit |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |
◆ trigger_is_ready()
static bool trigger_is_ready |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |
◆ trigger_off()
static void trigger_off |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |
◆ trigger_on()
static void trigger_on |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |
◆ trigger_ready()
static void trigger_ready |
( |
struct trigger * |
t | ) |
|
|
inlinestatic |