/linux-master/arch/mips/include/asm/mach-au1x00/ |
H A D | au1550_spi.h | 12 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-master/arch/x86/include/asm/uv/ |
H A D | uv_irq.h | 20 polarity : 1, member in struct:uv_IO_APIC_route_entry
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | cxd2099.h | 15 u8 polarity; member in struct:cxd2099_cfg
|
/linux-master/drivers/net/wireless/ath/ath5k/ |
H A D | rfkill.c | 41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n", 42 ah->rf_kill.gpio, ah->rf_kill.polarity); 44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity); 50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n", 51 ah->rf_kill.gpio, ah->rf_kill.polarity); 53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity); 72 ah->rf_kill.polarity; 91 ah->rf_kill.polarity = ah->ah_capabilities.cap_eeprom.ee_rfkill_pol;
|
/linux-master/include/trace/events/ |
H A D | pwm.h | 21 __field(enum pwm_polarity, polarity) 30 __entry->polarity = state->polarity; 35 TP_printk("%p: period=%llu duty_cycle=%llu polarity=%d enabled=%d err=%d", 37 __entry->polarity, __entry->enabled, __entry->err)
|
/linux-master/drivers/platform/x86/intel/int3472/ |
H A D | discrete.c | 57 const char *func, u32 polarity) 76 table_entry->flags = polarity; 83 const char *func, u32 polarity) 93 agpio, func, polarity); 106 const char *func, u32 polarity) 117 ret = skl_int3472_fill_gpiod_lookup(&lookup->table[0], agpio, func, polarity); 128 static void int3472_get_func_and_polarity(u8 type, const char **func, u32 *polarity) argument 133 *polarity = GPIO_ACTIVE_LOW; 137 *polarity = GPIO_ACTIVE_LOW; 141 *polarity 55 skl_int3472_fill_gpiod_lookup(struct gpiod_lookup *table_entry, struct acpi_resource_gpio *agpio, const char *func, u32 polarity) argument 81 skl_int3472_map_gpio_to_sensor(struct int3472_discrete_device *int3472, struct acpi_resource_gpio *agpio, const char *func, u32 polarity) argument 104 skl_int3472_gpiod_get_from_temp_lookup(struct int3472_discrete_device *int3472, struct acpi_resource_gpio *agpio, const char *func, u32 polarity) argument 200 u32 polarity; local [all...] |
/linux-master/include/acpi/ |
H A D | acpi_drivers.h | 54 int *polarity, char **name);
|
/linux-master/drivers/pwm/ |
H A D | core.c | 59 * The lowlevel driver either ignored .polarity (which is a bug) or as 60 * best effort inverted .polarity and fixed .duty_cycle respectively. 63 if (s1.enabled && s1.polarity != state->polarity) { 64 s2.polarity = state->polarity; 72 if (s2.polarity != state->polarity && 74 dev_warn(pwmchip_parent(chip), ".apply ignored .polarity\n"); 77 last->polarity [all...] |
H A D | pwm-renesas-tpu.c | 74 enum pwm_polarity polarity; member in struct:tpu_pwm_device 113 tpd->polarity == PWM_POLARITY_INVERSED ? 118 tpd->polarity == PWM_POLARITY_INVERSED ? 123 tpd->polarity == PWM_POLARITY_INVERSED ? 173 * - Output 0 until TGRA, output 1 until TGRB (active low polarity) 174 * - Output 1 until TGRA, output 0 until TGRB (active high polarity 224 tpd->polarity = PWM_POLARITY_NORMAL; 352 enum pwm_polarity polarity) 357 tpd->polarity = polarity; 351 tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument [all...] |
H A D | sysfs.c | 159 const char *polarity = "unknown"; local 164 switch (state.polarity) { 166 polarity = "normal"; 170 polarity = "inversed"; 174 return sysfs_emit(buf, "%s\n", polarity); 183 enum pwm_polarity polarity; local 188 polarity = PWM_POLARITY_NORMAL; 190 polarity = PWM_POLARITY_INVERSED; 196 state.polarity = polarity; [all...] |
H A D | pwm-atmel-tcb.c | 123 enum pwm_polarity polarity) 135 * This is why we're reverting polarity in this case. 138 polarity = !polarity; 146 if (polarity == PWM_POLARITY_INVERSED) 152 if (polarity == PWM_POLARITY_INVERSED) 180 enum pwm_polarity polarity) 192 * This is why we're reverting polarity in this case. 195 polarity = !polarity; 122 atmel_tcb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument 179 atmel_tcb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument [all...] |
H A D | pwm-bcm-kona.c | 23 * 2) Changes to prescale, duty, period, and polarity do not take effect until 157 enum pwm_polarity polarity) 174 if (polarity == PWM_POLARITY_NORMAL) 231 if (state->polarity != pwm->state.polarity) { 237 err = kona_pwmc_set_polarity(chip, pwm, state->polarity); 241 pwm->state.polarity = state->polarity; 156 kona_pwmc_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity) argument
|
H A D | pwm-imx-tpm.c | 9 * - Changes to polarity cannot be latched at the time of the 128 real_state->polarity = state->polarity; 153 /* get polarity */ 156 state->polarity = PWM_POLARITY_INVERSED; 160 * normal polarity. 162 state->polarity = PWM_POLARITY_NORMAL; 219 /* polarity is NOT allowed to be changed if PWM is active */ 220 if (c.enabled && c.polarity != state->polarity) [all...] |
/linux-master/drivers/acpi/ |
H A D | resource.c | 337 * @polarity: Interrupt polarity as provided by ACPI. 341 unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable, u8 wake_capable) argument 346 flags = polarity == ACPI_ACTIVE_LOW ? 349 flags = polarity == ACPI_ACTIVE_LOW ? 365 * @polarity: Interrupt polarity as provided by ACPI. 367 unsigned int acpi_dev_get_irq_type(int triggering, int polarity) argument 369 switch (polarity) { 640 unsigned char polarity; member in struct:irq_override_cmp 650 acpi_dev_irq_override(u32 gsi, u8 triggering, u8 polarity, u8 shareable) argument 691 acpi_dev_get_irqresource(struct resource *res, u32 gsi, u8 triggering, u8 polarity, u8 shareable, u8 wake_capable, bool check_override) argument [all...] |
H A D | irq.c | 51 * @polarity: polarity of the GSI to be mapped 57 int polarity) 69 fwspec.param[1] = acpi_dev_get_irq_type(trigger, polarity); 153 * @polarity: polarity attributes of hwirq 154 * @polarity: polarity attributes of hwirq 165 u8 polarity, u8 shareable, 172 *ctx->res_flags = acpi_dev_irq_flags(triggering, polarity, shareabl 56 acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity) argument 163 acpi_irq_parse_one_match(struct fwnode_handle *fwnode, u32 hwirq, u8 triggering, u8 polarity, u8 shareable, u8 wake_capable, struct acpi_irq_parse_one_ctx *ctx) argument [all...] |
H A D | pci_link.c | 58 u8 polarity; /* All IRQs */ member in struct:acpi_pci_link_irq 116 link->irq.polarity = p->polarity; 142 link->irq.polarity = p->polarity; 303 resource->res.data.irq.polarity = 304 link->irq.polarity; 321 resource->res.data.extended_irq.polarity = 322 link->irq.polarity; 607 int *polarity, cha 606 acpi_pci_link_allocate_irq(acpi_handle handle, int index, int *triggering, int *polarity, char **name) argument 838 acpi_penalize_sci_irq(int irq, int trigger, int polarity) argument [all...] |
/linux-master/drivers/irqchip/ |
H A D | irq-davinci-cp-intc.c | 76 unsigned int reg, mask, polarity, type; local 80 polarity = davinci_cp_intc_read(DAVINCI_CP_INTC_SYS_POLARITY(reg)); 85 polarity |= mask; 89 polarity &= ~mask; 93 polarity |= mask; 97 polarity &= ~mask; 104 davinci_cp_intc_write(polarity, DAVINCI_CP_INTC_SYS_POLARITY(reg));
|
H A D | irq-ftintc010.c | 84 u32 mode, polarity; local 87 polarity = readl(FT010_IRQ_POLARITY(f->base)); 92 polarity |= BIT(offset); 96 polarity &= ~BIT(offset); 100 polarity |= BIT(offset); 104 polarity &= ~BIT(offset); 112 writel(polarity, FT010_IRQ_POLARITY(f->base));
|
/linux-master/arch/x86/kernel/acpi/ |
H A D | boot.c | 403 static int __init mp_register_ioapic_irq(u8 bus_irq, u8 polarity, 406 static void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, argument 425 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) 438 int polarity) 461 (polarity == ACPI_ACTIVE_HIGH ? 1 : 3); 472 static int __init mp_register_ioapic_irq(u8 bus_irq, u8 polarity, argument 489 mp_irq.irqflag = (trigger << 2) | polarity; 529 static void __init acpi_sci_ioapic_setup(u8 bus_irq, u16 polarity, u16 trigger, u32 gsi) argument 534 if (polarity == 0) /* compatible SCI polarity i 437 mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger, int polarity) argument 675 int rc, irq, trigger, polarity; local 708 acpi_register_gsi_pic(struct device *dev, u32 gsi, int trigger, int polarity) argument 723 acpi_register_gsi_ioapic(struct device *dev, u32 gsi, int trigger, int polarity) argument 775 acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity) argument [all...] |
/linux-master/drivers/platform/x86/x86-android-tablets/ |
H A D | other.c | 49 .polarity = ACPI_ACTIVE_LOW, 65 .polarity = ACPI_ACTIVE_HIGH, 163 .polarity = ACPI_ACTIVE_HIGH, 178 .polarity = ACPI_ACTIVE_HIGH, 317 .polarity = ACPI_ACTIVE_HIGH, 333 .polarity = ACPI_ACTIVE_LOW, 408 .polarity = ACPI_ACTIVE_LOW, 467 .polarity = ACPI_ACTIVE_LOW, 562 .polarity = ACPI_ACTIVE_HIGH,
|
/linux-master/include/linux/ |
H A D | pwm.h | 12 * enum pwm_polarity - polarity of a PWM signal 28 * @polarity: reference polarity 40 enum pwm_polarity polarity; member in struct:pwm_args 52 * @polarity: PWM polarity 62 enum pwm_polarity polarity; member in struct:pwm_state 137 return state.polarity; 154 * and polarity fields with the reference values defined in pwm->args. 175 state->polarity 598 enum pwm_polarity polarity; member in struct:pwm_lookup [all...] |
/linux-master/drivers/acpi/acpica/ |
H A D | rsirq.c | 53 {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-master/drivers/staging/greybus/ |
H A D | pwm.c | 114 u8 which, u8 polarity) 122 request.polarity = polarity; 198 /* Set polarity */ 199 if (state->polarity != pwm->state.polarity) { 204 err = gb_pwm_set_polarity_operation(chip, pwm->hwpwm, state->polarity); 113 gb_pwm_set_polarity_operation(struct pwm_chip *chip, u8 which, u8 polarity) argument
|
/linux-master/drivers/extcon/ |
H A D | extcon-usbc-cros-ec.c | 139 * @polarity: pointer to cable polarity (return value) 145 bool *polarity) 164 *polarity = resp.polarity; 254 bool polarity = false; local 266 role = cros_ec_usb_get_role(info, &polarity); 288 role, power_type, dr, pr, polarity, mux, dp, hpd); 328 (union extcon_property_value)(int)polarity); 331 (union extcon_property_value)(int)polarity); 144 cros_ec_usb_get_role(struct cros_ec_extcon_info *info, bool *polarity) argument [all...] |
/linux-master/arch/x86/pci/ |
H A D | xen.c | 108 int trigger, int polarity) 118 static int xen_register_gsi(u32 gsi, int triggering, int polarity) argument 126 printk(KERN_DEBUG "xen: registering gsi %u triggering %d polarity %d\n", 127 gsi, triggering, polarity); 133 setup_gsi.polarity = (polarity == ACPI_ACTIVE_HIGH ? 0 : 1); 147 int trigger, int polarity) 149 return xen_register_gsi(gsi, trigger, polarity); 574 int trigger, polarity; local 576 if (acpi_get_override_irq(irq, &trigger, &polarity) 107 acpi_register_gsi_xen_hvm(struct device *dev, u32 gsi, int trigger, int polarity) argument 146 acpi_register_gsi_xen(struct device *dev, u32 gsi, int trigger, int polarity) argument [all...] |