Lines Matching full:chips

194 	struct davinci_gpio_controller *chips;  in davinci_gpio_probe()  local
230 chips = devm_kzalloc(dev, sizeof(*chips), GFP_KERNEL); in davinci_gpio_probe()
231 if (!chips) in davinci_gpio_probe()
239 chips->irqs[i] = platform_get_irq(pdev, i); in davinci_gpio_probe()
240 if (chips->irqs[i] < 0) { in davinci_gpio_probe()
241 if (chips->irqs[i] != -EPROBE_DEFER) in davinci_gpio_probe()
243 chips->irqs[i]); in davinci_gpio_probe()
244 return chips->irqs[i]; in davinci_gpio_probe()
248 chips->chip.label = dev_name(dev); in davinci_gpio_probe()
250 chips->chip.direction_input = davinci_direction_in; in davinci_gpio_probe()
251 chips->chip.get = davinci_gpio_get; in davinci_gpio_probe()
252 chips->chip.direction_output = davinci_direction_out; in davinci_gpio_probe()
253 chips->chip.set = davinci_gpio_set; in davinci_gpio_probe()
255 chips->chip.ngpio = ngpio; in davinci_gpio_probe()
256 chips->chip.base = pdata->no_auto_base ? pdata->base : -1; in davinci_gpio_probe()
259 chips->chip.of_gpio_n_cells = 2; in davinci_gpio_probe()
260 chips->chip.parent = dev; in davinci_gpio_probe()
261 chips->chip.of_node = dev->of_node; in davinci_gpio_probe()
264 chips->chip.request = gpiochip_generic_request; in davinci_gpio_probe()
265 chips->chip.free = gpiochip_generic_free; in davinci_gpio_probe()
268 spin_lock_init(&chips->lock); in davinci_gpio_probe()
272 chips->regs[bank] = gpio_base + offset_array[bank]; in davinci_gpio_probe()
274 ret = devm_gpiochip_add_data(dev, &chips->chip, chips); in davinci_gpio_probe()
278 platform_set_drvdata(pdev, chips); in davinci_gpio_probe()
443 struct davinci_gpio_controller *chips = in davinci_gpio_irq_map() local
445 struct davinci_gpio_regs __iomem *g = chips->regs[hw / 32]; in davinci_gpio_irq_map()
497 struct davinci_gpio_controller *chips = platform_get_drvdata(pdev); in davinci_gpio_irq_setup() local
537 chips); in davinci_gpio_irq_setup()
551 chips->chip.to_irq = gpio_to_irq_banked; in davinci_gpio_irq_setup()
552 chips->irq_domain = irq_domain; in davinci_gpio_irq_setup()
561 chips->chip.to_irq = gpio_to_irq_unbanked; in davinci_gpio_irq_setup()
562 chips->gpio_unbanked = pdata->gpio_unbanked; in davinci_gpio_irq_setup()
566 irq = chips->irqs[0]; in davinci_gpio_irq_setup()
572 g = chips->regs[0]; in davinci_gpio_irq_setup()
578 irq_set_chip(chips->irqs[gpio], irq_chip); in davinci_gpio_irq_setup()
579 irq_set_handler_data(chips->irqs[gpio], chips); in davinci_gpio_irq_setup()
580 irq_set_status_flags(chips->irqs[gpio], in davinci_gpio_irq_setup()
596 g = chips->regs[bank / 2]; in davinci_gpio_irq_setup()
616 irqdata->chip = chips; in davinci_gpio_irq_setup()
618 irq_set_chained_handler_and_data(chips->irqs[bank], in davinci_gpio_irq_setup()