• Home
  • Raw
  • Download

Lines Matching full:bank

96  * @bank: pin bank related to the domain
101 struct samsung_pin_bank *bank; member
139 struct samsung_pin_bank *bank, int pin) in s3c24xx_eint_set_function() argument
141 const struct samsung_pin_bank_type *bank_type = bank->type; in s3c24xx_eint_set_function()
149 reg = d->virt_base + bank->pctl_offset; in s3c24xx_eint_set_function()
153 spin_lock_irqsave(&bank->slock, flags); in s3c24xx_eint_set_function()
157 val |= bank->eint_func << shift; in s3c24xx_eint_set_function()
160 spin_unlock_irqrestore(&bank->slock, flags); in s3c24xx_eint_set_function()
165 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c24xx_eint_type() local
166 struct samsung_pinctrl_drv_data *d = bank->drvdata; in s3c24xx_eint_type()
167 int index = bank->eint_offset + data->hwirq; in s3c24xx_eint_type()
190 s3c24xx_eint_set_function(d, bank, data->hwirq); in s3c24xx_eint_type()
199 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c2410_eint0_3_ack() local
200 struct s3c24xx_eint_domain_data *ddata = bank->irq_domain->host_data; in s3c2410_eint0_3_ack()
210 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c2410_eint0_3_mask() local
211 struct s3c24xx_eint_domain_data *ddata = bank->irq_domain->host_data; in s3c2410_eint0_3_mask()
221 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c2410_eint0_3_unmask() local
222 struct s3c24xx_eint_domain_data *ddata = bank->irq_domain->host_data; in s3c2410_eint0_3_unmask()
256 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c2412_eint0_3_ack() local
257 struct samsung_pinctrl_drv_data *d = bank->drvdata; in s3c2412_eint0_3_ack()
265 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c2412_eint0_3_mask() local
266 struct samsung_pinctrl_drv_data *d = bank->drvdata; in s3c2412_eint0_3_mask()
276 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c2412_eint0_3_unmask() local
277 struct samsung_pinctrl_drv_data *d = bank->drvdata; in s3c2412_eint0_3_unmask()
316 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c24xx_eint_ack() local
317 struct samsung_pinctrl_drv_data *d = bank->drvdata; in s3c24xx_eint_ack()
318 unsigned char index = bank->eint_offset + data->hwirq; in s3c24xx_eint_ack()
325 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c24xx_eint_mask() local
326 struct samsung_pinctrl_drv_data *d = bank->drvdata; in s3c24xx_eint_mask()
327 unsigned char index = bank->eint_offset + data->hwirq; in s3c24xx_eint_mask()
337 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(data); in s3c24xx_eint_unmask() local
338 struct samsung_pinctrl_drv_data *d = bank->drvdata; in s3c24xx_eint_unmask()
339 unsigned char index = bank->eint_offset + data->hwirq; in s3c24xx_eint_unmask()
418 struct samsung_pin_bank *bank = ddata->bank; in s3c24xx_gpf_irq_map() local
420 if (!(bank->eint_mask & (1 << (bank->eint_offset + hw)))) in s3c24xx_gpf_irq_map()
434 irq_set_chip_data(virq, bank); in s3c24xx_gpf_irq_map()
447 struct samsung_pin_bank *bank = ddata->bank; in s3c24xx_gpg_irq_map() local
449 if (!(bank->eint_mask & (1 << (bank->eint_offset + hw)))) in s3c24xx_gpg_irq_map()
453 irq_set_chip_data(virq, bank); in s3c24xx_gpg_irq_map()
474 struct samsung_pin_bank *bank; in s3c24xx_eint_init() local
517 bank = d->pin_banks; in s3c24xx_eint_init()
518 for (i = 0; i < d->nr_banks; ++i, ++bank) { in s3c24xx_eint_init()
524 if (bank->eint_type != EINT_TYPE_WKUP) in s3c24xx_eint_init()
531 ddata->bank = bank; in s3c24xx_eint_init()
535 ops = (bank->eint_offset == 0) ? &s3c24xx_gpf_irq_ops in s3c24xx_eint_init()
538 bank->irq_domain = irq_domain_add_linear(bank->of_node, in s3c24xx_eint_init()
539 bank->nr_pins, ops, ddata); in s3c24xx_eint_init()
540 if (!bank->irq_domain) { in s3c24xx_eint_init()
545 irq = bank->eint_offset; in s3c24xx_eint_init()
546 mask = bank->eint_mask; in s3c24xx_eint_init()
552 eint_data->domains[irq] = bank->irq_domain; in s3c24xx_eint_init()