Home
last modified time | relevance | path

Searched refs:polarity (Results 1 – 25 of 208) sorted by relevance

123456789

/linux/drivers/net/wireless/ath/ath5k/
H A Drfkill.c42 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/drivers/irqchip/
H A Dirq-ftintc010.c84 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()
H A Dirq-davinci-cp-intc.c75 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()
/linux/drivers/pwm/
H A Dpwm-stm32-lp.c64 bool enable, enum pwm_polarity polarity) in stm32_pwm_lp_compare_channel_apply() argument
81 (polarity != FIELD_GET(STM32_LPTIM_CC2P, ccmr1)); in stm32_pwm_lp_compare_channel_apply()
84 val = FIELD_PREP(STM32_LPTIM_CC2P, polarity); in stm32_pwm_lp_compare_channel_apply()
88 (polarity != FIELD_GET(STM32_LPTIM_CC1P, ccmr1)); in stm32_pwm_lp_compare_channel_apply()
91 val = FIELD_PREP(STM32_LPTIM_CC1P, polarity); in stm32_pwm_lp_compare_channel_apply()
139 state->polarity); in stm32_pwm_lp_apply()
214 ((FIELD_GET(STM32_LPTIM_WAVPOL, cfgr) != state->polarity) && !priv->num_cc_chans)) { in stm32_pwm_lp_apply()
224 val |= FIELD_PREP(STM32_LPTIM_WAVPOL, state->polarity); in stm32_pwm_lp_apply()
272 ret = stm32_pwm_lp_compare_channel_apply(priv, pwm->hwpwm, true, state->polarity); in stm32_pwm_lp_apply()
328 state->polarity = FIELD_GET(STM32_LPTIM_CC2P, ccmr1); in stm32_pwm_lp_get_state()
[all …]
H A Dpwm-renesas-tpu.c74 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 Dcore.c86 .polarity = PWM_POLARITY_NORMAL, in pwm_wf2state()
93 .polarity = PWM_POLARITY_INVERSED, in pwm_wf2state()
107 if (state->polarity == PWM_POLARITY_NORMAL) in pwm_state2wf()
529 if (s1.polarity != state->polarity) { in pwm_apply_debug()
530 s2.polarity = state->polarity; in pwm_apply_debug()
538 if (s2.polarity != state->polarity && in pwm_apply_debug()
542 if (last->polarity == state->polarity && in pwm_apply_debug()
558 if (last->polarity == state->polarity && in pwm_apply_debug()
591 s1.polarity != last->polarity || in pwm_apply_debug()
596 s1.enabled, s1.polarity, s1.duty_cycle, s1.period, in pwm_apply_debug()
[all …]
H A Dpwm-bcm-kona.c157 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 Dpwm-hibvt.c118 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 Dpwm-vt8500.c161 enum pwm_polarity polarity) in vt8500_pwm_set_polarity() argument
168 if (polarity == PWM_POLARITY_INVERSED) in vt8500_pwm_set_polarity()
185 if (state->polarity != pwm->state.polarity) { in vt8500_pwm_apply()
196 err = vt8500_pwm_set_polarity(chip, pwm, state->polarity); in vt8500_pwm_apply()
H A Dpwm-visconti.c96 if (state->polarity == PWM_POLARITY_INVERSED) in visconti_pwm_apply()
119 state->polarity = PWM_POLARITY_INVERSED; in visconti_pwm_get_state()
121 state->polarity = PWM_POLARITY_NORMAL; in visconti_pwm_get_state()
H A Dpwm-ep93xx.c57 if (state->polarity != pwm->state.polarity) { in ep93xx_pwm_apply()
72 if (state->polarity == PWM_POLARITY_INVERSED) in ep93xx_pwm_apply()
H A Dpwm-omap-dmtimer.c243 enum pwm_polarity polarity) in pwm_omap_dmtimer_set_polarity() argument
254 polarity == PWM_POLARITY_INVERSED, in pwm_omap_dmtimer_set_polarity()
282 if (pwm_omap_dmtimer_polarity(omap) != state->polarity) in pwm_omap_dmtimer_apply()
283 pwm_omap_dmtimer_set_polarity(chip, pwm, state->polarity); in pwm_omap_dmtimer_apply()
292 state->polarity == PWM_POLARITY_INVERSED, in pwm_omap_dmtimer_apply()
H A Dpwm-sophgo-sg2042.c93 pwm->hwpwm, state->enabled, period_ticks, hlperiod_ticks, state->polarity); in pwm_sg2042_set_dutycycle()
103 if (state->polarity == PWM_POLARITY_INVERSED) in pwm_sg2042_apply()
138 state->polarity = PWM_POLARITY_NORMAL; in pwm_sg2042_get_state()
180 if (state->polarity == PWM_POLARITY_NORMAL) in pwm_sg2044_set_polarity()
/linux/drivers/pnp/pnpacpi/
H A Drsparser.c19 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/drivers/extcon/
H A Dextcon-usbc-cros-ec.c145 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/arch/mips/include/asm/mach-au1x00/
H A Dau1550_spi.h12 void (*activate_cs)(struct au1550_spi_info *spi, int cs, int polarity);
13 void (*deactivate_cs)(struct au1550_spi_info *spi, int cs, int polarity);
/linux/drivers/platform/x86/x86-android-tablets/
H A Dlenovo.c141 .polarity = ACPI_ACTIVE_LOW,
159 .polarity = ACPI_ACTIVE_LOW,
185 .polarity = ACPI_ACTIVE_LOW,
363 .polarity = ACPI_ACTIVE_HIGH,
388 .polarity = ACPI_ACTIVE_HIGH,
697 .polarity = ACPI_ACTIVE_HIGH,
723 .polarity = ACPI_ACTIVE_LOW,
756 .polarity = ACPI_ACTIVE_HIGH,
885 .polarity = ACPI_ACTIVE_LOW,
911 .polarity = ACPI_ACTIVE_LOW,
[all …]
/linux/drivers/xen/
H A Dacpi.c96 int ret, polarity = acpi_irq_model == ACPI_IRQ_MODEL_GIC ? in xen_acpi_get_gsi_info() local
112 &trigger, &polarity, in xen_acpi_get_gsi_info()
124 *polarity_out = polarity; in xen_acpi_get_gsi_info()
/linux/include/trace/events/
H A Dpwm.h142 __field(enum pwm_polarity, polarity)
150 __entry->polarity = state->polarity;
157 __entry->polarity, __entry->enabled, __entry->err)
/linux/drivers/gpio/
H A Dgpio-raspberrypi-exp.c35 u32 polarity; member
44 u32 polarity; member
71 return get.polarity; in rpi_exp_gpio_get_polarity()
91 set_in.polarity = ret; /* Retain existing setting */ in rpi_exp_gpio_dir_in()
120 set_out.polarity = ret; /* Retain existing setting */ in rpi_exp_gpio_dir_out()
/linux/include/xen/
H A Dacpi.h72 int xen_pvh_setup_gsi(int gsi, int trigger, int polarity);
84 static inline int xen_pvh_setup_gsi(int gsi, int trigger, int polarity) in xen_pvh_setup_gsi() argument
/linux/drivers/acpi/acpica/
H A Drsirq.c53 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.irq.polarity),
91 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.irq.polarity),
138 ACPI_RS_OFFSET(data.irq.polarity),
177 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.extended_irq.polarity),
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-adc-stm3213 Reading returns current trigger polarity.
15 Writing value before enabling conversions sets trigger polarity.
/linux/arch/x86/xen/
H A Denlighten_pvh.c35 int xen_pvh_setup_gsi(int gsi, int trigger, int polarity) in xen_pvh_setup_gsi() argument
42 setup_gsi.polarity = (polarity == ACPI_ACTIVE_HIGH ? 0 : 1); in xen_pvh_setup_gsi()
/linux/arch/powerpc/platforms/85xx/
H A Dsocrates_fpga_pic.c192 int polarity; in socrates_fpga_pic_set_type() local
200 polarity = 1; in socrates_fpga_pic_set_type()
203 polarity = 0; in socrates_fpga_pic_set_type()
210 if (polarity) in socrates_fpga_pic_set_type()

123456789