Home
last modified time | relevance | path

Searched refs:polarity (Results 1 – 25 of 52) sorted by relevance

123

/device/soc/hisilicon/common/platform/pwm/
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 … [HiPwmSetPolarity] done, polarity: %hhu -> %hhu.", __func__, pwm->cfg.polarity, config->polarity); in HiPwmSetConfig()
134 __func__, config->number, config->period, config->duty, config->polarity, config->status); in HiPwmSetConfig()
183 hp->dev.cfg.polarity = PWM_DEFAULT_POLARITY; in HiPwmProbe()
199 …hp->dev.cfg.number, hp->dev.cfg.period, hp->dev.cfg.duty, hp->dev.cfg.polarity, hp->dev.cfg.status… in HiPwmProbe()
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/
Dpwm.h43 enum pwm_polarity polarity; member
61 enum pwm_polarity polarity; member
150 return state.polarity; in pwm_get_polarity()
186 state->polarity = args.polarity; in pwm_init_state()
266 int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity);
392 int pwmchip_add_with_polarity(struct pwm_chip *chip, enum pwm_polarity polarity);
537 state.polarity = pwm->args.polarity; in pwm_apply_args()
550 enum pwm_polarity polarity; member
557 ….polarity = (_polarity), .module = (_module), …
/device/soc/rockchip/common/sdk_linux/drivers/pwm/
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()
245 static DEVICE_ATTR_RW(polarity);
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()
243 if (state->polarity != curstate.polarity && enabled && !pc->data->supports_lock) { in rockchip_pwm_apply()
/device/soc/rockchip/rk3588/kernel/drivers/gpio/
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 |= mask; in rockchip_irq_set_type()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpio/
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 |= mask; in rockchip_irq_set_type()
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/gpio/
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 |= mask; in rockchip_irq_set_type()
[all …]
/device/soc/telink/b91/b91_ble_sdk/vendor/common/
Dblt_led.c42 void device_led_init(u32 gpio, u8 polarity) in device_led_init() argument
46 device_led.polar = !polarity; in device_led_init()
47 gpio_write(gpio, !polarity); in device_led_init()
Dblt_led.h71 extern void device_led_init(u32 gpio, u8 polarity);
/device/board/talkweb/niobe407/applications/206_hdf_pwm/
Dhdf_pwm_test.c52 pcfg.polarity = PWM_NORMAL_POLARITY; in HdfPwmTestEntry()
77 pcfg1.polarity = PWM_NORMAL_POLARITY; in HdfPwmTestEntry()
101 pcfg2.polarity = PWM_NORMAL_POLARITY; in HdfPwmTestEntry()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/
Ddisp_sys_intf.c516 int disp_sys_pwm_set_polarity(uintptr_t p_handler, int polarity) in disp_sys_pwm_set_polarity() argument
529 state.polarity = polarity; in disp_sys_pwm_set_polarity()
532 pwm_dev->pwm, (polarity == 0) ? "high" : "low"); in disp_sys_pwm_set_polarity()
573 int disp_sys_pwm_set_polarity(uintptr_t p_handler, int polarity) in disp_sys_pwm_set_polarity() argument
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/lcd_fb/
Dlcd_fb_intf.c529 int lcd_fb_pwm_set_polarity(uintptr_t p_handler, int polarity) in lcd_fb_pwm_set_polarity() argument
542 state.polarity = polarity; in lcd_fb_pwm_set_polarity()
545 pwm_dev->pwm, (polarity == 0) ? "high" : "low"); in lcd_fb_pwm_set_polarity()
586 int lcd_fb_pwm_set_polarity(uintptr_t p_handler, int polarity) in lcd_fb_pwm_set_polarity() argument
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/drm/sunxi_device/
Dsunxi_backlight.c49 bl->pwm_info.polarity, bl->pwm_info.period_ns, in sunxi_backlight_info()
214 state.polarity = bl->pwm_info.polarity; in sunxi_backlight_pwm_enable()
251 state.polarity = bl->pwm_info.polarity; in sunxi_backlight_pwm_disable()
457 pwm_info->polarity = pwm->lcd_pwm_pol; in sunxi_backlight_init()
/device/soc/rockchip/common/sdk_linux/include/linux/usb/
Dtcpm.h133 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/board/kaihong/khdvk_3566b/kernel/bluetooth/include/
Dupio.h105 void upio_set(uint8_t pio, uint8_t action, uint8_t polarity);
/device/board/osware/imx8mm/drivers/bluetooth/source/include/
Dupio.h105 void upio_set(uint8_t pio, uint8_t action, uint8_t polarity);
/device/board/unionman/unionpi_tiger/hardware/bt/include/
Dupio.h95 void upio_set(uint8_t pio, uint8_t action, uint8_t polarity);
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/include/
Dupio.h106 void upio_set(uint8_t pio, uint8_t action, uint8_t polarity);
/device/board/kaihong/khdvk_3566b/kernel/bluetooth/src/
Dupio.c348 void upio_set(uint8_t pio, uint8_t action, uint8_t polarity) in upio_set() argument
352 UPIODBG("%s : pio %d action %d, polarity %d", __FUNCTION__, pio, action, polarity); in upio_set()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/pwm/
Dpwm-sunxi.c235 enum pwm_polarity polarity) in sunxi_pwm_set_polarity_single() argument
247 if (polarity == PWM_POLARITY_NORMAL) /* set single polarity*/ in sunxi_pwm_set_polarity_single()
259 enum pwm_polarity polarity, in sunxi_pwm_set_polarity_dual() argument
274 if (polarity == PWM_POLARITY_NORMAL) in sunxi_pwm_set_polarity_dual()
285 if (polarity == PWM_POLARITY_NORMAL) in sunxi_pwm_set_polarity_dual()
297 enum pwm_polarity polarity) in sunxi_pwm_set_polarity() argument
304 sunxi_pwm_set_polarity_single(chip, pwm, polarity); in sunxi_pwm_set_polarity()
306 sunxi_pwm_set_polarity_dual(chip, pwm, polarity, bind_num); in sunxi_pwm_set_polarity()
1394 state->polarity = PWM_POLARITY_NORMAL; in sunxi_pwm_get_state()
1396 state->polarity = PWM_POLARITY_INVERSED; in sunxi_pwm_get_state()
[all …]
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/irda/
Dirda.c129 static void irda_set_polarity(UINT8 polarity) in irda_set_polarity() argument
134 if (polarity) in irda_set_polarity()
/device/soc/rockchip/rk2206/hardware/include/lz_hardware/
Dpwm.h54 bool polarity; /* invert or not */ member
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/
Dhal_key.c535 static void hal_gpiokey_enable_irq(enum HAL_GPIO_PIN_T pin, enum HAL_GPIO_IRQ_POLARITY_T polarity) in hal_gpiokey_enable_irq() argument
543 gpiocfg.irq_polarity = polarity; in hal_gpiokey_enable_irq()
566 enum HAL_GPIO_IRQ_POLARITY_T polarity; in hal_gpiokey_enable_allint() local
574 polarity = HAL_GPIO_IRQ_POLARITY_LOW_FALLING; in hal_gpiokey_enable_allint()
576 polarity = HAL_GPIO_IRQ_POLARITY_HIGH_RISING; in hal_gpiokey_enable_allint()
578 … hal_gpiokey_enable_irq((enum HAL_GPIO_PIN_T)cfg_hw_gpio_key_cfg[i].key_config.pin, polarity); in hal_gpiokey_enable_allint()
/device/board/osware/imx8mm/drivers/bluetooth/source/src/
Dupio.c348 void upio_set(uint8_t pio, uint8_t action, uint8_t polarity) in upio_set() argument
355 UPIODBG("%s : pio %d action %d, polarity %d", __FUNCTION__, pio, action, polarity); in upio_set()

123