Lines Matching defs:device
67 int device, int channel, bool irq)
71 /* Set the device enable bit. */
72 switch (device) {
100 dev_err(&pdev->dev, "Unrecognised device %d\n", device);
104 /* Select IRQ/FIQ channel for device. */
106 ST_A9_IRQ_N_SEL(device, channel) :
107 ST_A9_FIQ_N_SEL(device, channel);
117 u32 device, invert;
119 channels = of_property_count_u32_elems(np, "st,irq-device");
121 dev_err(&pdev->dev, "st,enable-irq-device must have 2 elems\n");
125 channels = of_property_count_u32_elems(np, "st,fiq-device");
127 dev_err(&pdev->dev, "st,enable-fiq-device must have 2 elems\n");
132 of_property_read_u32_index(np, "st,irq-device", i, &device);
134 ret = st_irq_xlate(pdev, device, i, true);
138 of_property_read_u32_index(np, "st,fiq-device", i, &device);
140 ret = st_irq_xlate(pdev, device, i, false);
180 static int __maybe_unused st_irq_syscfg_resume(struct device *dev)