Home
last modified time | relevance | path

Searched refs:irq_type (Results 1 – 25 of 122) sorted by relevance

12345

/Linux-v6.6/drivers/misc/
Dpci_endpoint_test.c94 static int irq_type = IRQ_TYPE_MSI; variable
95 module_param(irq_type, int, 0444);
96 MODULE_PARM_DESC(irq_type, "IRQ mode selection in pci_endpoint_test (0 - Legacy, 1 - MSI, 2 - MSI-X…
114 int irq_type; member
126 int irq_type; member
172 test->irq_type = IRQ_TYPE_UNDEFINED; in pci_endpoint_test_free_irq_vectors()
208 test->irq_type = type; in pci_endpoint_test_alloc_irq_vectors()
244 switch (irq_type) { in pci_endpoint_test_request_irq()
365 int irq_type = test->irq_type; in pci_endpoint_test_copy() local
386 if (irq_type < IRQ_TYPE_LEGACY || irq_type > IRQ_TYPE_MSIX) { in pci_endpoint_test_copy()
[all …]
/Linux-v6.6/drivers/iio/humidity/
Dhts221_buffer.c81 unsigned long irq_type; in hts221_allocate_trigger() local
84 irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq)); in hts221_allocate_trigger()
86 switch (irq_type) { in hts221_allocate_trigger()
97 irq_type); in hts221_allocate_trigger()
98 irq_type = IRQF_TRIGGER_RISING; in hts221_allocate_trigger()
111 irq_type |= IRQF_SHARED; in hts221_allocate_trigger()
124 irq_type | IRQF_ONESHOT, in hts221_allocate_trigger()
/Linux-v6.6/drivers/gpio/
Dgpio-siox.c20 u32 irq_type[20]; member
53 u32 irq_type = ddata->irq_type[offset]; in gpio_siox_get_data() local
56 if ((irq_type & IRQ_TYPE_LEVEL_HIGH) || in gpio_siox_get_data()
57 ((irq_type & IRQ_TYPE_EDGE_RISING) && !prev_level)) in gpio_siox_get_data()
60 if ((irq_type & IRQ_TYPE_LEVEL_LOW) || in gpio_siox_get_data()
61 ((irq_type & IRQ_TYPE_EDGE_FALLING) && prev_level)) in gpio_siox_get_data()
135 ddata->irq_type[d->hwirq] = type; in gpio_siox_irq_set_type()
Dgpio-xgs-iproc.c51 u32 irq_type, event_status = 0; in iproc_gpio_irq_ack() local
54 irq_type = irq_get_trigger_type(irq); in iproc_gpio_irq_ack()
55 if (irq_type & IRQ_TYPE_EDGE_BOTH) { in iproc_gpio_irq_ack()
70 u32 int_mask, irq_type, event_mask; in iproc_gpio_irq_unmask() local
74 irq_type = irq_get_trigger_type(irq); in iproc_gpio_irq_unmask()
78 if (irq_type & IRQ_TYPE_EDGE_BOTH) { in iproc_gpio_irq_unmask()
97 u32 irq_type, int_mask, event_mask; in iproc_gpio_irq_mask() local
100 irq_type = irq_get_trigger_type(irq); in iproc_gpio_irq_mask()
104 if (irq_type & IRQ_TYPE_EDGE_BOTH) { in iproc_gpio_irq_mask()
Dgpio-max77620.c22 unsigned int irq_type[MAX77620_GPIO_NR]; member
73 unsigned int irq_type; in max77620_gpio_set_irq_type() local
77 irq_type = MAX77620_CNFG_GPIO_INT_RISING; in max77620_gpio_set_irq_type()
81 irq_type = MAX77620_CNFG_GPIO_INT_FALLING; in max77620_gpio_set_irq_type()
85 irq_type = MAX77620_CNFG_GPIO_INT_RISING | in max77620_gpio_set_irq_type()
93 gpio->irq_type[data->hwirq] = irq_type; in max77620_gpio_set_irq_type()
113 value = gpio->irq_enabled[offset] ? gpio->irq_type[offset] : 0; in max77620_gpio_bus_sync_unlock()
Dgpio-pcie-idio-24.c155 u8 irq_type; member
169 type = (mask_buf == mask_buf_def) ? ~type_mask : idio24gpio->irq_type; in idio_24_handle_mask_sync()
208 idio24gpio->irq_type = (idio24gpio->irq_type & ~mask) | (new & mask); in idio_24_set_type_config()
217 idio24gpio->irq_type); in idio_24_set_type_config()
339 idio24gpio->irq_type = GENMASK(7, 0); in idio_24_probe()
Dgpio-xlp.c142 int pol, irq_type; in xlp_gpio_set_irq_type() local
146 irq_type = XLP_GPIO_IRQ_TYPE_EDGE; in xlp_gpio_set_irq_type()
150 irq_type = XLP_GPIO_IRQ_TYPE_EDGE; in xlp_gpio_set_irq_type()
154 irq_type = XLP_GPIO_IRQ_TYPE_LVL; in xlp_gpio_set_irq_type()
158 irq_type = XLP_GPIO_IRQ_TYPE_LVL; in xlp_gpio_set_irq_type()
165 xlp_gpio_set_reg(priv->gpio_intr_type, d->hwirq, irq_type); in xlp_gpio_set_irq_type()
Dgpio-dln2.c60 int irq_type[DLN2_GPIO_MAX_PINS]; member
330 dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_HIGH; in dln2_irq_set_type()
333 dln2->irq_type[pin] = DLN2_GPIO_EVENT_LVL_LOW; in dln2_irq_set_type()
336 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE; in dln2_irq_set_type()
339 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_RISING; in dln2_irq_set_type()
342 dln2->irq_type[pin] = DLN2_GPIO_EVENT_CHANGE_FALLING; in dln2_irq_set_type()
373 type = dln2->irq_type[pin] & DLN2_GPIO_EVENT_MASK; in dln2_irq_bus_unlock()
423 switch (dln2->irq_type[pin]) { in dln2_gpio_event()
/Linux-v6.6/drivers/pinctrl/bcm/
Dpinctrl-bcm2835.c85 unsigned int irq_type[BCM2711_NUM_GPIOS]; member
492 switch (pc->irq_type[offset]) { in bcm2835_gpio_irq_config()
562 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_disabled()
577 if (pc->irq_type[offset] != type) { in __bcm2835_gpio_irq_set_type_enabled()
579 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled()
584 if (pc->irq_type[offset] == IRQ_TYPE_EDGE_BOTH) { in __bcm2835_gpio_irq_set_type_enabled()
586 pc->irq_type[offset] = IRQ_TYPE_EDGE_FALLING; in __bcm2835_gpio_irq_set_type_enabled()
588 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled()
589 } else if (pc->irq_type[offset] != type) { in __bcm2835_gpio_irq_set_type_enabled()
591 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled()
[all …]
/Linux-v6.6/drivers/regulator/
Dtps6594-regulator.c375 struct tps6594_regulator_irq_type *irq_type; in tps6594_request_reg_irqs() local
382 irq_type = &tps6594_regs_irq_types[j]; in tps6594_request_reg_irqs()
383 irq = platform_get_irq_byname(pdev, irq_type->irq_name); in tps6594_request_reg_irqs()
388 irq_data[*irq_idx].type = irq_type; in tps6594_request_reg_irqs()
393 irq_type->irq_name, &irq_data[*irq_idx]); in tps6594_request_reg_irqs()
396 irq_type->irq_name, irq, error); in tps6594_request_reg_irqs()
413 struct tps6594_regulator_irq_type *irq_type; in tps6594_regulator_probe() local
580 irq_type = &tps6594_ext_regulator_irq_types[i]; in tps6594_regulator_probe()
582 irq = platform_get_irq_byname(pdev, irq_type->irq_name); in tps6594_regulator_probe()
587 irq_ext_reg_data[i].type = irq_type; in tps6594_regulator_probe()
[all …]
Dtps65219-regulator.c314 struct tps65219_regulator_irq_type *irq_type; in tps65219_regulator_probe() local
342 irq_type = &tps65219_regulator_irq_types[i]; in tps65219_regulator_probe()
344 irq = platform_get_irq_byname(pdev, irq_type->irq_name); in tps65219_regulator_probe()
349 irq_data[i].type = irq_type; in tps65219_regulator_probe()
351 tps65219_get_rdev_by_name(irq_type->regulator_name, rdevtbl, &rdev); in tps65219_regulator_probe()
354 irq_type->regulator_name); in tps65219_regulator_probe()
362 irq_type->irq_name, in tps65219_regulator_probe()
366 irq_type->irq_name, irq, error); in tps65219_regulator_probe()
/Linux-v6.6/drivers/extcon/
Dextcon-max14577.c519 static int max14577_parse_irq(struct max14577_muic_info *info, int irq_type) in max14577_parse_irq() argument
521 switch (irq_type) { in max14577_parse_irq()
548 static int max77836_parse_irq(struct max14577_muic_info *info, int irq_type) in max77836_parse_irq() argument
551 if (max14577_parse_irq(info, irq_type)) in max77836_parse_irq()
554 switch (irq_type) { in max77836_parse_irq()
570 int i, irq_type = -1; in max14577_muic_irq_handler() local
581 irq_type = info->muic_irqs[i].irq; in max14577_muic_irq_handler()
585 irq_parsed = max77836_parse_irq(info, irq_type); in max14577_muic_irq_handler()
589 irq_parsed = max14577_parse_irq(info, irq_type); in max14577_muic_irq_handler()
595 irq_type); in max14577_muic_irq_handler()
Dextcon-sm5502.c70 int (*parse_irq)(struct sm5502_muic_info *info, int irq_type);
554 static int sm5502_parse_irq(struct sm5502_muic_info *info, int irq_type) in sm5502_parse_irq() argument
556 switch (irq_type) { in sm5502_parse_irq()
582 static int sm5504_parse_irq(struct sm5502_muic_info *info, int irq_type) in sm5504_parse_irq() argument
584 switch (irq_type) { in sm5504_parse_irq()
613 int i, irq_type = -1, ret; in sm5502_muic_irq_handler() local
617 irq_type = info->type->muic_irqs[i].irq; in sm5502_muic_irq_handler()
619 ret = info->type->parse_irq(info, irq_type); in sm5502_muic_irq_handler()
622 irq_type); in sm5502_muic_irq_handler()
/Linux-v6.6/drivers/staging/greybus/
Dgpio.c28 u8 irq_type; member
304 u8 irq_type; in gb_gpio_irq_set_type() local
308 irq_type = GB_GPIO_IRQ_TYPE_NONE; in gb_gpio_irq_set_type()
311 irq_type = GB_GPIO_IRQ_TYPE_EDGE_RISING; in gb_gpio_irq_set_type()
314 irq_type = GB_GPIO_IRQ_TYPE_EDGE_FALLING; in gb_gpio_irq_set_type()
317 irq_type = GB_GPIO_IRQ_TYPE_EDGE_BOTH; in gb_gpio_irq_set_type()
320 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_LOW; in gb_gpio_irq_set_type()
323 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_HIGH; in gb_gpio_irq_set_type()
330 line->irq_type = irq_type; in gb_gpio_irq_set_type()
351 _gb_gpio_irq_set_type(ggc, d->hwirq, line->irq_type); in gb_gpio_irq_bus_sync_unlock()
/Linux-v6.6/drivers/iio/imu/bmi160/
Dbmi160_core.c656 static int bmi160_config_device_irq(struct iio_dev *indio_dev, int irq_type, in bmi160_config_device_irq() argument
665 if (irq_type == IRQF_TRIGGER_RISING) in bmi160_config_device_irq()
667 else if (irq_type == IRQF_TRIGGER_FALLING) in bmi160_config_device_irq()
669 else if (irq_type == IRQF_TRIGGER_HIGH) in bmi160_config_device_irq()
671 else if (irq_type == IRQF_TRIGGER_LOW) in bmi160_config_device_irq()
675 "Invalid interrupt type 0x%x specified\n", irq_type); in bmi160_config_device_irq()
689 u32 irq_type; in bmi160_setup_irq() local
698 irq_type = irqd_get_trigger_type(desc); in bmi160_setup_irq()
700 ret = bmi160_config_device_irq(indio_dev, irq_type, pin); in bmi160_setup_irq()
704 return bmi160_probe_trigger(indio_dev, irq, irq_type); in bmi160_setup_irq()
[all …]
/Linux-v6.6/arch/um/os-Linux/
Dirq.c48 int os_event_mask(enum um_irq_type irq_type) in os_event_mask() argument
50 if (irq_type == IRQ_READ) in os_event_mask()
52 if (irq_type == IRQ_WRITE) in os_event_mask()
/Linux-v6.6/drivers/vfio/pci/
Dvfio_pci_intrs.c36 return vdev->irq_type == type; in irq_is()
41 return vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX; in is_intx()
46 return !(vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX || in is_irq_none()
47 vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX || in is_irq_none()
48 vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX); in is_irq_none()
258 vdev->irq_type = VFIO_PCI_INTX_IRQ_INDEX; in vfio_intx_enable()
334 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_intx_disable()
370 vdev->irq_type = msix ? VFIO_PCI_MSIX_IRQ_INDEX : in vfio_msi_enable()
549 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_msi_disable()
669 if (vdev->irq_type == index) in vfio_pci_set_msi_trigger()
/Linux-v6.6/drivers/iio/light/
Dst_uvis25_core.c174 unsigned long irq_type; in st_uvis25_allocate_trigger() local
177 irq_type = irqd_get_trigger_type(irq_get_irq_data(hw->irq)); in st_uvis25_allocate_trigger()
179 switch (irq_type) { in st_uvis25_allocate_trigger()
188 dev_info(dev, "mode %lx unsupported\n", irq_type); in st_uvis25_allocate_trigger()
199 irq_type | IRQF_ONESHOT, in st_uvis25_allocate_trigger()
/Linux-v6.6/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_core.c475 int irq_type, bool open_drain) in inv_icm42600_irq_init() argument
482 switch (irq_type) { in inv_icm42600_irq_init()
492 switch (irq_type) { in inv_icm42600_irq_init()
515 inv_icm42600_irq_handler, irq_type, in inv_icm42600_irq_init()
580 int irq_type; in inv_icm42600_core_probe() local
596 irq_type = irqd_get_trigger_type(irq_desc); in inv_icm42600_core_probe()
597 if (!irq_type) in inv_icm42600_core_probe()
598 irq_type = IRQF_TRIGGER_FALLING; in inv_icm42600_core_probe()
663 ret = inv_icm42600_irq_init(st, irq, irq_type, open_drain); in inv_icm42600_core_probe()
/Linux-v6.6/drivers/platform/x86/x86-android-tablets/
Dcore.c60 unsigned int irq_type; in x86_acpi_irq_helper_get() local
90 irq_type = acpi_dev_get_irq_type(data->trigger, data->polarity); in x86_acpi_irq_helper_get()
91 if (irq_type != IRQ_TYPE_NONE && irq_type != irq_get_trigger_type(irq)) in x86_acpi_irq_helper_get()
92 irq_set_irq_type(irq, irq_type); in x86_acpi_irq_helper_get()
/Linux-v6.6/drivers/input/touchscreen/
Dnovatek-nvt-ts.c189 int error, width, height, irq_type; in nvt_ts_probe() local
223 irq_type = data->buf[NVT_TS_PARAMS_IRQ_TYPE]; in nvt_ts_probe()
227 irq_type >= ARRAY_SIZE(nvt_ts_irq_type) || in nvt_ts_probe()
264 nvt_ts_irq_type[irq_type], in nvt_ts_probe()
/Linux-v6.6/drivers/scsi/
Daha1740.c501 unsigned int *irq_type, in DEF_SCSI_QCMD()
507 *irq_type = (inb(INTDEF(base)) & 0x8) >> 3; in DEF_SCSI_QCMD()
562 unsigned int irq_level, irq_type, translation; in aha1740_probe() local
574 aha1740_getconfig(slotbase,&irq_level,&irq_type,&translation); in aha1740_probe()
582 edev->slot, slotbase, irq_level, irq_type ? "edge" : "level"); in aha1740_probe()
607 if (request_irq(irq_level,aha1740_intr_handle,irq_type ? 0 : IRQF_SHARED, in aha1740_probe()
/Linux-v6.6/drivers/net/ieee802154/
Dmrf24j40.c1063 u32 irq_type; in mrf24j40_hw_init() local
1155 irq_type = irq_get_trigger_type(devrec->spi->irq); in mrf24j40_hw_init()
1156 if (irq_type == IRQ_TYPE_EDGE_RISING || in mrf24j40_hw_init()
1157 irq_type == IRQ_TYPE_EDGE_FALLING) in mrf24j40_hw_init()
1160 switch (irq_type) { in mrf24j40_hw_init()
1273 int ret = -ENOMEM, irq_type; in mrf24j40_probe() local
1335 irq_type = irq_get_trigger_type(spi->irq); in mrf24j40_probe()
1336 if (!irq_type) in mrf24j40_probe()
1337 irq_type = IRQF_TRIGGER_LOW; in mrf24j40_probe()
1340 irq_type, dev_name(&spi->dev), devrec); in mrf24j40_probe()
/Linux-v6.6/drivers/pinctrl/actions/
Dpinctrl-owl.c668 unsigned int offset, value, irq_type = 0; in irq_set_type() local
679 irq_type = OWL_GPIO_INT_EDGE_FALLING; in irq_set_type()
681 irq_type = OWL_GPIO_INT_EDGE_RISING; in irq_set_type()
685 irq_type = OWL_GPIO_INT_EDGE_RISING; in irq_set_type()
689 irq_type = OWL_GPIO_INT_EDGE_FALLING; in irq_set_type()
693 irq_type = OWL_GPIO_INT_LEVEL_HIGH; in irq_set_type()
697 irq_type = OWL_GPIO_INT_LEVEL_LOW; in irq_set_type()
715 value |= irq_type << ((gpio % 16) * 2); in irq_set_type()
/Linux-v6.6/Documentation/devicetree/bindings/interrupt-controller/
Dmicrochip,pic32-evic.txt23 <hw_irq irq_type>
26 irq_type - is used to describe the type and polarity of an interrupt. For

12345