Lines Matching refs:chan
33 struct sandbox_pwm_chan chan[NUM_CHANNELS]; member
40 struct sandbox_pwm_chan *chan; in sandbox_pwm_get_config() local
44 chan = &priv->chan[channel]; in sandbox_pwm_get_config()
45 *period_nsp = chan->period_ns; in sandbox_pwm_get_config()
46 *duty_nsp = chan->duty_ns; in sandbox_pwm_get_config()
47 *enablep = chan->enable; in sandbox_pwm_get_config()
48 *polarityp = chan->polarity; in sandbox_pwm_get_config()
57 struct sandbox_pwm_chan *chan; in sandbox_pwm_set_config() local
61 chan = &priv->chan[channel]; in sandbox_pwm_set_config()
62 chan->period_ns = period_ns; in sandbox_pwm_set_config()
63 chan->duty_ns = duty_ns; in sandbox_pwm_set_config()
72 struct sandbox_pwm_chan *chan; in sandbox_pwm_set_enable() local
76 chan = &priv->chan[channel]; in sandbox_pwm_set_enable()
77 chan->enable = enable; in sandbox_pwm_set_enable()
86 struct sandbox_pwm_chan *chan; in sandbox_pwm_set_invert() local
90 chan = &priv->chan[channel]; in sandbox_pwm_set_invert()
91 chan->polarity = polarity; in sandbox_pwm_set_invert()