Lines Matching refs:host_data

55 	struct stm32_exti_host_data *host_data;  member
309 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_irq_set_type()
346 void __iomem *base = chip_data->host_data->base; in stm32_chip_suspend()
359 void __iomem *base = chip_data->host_data->base; in stm32_chip_resume()
432 void __iomem *base = chip_data->host_data->base; in stm32_exti_write_bit()
441 void __iomem *base = chip_data->host_data->base; in stm32_exti_set_bit()
454 void __iomem *base = chip_data->host_data->base; in stm32_exti_clr_bit()
511 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_exti_h_set_type()
512 void __iomem *base = chip_data->host_data->base; in stm32_exti_h_set_type()
606 static void stm32_exti_h_syscore_init(struct stm32_exti_host_data *host_data) in stm32_exti_h_syscore_init() argument
608 stm32_host_data = host_data; in stm32_exti_h_syscore_init()
621 void __iomem *base = chip_data->host_data->base; in stm32_exti_h_retrigger()
658 struct stm32_exti_host_data *host_data = dm->host_data; in stm32_exti_h_domain_alloc() local
668 chip_data = &host_data->chips_data[bank]; in stm32_exti_h_domain_alloc()
671 desc = stm32_exti_get_desc(host_data->drv_data, hwirq); in stm32_exti_h_domain_alloc()
694 struct stm32_exti_host_data *host_data; in stm32_exti_host_init() local
696 host_data = kzalloc(sizeof(*host_data), GFP_KERNEL); in stm32_exti_host_init()
697 if (!host_data) in stm32_exti_host_init()
700 host_data->drv_data = dd; in stm32_exti_host_init()
701 host_data->chips_data = kcalloc(dd->bank_nr, in stm32_exti_host_init()
704 if (!host_data->chips_data) in stm32_exti_host_init()
707 host_data->base = of_iomap(node, 0); in stm32_exti_host_init()
708 if (!host_data->base) { in stm32_exti_host_init()
713 stm32_host_data = host_data; in stm32_exti_host_init()
715 return host_data; in stm32_exti_host_init()
718 kfree(host_data->chips_data); in stm32_exti_host_init()
720 kfree(host_data); in stm32_exti_host_init()
736 chip_data->host_data = h_data; in stm32_exti_chip_init()
756 struct stm32_exti_host_data *host_data; in stm32_exti_init() local
762 host_data = stm32_exti_host_init(drv_data, node); in stm32_exti_init()
763 if (!host_data) in stm32_exti_init()
788 chip_data = stm32_exti_chip_init(host_data, i, node); in stm32_exti_init()
792 gc->reg_base = host_data->base; in stm32_exti_init()
820 iounmap(host_data->base); in stm32_exti_init()
821 kfree(host_data->chips_data); in stm32_exti_init()
822 kfree(host_data); in stm32_exti_init()
851 struct stm32_exti_host_data *host_data; in stm32_exti_probe() local
854 host_data = devm_kzalloc(dev, sizeof(*host_data), GFP_KERNEL); in stm32_exti_probe()
855 if (!host_data) in stm32_exti_probe()
865 host_data->hwlock = devm_hwspin_lock_request_specific(dev, ret); in stm32_exti_probe()
866 if (!host_data->hwlock) { in stm32_exti_probe()
882 host_data->drv_data = drv_data; in stm32_exti_probe()
884 host_data->chips_data = devm_kcalloc(dev, drv_data->bank_nr, in stm32_exti_probe()
885 sizeof(*host_data->chips_data), in stm32_exti_probe()
887 if (!host_data->chips_data) in stm32_exti_probe()
890 host_data->base = devm_platform_ioremap_resource(pdev, 0); in stm32_exti_probe()
891 if (IS_ERR(host_data->base)) in stm32_exti_probe()
892 return PTR_ERR(host_data->base); in stm32_exti_probe()
895 stm32_exti_chip_init(host_data, i, np); in stm32_exti_probe()
906 host_data); in stm32_exti_probe()
917 stm32_exti_h_syscore_init(host_data); in stm32_exti_probe()