| /linux-6.15/drivers/net/wireless/ath/ath5k/ |
| H A 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.15/arch/x86/kernel/acpi/ |
| H A D | boot.c | 400 int polarity) in mp_config_acpi_gsi() argument 423 (polarity == ACPI_ACTIVE_HIGH ? 1 : 3); in mp_config_acpi_gsi() 451 mp_irq.irqflag = (trigger << 2) | polarity; in mp_register_ioapic_irq() 497 polarity = 3; in acpi_sci_ioapic_setup() 511 acpi_penalize_sci_irq(bus_irq, trigger, polarity); in acpi_sci_ioapic_setup() 637 int rc, irq, trigger, polarity; in acpi_gsi_to_irq() local 649 polarity = polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH; in acpi_gsi_to_irq() 671 int trigger, int polarity) in acpi_register_gsi_pic() argument 686 int trigger, int polarity) in acpi_register_gsi_ioapic() argument 695 polarity = polarity == ACPI_ACTIVE_HIGH ? 0 : 1; in acpi_register_gsi_ioapic() [all …]
|
| /linux-6.15/drivers/irqchip/ |
| H A D | irq-davinci-cp-intc.c | 75 unsigned int reg, mask, polarity, type; in davinci_cp_intc_set_irq_type() local 79 polarity = davinci_cp_intc_read(DAVINCI_CP_INTC_SYS_POLARITY(reg)); in davinci_cp_intc_set_irq_type() 84 polarity |= mask; in davinci_cp_intc_set_irq_type() 88 polarity &= ~mask; in davinci_cp_intc_set_irq_type() 92 polarity |= mask; in davinci_cp_intc_set_irq_type() 96 polarity &= ~mask; in davinci_cp_intc_set_irq_type() 103 davinci_cp_intc_write(polarity, DAVINCI_CP_INTC_SYS_POLARITY(reg)); in davinci_cp_intc_set_irq_type()
|
| H A 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()
|
| /linux-6.15/drivers/pwm/ |
| H A D | core.c | 467 s2.polarity = state->polarity; in pwm_apply_debug() 475 if (s2.polarity != state->polarity && in pwm_apply_debug() 480 last->polarity == state->polarity && in pwm_apply_debug() 497 last->polarity == state->polarity && in pwm_apply_debug() 534 s1.polarity != last->polarity || in pwm_apply_debug() 600 state->polarity == pwm->state.polarity && in __pwm_apply() 811 state.polarity = pargs.polarity; in pwm_adjust_config() 831 if (pargs.polarity != state.polarity) { in pwm_adjust_config() 832 state.polarity = pargs.polarity; in pwm_adjust_config() 1222 state.polarity = polarity; in polarity_store() [all …]
|
| H A D | pwm-atmel-tcb.c | 123 enum pwm_polarity polarity) in atmel_tcb_pwm_disable() argument 138 polarity = !polarity; in atmel_tcb_pwm_disable() 145 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable() 151 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable() 177 enum pwm_polarity polarity) in atmel_tcb_pwm_enable() argument 192 polarity = !polarity; in atmel_tcb_pwm_enable() 203 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable() 209 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable() 223 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable() 228 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_enable() [all …]
|
| H A D | pwm-renesas-tpu.c | 74 enum pwm_polarity polarity; member 113 tpd->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin() 118 tpd->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin() 123 tpd->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin() 224 tpd->polarity = PWM_POLARITY_NORMAL; in tpu_pwm_request() 352 enum pwm_polarity polarity) in tpu_pwm_set_polarity() argument 357 tpd->polarity = polarity; in tpu_pwm_set_polarity() 402 if (state->polarity != pwm->state.polarity) { in tpu_pwm_apply() 408 err = tpu_pwm_set_polarity(chip, pwm, state->polarity); in tpu_pwm_apply()
|
| H A D | pwm-bcm-kona.c | 157 enum pwm_polarity polarity) in kona_pwmc_set_polarity() argument 174 if (polarity == PWM_POLARITY_NORMAL) in kona_pwmc_set_polarity() 231 if (state->polarity != pwm->state.polarity) { in kona_pwmc_apply() 237 err = kona_pwmc_set_polarity(chip, pwm, state->polarity); in kona_pwmc_apply() 241 pwm->state.polarity = state->polarity; in kona_pwmc_apply()
|
| H A D | pwm-hibvt.c | 118 enum pwm_polarity polarity) in hibvt_pwm_set_polarity() argument 122 if (polarity == PWM_POLARITY_INVERSED) in hibvt_pwm_set_polarity() 148 state->polarity = (PWM_POLARITY_MASK & value) ? PWM_POLARITY_INVERSED : PWM_POLARITY_NORMAL; in hibvt_pwm_get_state() 158 if (state->polarity != pwm->state.polarity) in hibvt_pwm_apply() 159 hibvt_pwm_set_polarity(chip, pwm, state->polarity); in hibvt_pwm_apply()
|
| H A D | pwm-imx-tpm.c | 131 real_state->polarity = state->polarity; in pwm_imx_tpm_round_state() 159 state->polarity = PWM_POLARITY_INVERSED; in pwm_imx_tpm_get_state() 165 state->polarity = PWM_POLARITY_NORMAL; in pwm_imx_tpm_get_state() 223 if (c.enabled && c.polarity != state->polarity) in pwm_imx_tpm_apply_hw() 270 val |= (state->polarity == PWM_POLARITY_NORMAL) ? in pwm_imx_tpm_apply_hw()
|
| /linux-6.15/drivers/acpi/ |
| H A D | resource.c | 346 flags = polarity == ACPI_ACTIVE_LOW ? in acpi_dev_irq_flags() 349 flags = polarity == ACPI_ACTIVE_LOW ? in acpi_dev_irq_flags() 369 switch (polarity) { in acpi_dev_get_irq_type() 687 unsigned char polarity; member 707 entry->polarity == polarity && in acpi_dev_irq_override() 739 u8 triggering, u8 polarity, u8 shareable, in acpi_dev_get_irqresource() argument 765 if (triggering != trig || polarity != pol) { in acpi_dev_get_irqresource() 770 pol == polarity ? "" : "(!)"); in acpi_dev_get_irqresource() 772 polarity = pol; in acpi_dev_get_irqresource() 823 irq->triggering, irq->polarity, in acpi_dev_resource_interrupt() [all …]
|
| H A 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 …]
|
| H A 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.15/drivers/platform/x86/x86-android-tablets/ |
| H A D | other.c | 54 .polarity = ACPI_ACTIVE_LOW, 70 .polarity = ACPI_ACTIVE_HIGH, 168 .polarity = ACPI_ACTIVE_HIGH, 183 .polarity = ACPI_ACTIVE_HIGH, 322 .polarity = ACPI_ACTIVE_HIGH, 338 .polarity = ACPI_ACTIVE_LOW, 413 .polarity = ACPI_ACTIVE_LOW, 472 .polarity = ACPI_ACTIVE_LOW, 567 .polarity = ACPI_ACTIVE_HIGH, 637 .polarity = ACPI_ACTIVE_HIGH, [all …]
|
| H A D | lenovo.c | 118 .polarity = ACPI_ACTIVE_LOW, 136 .polarity = ACPI_ACTIVE_LOW, 162 .polarity = ACPI_ACTIVE_LOW, 348 .polarity = ACPI_ACTIVE_HIGH, 373 .polarity = ACPI_ACTIVE_HIGH, 657 .polarity = ACPI_ACTIVE_HIGH, 683 .polarity = ACPI_ACTIVE_LOW, 716 .polarity = ACPI_ACTIVE_HIGH, 858 .polarity = ACPI_ACTIVE_LOW, 884 .polarity = ACPI_ACTIVE_LOW, [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/interrupt-controller/ |
| H A 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.15/include/linux/ |
| H A D | pwm.h | 44 enum pwm_polarity polarity; member 91 enum pwm_polarity polarity; member 166 return state.polarity; in pwm_get_polarity() 204 state->polarity = args.polarity; in pwm_init_state() 630 state.polarity = pwm->args.polarity; in pwm_apply_args() 644 enum pwm_polarity polarity; member 656 .polarity = _polarity, \
|
| /linux-6.15/drivers/pnp/pnpacpi/ |
| H A 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() 664 u8 triggering, polarity, shareable; in pnpacpi_encode_irq() local 675 irq->polarity = polarity; in pnpacpi_encode_irq() 693 u8 triggering, polarity, shareable; in pnpacpi_encode_ext_irq() local [all …]
|
| /linux-6.15/drivers/extcon/ |
| H A 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.15/drivers/counter/ |
| H A D | stm32-lptimer-cnt.c | 27 u32 polarity; member 111 val |= FIELD_PREP(STM32_LPTIM_CKPOL, enable ? priv->polarity : 0); in stm32_lptim_setup() 173 if (priv->polarity == STM32_LPTIM_CKPOL_BOTH_EDGES) { in stm32_lptim_cnt_function_read() 196 priv->polarity = STM32_LPTIM_CKPOL_BOTH_EDGES; in stm32_lptim_cnt_function_write() 301 switch (priv->polarity) { in stm32_lptim_cnt_action_read() 347 priv->polarity = STM32_LPTIM_CKPOL_RISING_EDGE; in stm32_lptim_cnt_action_write() 350 priv->polarity = STM32_LPTIM_CKPOL_FALLING_EDGE; in stm32_lptim_cnt_action_write() 353 priv->polarity = STM32_LPTIM_CKPOL_BOTH_EDGES; in stm32_lptim_cnt_action_write()
|
| /linux-6.15/drivers/gpio/ |
| H A D | gpio-rockchip.c | 358 u32 data, data_old, polarity; in rockchip_irq_demux() local 369 polarity &= ~BIT(irq); in rockchip_irq_demux() 371 polarity |= BIT(irq); in rockchip_irq_demux() 372 writel(polarity, in rockchip_irq_demux() 395 u32 polarity; in rockchip_irq_set_type() local 433 polarity &= ~mask; in rockchip_irq_set_type() 435 polarity |= mask; in rockchip_irq_set_type() 447 polarity |= mask; in rockchip_irq_set_type() 451 polarity &= ~mask; in rockchip_irq_set_type() 455 polarity |= mask; in rockchip_irq_set_type() [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/regulator/ |
| H A 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.15/arch/x86/pci/ |
| H A D | xen.c | 108 int trigger, int polarity) in acpi_register_gsi_xen_hvm() argument 118 static int xen_register_gsi(u32 gsi, int triggering, int polarity) in xen_register_gsi() argument 127 gsi, triggering, polarity); in xen_register_gsi() 133 setup_gsi.polarity = (polarity == ACPI_ACTIVE_HIGH ? 0 : 1); in xen_register_gsi() 147 int trigger, int polarity) in acpi_register_gsi_xen() argument 149 return xen_register_gsi(gsi, trigger, polarity); in acpi_register_gsi_xen() 570 int trigger, polarity; in pci_xen_initial_domain() local 572 if (acpi_get_override_irq(irq, &trigger, &polarity) == -1) in pci_xen_initial_domain()
|
| /linux-6.15/drivers/staging/greybus/ |
| H A D | pwm.c | 114 u8 which, u8 polarity) in gb_pwm_set_polarity_operation() argument 122 request.polarity = polarity; in gb_pwm_set_polarity_operation() 199 if (state->polarity != pwm->state.polarity) { in gb_pwm_apply() 204 err = gb_pwm_set_polarity_operation(chip, pwm->hwpwm, state->polarity); in gb_pwm_apply()
|
| /linux-6.15/arch/powerpc/platforms/44x/ |
| H A D | uic.c | 125 int trigger, polarity; in uic_set_irq_type() local 134 trigger = 1; polarity = 1; in uic_set_irq_type() 137 trigger = 1; polarity = 0; in uic_set_irq_type() 140 trigger = 0; polarity = 1; in uic_set_irq_type() 143 trigger = 0; polarity = 0; in uic_set_irq_type() 155 pr = (pr & mask) | (polarity << (31-src)); in uic_set_irq_type()
|