Lines Matching defs:device
52 int device, int channel, bool irq)
56 /* Set the device enable bit. */
57 switch (device) {
85 dev_err(&pdev->dev, "Unrecognised device %d\n", device);
89 /* Select IRQ/FIQ channel for device. */
91 ST_A9_IRQ_N_SEL(device, channel) :
92 ST_A9_FIQ_N_SEL(device, channel);
102 u32 device, invert;
104 channels = of_property_count_u32_elems(np, "st,irq-device");
106 dev_err(&pdev->dev, "st,enable-irq-device must have 2 elems\n");
110 channels = of_property_count_u32_elems(np, "st,fiq-device");
112 dev_err(&pdev->dev, "st,enable-fiq-device must have 2 elems\n");
117 of_property_read_u32_index(np, "st,irq-device", i, &device);
119 ret = st_irq_xlate(pdev, device, i, true);
123 of_property_read_u32_index(np, "st,fiq-device", i, &device);
125 ret = st_irq_xlate(pdev, device, i, false);
160 static int __maybe_unused st_irq_syscfg_resume(struct device *dev)