Lines Matching refs:ops
534 struct msi_domain_ops *ops = info->ops; in msi_domain_alloc() local
535 irq_hw_number_t hwirq = ops->get_hwirq(info, arg); in msi_domain_alloc()
548 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc()
550 if (ops->msi_free) { in msi_domain_alloc()
552 ops->msi_free(domain, info, virq + i); in msi_domain_alloc()
568 if (info->ops->msi_free) { in msi_domain_free()
570 info->ops->msi_free(domain, info, virq + i); in msi_domain_free()
635 struct msi_domain_ops *ops = info->ops; in msi_domain_update_dom_ops() local
637 if (ops == NULL) { in msi_domain_update_dom_ops()
638 info->ops = &msi_domain_ops_default; in msi_domain_update_dom_ops()
642 if (ops->domain_alloc_irqs == NULL) in msi_domain_update_dom_ops()
643 ops->domain_alloc_irqs = msi_domain_ops_default.domain_alloc_irqs; in msi_domain_update_dom_ops()
644 if (ops->domain_free_irqs == NULL) in msi_domain_update_dom_ops()
645 ops->domain_free_irqs = msi_domain_ops_default.domain_free_irqs; in msi_domain_update_dom_ops()
650 if (ops->get_hwirq == NULL) in msi_domain_update_dom_ops()
651 ops->get_hwirq = msi_domain_ops_default.get_hwirq; in msi_domain_update_dom_ops()
652 if (ops->msi_init == NULL) in msi_domain_update_dom_ops()
653 ops->msi_init = msi_domain_ops_default.msi_init; in msi_domain_update_dom_ops()
654 if (ops->msi_check == NULL) in msi_domain_update_dom_ops()
655 ops->msi_check = msi_domain_ops_default.msi_check; in msi_domain_update_dom_ops()
656 if (ops->msi_prepare == NULL) in msi_domain_update_dom_ops()
657 ops->msi_prepare = msi_domain_ops_default.msi_prepare; in msi_domain_update_dom_ops()
658 if (ops->set_desc == NULL) in msi_domain_update_dom_ops()
659 ops->set_desc = msi_domain_ops_default.set_desc; in msi_domain_update_dom_ops()
702 struct msi_domain_ops *ops = info->ops; in msi_domain_prepare_irqs() local
705 ret = ops->msi_check(domain, info, dev); in msi_domain_prepare_irqs()
707 ret = ops->msi_prepare(domain, dev, nvec, arg); in msi_domain_prepare_irqs()
716 struct msi_domain_ops *ops = info->ops; in msi_domain_populate_irqs() local
729 ops->set_desc(arg, desc); in msi_domain_populate_irqs()
854 struct msi_domain_ops *ops = info->ops; in __msi_domain_alloc_irqs() local
881 ops->set_desc(&arg, desc); in __msi_domain_alloc_irqs()
933 struct msi_domain_ops *ops = info->ops; in msi_domain_alloc_irqs_descs_locked() local
942 ret = ops->domain_alloc_irqs(domain, dev, nvec); in msi_domain_alloc_irqs_descs_locked()
1010 struct msi_domain_ops *ops = info->ops; in msi_domain_free_irqs_descs_locked() local
1014 ops->domain_free_irqs(domain, dev); in msi_domain_free_irqs_descs_locked()