| /linux-6.15/drivers/iio/humidity/ |
| H A D | hts221_buffer.c | 81 unsigned long irq_type; in hts221_allocate_trigger() local 84 irq_type = irq_get_trigger_type(hw->irq); in hts221_allocate_trigger() 85 switch (irq_type) { in hts221_allocate_trigger() 96 irq_type); in hts221_allocate_trigger() 97 irq_type = IRQF_TRIGGER_RISING; in hts221_allocate_trigger() 110 irq_type |= IRQF_SHARED; in hts221_allocate_trigger() 123 irq_type | IRQF_ONESHOT, in hts221_allocate_trigger()
|
| /linux-6.15/drivers/gpio/ |
| H A D | gpio-siox.c | 20 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()
|
| H A D | gpio-xgs-iproc.c | 51 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()
|
| H A D | gpio-max77620.c | 22 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()
|
| H A D | gpio-tqmx86.c | 55 u8 irq_type[TQMX86_NGPIO]; member 152 if (gpio->irq_type[hwirq] & TQMX86_INT_UNMASKED) { in tqmx86_gpio_irq_config() 153 type = gpio->irq_type[hwirq] & TQMX86_INT_TRIG_MASK; in tqmx86_gpio_irq_config() 173 gpio->irq_type[data->hwirq] &= ~TQMX86_INT_UNMASKED; in tqmx86_gpio_irq_mask() 189 gpio->irq_type[data->hwirq] |= TQMX86_INT_UNMASKED; in tqmx86_gpio_irq_unmask() 216 gpio->irq_type[data->hwirq] &= ~TQMX86_INT_TRIG_MASK; in tqmx86_gpio_irq_set_type() 217 gpio->irq_type[data->hwirq] |= new_type; in tqmx86_gpio_irq_set_type() 266 if ((gpio->irq_type[hwirq] & TQMX86_INT_TRIG_MASK) == in tqmx86_gpio_irq_handler()
|
| H A D | gpio-pcie-idio-24.c | 155 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() 336 idio24gpio->irq_type = GENMASK(7, 0); in idio_24_probe()
|
| H A D | gpio-xlp.c | 142 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()
|
| H A D | gpio-dln2.c | 60 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()
|
| H A D | gpio-mpsse.c | 22 atomic_t irq_type[16]; /* pin -> edge detection type */ member 293 irq, old_value[16], irq_type[16]; in gpio_mpsse_poll() local 308 irq_type[offset] = atomic_read(&priv->irq_type[offset]); in gpio_mpsse_poll() 309 if (irq_type[offset] != IRQ_TYPE_NONE && in gpio_mpsse_poll() 332 switch (irq_type[offset]) { in gpio_mpsse_poll() 356 if (irq_type[offset] != IRQ_TYPE_NONE && in gpio_mpsse_poll() 368 atomic_set(&priv->irq_type[offset], type & IRQ_TYPE_EDGE_BOTH); in gpio_mpsse_set_irq_type()
|
| /linux-6.15/drivers/misc/ |
| H A D | pci_endpoint_test.c | 112 int irq_type; member 198 test->irq_type = type; in pci_endpoint_test_alloc_irq_vectors() 233 switch (test->irq_type) { in pci_endpoint_test_request_irq() 485 int irq_type = test->irq_type; in pci_endpoint_test_copy() local 506 if (irq_type < PCITEST_IRQ_TYPE_INTX || in pci_endpoint_test_copy() 507 irq_type > PCITEST_IRQ_TYPE_MSIX) { in pci_endpoint_test_copy() 618 int irq_type = test->irq_type; in pci_endpoint_test_write() local 639 if (irq_type < PCITEST_IRQ_TYPE_INTX || in pci_endpoint_test_write() 716 int irq_type = test->irq_type; in pci_endpoint_test_read() local 825 if (test->irq_type == req_irq_type) in pci_endpoint_test_set_irq() [all …]
|
| /linux-6.15/drivers/pinctrl/bcm/ |
| H A D | pinctrl-bcm2835.c | 497 switch (pc->irq_type[offset]) { in bcm2835_gpio_irq_config() 567 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_disabled() 584 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 593 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 596 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 606 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 609 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 619 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 624 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() 627 pc->irq_type[offset] = type; in __bcm2835_gpio_irq_set_type_enabled() [all …]
|
| /linux-6.15/drivers/regulator/ |
| H A D | tps6594-regulator.c | 523 struct tps6594_regulator_irq_type *irq_type; in tps6594_request_reg_irqs() local 530 irq_type = ®s_irq_types[j]; in tps6594_request_reg_irqs() 531 irq = platform_get_irq_byname(pdev, irq_type->irq_name); in tps6594_request_reg_irqs() 536 irq_data[*irq_idx].type = irq_type; in tps6594_request_reg_irqs() 541 irq_type->irq_name, &irq_data[*irq_idx]); in tps6594_request_reg_irqs() 544 irq_type->irq_name, irq, error); in tps6594_request_reg_irqs() 561 struct tps6594_regulator_irq_type *irq_type; in tps6594_regulator_probe() local 772 irq_type = &irq_types[i]; in tps6594_regulator_probe() 778 irq_ext_reg_data[i].type = irq_type; in tps6594_regulator_probe() 783 irq_type->irq_name, in tps6594_regulator_probe() [all …]
|
| H A D | tps65219-regulator.c | 299 struct tps65219_regulator_irq_type *irq_type; in tps65219_regulator_probe() local 322 irq_type = &tps65219_regulator_irq_types[i]; in tps65219_regulator_probe() 324 irq = platform_get_irq_byname(pdev, irq_type->irq_name); in tps65219_regulator_probe() 329 irq_data[i].type = irq_type; in tps65219_regulator_probe() 334 irq_type->irq_name, in tps65219_regulator_probe() 338 irq_type->irq_name, irq, error); in tps65219_regulator_probe()
|
| /linux-6.15/drivers/extcon/ |
| H A D | extcon-max14577.c | 519 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()
|
| H A D | extcon-sm5502.c | 70 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-6.15/drivers/staging/greybus/ |
| H A D | gpio.c | 28 u8 irq_type; member 299 u8 irq_type; in gb_gpio_irq_set_type() local 303 irq_type = GB_GPIO_IRQ_TYPE_NONE; in gb_gpio_irq_set_type() 306 irq_type = GB_GPIO_IRQ_TYPE_EDGE_RISING; in gb_gpio_irq_set_type() 309 irq_type = GB_GPIO_IRQ_TYPE_EDGE_FALLING; in gb_gpio_irq_set_type() 312 irq_type = GB_GPIO_IRQ_TYPE_EDGE_BOTH; in gb_gpio_irq_set_type() 315 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_LOW; in gb_gpio_irq_set_type() 318 irq_type = GB_GPIO_IRQ_TYPE_LEVEL_HIGH; in gb_gpio_irq_set_type() 325 line->irq_type = irq_type; in gb_gpio_irq_set_type() 346 _gb_gpio_irq_set_type(ggc, d->hwirq, line->irq_type); in gb_gpio_irq_bus_sync_unlock()
|
| /linux-6.15/arch/um/os-Linux/ |
| H A D | irq.c | 48 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-6.15/drivers/iio/imu/bmi160/ |
| H A D | bmi160_core.c | 661 static int bmi160_config_device_irq(struct iio_dev *indio_dev, int irq_type, in bmi160_config_device_irq() argument 670 if (irq_type == IRQF_TRIGGER_RISING) in bmi160_config_device_irq() 672 else if (irq_type == IRQF_TRIGGER_FALLING) in bmi160_config_device_irq() 674 else if (irq_type == IRQF_TRIGGER_HIGH) in bmi160_config_device_irq() 676 else if (irq_type == IRQF_TRIGGER_LOW) in bmi160_config_device_irq() 680 "Invalid interrupt type 0x%x specified\n", irq_type); in bmi160_config_device_irq() 693 u32 irq_type = irq_get_trigger_type(irq); in bmi160_setup_irq() local 696 ret = bmi160_config_device_irq(indio_dev, irq_type, pin); in bmi160_setup_irq() 700 return bmi160_probe_trigger(indio_dev, irq, irq_type); in bmi160_setup_irq() 782 int bmi160_probe_trigger(struct iio_dev *indio_dev, int irq, u32 irq_type) in bmi160_probe_trigger() argument [all …]
|
| /linux-6.15/drivers/vfio/pci/ |
| H A D | vfio_pci_intrs.c | 37 return vdev->irq_type == type; in irq_is() 42 return vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX; in is_intx() 47 return !(vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX || in is_irq_none() 48 vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX || in is_irq_none() 49 vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX); in is_irq_none() 305 vdev->irq_type = VFIO_PCI_INTX_IRQ_INDEX; in vfio_intx_enable() 310 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_intx_enable() 360 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_intx_disable() 395 vdev->irq_type = msix ? VFIO_PCI_MSIX_IRQ_INDEX : in vfio_msi_enable() 574 vdev->irq_type = VFIO_PCI_NUM_IRQS; in vfio_msi_disable() [all …]
|
| /linux-6.15/drivers/iio/light/ |
| H A D | st_uvis25_core.c | 174 unsigned long irq_type; in st_uvis25_allocate_trigger() local 177 irq_type = irq_get_trigger_type(hw->irq); in st_uvis25_allocate_trigger() 178 switch (irq_type) { in st_uvis25_allocate_trigger() 187 dev_info(dev, "mode %lx unsupported\n", irq_type); in st_uvis25_allocate_trigger() 198 irq_type | IRQF_ONESHOT, in st_uvis25_allocate_trigger()
|
| /linux-6.15/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_irq.c | 705 const enum irq_type dal_irq_type, in dm_irq_state() 893 int irq_type; in amdgpu_dm_hpd_init() local 923 irq_type = dc_link->irq_source_hpd - DC_IRQ_SOURCE_HPD1; in amdgpu_dm_hpd_init() 931 if (irq_type < adev->mode_info.num_hpd) { in amdgpu_dm_hpd_init() 932 if (amdgpu_irq_get(adev, &adev->hpd_irq, irq_type)) in amdgpu_dm_hpd_init() 964 int irq_type; in amdgpu_dm_hpd_fini() local 978 irq_type = dc_link->irq_source_hpd - DC_IRQ_SOURCE_HPD1; in amdgpu_dm_hpd_fini() 981 if (irq_type < adev->mode_info.num_hpd) { in amdgpu_dm_hpd_fini() 982 if (amdgpu_irq_put(adev, &adev->hpd_irq, irq_type)) in amdgpu_dm_hpd_fini()
|
| H A D | amdgpu_dm_crtc.c | 302 int irq_type; in amdgpu_dm_crtc_set_vblank() local 308 irq_type = amdgpu_display_crtc_idx_to_irq_type(adev, acrtc->crtc_id); in amdgpu_dm_crtc_set_vblank() 324 rc = amdgpu_irq_get(adev, &adev->crtc_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 327 rc = amdgpu_irq_put(adev, &adev->crtc_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 343 rc = amdgpu_irq_get(adev, &adev->pageflip_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 346 rc = amdgpu_irq_put(adev, &adev->pageflip_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 357 rc = amdgpu_irq_get(adev, &adev->vline0_irq, irq_type); in amdgpu_dm_crtc_set_vblank() 360 rc = amdgpu_irq_put(adev, &adev->vline0_irq, irq_type); in amdgpu_dm_crtc_set_vblank()
|
| /linux-6.15/drivers/iio/imu/inv_icm42600/ |
| H A D | inv_icm42600_core.c | 586 int irq_type, bool open_drain) in inv_icm42600_irq_init() argument 593 switch (irq_type) { in inv_icm42600_irq_init() 603 switch (irq_type) { in inv_icm42600_irq_init() 625 irq_type |= IRQF_ONESHOT; in inv_icm42600_irq_init() 627 inv_icm42600_irq_handler, irq_type, in inv_icm42600_irq_init() 691 int irq_type; in inv_icm42600_core_probe() local 700 irq_type = irq_get_trigger_type(irq); in inv_icm42600_core_probe() 701 if (!irq_type) in inv_icm42600_core_probe() 702 irq_type = IRQF_TRIGGER_FALLING; in inv_icm42600_core_probe() 767 ret = inv_icm42600_irq_init(st, irq, irq_type, open_drain); in inv_icm42600_core_probe()
|
| /linux-6.15/drivers/input/touchscreen/ |
| H A D | novatek-nvt-ts.c | 200 int error, width, height, irq_type; in nvt_ts_probe() local 259 irq_type = data->buf[NVT_TS_PARAMS_IRQ_TYPE]; in nvt_ts_probe() 263 irq_type >= ARRAY_SIZE(nvt_ts_irq_type) || in nvt_ts_probe() 300 nvt_ts_irq_type[irq_type], in nvt_ts_probe()
|
| /linux-6.15/drivers/scsi/ |
| H A D | aha1740.c | 501 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()
|