Lines Matching full:signal
32 unsigned int signal = cd->min_signal, val; in pl080_get_signal() local
37 /* Return if signal is already acquired by somebody else */ in pl080_get_signal()
38 if (signals[signal].busy && in pl080_get_signal()
39 (signals[signal].val != cd->muxval)) { in pl080_get_signal()
45 if (!signals[signal].busy) { in pl080_get_signal()
51 * value by 2 * signal number. in pl080_get_signal()
53 val &= ~(0x3 << (signal * 2)); in pl080_get_signal()
54 val |= cd->muxval << (signal * 2); in pl080_get_signal()
58 signals[signal].busy++; in pl080_get_signal()
59 signals[signal].val = cd->muxval; in pl080_get_signal()
62 return signal; in pl080_get_signal()
65 void pl080_put_signal(const struct pl08x_channel_data *cd, int signal) in pl080_put_signal() argument
71 /* if signal is not used */ in pl080_put_signal()
72 if (!signals[signal].busy) in pl080_put_signal()
75 signals[signal].busy--; in pl080_put_signal()