Lines Matching +full:wait +full:- +full:on +full:- +full:read
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Wait for bit with timeout and ctrlc
21 * (either 0->1 or 1->0). It can fail under two conditions:
22 * - Timeout
23 * - User interaction (CTRL-C)
25 * (depending on set option).
27 * @param reg Register that will be read (using read_x())
29 * @param set Selects wait condition (bit set or clear)
31 * @param breakable Enables CTRL-C interruption
32 * @return 0 on success, -ETIMEDOUT or -EINTR on failure
35 #define BUILD_WAIT_FOR_BIT(sfx, type, read) \ argument
47 val = read(reg); \
60 return -EINTR; \
70 return -ETIMEDOUT; \