| /src/sys/dev/pwm/ |
| pwmvar.h | 40 enum pwm_polarity polarity; /* PWM_ACTIVE_{HIGH,LOW} */ member in struct:pwm_config
|
| /src/sys/arch/arm/imx/ |
| imxpwm.c | 95 const int polarity = __SHIFTOUT(cr, PWM_CR_POUTC); local 100 conf->polarity = polarity ? PWM_ACTIVE_HIGH : PWM_ACTIVE_LOW; 129 if (conf->polarity == PWM_ACTIVE_LOW) 177 .polarity = PWM_ACTIVE_HIGH,
|
| /src/sys/arch/arm/rockchip/ |
| rk_gpio.c | 333 uint32_t polarity, bool mpsafe, int (*func)(void *), void *arg) 359 if (polarity) 414 uint32_t level, polarity; local 422 polarity = 1; 426 polarity = 0; 430 polarity = 1; 434 polarity = 0; 442 return rk_intr_enable(sc, pin, level, polarity, mpsafe, func, arg); 504 uint32_t level, polarity; local 509 polarity = 1 [all...] |
| rk_pwm.c | 101 const u_int polarity = be32toh(pwm[3]); local 104 sc->sc_conf.polarity = polarity ? PWM_ACTIVE_LOW : PWM_ACTIVE_HIGH; 157 conf->polarity = (ctrl & CTRL_DUTY_POL) ? PWM_ACTIVE_HIGH : PWM_ACTIVE_LOW; 181 if (conf->polarity == PWM_ACTIVE_HIGH)
|
| rk_tsadc.c | 478 int mode, polarity, tshut_temp; local 510 if (of_getprop_uint32(phandle, "rockchip,hw-tshut-polarity", 511 &polarity) != 0) { 512 aprint_error(": could not get TSHUT polarity, default to low"); 513 polarity = TSHUT_LOW_ACTIVE; 583 rk_tsadc_init(sc, mode, polarity); 709 rk_tsadc_init_tshut(struct rk_tsadc_softc *sc, int mode, int polarity) 732 /* Handle TSHUT polarity setting. */ 734 if (polarity == TSHUT_HIGH_ACTIVE) 742 rk_tsadc_init_common(struct rk_tsadc_softc *sc, int mode, int polarity) [all...] |
| /src/sys/arch/arm/sunxi/ |
| sunxi_pwm.c | 96 const u_int polarity = be32toh(pwm[3]); local 99 sc->sc_conf.polarity = polarity ? PWM_ACTIVE_LOW : PWM_ACTIVE_HIGH; 139 conf->polarity = (ctrl & PWM_CH0_ACT_STA) ? PWM_ACTIVE_HIGH : PWM_ACTIVE_LOW; 161 if (conf->polarity == PWM_ACTIVE_HIGH)
|
| /src/sys/arch/arm/amlogic/ |
| meson_pwm.c | 160 conf->polarity = PWM_ACTIVE_HIGH; 191 if (conf->polarity == PWM_ACTIVE_LOW) 264 "%s: %s: polarity=%s, DutuCycle/Period=%uns/%uns(%u%%) : " 268 (conf->polarity == PWM_ACTIVE_LOW) ? "LOW" : "HIGH", 292 const u_int polarity = (pwm[3] == 0) ? PWM_ACTIVE_HIGH : PWM_ACTIVE_LOW; local 297 * if polarity or period in pwm-tag is different from the copy of 302 if (pwmchan->mpc_conf.polarity != polarity) { 305 pwmchan->mpc_conf.polarity = polarity; [all...] |
| /src/sys/arch/arm/nxp/ |
| imx6_pwm.c | 67 const u_int polarity = be32toh(pwm[3]); local 68 sc->sc_conf.period = polarity ? PWM_ACTIVE_LOW : PWM_ACTIVE_HIGH;
|
| /src/sys/arch/arm/samsung/ |
| exynos_pwm.c | 124 conf->polarity = (tcon & TCON_OUTINV(timer->timer_index)) ? PWM_ACTIVE_HIGH : PWM_ACTIVE_LOW; 139 if (conf->polarity == PWM_ACTIVE_HIGH) 181 const u_int polarity = be32toh(pwm[3]); local 185 /* Set initial timer polarity and period from specifier */ 188 conf.polarity = polarity ? PWM_ACTIVE_LOW : PWM_ACTIVE_HIGH;
|
| /src/sys/arch/mips/rmi/ |
| rmixl_intr.c | 654 rmixl_intr_polarity_t polarity) 675 switch (polarity) { 682 panic("%s: bad polarity %d\n", __func__, polarity); 701 if ((polarity == RMIXL_POLR_FALLING) || (polarity == RMIXL_POLR_LOW)) 780 rmixl_intr_trigger_t trigger, rmixl_intr_polarity_t polarity, 815 rmixl_irt_establish(irt, vec, cpumask, trigger, polarity);
|
| /src/sys/arch/arm/marvell/ |
| mvsocgpp.c | 139 uint32_t mask, dir, valin, valout, polarity, blink; local 143 dir = valin = valout = polarity = blink = 0; 203 polarity = MVSOCGPP_READ(sc, MVSOCGPP_GPIODIP(i)); 219 if (polarity & mask) { 440 aprint_normal_dev(sc->sc_dev, " Data In Polarity: \t0x%08x\n", 460 aprint_normal_dev(sc->sc_dev, " High Data In Polarity: \t0x%08x\n",
|
| /src/sys/arch/x86/acpi/ |
| acpi_machdep.c | 278 int polarity = ovr.flags & ACPI_MADT_POLARITY_MASK; local 282 if (polarity == ACPI_MADT_POLARITY_ACTIVE_HIGH || 283 (!sci && polarity == ACPI_MADT_POLARITY_CONFORMS)) {
|
| /src/sys/dev/i2c/ |
| pca9685.c | 244 * pwm_config::polarity? I'm thinking not, but... 247 chan->ch_conf.polarity = PWM_ACTIVE_HIGH; 347 if (conf->polarity != PWM_ACTIVE_HIGH) { 349 "set_config: invalid polarity: %d\n", conf->polarity);
|
| /src/sys/external/mit/xen-include-public/dist/xen/include/public/ |
| physdev.h | 248 uint8_t polarity; member in struct:physdev_setup_gsi
|
| /src/sys/external/isc/atheros_hal/dist/ar5210/ |
| ar5210_misc.c | 144 int polarity = MS(rfsilent, AR_EEPROM_RFSILENT_POLARITY); local 154 ar5210Gpio0SetIntr(ah, select, (ar5210GpioGet(ah, select) == polarity));
|
| /src/sys/external/isc/atheros_hal/dist/ar5212/ |
| ar5212_misc.c | 147 * on a switch signal. Assumes GPIO port and interrupt polarity 155 int polarity = MS(rfsilent, AR_EEPROM_RFSILENT_POLARITY); local 172 (ath_hal_gpioGet(ah, select) == polarity ? !polarity : polarity));
|
| /src/sys/dev/pci/ |
| esa.c | 1488 uint32_t gpo, polarity_port, polarity; local 1507 polarity = polarity_port >> 12; 1508 polarity = !polarity; /* Enable */ 1509 polarity = polarity << gpo; 1514 data = ESA_GPO_SECONDARY_AC97 | ESA_GPO_PRIMARY_AC97 | polarity;
|
| /src/sys/external/isc/atheros_hal/dist/ar5211/ |
| ar5211_misc.c | 172 int polarity = MS(rfsilent, AR_EEPROM_RFSILENT_POLARITY); local 188 ar5211GpioSetIntr(ah, select, (ar5211GpioGet(ah, select) != polarity));
|
| /src/sys/dev/pci/cxgb/ |
| cxgb_common.h | 635 int t3_wait_op_done_val(adapter_t *adapter, int reg, u32 mask, int polarity, 639 int polarity, int attempts, int delay) 641 return t3_wait_op_done_val(adapter, reg, mask, polarity, attempts,
|
| cxgb_t3_hw.c | 48 * @polarity: the value of the field when the operation is completed 58 int t3_wait_op_done_val(adapter_t *adapter, int reg, u32 mask, int polarity, 64 if (!!(val & mask) == polarity) {
|
| /src/sys/dev/ic/ |
| ac97.c | 280 unsigned polarity:1; /* Does 0 == MAX or MIN */ member in struct:ac97_source_info 1162 si->polarity = 0; 1784 if (!si->polarity) { 1902 if (!si->polarity) {
|
| /src/sys/external/mit/xen-include-public/dist/xen/include/public/arch-x86/hvm/ |
| save.h | 372 uint8_t polarity:1; member in struct:vioapic_redir_entry::__anon6552
|