Home
last modified time | relevance | path

Searched refs:polarity (Results 1 - 11 of 11) sorted by relevance

/device/soc/hisilicon/common/platform/pwm/
H A Dpwm_hi35xx.c95 if (config->polarity != PWM_NORMAL_POLARITY && config->polarity != PWM_INVERTED_POLARITY) { in HiPwmSetConfig()
96 HDF_LOGE("%s: polarity %hhu is invalid", __func__, config->polarity); in HiPwmSetConfig()
112 if (pwm->cfg.polarity != config->polarity && hp->supportPolarity) { in HiPwmSetConfig()
113 HiPwmSetPolarity(hp->reg, config->polarity); in HiPwmSetConfig()
114 HDF_LOGI("%s: [HiPwmSetPolarity] done, polarity: %hhu -> %hhu.", __func__, pwm->cfg.polarity, config->polarity); in HiPwmSetConfig()
[all...]
H A Dpwm_hi35xx.h81 static inline void HiPwmSetPolarity(struct HiPwmRegs *reg, uint8_t polarity) in HiPwmSetPolarity() argument
87 reg->ctrl |= (polarity << PWM_INV_OFFSET); in HiPwmSetPolarity()
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Dpwm.h15 * enum pwm_polarity - polarity of a PWM signal
31 * @polarity: reference polarity
43 enum pwm_polarity polarity; member
55 * @polarity: PWM polarity
61 enum pwm_polarity polarity; member
150 return state.polarity; in pwm_get_polarity()
166 * and polarity fields with the reference values defined in pwm->args.
186 state->polarity in pwm_init_state()
550 enum pwm_polarity polarity; global() member
[all...]
/device/soc/rockchip/common/vendor/drivers/gpio/
H A Dgpio-rockchip.c345 u32 data, data_old, polarity; in rockchip_irq_demux() local
352 polarity = readl_relaxed(bank->reg_base + reg->int_polarity); in rockchip_irq_demux()
354 polarity &= ~BIT(irq); in rockchip_irq_demux()
356 polarity |= BIT(irq); in rockchip_irq_demux()
358 writel(polarity, bank->reg_base + reg->int_polarity); in rockchip_irq_demux()
378 u32 polarity; in rockchip_irq_set_type() local
399 polarity = rockchip_gpio_readl(bank, bank->gpio_regs->int_polarity); in rockchip_irq_set_type()
417 polarity &= ~mask; in rockchip_irq_set_type()
419 polarity |= mask; in rockchip_irq_set_type()
426 polarity | in rockchip_irq_set_type()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/gpio/
H A Dgpio-rockchip.c348 u32 data, data_old, polarity; in rockchip_irq_demux() local
355 polarity = readl_relaxed(bank->reg_base + reg->int_polarity); in rockchip_irq_demux()
357 polarity &= ~BIT(irq); in rockchip_irq_demux()
359 polarity |= BIT(irq); in rockchip_irq_demux()
361 writel(polarity, bank->reg_base + reg->int_polarity); in rockchip_irq_demux()
381 u32 polarity; in rockchip_irq_set_type() local
402 polarity = rockchip_gpio_readl(bank, bank->gpio_regs->int_polarity); in rockchip_irq_set_type()
420 polarity &= ~mask; in rockchip_irq_set_type()
422 polarity |= mask; in rockchip_irq_set_type()
429 polarity | in rockchip_irq_set_type()
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/pwm/
H A Dsysfs.c182 const char *polarity = "unknown"; in polarity_show() local
187 switch (state.polarity) { in polarity_show()
189 polarity = "normal"; in polarity_show()
193 polarity = "inversed"; in polarity_show()
197 return sprintf(buf, "%s\n", polarity); in polarity_show()
204 enum pwm_polarity polarity; in polarity_store() local
209 polarity = PWM_POLARITY_NORMAL; in polarity_store()
211 polarity = PWM_POLARITY_INVERSED; in polarity_store()
218 state.polarity = polarity; in polarity_store()
[all...]
H A Dpwm-rockchip.c100 state->polarity = PWM_POLARITY_INVERSED; in rockchip_pwm_get_state()
102 state->polarity = PWM_POLARITY_NORMAL; in rockchip_pwm_get_state()
164 if (state->polarity == PWM_POLARITY_INVERSED) { in rockchip_pwm_config()
172 * Unlock and set polarity at the same time, in rockchip_pwm_config()
173 * the configuration of duty, period and polarity in rockchip_pwm_config()
243 if (state->polarity != curstate.polarity && enabled && !pc->data->supports_lock) { in rockchip_pwm_apply()
/device/soc/rockchip/rk3588/kernel/drivers/gpio/
H A Dgpio-rockchip.c360 u32 data, data_old, polarity; in rockchip_irq_demux() local
368 polarity = readl_relaxed(bank->reg_base + in rockchip_irq_demux()
371 polarity &= ~BIT(irq); in rockchip_irq_demux()
373 polarity |= BIT(irq); in rockchip_irq_demux()
374 writel(polarity, in rockchip_irq_demux()
397 u32 polarity; in rockchip_irq_set_type() local
418 polarity = rockchip_gpio_readl(bank, bank->gpio_regs->int_polarity); in rockchip_irq_set_type()
437 polarity &= ~mask; in rockchip_irq_set_type()
439 polarity |= mask; in rockchip_irq_set_type()
445 polarity | in rockchip_irq_set_type()
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/usb/
H A Dtcpm.h73 * Called to set polarity
133 int (*apply_rc)(struct tcpc_dev *dev, enum typec_cc_status cc, enum typec_cc_polarity polarity);
135 int (*set_polarity)(struct tcpc_dev *dev, enum typec_cc_polarity polarity);
/device/soc/rockchip/rk2206/hardware/include/lz_hardware/
H A Dpwm.h54 bool polarity; /* invert or not */ member
115 * This function can be used to set the interrupt type, interrupt polarity, and interrupt callback for a PWM device.
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddhd_config.c2139 int id, type, polarity, offset; in dhd_conf_wowl_pattern() local
2157 sscanf(data, "%d %d %d %d %s %s", &id, &type, &polarity, &offset, in dhd_conf_wowl_pattern()

Completed in 13 milliseconds