Lines Matching defs:polarity
100 * @polarity: interrupt polarity as provided by ACPI
111 int polarity;
289 acpi_gpio_to_gpiod_flags(const struct acpi_resource_gpio *agpio, int polarity)
302 * and the polarity instead. If the pin is pulled up we assume
305 * polarity values will be switched. See also
310 return polarity == GPIO_ACTIVE_LOW ? GPIOD_OUT_LOW : GPIOD_OUT_HIGH;
312 return polarity == GPIO_ACTIVE_LOW ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW;
333 int polarity = GPIO_ACTIVE_HIGH;
334 enum gpiod_flags flags = acpi_gpio_to_gpiod_flags(agpio, polarity);
339 desc = gpiochip_request_own_desc(chip, pin, label, polarity, flags);
475 if (agpio->polarity == ACPI_ACTIVE_HIGH)
480 switch (agpio->polarity) {
739 if (info->polarity == GPIO_ACTIVE_LOW)
796 lookup->info.polarity = agpio->polarity;
799 lookup->info.polarity = lookup->active_low;
802 lookup->info.flags = acpi_gpio_to_gpiod_flags(agpio, lookup->info.polarity);
1096 info.polarity);