Home
last modified time | relevance | path

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

12345678910>>...14

/kernel/linux/linux-5.10/drivers/soc/zte/
Dzx296718_pm_domains.c39 .polarity = PWREN,
48 .polarity = PWREN,
57 .polarity = PWREN,
66 .polarity = PWREN,
75 .polarity = PWREN,
84 .polarity = PWREN,
93 .polarity = PWREN,
102 .polarity = PWREN,
111 .polarity = PWREN,
120 .polarity = PWREN,
[all …]
/kernel/linux/linux-5.10/drivers/pwm/
Dcore.c155 pwm->args.polarity = PWM_POLARITY_NORMAL; in of_pwm_xlate_with_flags()
158 pwm->args.polarity = PWM_POLARITY_INVERSED; in of_pwm_xlate_with_flags()
274 enum pwm_polarity polarity) in pwmchip_add_with_polarity() argument
306 pwm->state.polarity = polarity; in pwmchip_add_with_polarity()
495 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_state_debug()
496 s2.polarity = state->polarity; in pwm_apply_state_debug()
504 if (s2.polarity != state->polarity && in pwm_apply_state_debug()
509 last->polarity == state->polarity && in pwm_apply_state_debug()
522 last->polarity == state->polarity && in pwm_apply_state_debug()
557 s1.polarity != last->polarity || in pwm_apply_state_debug()
[all …]
Dpwm-atmel-tcb.c34 enum pwm_polarity polarity; /* PWM polarity */ member
63 enum pwm_polarity polarity) in atmel_tcb_pwm_set_polarity() argument
67 tcbpwm->polarity = polarity; in atmel_tcb_pwm_set_polarity()
95 tcbpwm->polarity = PWM_POLARITY_NORMAL; in atmel_tcb_pwm_request()
150 enum pwm_polarity polarity = tcbpwm->polarity; in atmel_tcb_pwm_disable() local
161 polarity = !polarity; in atmel_tcb_pwm_disable()
169 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable()
175 if (polarity == PWM_POLARITY_INVERSED) in atmel_tcb_pwm_disable()
209 enum pwm_polarity polarity = tcbpwm->polarity; in atmel_tcb_pwm_enable() local
220 polarity = !polarity; in atmel_tcb_pwm_enable()
[all …]
Dsysfs.c159 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 sprintf(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);
Dpwm-renesas-tpu.c75 enum pwm_polarity polarity; member
111 pwm->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin()
116 pwm->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin()
121 pwm->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin()
224 pwm->polarity = PWM_POLARITY_NORMAL; in tpu_pwm_request()
328 enum pwm_polarity polarity) in tpu_pwm_set_polarity() argument
332 pwm->polarity = polarity; in tpu_pwm_set_polarity()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/
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()
/kernel/linux/linux-5.10/drivers/irqchip/
Dirq-ftintc010.c85 u32 mode, polarity; in ft010_irq_set_type() local
88 polarity = readl(FT010_IRQ_POLARITY(f->base)); in ft010_irq_set_type()
93 polarity |= BIT(offset); in ft010_irq_set_type()
97 polarity &= ~BIT(offset); in ft010_irq_set_type()
101 polarity |= BIT(offset); in ft010_irq_set_type()
105 polarity &= ~BIT(offset); in ft010_irq_set_type()
113 writel(polarity, FT010_IRQ_POLARITY(f->base)); in ft010_irq_set_type()
Dirq-davinci-cp-intc.c76 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()
/kernel/linux/linux-5.10/arch/ia64/kernel/
Diosapic.c143 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 …]
/kernel/linux/linux-5.10/arch/x86/kernel/acpi/
Dboot.c337 static int __init mp_register_ioapic_irq(u8 bus_irq, u8 polarity,
340 static void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, in mp_override_legacy_irq() argument
359 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) in mp_override_legacy_irq()
372 int polarity) in mp_config_acpi_gsi() argument
395 (polarity == ACPI_ACTIVE_HIGH ? 1 : 3); in mp_config_acpi_gsi()
407 static int __init mp_register_ioapic_irq(u8 bus_irq, u8 polarity, in mp_register_ioapic_irq() argument
424 mp_irq.irqflag = (trigger << 2) | polarity; in mp_register_ioapic_irq()
464 static void __init acpi_sci_ioapic_setup(u8 bus_irq, u16 polarity, u16 trigger, u32 gsi) in acpi_sci_ioapic_setup() argument
469 if (polarity == 0) /* compatible SCI polarity is low */ in acpi_sci_ioapic_setup()
470 polarity = 3; in acpi_sci_ioapic_setup()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dpwm.h43 enum pwm_polarity polarity; member
61 enum pwm_polarity polarity; member
146 return state.polarity; in pwm_get_polarity()
184 state->polarity = args.polarity; in pwm_init_state()
273 enum pwm_polarity polarity);
396 enum pwm_polarity polarity);
561 state.polarity = pwm->args.polarity; in pwm_apply_args()
574 enum pwm_polarity polarity; member
586 .polarity = _polarity, \
/kernel/linux/linux-5.10/include/trace/events/
Dpwm.h21 __field(enum pwm_polarity, polarity)
29 __entry->polarity = state->polarity;
35 __entry->polarity, __entry->enabled)
/kernel/linux/linux-5.10/drivers/acpi/
Dirq.c52 int polarity) in acpi_register_gsi() argument
63 fwspec.param[1] = acpi_dev_get_irq_type(trigger, polarity); in acpi_register_gsi()
147 u8 polarity, u8 shareable, in acpi_irq_parse_one_match() argument
153 *ctx->res_flags = acpi_dev_irq_flags(triggering, polarity, shareable); in acpi_irq_parse_one_match()
156 ctx->fwspec->param[1] = acpi_dev_get_irq_type(triggering, polarity); in acpi_irq_parse_one_match()
195 irq->triggering, irq->polarity, in acpi_irq_parse_one_cb()
208 eirq->triggering, eirq->polarity, in acpi_irq_parse_one_cb()
Dpci_link.c58 u8 polarity; /* All IRQs */ member
115 link->irq.polarity = p->polarity; in acpi_pci_link_check_possible()
141 link->irq.polarity = p->polarity; in acpi_pci_link_check_possible()
302 resource->res.data.irq.polarity = in acpi_pci_link_set()
303 link->irq.polarity; in acpi_pci_link_set()
320 resource->res.data.extended_irq.polarity = in acpi_pci_link_set()
321 link->irq.polarity; in acpi_pci_link_set()
615 int *polarity, char **name) in acpi_pci_link_allocate_irq() argument
655 if (polarity) in acpi_pci_link_allocate_irq()
656 *polarity = link->irq.polarity; in acpi_pci_link_allocate_irq()
[all …]
Dresource.c339 unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable) in acpi_dev_irq_flags() argument
344 flags = polarity == ACPI_ACTIVE_LOW ? in acpi_dev_irq_flags()
347 flags = polarity == ACPI_ACTIVE_LOW ? in acpi_dev_irq_flags()
362 unsigned int acpi_dev_get_irq_type(int triggering, int polarity) in acpi_dev_get_irq_type() argument
364 switch (polarity) { in acpi_dev_get_irq_type()
391 u8 triggering, u8 polarity, u8 shareable, in acpi_dev_get_irqresource() argument
415 if (triggering != trig || polarity != pol) { in acpi_dev_get_irqresource()
419 polarity = pol; in acpi_dev_get_irqresource()
423 res->flags = acpi_dev_irq_flags(triggering, polarity, shareable); in acpi_dev_get_irqresource()
424 irq = acpi_register_gsi(NULL, gsi, triggering, polarity); in acpi_dev_get_irqresource()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/interrupt-controller/
Dmicrochip,pic32-evic.txt9 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.
/kernel/linux/linux-5.10/arch/x86/kernel/
Ddevicetree.c188 u32 polarity; member
196 .polarity = 1,
201 .polarity = 0,
206 .polarity = 1,
211 .polarity = 0,
231 ioapic_set_alloc_attr(&tmp, NUMA_NO_NODE, it->trigger, it->polarity); in dt_irqdomain_alloc()
/kernel/linux/linux-5.10/drivers/pnp/pnpacpi/
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()
318 flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->shareable); in pnpacpi_parse_irq_option()
342 flags = acpi_dev_irq_flags(p->triggering, p->polarity, p->shareable); in pnpacpi_parse_ext_irq_option()
663 u8 triggering, polarity, shareable; in pnpacpi_encode_irq() local
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
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()
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_typec.c336 enum typec_orientation polarity; in cros_typec_set_port_params_v0() local
339 polarity = TYPEC_ORIENTATION_NONE; in cros_typec_set_port_params_v0()
340 else if (!resp->polarity) in cros_typec_set_port_params_v0()
341 polarity = TYPEC_ORIENTATION_NORMAL; in cros_typec_set_port_params_v0()
343 polarity = TYPEC_ORIENTATION_REVERSE; in cros_typec_set_port_params_v0()
346 typec_set_orientation(port, polarity); in cros_typec_set_port_params_v0()
353 enum typec_orientation polarity; in cros_typec_set_port_params_v1() local
358 polarity = TYPEC_ORIENTATION_NONE; in cros_typec_set_port_params_v1()
359 else if (!resp->polarity) in cros_typec_set_port_params_v1()
360 polarity = TYPEC_ORIENTATION_NORMAL; in cros_typec_set_port_params_v1()
[all …]
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Diosapic.h88 extern int iosapic_register_intr (unsigned int gsi, unsigned long polarity,
92 unsigned long polarity,
98 unsigned long polarity,
/kernel/linux/linux-5.10/arch/mips/include/asm/mach-au1x00/
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);
/kernel/linux/linux-5.10/arch/x86/pci/
Dxen.c107 int trigger, int polarity) in acpi_register_gsi_xen_hvm() argument
117 static int xen_register_gsi(u32 gsi, int triggering, int polarity) in xen_register_gsi() argument
126 gsi, triggering, polarity); in xen_register_gsi()
132 setup_gsi.polarity = (polarity == ACPI_ACTIVE_HIGH ? 0 : 1); in xen_register_gsi()
146 int trigger, int polarity) in acpi_register_gsi_xen() argument
148 return xen_register_gsi(gsi, trigger, polarity); in acpi_register_gsi_xen()
579 int trigger, polarity; in pci_xen_initial_domain() local
581 if (acpi_get_override_irq(irq, &trigger, &polarity) == -1) in pci_xen_initial_domain()
/kernel/linux/linux-5.10/arch/powerpc/platforms/4xx/
Duic.c123 int trigger, polarity; in uic_set_irq_type() local
132 trigger = 1; polarity = 1; in uic_set_irq_type()
135 trigger = 1; polarity = 0; in uic_set_irq_type()
138 trigger = 0; polarity = 1; in uic_set_irq_type()
141 trigger = 0; polarity = 0; in uic_set_irq_type()
153 pr = (pr & mask) | (polarity << (31-src)); in uic_set_irq_type()
/kernel/linux/linux-5.10/drivers/gpio/
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()

12345678910>>...14