/linux-6.6.21/drivers/platform/x86/intel/int3472/ |
D | discrete.c | 57 const char *func, u32 polarity) in skl_int3472_map_gpio_to_sensor() argument 83 table_entry->flags = polarity; in skl_int3472_map_gpio_to_sensor() 90 static void int3472_get_func_and_polarity(u8 type, const char **func, u32 *polarity) in int3472_get_func_and_polarity() argument 95 *polarity = GPIO_ACTIVE_LOW; in int3472_get_func_and_polarity() 99 *polarity = GPIO_ACTIVE_LOW; in int3472_get_func_and_polarity() 103 *polarity = GPIO_ACTIVE_HIGH; in int3472_get_func_and_polarity() 107 *polarity = GPIO_ACTIVE_HIGH; in int3472_get_func_and_polarity() 111 *polarity = GPIO_ACTIVE_HIGH; in int3472_get_func_and_polarity() 115 *polarity = GPIO_ACTIVE_HIGH; in int3472_get_func_and_polarity() 161 u32 polarity; in skl_int3472_handle_gpio_resources() local [all …]
|
/linux-6.6.21/drivers/pwm/ |
D | core.c | 149 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_xlate_with_flags() 153 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_xlate_with_flags() 177 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_single_xlate() 180 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_single_xlate() 416 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_state_debug() 417 s2.polarity = state->polarity; in pwm_apply_state_debug() 425 if (s2.polarity != state->polarity && in pwm_apply_state_debug() 430 last->polarity == state->polarity && in pwm_apply_state_debug() 443 last->polarity == state->polarity && in pwm_apply_state_debug() 480 s1.polarity != last->polarity || in pwm_apply_state_debug() [all …]
|
D | pwm-renesas-tpu.c | 75 enum pwm_polarity polarity; member 111 tpd->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin() 116 tpd->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin() 121 tpd->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin() 224 tpd->polarity = PWM_POLARITY_NORMAL; in tpu_pwm_request() 354 enum pwm_polarity polarity) in tpu_pwm_set_polarity() argument 358 tpd->polarity = polarity; in tpu_pwm_set_polarity() 401 if (state->polarity != pwm->state.polarity) { in tpu_pwm_apply() 407 err = tpu_pwm_set_polarity(chip, pwm, state->polarity); in tpu_pwm_apply()
|
D | pwm-atmel-tcb.c | 124 enum pwm_polarity polarity) in atmel_tcb_pwm_disable() argument 139 polarity = !polarity; in atmel_tcb_pwm_disable() 147 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable() 153 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable() 181 enum pwm_polarity polarity) in atmel_tcb_pwm_enable() argument 196 polarity = !polarity; in atmel_tcb_pwm_enable() 208 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable() 214 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable() 228 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable() 233 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable() [all …]
|
D | sysfs.c | 159 const char *polarity = "unknown"; in polarity_show() local 164 switch (state.polarity) { in polarity_show() 166 polarity = "normal"; in polarity_show() 170 polarity = "inversed"; in polarity_show() 174 return sysfs_emit(buf, "%s\n", polarity); in polarity_show() 183 enum pwm_polarity polarity; in polarity_store() local 188 polarity = PWM_POLARITY_NORMAL; in polarity_store() 190 polarity = PWM_POLARITY_INVERSED; in polarity_store() 196 state.polarity = polarity; in polarity_store() 221 static DEVICE_ATTR_RW(polarity);
|
D | pwm-bcm-kona.c | 158 enum pwm_polarity polarity) in kona_pwmc_set_polarity() argument 175 if (polarity == PWM_POLARITY_NORMAL) in kona_pwmc_set_polarity() 232 if (state->polarity != pwm->state.polarity) { in kona_pwmc_apply() 238 err = kona_pwmc_set_polarity(chip, pwm, state->polarity); in kona_pwmc_apply() 242 pwm->state.polarity = state->polarity; in kona_pwmc_apply()
|
/linux-6.6.21/drivers/net/wireless/ath/ath5k/ |
D | rfkill.c | 42 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_disable() 44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity); in ath5k_rfkill_disable() 51 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable() 53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable() 72 ah->rf_kill.polarity; in ath5k_is_rfkill_set() 91 ah->rf_kill.polarity = ah->ah_capabilities.cap_eeprom.ee_rfkill_pol; in ath5k_rfkill_hw_start()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | iosapic.c | 143 unsigned char polarity: 1; /* interrupt polarity member 231 pol = iosapic_intr_info[irq].polarity; in set_rte() 497 if (info->trigger == trigger && info->polarity == pol && in iosapic_find_sharable_irq() 553 unsigned long polarity, unsigned long trigger) in register_intr() argument 585 (info->trigger != trigger || info->polarity != polarity)){ in register_intr() 596 iosapic_intr_info[irq].polarity = polarity; in register_intr() 713 unsigned long polarity, unsigned long trigger) in iosapic_register_intr() argument 744 irq = iosapic_find_sharable_irq(trigger, polarity); in iosapic_register_intr() 753 err = register_intr(gsi, irq, dmode, polarity, trigger); in iosapic_register_intr() 771 (polarity == IOSAPIC_POL_HIGH ? "high" : "low"), in iosapic_register_intr() [all …]
|
/linux-6.6.21/drivers/irqchip/ |
D | irq-ftintc010.c | 84 u32 mode, polarity; in ft010_irq_set_type() local 87 polarity = readl(FT010_IRQ_POLARITY(f->base)); in ft010_irq_set_type() 92 polarity |= BIT(offset); in ft010_irq_set_type() 96 polarity &= ~BIT(offset); in ft010_irq_set_type() 100 polarity |= BIT(offset); in ft010_irq_set_type() 104 polarity &= ~BIT(offset); in ft010_irq_set_type() 112 writel(polarity, FT010_IRQ_POLARITY(f->base)); in ft010_irq_set_type()
|
D | irq-davinci-cp-intc.c | 76 unsigned int reg, mask, polarity, type; in davinci_cp_intc_set_irq_type() local 80 polarity = davinci_cp_intc_read(DAVINCI_CP_INTC_SYS_POLARITY(reg)); in davinci_cp_intc_set_irq_type() 85 polarity |= mask; in davinci_cp_intc_set_irq_type() 89 polarity &= ~mask; in davinci_cp_intc_set_irq_type() 93 polarity |= mask; in davinci_cp_intc_set_irq_type() 97 polarity &= ~mask; in davinci_cp_intc_set_irq_type() 104 davinci_cp_intc_write(polarity, DAVINCI_CP_INTC_SYS_POLARITY(reg)); in davinci_cp_intc_set_irq_type()
|
/linux-6.6.21/arch/x86/kernel/acpi/ |
D | boot.c | 422 static int __init mp_register_ioapic_irq(u8 bus_irq, u8 polarity, 425 static void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, in mp_override_legacy_irq() argument 444 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) in mp_override_legacy_irq() 457 int polarity) in mp_config_acpi_gsi() argument 480 (polarity == ACPI_ACTIVE_HIGH ? 1 : 3); in mp_config_acpi_gsi() 491 static int __init mp_register_ioapic_irq(u8 bus_irq, u8 polarity, in mp_register_ioapic_irq() argument 508 mp_irq.irqflag = (trigger << 2) | polarity; in mp_register_ioapic_irq() 548 static void __init acpi_sci_ioapic_setup(u8 bus_irq, u16 polarity, u16 trigger, u32 gsi) in acpi_sci_ioapic_setup() argument 553 if (polarity == 0) /* compatible SCI polarity is low */ in acpi_sci_ioapic_setup() 554 polarity = 3; in acpi_sci_ioapic_setup() [all …]
|
/linux-6.6.21/drivers/platform/x86/x86-android-tablets/ |
D | other.c | 49 .polarity = ACPI_ACTIVE_LOW, 64 .polarity = ACPI_ACTIVE_HIGH, 161 .polarity = ACPI_ACTIVE_HIGH, 176 .polarity = ACPI_ACTIVE_HIGH, 314 .polarity = ACPI_ACTIVE_HIGH, 329 .polarity = ACPI_ACTIVE_LOW, 404 .polarity = ACPI_ACTIVE_LOW, 462 .polarity = ACPI_ACTIVE_LOW, 561 .polarity = ACPI_ACTIVE_HIGH,
|
D | lenovo.c | 97 .polarity = ACPI_ACTIVE_LOW, 113 .polarity = ACPI_ACTIVE_LOW, 138 .polarity = ACPI_ACTIVE_LOW, 323 .polarity = ACPI_ACTIVE_HIGH, 347 .polarity = ACPI_ACTIVE_HIGH, 617 .polarity = ACPI_ACTIVE_LOW, 642 .polarity = ACPI_ACTIVE_LOW,
|
/linux-6.6.21/drivers/acpi/ |
D | resource.c | 341 unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable, u8 wake_capable) in acpi_dev_irq_flags() argument 346 flags = polarity == ACPI_ACTIVE_LOW ? in acpi_dev_irq_flags() 349 flags = polarity == ACPI_ACTIVE_LOW ? in acpi_dev_irq_flags() 367 unsigned int acpi_dev_get_irq_type(int triggering, int polarity) in acpi_dev_get_irq_type() argument 369 switch (polarity) { in acpi_dev_get_irq_type() 571 unsigned char polarity; member 585 static bool acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity, in acpi_dev_irq_override() argument 596 entry->polarity == polarity && in acpi_dev_irq_override() 627 u8 triggering, u8 polarity, u8 shareable, in acpi_dev_get_irqresource() argument 648 acpi_dev_irq_override(gsi, triggering, polarity, shareable) && in acpi_dev_get_irqresource() [all …]
|
D | pci_link.c | 58 u8 polarity; /* All IRQs */ member 116 link->irq.polarity = p->polarity; in acpi_pci_link_check_possible() 142 link->irq.polarity = p->polarity; in acpi_pci_link_check_possible() 303 resource->res.data.irq.polarity = in acpi_pci_link_set() 304 link->irq.polarity; in acpi_pci_link_set() 321 resource->res.data.extended_irq.polarity = in acpi_pci_link_set() 322 link->irq.polarity; in acpi_pci_link_set() 607 int *polarity, char **name) in acpi_pci_link_allocate_irq() argument 645 if (polarity) in acpi_pci_link_allocate_irq() 646 *polarity = link->irq.polarity; in acpi_pci_link_allocate_irq() [all …]
|
D | irq.c | 57 int polarity) in acpi_register_gsi() argument 69 fwspec.param[1] = acpi_dev_get_irq_type(trigger, polarity); in acpi_register_gsi() 165 u8 polarity, u8 shareable, in acpi_irq_parse_one_match() argument 172 *ctx->res_flags = acpi_dev_irq_flags(triggering, polarity, shareable, wake_capable); in acpi_irq_parse_one_match() 175 ctx->fwspec->param[1] = acpi_dev_get_irq_type(triggering, polarity); in acpi_irq_parse_one_match() 214 irq->triggering, irq->polarity, in acpi_irq_parse_one_cb() 228 eirq->triggering, eirq->polarity, in acpi_irq_parse_one_cb()
|
/linux-6.6.21/Documentation/devicetree/bindings/interrupt-controller/ |
D | microchip,pic32-evic.txt | 9 External interrupts have a software configurable edge polarity. Non external 10 interrupts have a type and polarity that is determined by the source of the 26 irq_type - is used to describe the type and polarity of an interrupt. For 29 IRQ_TYPE_EDGE_RISING or IRQ_TYPE_EDGE_FALLING to select the desired polarity. 34 polarity configuration. This array corresponds to the bits in the INTCON 49 and polarity.
|
/linux-6.6.21/include/trace/events/ |
D | pwm.h | 21 __field(enum pwm_polarity, polarity) 30 __entry->polarity = state->polarity; 37 __entry->polarity, __entry->enabled, __entry->err)
|
/linux-6.6.21/include/linux/ |
D | pwm.h | 40 enum pwm_polarity polarity; member 62 enum pwm_polarity polarity; member 153 return state.polarity; in pwm_get_polarity() 191 state->polarity = args.polarity; in pwm_init_state() 535 state.polarity = pwm->args.polarity; in pwm_apply_args() 549 enum pwm_polarity polarity; member 561 .polarity = _polarity, \
|
/linux-6.6.21/drivers/pnp/pnpacpi/ |
D | rsparser.c | 19 u8 *polarity, u8 *shareable) in decode_irq_flags() argument 25 *polarity = ACPI_ACTIVE_LOW; in decode_irq_flags() 29 *polarity = ACPI_ACTIVE_HIGH; in decode_irq_flags() 33 *polarity = ACPI_ACTIVE_LOW; in decode_irq_flags() 37 *polarity = ACPI_ACTIVE_HIGH; in decode_irq_flags() 43 *polarity = ACPI_ACTIVE_HIGH; in decode_irq_flags() 208 gpio->polarity, in pnpacpi_allocated_resource() 319 flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->shareable, p->wake_capable); in pnpacpi_parse_irq_option() 343 flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->shareable, p->wake_capable); in pnpacpi_parse_ext_irq_option() 664 u8 triggering, polarity, shareable; in pnpacpi_encode_irq() local [all …]
|
/linux-6.6.21/drivers/extcon/ |
D | extcon-usbc-cros-ec.c | 145 bool *polarity) in cros_ec_usb_get_role() argument 164 *polarity = resp.polarity; in cros_ec_usb_get_role() 254 bool polarity = false; in extcon_cros_ec_detect_cable() local 266 role = cros_ec_usb_get_role(info, &polarity); in extcon_cros_ec_detect_cable() 288 role, power_type, dr, pr, polarity, mux, dp, hpd); in extcon_cros_ec_detect_cable() 328 (union extcon_property_value)(int)polarity); in extcon_cros_ec_detect_cable() 331 (union extcon_property_value)(int)polarity); in extcon_cros_ec_detect_cable() 334 (union extcon_property_value)(int)polarity); in extcon_cros_ec_detect_cable()
|
/linux-6.6.21/drivers/counter/ |
D | stm32-lptimer-cnt.c | 27 u32 polarity; member 105 val |= FIELD_PREP(STM32_LPTIM_CKPOL, enable ? priv->polarity : 0); in stm32_lptim_setup() 167 if (priv->polarity == STM32_LPTIM_CKPOL_BOTH_EDGES) { in stm32_lptim_cnt_function_read() 190 priv->polarity = STM32_LPTIM_CKPOL_BOTH_EDGES; in stm32_lptim_cnt_function_write() 295 switch (priv->polarity) { in stm32_lptim_cnt_action_read() 341 priv->polarity = STM32_LPTIM_CKPOL_RISING_EDGE; in stm32_lptim_cnt_action_write() 344 priv->polarity = STM32_LPTIM_CKPOL_FALLING_EDGE; in stm32_lptim_cnt_action_write() 347 priv->polarity = STM32_LPTIM_CKPOL_BOTH_EDGES; in stm32_lptim_cnt_action_write()
|
/linux-6.6.21/drivers/gpio/ |
D | gpio-rockchip.c | 351 u32 data, data_old, polarity; in rockchip_irq_demux() local 359 polarity = readl_relaxed(bank->reg_base + in rockchip_irq_demux() 362 polarity &= ~BIT(irq); in rockchip_irq_demux() 364 polarity |= BIT(irq); in rockchip_irq_demux() 365 writel(polarity, in rockchip_irq_demux() 388 u32 polarity; in rockchip_irq_set_type() local 409 polarity = rockchip_gpio_readl(bank, bank->gpio_regs->int_polarity); in rockchip_irq_set_type() 426 polarity &= ~mask; in rockchip_irq_set_type() 428 polarity |= mask; in rockchip_irq_set_type() 440 polarity |= mask; in rockchip_irq_set_type() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/regulator/ |
D | richtek,rtmv20-regulator.yaml | 100 richtek,strobe-polarity-high: 101 description: Strobe pin active polarity control. 104 richtek,vsync-polarity-high: 105 description: Vsync pin active polarity control. 150 richtek,strobe-polarity-high; 151 richtek,vsync-polarity-high;
|
/linux-6.6.21/arch/ia64/include/asm/ |
D | iosapic.h | 88 extern int iosapic_register_intr (unsigned int gsi, unsigned long polarity, 92 unsigned long polarity, 98 unsigned long polarity,
|