Lines Matching full:signal
29 unsigned int signal = cd->min_signal, val; in pl080_get_signal() local
34 /* Return if signal is already acquired by somebody else */ in pl080_get_signal()
35 if (signals[signal].busy && in pl080_get_signal()
36 (signals[signal].val != cd->muxval)) { in pl080_get_signal()
42 if (!signals[signal].busy) { in pl080_get_signal()
48 * value by 2 * signal number. in pl080_get_signal()
50 val &= ~(0x3 << (signal * 2)); in pl080_get_signal()
51 val |= cd->muxval << (signal * 2); in pl080_get_signal()
55 signals[signal].busy++; in pl080_get_signal()
56 signals[signal].val = cd->muxval; in pl080_get_signal()
59 return signal; in pl080_get_signal()
62 void pl080_put_signal(const struct pl08x_channel_data *cd, int signal) in pl080_put_signal() argument
68 /* if signal is not used */ in pl080_put_signal()
69 if (!signals[signal].busy) in pl080_put_signal()
72 signals[signal].busy--; in pl080_put_signal()