/linux-master/drivers/gpio/ |
H A D | gpio-raspberrypi-exp.c | 35 u32 polarity; member in struct:gpio_set_config 44 u32 polarity; member in struct:gpio_get_config 71 return get.polarity; 91 set_in.polarity = ret; /* Retain existing setting */ 120 set_out.polarity = ret; /* Retain existing setting */
|
H A D | gpio-ath79.c | 122 u32 type = 0, polarity = 0; local 128 polarity |= mask; 135 polarity |= mask; 149 polarity = ~ath79_gpio_read(ctrl, AR71XX_GPIO_REG_IN); 164 ctrl, AR71XX_GPIO_REG_INT_POLARITY, mask, polarity); 202 /* Update the polarity of the both edges irqs */
|
H A D | gpio-rockchip.c | 351 u32 data, data_old, polarity; local 359 polarity = readl_relaxed(bank->reg_base + 362 polarity &= ~BIT(irq); 364 polarity |= BIT(irq); 365 writel(polarity, 388 u32 polarity; local 409 polarity = rockchip_gpio_readl(bank, bank->gpio_regs->int_polarity); 426 polarity &= ~mask; 428 polarity |= mask; 440 polarity | [all...] |
/linux-master/drivers/pwm/ |
H A D | pwm-berlin.c | 115 enum pwm_polarity polarity) 122 if (polarity == PWM_POLARITY_NORMAL) 161 if (state->polarity != pwm->state.polarity) { 167 err = berlin_pwm_set_polarity(chip, pwm, state->polarity); 113 berlin_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
|
H A D | pwm-vt8500.c | 161 enum pwm_polarity polarity) 168 if (polarity == PWM_POLARITY_INVERSED) 185 if (state->polarity != pwm->state.polarity) { 187 * Changing the polarity of a running PWM is only allowed when 196 err = vt8500_pwm_set_polarity(chip, pwm, state->polarity); 159 vt8500_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
|
H A D | pwm-visconti.c | 96 if (state->polarity == PWM_POLARITY_INVERSED) 119 state->polarity = PWM_POLARITY_INVERSED; 121 state->polarity = PWM_POLARITY_NORMAL;
|
H A D | pwm-ep93xx.c | 72 if (state->polarity != pwm->state.polarity) { 87 if (state->polarity == PWM_POLARITY_INVERSED)
|
H A D | pwm-hibvt.c | 118 enum pwm_polarity polarity) 122 if (polarity == PWM_POLARITY_INVERSED) 148 state->polarity = (PWM_POLARITY_MASK & value) ? PWM_POLARITY_INVERSED : PWM_POLARITY_NORMAL; 158 if (state->polarity != pwm->state.polarity) 159 hibvt_pwm_set_polarity(chip, pwm, state->polarity); 116 hibvt_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
|
H A D | pwm-omap-dmtimer.c | 29 * - PWM OMAP DM timer cannot change the polarity when pwm is active. When 30 * user requests a change in polarity when in active state: 122 * pwm_omap_dmtimer_polarity() - Detect the polarity of pwm. 125 * Return the polarity of pwm. 236 * pwm_omap_dmtimer_set_polarity() - Changes the polarity of the pwm dm timer. 239 * @polarity: New pwm polarity to be set 243 enum pwm_polarity polarity) 248 /* Disable the PWM before changing the polarity. */ 254 polarity 241 pwm_omap_dmtimer_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument [all...] |
H A D | pwm-tiecap.c | 108 enum pwm_polarity polarity) 117 if (polarity == PWM_POLARITY_INVERSED) 173 if (state->polarity != pwm->state.polarity) { 180 err = ecap_pwm_set_polarity(chip, pwm, state->polarity); 107 ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
|
H A D | pwm-tiehrpwm.c | 111 enum pwm_polarity polarity[NUM_PWM_CHANNEL]; member in struct:ehrpwm_pwm_chip 195 if (pc->polarity[chan] == PWM_POLARITY_INVERSED) 203 if (pc->polarity[chan] == PWM_POLARITY_INVERSED) 308 enum pwm_polarity polarity) 312 /* Configuration of polarity in hardware delayed, do at enable */ 313 pc->polarity[pwm->hwpwm] = polarity; 342 /* Channels polarity can be configured from action qualifier module */ 409 if (state->polarity != pwm->state.polarity) { 306 ehrpwm_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument [all...] |
H A D | pwm-sl28cpld.c | 110 state->polarity = PWM_POLARITY_NORMAL; 135 if (state->polarity != PWM_POLARITY_NORMAL)
|
H A D | pwm-raspberrypi-poe.c | 9 * - Only normal polarity 94 state->polarity = PWM_POLARITY_NORMAL; 107 state->polarity != PWM_POLARITY_NORMAL)
|
/linux-master/drivers/pnp/pnpacpi/ |
H A D | rsparser.c | 19 u8 *polarity, u8 *shareable) 25 *polarity = ACPI_ACTIVE_LOW; 29 *polarity = ACPI_ACTIVE_HIGH; 33 *polarity = ACPI_ACTIVE_LOW; 37 *polarity = ACPI_ACTIVE_HIGH; 43 *polarity = ACPI_ACTIVE_HIGH; 208 gpio->polarity, 319 flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->shareable, p->wake_capable); 343 flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->shareable, p->wake_capable); 664 u8 triggering, polarity, shareabl local 18 decode_irq_flags(struct pnp_dev *dev, int flags, u8 *triggering, u8 *polarity, u8 *shareable) argument 693 u8 triggering, polarity, shareable; local [all...] |
/linux-master/drivers/platform/x86/x86-android-tablets/ |
H A D | asus.c | 127 .polarity = ACPI_ACTIVE_LOW, 141 .polarity = ACPI_ACTIVE_LOW, 305 .polarity = ACPI_ACTIVE_LOW,
|
H A D | lenovo.c | 117 .polarity = ACPI_ACTIVE_LOW, 135 .polarity = ACPI_ACTIVE_LOW, 161 .polarity = ACPI_ACTIVE_LOW, 347 .polarity = ACPI_ACTIVE_HIGH, 372 .polarity = ACPI_ACTIVE_HIGH, 642 .polarity = ACPI_ACTIVE_LOW, 668 .polarity = ACPI_ACTIVE_LOW, 759 .polarity = ACPI_ACTIVE_LOW,
|
/linux-master/arch/powerpc/platforms/4xx/ |
H A D | uic.c | 125 int trigger, polarity; local 134 trigger = 1; polarity = 1; 137 trigger = 1; polarity = 0; 140 trigger = 0; polarity = 1; 143 trigger = 0; polarity = 0; 155 pr = (pr & mask) | (polarity << (31-src));
|
/linux-master/drivers/net/phy/ |
H A D | rockchip.c | 121 static int rockchip_set_polarity(struct phy_device *phydev, int polarity) argument 132 switch (polarity) { 146 /* Set the new polarity value in the register */
|
/linux-master/drivers/counter/ |
H A D | stm32-lptimer-cnt.c | 27 u32 polarity; member in struct:stm32_lptim_cnt 100 /* Setup LP timer encoder/counter and polarity, without prescaler */ 105 val |= FIELD_PREP(STM32_LPTIM_CKPOL, enable ? priv->polarity : 0); 167 if (priv->polarity == STM32_LPTIM_CKPOL_BOTH_EDGES) { 190 priv->polarity = STM32_LPTIM_CKPOL_BOTH_EDGES; 295 switch (priv->polarity) { 334 /* only set polarity when in counter mode (on input 1) */ 341 priv->polarity = STM32_LPTIM_CKPOL_RISING_EDGE; 344 priv->polarity = STM32_LPTIM_CKPOL_FALLING_EDGE; 347 priv->polarity [all...] |
/linux-master/include/linux/usb/ |
H A D | tcpm.h | 73 * Called to set polarity 142 enum typec_cc_polarity polarity); 146 enum typec_cc_polarity polarity);
|
/linux-master/arch/powerpc/platforms/85xx/ |
H A D | socrates_fpga_pic.c | 192 int polarity; local 200 polarity = 1; 203 polarity = 0; 210 if (polarity)
|
/linux-master/drivers/media/i2c/ |
H A D | ths8200.c | 216 uint8_t polarity = 0; local 337 polarity |= 0x01; /* HS_IN */ 338 polarity |= 0x08; /* HS_OUT */ 341 polarity |= 0x02; /* VS_IN */ 342 polarity |= 0x10; /* VS_OUT */ 349 ths8200_write(sd, THS8200_DTG2_CNTL, 0x44 | polarity); 354 v4l2_dbg(1, debug, sd, "%s: frame %dx%d, polarity %d\n" 357 polarity, bt->hfrontporch, bt->hbackporch,
|
/linux-master/drivers/hwmon/ |
H A D | ds1621.c | 40 static int polarity = -1; variable 41 module_param(polarity, int, 0); 42 MODULE_PARM_DESC(polarity, "Output's polarity: 0 = active high, 1 = active low"); 150 /* setup output polarity */ 151 if (polarity == 0) 153 else if (polarity == 1)
|
/linux-master/arch/mips/include/asm/octeon/ |
H A D | cvmx-led-defs.h | 115 uint64_t polarity:1; member in struct:cvmx_led_polarity::cvmx_led_polarity_s 117 uint64_t polarity:1;
|
/linux-master/drivers/net/wireless/ath/ath5k/ |
H A D | led.c | 51 #define ATH_LED(pin, polarity) .driver_data = (((pin) << 8) | (polarity))
|