domain 382 arch/arc/kernel/mcip.c struct irq_domain *domain; domain 398 arch/arc/kernel/mcip.c domain = irq_domain_add_linear(intc, nr_irqs, &idu_irq_ops, NULL); domain 414 arch/arc/kernel/mcip.c irq_set_chained_handler_and_data(virq, idu_cascade_isr, domain); domain 452 arch/arm/common/sa1111.c struct irq_domain *domain = sachip->irqdomain; domain 464 arch/arm/common/sa1111.c irq_dispose_mapping(irq_find_mapping(domain, i)); domain 465 arch/arm/common/sa1111.c irq_domain_remove(domain); domain 14 arch/arm/include/asm/dma-iommu.h struct iommu_domain *domain; domain 87 arch/arm/include/asm/domain.h unsigned int domain; domain 91 arch/arm/include/asm/domain.h : "=r" (domain) domain 94 arch/arm/include/asm/domain.h return domain; domain 118 arch/arm/include/asm/domain.h unsigned int domain = get_domain(); \ domain 119 arch/arm/include/asm/domain.h domain &= ~domain_mask(dom); \ domain 120 arch/arm/include/asm/domain.h domain = domain | domain_val(dom, type); \ domain 121 arch/arm/include/asm/domain.h set_domain(domain); \ domain 49 arch/arm/include/asm/uaccess-asm.h mcr p15, 0, \tmp, c3, c0, 0 @ Set domain register domain 98 arch/arm/kernel/process.c unsigned int domain, fs; domain 106 arch/arm/kernel/process.c domain = DACR_UACCESS_ENABLE; domain 109 arch/arm/kernel/process.c domain = to_svc_pt_regs(regs)->dacr; domain 113 arch/arm/kernel/process.c domain = get_domain(); domain 147 arch/arm/kernel/process.c if ((domain & domain_mask(DOMAIN_USER)) == domain 176 arch/arm/kernel/process.c transbase, domain); domain 157 arch/arm/mach-exynos/suspend.c static int exynos_pmu_domain_alloc(struct irq_domain *domain, domain 174 arch/arm/mach-exynos/suspend.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 178 arch/arm/mach-exynos/suspend.c parent_fwspec.fwnode = domain->parent->fwnode; domain 179 arch/arm/mach-exynos/suspend.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, domain 192 arch/arm/mach-exynos/suspend.c struct irq_domain *parent_domain, *domain; domain 212 arch/arm/mach-exynos/suspend.c domain = irq_domain_add_hierarchy(parent_domain, 0, 0, domain 215 arch/arm/mach-exynos/suspend.c if (!domain) { domain 57 arch/arm/mach-imx/3ds_debugboard.c static struct irq_domain *domain; domain 98 arch/arm/mach-imx/3ds_debugboard.c generic_handle_irq(irq_find_mapping(domain, expio_irq)); domain 186 arch/arm/mach-imx/3ds_debugboard.c domain = irq_domain_add_legacy(NULL, MXC_MAX_EXP_IO_LINES, irq_base, 0, domain 188 arch/arm/mach-imx/3ds_debugboard.c WARN_ON(!domain); domain 202 arch/arm/mach-imx/3ds_debugboard.c smsc911x_resources[1].start = irq_find_mapping(domain, EXPIO_INT_ENET); domain 203 arch/arm/mach-imx/3ds_debugboard.c smsc911x_resources[1].end = irq_find_mapping(domain, EXPIO_INT_ENET); domain 48 arch/arm/mach-imx/avic.c static struct irq_domain *domain; domain 156 arch/arm/mach-imx/avic.c handle_domain_irq(domain, nivector, regs); domain 203 arch/arm/mach-imx/avic.c domain = irq_domain_add_legacy(np, AVIC_NUM_IRQS, irq_base, 0, domain 205 arch/arm/mach-imx/avic.c WARN_ON(!domain); domain 194 arch/arm/mach-imx/gpc.c static int imx_gpc_domain_alloc(struct irq_domain *domain, domain 213 arch/arm/mach-imx/gpc.c irq_domain_set_hwirq_and_chip(domain, irq + i, hwirq + i, domain 217 arch/arm/mach-imx/gpc.c parent_fwspec.fwnode = domain->parent->fwnode; domain 218 arch/arm/mach-imx/gpc.c return irq_domain_alloc_irqs_parent(domain, irq, nr_irqs, domain 231 arch/arm/mach-imx/gpc.c struct irq_domain *parent_domain, *domain; domain 249 arch/arm/mach-imx/gpc.c domain = irq_domain_add_hierarchy(parent_domain, 0, GPC_MAX_IRQS, domain 252 arch/arm/mach-imx/gpc.c if (!domain) { domain 68 arch/arm/mach-imx/mach-mx31ads.c static struct irq_domain *domain; domain 114 arch/arm/mach-imx/mach-mx31ads.c serial_platform_data[0].irq = irq_find_mapping(domain, domain 116 arch/arm/mach-imx/mach-mx31ads.c serial_platform_data[1].irq = irq_find_mapping(domain, domain 124 arch/arm/mach-imx/mach-mx31ads.c irq_find_mapping(domain, EXPIO_INT_ENET_INT); domain 126 arch/arm/mach-imx/mach-mx31ads.c irq_find_mapping(domain, EXPIO_INT_ENET_INT); domain 162 arch/arm/mach-imx/mach-mx31ads.c generic_handle_irq(irq_find_mapping(domain, expio_irq)); domain 226 arch/arm/mach-imx/mach-mx31ads.c domain = irq_domain_add_legacy(NULL, MXC_MAX_EXP_IO_LINES, irq_base, 0, domain 228 arch/arm/mach-imx/mach-mx31ads.c WARN_ON(!domain); domain 47 arch/arm/mach-imx/tzic.c static struct irq_domain *domain; domain 137 arch/arm/mach-imx/tzic.c handle_domain_irq(domain, irqofs + i * 32, regs); domain 178 arch/arm/mach-imx/tzic.c domain = irq_domain_add_legacy(np, TZIC_NUM_IRQS, irq_base, 0, domain 180 arch/arm/mach-imx/tzic.c WARN_ON(!domain); domain 68 arch/arm/mach-omap1/irq.c static struct irq_domain *domain; domain 168 arch/arm/mach-omap1/irq.c handle_domain_irq(domain, irqnr, regs); domain 238 arch/arm/mach-omap1/irq.c domain = irq_domain_add_legacy(NULL, nr_irqs, irq_base, 0, domain 271 arch/arm/mach-omap1/irq.c d = irq_get_irq_data(irq_find_mapping(domain, omap_l2_irq)); domain 75 arch/arm/mach-omap2/cm2xxx_3xxx.h static inline u32 omap2_cm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask) domain 79 arch/arm/mach-omap2/cm2xxx_3xxx.h v = omap2_cm_read_mod_reg(domain, idx); domain 508 arch/arm/mach-omap2/omap-wakeupgen.c static int wakeupgen_domain_alloc(struct irq_domain *domain, domain 527 arch/arm/mach-omap2/omap-wakeupgen.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 531 arch/arm/mach-omap2/omap-wakeupgen.c parent_fwspec.fwnode = domain->parent->fwnode; domain 532 arch/arm/mach-omap2/omap-wakeupgen.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, domain 548 arch/arm/mach-omap2/omap-wakeupgen.c struct irq_domain *parent_domain, *domain; domain 587 arch/arm/mach-omap2/omap-wakeupgen.c domain = irq_domain_add_hierarchy(parent_domain, 0, max_irqs, domain 590 arch/arm/mach-omap2/omap-wakeupgen.c if (!domain) { domain 78 arch/arm/mach-omap2/prm2xxx_3xxx.h static inline u32 omap2_prm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask) domain 82 arch/arm/mach-omap2/prm2xxx_3xxx.h v = omap2_prm_read_mod_reg(domain, idx); domain 41 arch/arm/mach-s3c64xx/pm.c static int s3c64xx_pd_off(struct generic_pm_domain *domain) domain 46 arch/arm/mach-s3c64xx/pm.c pd = container_of(domain, struct s3c64xx_pm_domain, pd); domain 55 arch/arm/mach-s3c64xx/pm.c static int s3c64xx_pd_on(struct generic_pm_domain *domain) domain 61 arch/arm/mach-s3c64xx/pm.c pd = container_of(domain, struct s3c64xx_pm_domain, pd); domain 18 arch/arm/mach-ux500/pm_domains.c static int pd_power_off(struct generic_pm_domain *domain) domain 30 arch/arm/mach-ux500/pm_domains.c static int pd_power_on(struct generic_pm_domain *domain) domain 38 arch/arm/mach-zx/zx296702-pm-domain.c static int normal_power_off(struct generic_pm_domain *domain) domain 40 arch/arm/mach-zx/zx296702-pm-domain.c struct zx_pm_domain *zpd = (struct zx_pm_domain *)domain; domain 67 arch/arm/mach-zx/zx296702-pm-domain.c pr_err("Error: %s %s fail\n", __func__, domain->name); domain 74 arch/arm/mach-zx/zx296702-pm-domain.c static int normal_power_on(struct generic_pm_domain *domain) domain 76 arch/arm/mach-zx/zx296702-pm-domain.c struct zx_pm_domain *zpd = (struct zx_pm_domain *)domain; domain 88 arch/arm/mach-zx/zx296702-pm-domain.c pr_err("Error: %s %s fail\n", __func__, domain->name); domain 1374 arch/arm/mm/dma-mapping.c ret = iommu_map(mapping->domain, iova, phys, len, domain 1383 arch/arm/mm/dma-mapping.c iommu_unmap(mapping->domain, dma_addr, iova-dma_addr); domain 1399 arch/arm/mm/dma-mapping.c iommu_unmap(mapping->domain, iova, size); domain 1643 arch/arm/mm/dma-mapping.c ret = iommu_map(mapping->domain, iova, phys, len, prot); domain 1653 arch/arm/mm/dma-mapping.c iommu_unmap(mapping->domain, iova_base, count * PAGE_SIZE); domain 1851 arch/arm/mm/dma-mapping.c ret = iommu_map(mapping->domain, dma_addr, page_to_phys(page), len, prot); domain 1901 arch/arm/mm/dma-mapping.c iommu_unmap(mapping->domain, iova, len); domain 1919 arch/arm/mm/dma-mapping.c struct page *page = phys_to_page(iommu_iova_to_phys(mapping->domain, iova)); domain 1929 arch/arm/mm/dma-mapping.c iommu_unmap(mapping->domain, iova, len); domain 1957 arch/arm/mm/dma-mapping.c ret = iommu_map(mapping->domain, dma_addr, addr, len, prot); domain 1986 arch/arm/mm/dma-mapping.c iommu_unmap(mapping->domain, iova, len); domain 1995 arch/arm/mm/dma-mapping.c struct page *page = phys_to_page(iommu_iova_to_phys(mapping->domain, iova)); domain 2009 arch/arm/mm/dma-mapping.c struct page *page = phys_to_page(iommu_iova_to_phys(mapping->domain, iova)); domain 2113 arch/arm/mm/dma-mapping.c mapping->domain = iommu_domain_alloc(bus); domain 2114 arch/arm/mm/dma-mapping.c if (!mapping->domain) domain 2136 arch/arm/mm/dma-mapping.c iommu_domain_free(mapping->domain); domain 2173 arch/arm/mm/dma-mapping.c err = iommu_attach_device(mapping->domain, dev); domain 2228 arch/arm/mm/dma-mapping.c iommu_detach_device(mapping->domain, dev); domain 255 arch/arm/mm/dump.c unsigned int level, u64 val, const char *domain) domain 263 arch/arm/mm/dump.c st->current_domain = domain; domain 266 arch/arm/mm/dump.c domain != st->current_domain || domain 297 arch/arm/mm/dump.c st->current_domain = domain; domain 303 arch/arm/mm/dump.c const char *domain) domain 311 arch/arm/mm/dump.c note_page(st, addr, 4, pte_val(*pte), domain); domain 339 arch/arm/mm/dump.c const char *domain; domain 343 arch/arm/mm/dump.c domain = get_domain_name(pmd); domain 345 arch/arm/mm/dump.c note_page(st, addr, 3, pmd_val(*pmd), domain); domain 347 arch/arm/mm/dump.c walk_pte(st, pmd, addr, domain); domain 352 arch/arm/mm/dump.c domain = get_domain_name(pmd); domain 353 arch/arm/mm/dump.c note_page(st, addr, 3, pmd_val(*pmd), domain); domain 49 arch/arm/mm/mm.h unsigned int domain; domain 254 arch/arm/mm/mmu.c .domain = DOMAIN_IO, domain 260 arch/arm/mm/mmu.c .domain = DOMAIN_IO, domain 266 arch/arm/mm/mmu.c .domain = DOMAIN_IO, domain 272 arch/arm/mm/mmu.c .domain = DOMAIN_IO, domain 278 arch/arm/mm/mmu.c .domain = DOMAIN_IO, domain 282 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 287 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 294 arch/arm/mm/mmu.c .domain = DOMAIN_VECTORS, domain 300 arch/arm/mm/mmu.c .domain = DOMAIN_VECTORS, domain 306 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 313 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 317 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 324 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 331 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 336 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 344 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 350 arch/arm/mm/mmu.c .domain = DOMAIN_KERNEL, domain 698 arch/arm/mm/mmu.c t->prot_l1 |= PMD_DOMAIN(t->domain); domain 700 arch/arm/mm/mmu.c t->prot_sect |= PMD_DOMAIN(t->domain); domain 871 arch/arm/mm/mmu.c if (type->domain) { domain 48 arch/arm/plat-orion/gpio.c struct irq_domain *domain; domain 227 arch/arm/plat-orion/gpio.c return irq_create_mapping(ochip->domain, domain 612 arch/arm/plat-orion/gpio.c ochip->domain = irq_domain_add_legacy(np, domain 618 arch/arm/plat-orion/gpio.c if (!ochip->domain) domain 384 arch/arm64/include/asm/assembler.h .macro dcache_by_line_op op, domain, kaddr, size, tmp1, tmp2 domain 37 arch/arm64/kernel/pci.c int raw_pci_read(unsigned int domain, unsigned int bus, domain 40 arch/arm64/kernel/pci.c struct pci_bus *b = pci_find_bus(domain, bus); domain 47 arch/arm64/kernel/pci.c int raw_pci_write(unsigned int domain, unsigned int bus, domain 50 arch/arm64/kernel/pci.c struct pci_bus *b = pci_find_bus(domain, bus); domain 101 arch/ia64/include/asm/hw_irq.h cpumask_t domain; domain 108 arch/ia64/include/asm/hw_irq.h #define irq_to_domain(x) irq_cfg[(x)].domain domain 120 arch/ia64/include/asm/hw_irq.h extern int bind_irq_vector(int irq, int vector, cpumask_t domain); domain 622 arch/ia64/kernel/iosapic.c cpumask_t domain = irq_to_domain(irq); domain 660 arch/ia64/kernel/iosapic.c for_each_cpu_and(numa_cpu, cpu_mask, &domain) { domain 671 arch/ia64/kernel/iosapic.c for_each_cpu_and(numa_cpu, cpu_mask, &domain) domain 688 arch/ia64/kernel/iosapic.c } while (!cpu_online(cpu) || !cpumask_test_cpu(cpu, &domain)); domain 79 arch/ia64/kernel/irq_ia64.c .domain = CPU_MASK_NONE domain 105 arch/ia64/kernel/irq_ia64.c static inline int find_unassigned_vector(cpumask_t domain) domain 110 arch/ia64/kernel/irq_ia64.c cpumask_and(&mask, &domain, cpu_online_mask); domain 116 arch/ia64/kernel/irq_ia64.c cpumask_and(&mask, &domain, &vector_table[vector]); domain 124 arch/ia64/kernel/irq_ia64.c static int __bind_irq_vector(int irq, int vector, cpumask_t domain) domain 133 arch/ia64/kernel/irq_ia64.c cpumask_and(&mask, &domain, cpu_online_mask); domain 136 arch/ia64/kernel/irq_ia64.c if ((cfg->vector == vector) && cpumask_equal(&cfg->domain, &domain)) domain 143 arch/ia64/kernel/irq_ia64.c cfg->domain = domain; domain 145 arch/ia64/kernel/irq_ia64.c cpumask_or(&vector_table[vector], &vector_table[vector], &domain); domain 149 arch/ia64/kernel/irq_ia64.c int bind_irq_vector(int irq, int vector, cpumask_t domain) domain 155 arch/ia64/kernel/irq_ia64.c ret = __bind_irq_vector(irq, vector, domain); domain 163 arch/ia64/kernel/irq_ia64.c cpumask_t domain; domain 169 arch/ia64/kernel/irq_ia64.c domain = cfg->domain; domain 170 arch/ia64/kernel/irq_ia64.c for_each_cpu_and(cpu, &cfg->domain, cpu_online_mask) domain 173 arch/ia64/kernel/irq_ia64.c cfg->domain = CPU_MASK_NONE; domain 175 arch/ia64/kernel/irq_ia64.c cpumask_andnot(&vector_table[vector], &vector_table[vector], &domain); domain 192 arch/ia64/kernel/irq_ia64.c cpumask_t domain = CPU_MASK_NONE; domain 198 arch/ia64/kernel/irq_ia64.c domain = vector_allocation_domain(cpu); domain 199 arch/ia64/kernel/irq_ia64.c vector = find_unassigned_vector(domain); domain 207 arch/ia64/kernel/irq_ia64.c BUG_ON(__bind_irq_vector(irq, vector, domain)); domain 244 arch/ia64/kernel/irq_ia64.c if (!cpumask_test_cpu(cpu, &irq_cfg[irq].domain)) domain 269 arch/ia64/kernel/irq_ia64.c cpumask_t domain; domain 275 arch/ia64/kernel/irq_ia64.c if (cpumask_test_cpu(cpu, &cfg->domain)) domain 277 arch/ia64/kernel/irq_ia64.c domain = vector_allocation_domain(cpu); domain 278 arch/ia64/kernel/irq_ia64.c vector = find_unassigned_vector(domain); domain 282 arch/ia64/kernel/irq_ia64.c cfg->old_domain = cfg->domain; domain 284 arch/ia64/kernel/irq_ia64.c cfg->domain = CPU_MASK_NONE; domain 285 arch/ia64/kernel/irq_ia64.c BUG_ON(__bind_irq_vector(irq, vector, domain)); domain 396 arch/ia64/kernel/irq_ia64.c cpumask_t domain = CPU_MASK_NONE; domain 401 arch/ia64/kernel/irq_ia64.c domain = vector_allocation_domain(cpu); domain 402 arch/ia64/kernel/irq_ia64.c vector = find_unassigned_vector(domain); domain 411 arch/ia64/kernel/irq_ia64.c BUG_ON(__bind_irq_vector(irq, vector, domain)); domain 79 arch/mips/ath25/ar2315.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 82 arch/mips/ath25/ar2315.c misc_irq = irq_find_mapping(domain, nr); domain 151 arch/mips/ath25/ar2315.c struct irq_domain *domain; domain 156 arch/mips/ath25/ar2315.c domain = irq_domain_add_linear(NULL, AR2315_MISC_IRQ_COUNT, domain 158 arch/mips/ath25/ar2315.c if (!domain) domain 161 arch/mips/ath25/ar2315.c irq = irq_create_mapping(domain, AR2315_MISC_IRQ_AHB); domain 165 arch/mips/ath25/ar2315.c ar2315_misc_irq_handler, domain); domain 167 arch/mips/ath25/ar2315.c ar2315_misc_irq_domain = domain; domain 83 arch/mips/ath25/ar5312.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 86 arch/mips/ath25/ar5312.c misc_irq = irq_find_mapping(domain, nr); domain 146 arch/mips/ath25/ar5312.c struct irq_domain *domain; domain 151 arch/mips/ath25/ar5312.c domain = irq_domain_add_linear(NULL, AR5312_MISC_IRQ_COUNT, domain 153 arch/mips/ath25/ar5312.c if (!domain) domain 156 arch/mips/ath25/ar5312.c irq = irq_create_mapping(domain, AR5312_MISC_IRQ_AHB_PROC); domain 160 arch/mips/ath25/ar5312.c ar5312_misc_irq_handler, domain); domain 162 arch/mips/ath25/ar5312.c ar5312_misc_irq_domain = domain; domain 46 arch/mips/cavium-octeon/octeon-irq.c struct irq_domain *domain[MAX_CIU3_DOMAINS]; domain 127 arch/mips/cavium-octeon/octeon-irq.c static int octeon_irq_force_ciu_mapping(struct irq_domain *domain, domain 130 arch/mips/cavium-octeon/octeon-irq.c return irq_domain_associate(domain, irq, line << 6 | bit); domain 2586 arch/mips/cavium-octeon/octeon-irq.c struct irq_domain *domain; domain 2591 arch/mips/cavium-octeon/octeon-irq.c domain = ciu3_info->domain[block]; domain 2593 arch/mips/cavium-octeon/octeon-irq.c hw = ciu3_info->intsn2hw[block](domain, intsn); domain 2597 arch/mips/cavium-octeon/octeon-irq.c ret = handle_domain_irq(domain, hw, NULL); domain 2851 arch/mips/cavium-octeon/octeon-irq.c struct irq_domain *domain; domain 2898 arch/mips/cavium-octeon/octeon-irq.c domain = irq_domain_add_tree(ciu_node, &octeon_dflt_domain_ciu3_ops, domain 2901 arch/mips/cavium-octeon/octeon-irq.c ciu3_info->domain[i] = domain; domain 2909 arch/mips/cavium-octeon/octeon-irq.c irq_set_default_host(domain); domain 2977 arch/mips/cavium-octeon/octeon-irq.c return ciu3_info->domain[block]; domain 808 arch/mips/include/asm/pci/bridge.h struct irq_domain *domain; domain 160 arch/mips/pci/pci-ar2315.c struct irq_domain *domain; domain 342 arch/mips/pci/pci-ar2315.c pci_irq = irq_find_mapping(apc->domain, __ffs(pending)); domain 398 arch/mips/pci/pci-ar2315.c apc->irq_ext = irq_create_mapping(apc->domain, AR2315_PCI_IRQ_EXT); domain 474 arch/mips/pci/pci-ar2315.c apc->domain = irq_domain_add_linear(NULL, AR2315_PCI_IRQ_COUNT, domain 476 arch/mips/pci/pci-ar2315.c if (!apc->domain) { domain 306 arch/mips/pci/pci-xtalk-bridge.c static int bridge_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 320 arch/mips/pci/pci-xtalk-bridge.c ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); domain 324 arch/mips/pci/pci-xtalk-bridge.c irq_domain_set_info(domain, virq, info->pin, &bridge_irq_chip, domain 333 arch/mips/pci/pci-xtalk-bridge.c static void bridge_domain_free(struct irq_domain *domain, unsigned int virq, domain 336 arch/mips/pci/pci-xtalk-bridge.c struct irq_data *irqd = irq_domain_get_irq_data(domain, virq); domain 342 arch/mips/pci/pci-xtalk-bridge.c irq_domain_free_irqs_top(domain, virq, nr_irqs); domain 345 arch/mips/pci/pci-xtalk-bridge.c static int bridge_domain_activate(struct irq_domain *domain, domain 382 arch/mips/pci/pci-xtalk-bridge.c static void bridge_domain_deactivate(struct irq_domain *domain, domain 419 arch/mips/pci/pci-xtalk-bridge.c irq = irq_domain_alloc_irqs(bc->domain, 1, bc->nasid, &info); domain 434 arch/mips/pci/pci-xtalk-bridge.c struct irq_domain *domain, *parent; domain 445 arch/mips/pci/pci-xtalk-bridge.c domain = irq_domain_create_hierarchy(parent, 0, 8, fn, domain 448 arch/mips/pci/pci-xtalk-bridge.c if (!domain) domain 466 arch/mips/pci/pci-xtalk-bridge.c bc->domain = domain; domain 540 arch/mips/pci/pci-xtalk-bridge.c irq_domain_remove(domain); domain 549 arch/mips/pci/pci-xtalk-bridge.c irq_domain_remove(bc->domain); domain 102 arch/mips/ralink/irq.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 103 arch/mips/ralink/irq.c generic_handle_irq(irq_find_mapping(domain, __ffs(pending))); domain 150 arch/mips/ralink/irq.c struct irq_domain *domain; domain 179 arch/mips/ralink/irq.c domain = irq_domain_add_legacy(node, RALINK_INTC_IRQ_COUNT, domain 181 arch/mips/ralink/irq.c if (!domain) domain 186 arch/mips/ralink/irq.c irq_set_chained_handler_and_data(irq, ralink_intc_irq_handler, domain); domain 189 arch/mips/ralink/irq.c rt_perfcount_irq = irq_create_mapping(domain, 9); domain 118 arch/mips/sgi-ip27/ip27-irq.c static int hub_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 139 arch/mips/sgi-ip27/ip27-irq.c irq_domain_set_info(domain, virq, swlevel, &hub_irq_type, hd, domain 157 arch/mips/sgi-ip27/ip27-irq.c static void hub_domain_free(struct irq_domain *domain, domain 165 arch/mips/sgi-ip27/ip27-irq.c irqd = irq_domain_get_irq_data(domain, virq); domain 191 arch/mips/sgi-ip27/ip27-irq.c struct irq_domain *domain; domain 218 arch/mips/sgi-ip27/ip27-irq.c domain = irq_desc_get_handler_data(desc); domain 219 arch/mips/sgi-ip27/ip27-irq.c irq = irq_linear_revmap(domain, __ffs(pend0)); domain 233 arch/mips/sgi-ip27/ip27-irq.c struct irq_domain *domain; domain 244 arch/mips/sgi-ip27/ip27-irq.c domain = irq_desc_get_handler_data(desc); domain 245 arch/mips/sgi-ip27/ip27-irq.c irq = irq_linear_revmap(domain, __ffs(pend1) + 64); domain 280 arch/mips/sgi-ip27/ip27-irq.c struct irq_domain *domain; domain 303 arch/mips/sgi-ip27/ip27-irq.c domain = irq_domain_create_linear(fn, IP27_HUB_IRQ_COUNT, domain 305 arch/mips/sgi-ip27/ip27-irq.c WARN_ON(domain == NULL); domain 306 arch/mips/sgi-ip27/ip27-irq.c if (!domain) domain 309 arch/mips/sgi-ip27/ip27-irq.c irq_set_default_host(domain); domain 313 arch/mips/sgi-ip27/ip27-irq.c domain); domain 316 arch/mips/sgi-ip27/ip27-irq.c domain); domain 64 arch/nios2/kernel/irq.c struct irq_domain *domain; domain 73 arch/nios2/kernel/irq.c domain = irq_domain_add_linear(node, NIOS2_CPU_NR_IRQS, &irq_ops, NULL); domain 74 arch/nios2/kernel/irq.c BUG_ON(!domain); domain 76 arch/nios2/kernel/irq.c irq_set_default_host(domain); domain 122 arch/powerpc/include/asm/imc-pmu.h int domain; domain 1889 arch/powerpc/kernel/eeh.c uint32_t domain, bus, dev, fn; domain 1900 arch/powerpc/kernel/eeh.c ret = sscanf(buf, "%x:%x:%x.%x", &domain, &bus, &dev, &fn); domain 1906 arch/powerpc/kernel/eeh.c pdev = pci_get_domain_bus_and_slot(domain, bus, (dev << 3) | fn); domain 1919 arch/powerpc/kernel/eeh.c domain, bus, dev, fn, ret); domain 2030 arch/powerpc/kernel/eeh.c uint32_t domain, bus, dev, fn; domain 2040 arch/powerpc/kernel/eeh.c ret = sscanf(buf, "%x:%x:%x.%x", &domain, &bus, &dev, &fn); domain 2046 arch/powerpc/kernel/eeh.c pdev = pci_get_domain_bus_and_slot(domain, bus, (dev << 3) | fn); domain 37 arch/powerpc/perf/hv-24x7-catalog.h __u8 domain; /* Chip = 1, Core = 2 */ domain 33 arch/powerpc/perf/hv-24x7.c static bool domain_is_valid(unsigned domain) domain 35 arch/powerpc/perf/hv-24x7.c switch (domain) { domain 47 arch/powerpc/perf/hv-24x7.c static bool is_physical_domain(unsigned domain) domain 49 arch/powerpc/perf/hv-24x7.c switch (domain) { domain 61 arch/powerpc/perf/hv-24x7.c static bool domain_needs_aggregation(unsigned int domain) domain 64 arch/powerpc/perf/hv-24x7.c (domain == HV_PERF_DOMAIN_PHYS_CORE || domain 65 arch/powerpc/perf/hv-24x7.c (domain >= HV_PERF_DOMAIN_VCPU_HOME_CORE && domain 66 arch/powerpc/perf/hv-24x7.c domain <= HV_PERF_DOMAIN_VCPU_REMOTE_NODE)); domain 69 arch/powerpc/perf/hv-24x7.c static const char *domain_name(unsigned domain) domain 71 arch/powerpc/perf/hv-24x7.c if (!domain_is_valid(domain)) domain 74 arch/powerpc/perf/hv-24x7.c switch (domain) { domain 83 arch/powerpc/perf/hv-24x7.c WARN_ON_ONCE(domain); domain 87 arch/powerpc/perf/hv-24x7.c static bool catalog_entry_domain_is_valid(unsigned domain) domain 91 arch/powerpc/perf/hv-24x7.c return is_physical_domain(domain); domain 93 arch/powerpc/perf/hv-24x7.c return domain_is_valid(domain); domain 121 arch/powerpc/perf/hv-24x7.c EVENT_DEFINE_RANGE_FORMAT(domain, config, 0, 3); domain 339 arch/powerpc/perf/hv-24x7.c static char *event_fmt(struct hv_24x7_event_data *event, unsigned domain) domain 346 arch/powerpc/perf/hv-24x7.c switch (domain) { domain 348 arch/powerpc/perf/hv-24x7.c snprintf(buf, sizeof(buf), "%d", domain); domain 448 arch/powerpc/perf/hv-24x7.c unsigned domain, domain 455 arch/powerpc/perf/hv-24x7.c if (!domain_is_valid(domain)) { domain 457 arch/powerpc/perf/hv-24x7.c ix, domain); domain 461 arch/powerpc/perf/hv-24x7.c val = event_fmt(event, domain); domain 519 arch/powerpc/perf/hv-24x7.c *attrs = event_to_attr(ix, event, event->domain, nonce); domain 532 arch/powerpc/perf/hv-24x7.c unsigned domain; domain 560 arch/powerpc/perf/hv-24x7.c unsigned domain) domain 571 arch/powerpc/perf/hv-24x7.c result = ev_uniq_ord(name, nl, domain, it->name, it->nl, domain 572 arch/powerpc/perf/hv-24x7.c it->domain); domain 595 arch/powerpc/perf/hv-24x7.c .domain = domain, domain 818 arch/powerpc/perf/hv-24x7.c if (!catalog_entry_domain_is_valid(event->domain)) { domain 820 arch/powerpc/perf/hv-24x7.c event_idx, nl, name, event->domain); domain 868 arch/powerpc/perf/hv-24x7.c if (!catalog_entry_domain_is_valid(event->domain)) domain 872 arch/powerpc/perf/hv-24x7.c nonce = event_uniq_add(&ev_uniq, name, nl, event->domain); domain 1283 arch/powerpc/perf/hv-24x7.c unsigned domain; domain 1315 arch/powerpc/perf/hv-24x7.c domain = event_get_domain(event); domain 1316 arch/powerpc/perf/hv-24x7.c if (domain >= HV_PERF_DOMAIN_MAX) { domain 1317 arch/powerpc/perf/hv-24x7.c pr_devel("invalid domain %d\n", domain); domain 1328 arch/powerpc/perf/hv-24x7.c if (!caps.collect_privileged && (is_physical_domain(domain) || domain 1331 arch/powerpc/perf/hv-24x7.c is_physical_domain(domain), domain 97 arch/powerpc/perf/imc-pmu.c switch(imc_pmu->domain){ domain 1337 arch/powerpc/perf/imc-pmu.c switch (pmu->domain) { domain 1482 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->domain == IMC_DOMAIN_NEST) { domain 1497 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->domain == IMC_DOMAIN_CORE) { domain 1503 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->domain == IMC_DOMAIN_THREAD) { domain 1508 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->domain == IMC_DOMAIN_TRACE) { domain 1537 arch/powerpc/perf/imc-pmu.c switch (pmu_ptr->domain) { domain 1642 arch/powerpc/perf/imc-pmu.c switch (pmu_ptr->domain) { domain 28 arch/powerpc/platforms/powernv/ocxl.c int domain; domain 144 arch/powerpc/platforms/powernv/ocxl.c if (link->domain == pci_domain_nr(dev->bus) && domain 155 arch/powerpc/platforms/powernv/ocxl.c link->domain = pci_domain_nr(dev->bus); domain 244 arch/powerpc/platforms/powernv/ocxl.c link->domain, link->bus, link->dev, i, domain 149 arch/powerpc/platforms/powernv/opal-imc.c static struct imc_pmu *imc_pmu_create(struct device_node *parent, int pmu_index, int domain) domain 156 arch/powerpc/platforms/powernv/opal-imc.c if (domain < 0) domain 165 arch/powerpc/platforms/powernv/opal-imc.c pmu_ptr->domain = domain; domain 181 arch/powerpc/platforms/powernv/opal-imc.c if (pmu_ptr->domain == IMC_DOMAIN_NEST) domain 249 arch/powerpc/platforms/powernv/opal-imc.c int pmu_count = 0, domain; domain 272 arch/powerpc/platforms/powernv/opal-imc.c domain = IMC_DOMAIN_NEST; domain 275 arch/powerpc/platforms/powernv/opal-imc.c domain =IMC_DOMAIN_CORE; domain 278 arch/powerpc/platforms/powernv/opal-imc.c domain = IMC_DOMAIN_THREAD; domain 288 arch/powerpc/platforms/powernv/opal-imc.c domain = -1; domain 292 arch/powerpc/platforms/powernv/opal-imc.c domain = -1; domain 296 arch/powerpc/platforms/powernv/opal-imc.c pmu = imc_pmu_create(imc_dev, pmu_count, domain); domain 298 arch/powerpc/platforms/powernv/opal-imc.c if (domain == IMC_DOMAIN_NEST) { domain 303 arch/powerpc/platforms/powernv/opal-imc.c if (domain == IMC_DOMAIN_CORE) domain 305 arch/powerpc/platforms/powernv/opal-imc.c if (domain == IMC_DOMAIN_THREAD) domain 33 arch/powerpc/platforms/powernv/opal-irqchip.c struct irq_domain *domain; domain 55 arch/powerpc/platforms/powernv/opal-irqchip.c virq = irq_find_mapping(opal_event_irqchip.domain, hwirq); domain 197 arch/powerpc/platforms/powernv/opal-irqchip.c opal_event_irqchip.domain = irq_domain_add_linear(dn, MAX_NUM_EVENTS, domain 200 arch/powerpc/platforms/powernv/opal-irqchip.c if (!opal_event_irqchip.domain) { domain 308 arch/powerpc/platforms/powernv/opal-irqchip.c if (WARN_ON_ONCE(!opal_event_irqchip.domain)) domain 311 arch/powerpc/platforms/powernv/opal-irqchip.c return irq_create_mapping(opal_event_irqchip.domain, opal_event_nr); domain 67 arch/powerpc/sysdev/fsl_msi.c struct fsl_msi *msi_data = irqd->domain->host_data; domain 209 arch/powerpc/sysdev/xics/xics-common.c if (desc->irq_data.domain != xics_host) domain 1417 arch/powerpc/sysdev/xive/common.c if (d->domain != xive_irq_domain || hw_irq == 0) domain 110 arch/s390/include/asm/pci.h u16 domain; domain 98 arch/s390/include/asm/trace/zcrypt.h __field(u16, domain)), domain 104 arch/s390/include/asm/trace/zcrypt.h __entry->domain = dom;), domain 110 arch/s390/include/asm/trace/zcrypt.h (unsigned short) __entry->domain) domain 69 arch/s390/include/uapi/asm/pkey.h __u16 domain; domain 94 arch/s390/include/uapi/asm/pkey.h __u16 domain; /* in: domain or FFFF for any */ domain 105 arch/s390/include/uapi/asm/pkey.h __u16 domain; /* in: domain or FFFF for any */ domain 117 arch/s390/include/uapi/asm/pkey.h __u16 domain; /* in: domain or FFFF for any */ domain 140 arch/s390/include/uapi/asm/pkey.h __u16 domain; /* out: domain number */ domain 164 arch/s390/include/uapi/asm/pkey.h __u16 domain; /* out: domain number */ domain 286 arch/s390/include/uapi/asm/pkey.h __u16 domain; /* in/out: domain number */ domain 119 arch/s390/include/uapi/asm/zcrypt.h unsigned short domain; /* Domain */ domain 99 arch/s390/pci/pci.c return ((struct zpci_dev *) bus->sysdata)->domain; domain 515 arch/s390/pci/pci.c "PCI Bus %04x:%02x", zdev->domain, ZPCI_BUS_NR); domain 655 arch/s390/pci/pci.c zdev->domain = (u16) zdev->uid; domain 656 arch/s390/pci/pci.c if (zdev->domain >= ZPCI_NR_DEVICES) domain 660 arch/s390/pci/pci.c if (test_bit(zdev->domain, zpci_domain)) { domain 664 arch/s390/pci/pci.c set_bit(zdev->domain, zpci_domain); domain 670 arch/s390/pci/pci.c zdev->domain = find_first_zero_bit(zpci_domain, ZPCI_NR_DEVICES); domain 671 arch/s390/pci/pci.c if (zdev->domain == ZPCI_NR_DEVICES) { domain 675 arch/s390/pci/pci.c set_bit(zdev->domain, zpci_domain); domain 682 arch/s390/pci/pci.c if (zdev->domain >= ZPCI_NR_DEVICES) domain 686 arch/s390/pci/pci.c clear_bit(zdev->domain, zpci_domain); domain 85 arch/sh/boards/mach-x3proto/gpio.c static int x3proto_gpio_irq_map(struct irq_domain *domain, unsigned int virq, domain 20 arch/x86/include/asm/device.h void add_dma_domain(struct dma_domain *domain); domain 21 arch/x86/include/asm/device.h void del_dma_domain(struct dma_domain *domain); domain 85 arch/x86/include/asm/hpet.h extern int hpet_assign_irq(struct irq_domain *domain, domain 42 arch/x86/include/asm/irqdomain.h extern int mp_irqdomain_alloc(struct irq_domain *domain, unsigned int virq, domain 44 arch/x86/include/asm/irqdomain.h extern void mp_irqdomain_free(struct irq_domain *domain, unsigned int virq, domain 46 arch/x86/include/asm/irqdomain.h extern int mp_irqdomain_activate(struct irq_domain *domain, domain 48 arch/x86/include/asm/irqdomain.h extern void mp_irqdomain_deactivate(struct irq_domain *domain, domain 50 arch/x86/include/asm/irqdomain.h extern int mp_irqdomain_ioapic_idx(struct irq_domain *domain); domain 54 arch/x86/include/asm/irqdomain.h extern void arch_init_msi_domain(struct irq_domain *domain); domain 56 arch/x86/include/asm/irqdomain.h static inline void arch_init_msi_domain(struct irq_domain *domain) { } domain 9 arch/x86/include/asm/msi.h int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec, domain 18 arch/x86/include/asm/pci.h int domain; /* PCI domain */ domain 45 arch/x86/include/asm/pci.h return sd->domain; domain 103 arch/x86/include/asm/pci_x86.h int (*read)(unsigned int domain, unsigned int bus, unsigned int devfn, domain 105 arch/x86/include/asm/pci_x86.h int (*write)(unsigned int domain, unsigned int bus, unsigned int devfn, domain 139 arch/x86/include/asm/uv/bios.h extern int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus); domain 20 arch/x86/include/asm/xen/pci.h int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain); domain 32 arch/x86/include/asm/xen/pci.h uint16_t domain) domain 959 arch/x86/kernel/apic/io_apic.c static int alloc_irq_from_domain(struct irq_domain *domain, int ioapic, u32 gsi, domain 986 arch/x86/kernel/apic/io_apic.c return __irq_domain_alloc_irqs(domain, irq, 1, domain 1001 arch/x86/kernel/apic/io_apic.c static int alloc_isa_irq_from_domain(struct irq_domain *domain, domain 1022 arch/x86/kernel/apic/io_apic.c irq = __irq_domain_alloc_irqs(domain, irq, 1, node, info, true, domain 1025 arch/x86/kernel/apic/io_apic.c irq_data = irq_domain_get_irq_data(domain, irq); domain 1041 arch/x86/kernel/apic/io_apic.c struct irq_domain *domain = mp_ioapic_irqdomain(ioapic); domain 1043 arch/x86/kernel/apic/io_apic.c if (!domain) domain 1054 arch/x86/kernel/apic/io_apic.c irq = irq_find_mapping(domain, pin); domain 1061 arch/x86/kernel/apic/io_apic.c irq = alloc_isa_irq_from_domain(domain, irq, domain 1063 arch/x86/kernel/apic/io_apic.c else if ((irq = irq_find_mapping(domain, pin)) == 0) domain 1064 arch/x86/kernel/apic/io_apic.c irq = alloc_irq_from_domain(domain, ioapic, gsi, &tmp); domain 1131 arch/x86/kernel/apic/io_apic.c if (!irq_data || !irq_data->domain) domain 2102 arch/x86/kernel/apic/io_apic.c struct irq_domain *domain = mp_ioapic_irqdomain(ioapic); domain 2104 arch/x86/kernel/apic/io_apic.c if (domain) { domain 2111 arch/x86/kernel/apic/io_apic.c irq = alloc_isa_irq_from_domain(domain, 0, ioapic, pin, &info); domain 2974 arch/x86/kernel/apic/io_apic.c int mp_irqdomain_alloc(struct irq_domain *domain, unsigned int virq, domain 2986 arch/x86/kernel/apic/io_apic.c irq_data = irq_domain_get_irq_data(domain, virq); domain 2990 arch/x86/kernel/apic/io_apic.c ioapic = mp_irqdomain_ioapic_idx(domain); domain 2992 arch/x86/kernel/apic/io_apic.c if (irq_find_mapping(domain, (irq_hw_number_t)pin) > 0) domain 3000 arch/x86/kernel/apic/io_apic.c ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, info); domain 3008 arch/x86/kernel/apic/io_apic.c irq_data->chip = (domain->parent == x86_vector_domain) ? domain 3032 arch/x86/kernel/apic/io_apic.c void mp_irqdomain_free(struct irq_domain *domain, unsigned int virq, domain 3039 arch/x86/kernel/apic/io_apic.c irq_data = irq_domain_get_irq_data(domain, virq); domain 3042 arch/x86/kernel/apic/io_apic.c __remove_pin_from_irq(data, mp_irqdomain_ioapic_idx(domain), domain 3047 arch/x86/kernel/apic/io_apic.c irq_domain_free_irqs_top(domain, virq, nr_irqs); domain 3050 arch/x86/kernel/apic/io_apic.c int mp_irqdomain_activate(struct irq_domain *domain, domain 3061 arch/x86/kernel/apic/io_apic.c void mp_irqdomain_deactivate(struct irq_domain *domain, domain 3065 arch/x86/kernel/apic/io_apic.c ioapic_mask_entry(mp_irqdomain_ioapic_idx(domain), domain 3069 arch/x86/kernel/apic/io_apic.c int mp_irqdomain_ioapic_idx(struct irq_domain *domain) domain 3071 arch/x86/kernel/apic/io_apic.c return (int)(long)domain->host_data; domain 186 arch/x86/kernel/apic/msi.c struct irq_domain *domain; domain 193 arch/x86/kernel/apic/msi.c domain = irq_remapping_get_irq_domain(&info); domain 194 arch/x86/kernel/apic/msi.c if (domain == NULL) domain 195 arch/x86/kernel/apic/msi.c domain = msi_default_domain; domain 196 arch/x86/kernel/apic/msi.c if (domain == NULL) domain 199 arch/x86/kernel/apic/msi.c return msi_domain_alloc_irqs(domain, &dev->dev, nvec); domain 213 arch/x86/kernel/apic/msi.c int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec, domain 332 arch/x86/kernel/apic/msi.c static int dmar_msi_init(struct irq_domain *domain, domain 336 arch/x86/kernel/apic/msi.c irq_domain_set_info(domain, virq, arg->dmar_id, info->chip, NULL, domain 375 arch/x86/kernel/apic/msi.c struct irq_domain *domain = dmar_get_irq_domain(); domain 378 arch/x86/kernel/apic/msi.c if (!domain) domain 386 arch/x86/kernel/apic/msi.c return irq_domain_alloc_irqs(domain, 1, node, &info); domain 399 arch/x86/kernel/apic/msi.c static inline int hpet_dev_id(struct irq_domain *domain) domain 401 arch/x86/kernel/apic/msi.c struct msi_domain_info *info = msi_get_domain_info(domain); domain 429 arch/x86/kernel/apic/msi.c static int hpet_msi_init(struct irq_domain *domain, domain 434 arch/x86/kernel/apic/msi.c irq_domain_set_info(domain, virq, arg->hpet_index, info->chip, NULL, domain 440 arch/x86/kernel/apic/msi.c static void hpet_msi_free(struct irq_domain *domain, domain 495 arch/x86/kernel/apic/msi.c int hpet_assign_irq(struct irq_domain *domain, struct hpet_channel *hc, domain 503 arch/x86/kernel/apic/msi.c info.hpet_id = hpet_dev_id(domain); domain 506 arch/x86/kernel/apic/msi.c return irq_domain_alloc_irqs(domain, 1, NUMA_NO_NODE, &info); domain 478 arch/x86/kernel/apic/vector.c static void x86_vector_free_irqs(struct irq_domain *domain, domain 528 arch/x86/kernel/apic/vector.c static int x86_vector_alloc_irqs(struct irq_domain *domain, unsigned int virq, domain 544 arch/x86/kernel/apic/vector.c irqd = irq_domain_get_irq_data(domain, virq + i); domain 583 arch/x86/kernel/apic/vector.c x86_vector_free_irqs(domain, virq, i); domain 1065 arch/x86/kernel/apic/x2apic_uv_x.c int domain, bus, rc; domain 1073 arch/x86/kernel/apic/x2apic_uv_x.c domain = pci_domain_nr(pdev->bus); domain 1076 arch/x86/kernel/apic/x2apic_uv_x.c rc = uv_bios_set_legacy_vga_target(decode, domain, bus); domain 214 arch/x86/kernel/devicetree.c static int dt_irqdomain_alloc(struct irq_domain *domain, unsigned int virq, domain 231 arch/x86/kernel/devicetree.c tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain)); domain 234 arch/x86/kernel/devicetree.c return mp_irqdomain_alloc(domain, virq, nr_irqs, &tmp); domain 200 arch/x86/pci/acpi.c seg = info->sd.domain; domain 229 arch/x86/pci/acpi.c pci_mmconfig_delete(info->sd.domain, domain 328 arch/x86/pci/acpi.c int domain = root->segment; domain 334 arch/x86/pci/acpi.c root->segment = domain = 0; domain 336 arch/x86/pci/acpi.c if (domain && !pci_domains_supported) { domain 339 arch/x86/pci/acpi.c domain, busnum); domain 343 arch/x86/pci/acpi.c bus = pci_find_bus(domain, busnum); domain 350 arch/x86/pci/acpi.c .domain = domain, domain 363 arch/x86/pci/acpi.c domain, busnum); domain 365 arch/x86/pci/acpi.c info->sd.domain = domain; domain 39 arch/x86/pci/common.c int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, domain 42 arch/x86/pci/common.c if (domain == 0 && reg < 256 && raw_pci_ops) domain 43 arch/x86/pci/common.c return raw_pci_ops->read(domain, bus, devfn, reg, len, val); domain 45 arch/x86/pci/common.c return raw_pci_ext_ops->read(domain, bus, devfn, reg, len, val); domain 49 arch/x86/pci/common.c int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn, domain 52 arch/x86/pci/common.c if (domain == 0 && reg < 256 && raw_pci_ops) domain 53 arch/x86/pci/common.c return raw_pci_ops->write(domain, bus, devfn, reg, len, val); domain 55 arch/x86/pci/common.c return raw_pci_ext_ops->write(domain, bus, devfn, reg, len, val); domain 632 arch/x86/pci/common.c void add_dma_domain(struct dma_domain *domain) domain 635 arch/x86/pci/common.c list_add(&domain->node, &dma_domain_list); domain 640 arch/x86/pci/common.c void del_dma_domain(struct dma_domain *domain) domain 643 arch/x86/pci/common.c list_del(&domain->node); domain 650 arch/x86/pci/common.c struct dma_domain *domain; domain 653 arch/x86/pci/common.c list_for_each_entry(domain, &dma_domain_list, node) { domain 654 arch/x86/pci/common.c if (pci_domain_nr(pdev->bus) == domain->domain_nr) { domain 655 arch/x86/pci/common.c pdev->dev.dma_ops = domain->dma_ops; domain 98 arch/x86/pci/intel_mid_pci.c unsigned int domain, busnum; domain 101 arch/x86/pci/intel_mid_pci.c domain = pci_domain_nr(bus); domain 107 arch/x86/pci/intel_mid_pci.c raw_pci_ext_ops->read(domain, busnum, devfn, domain 130 arch/x86/pci/intel_mid_pci.c return raw_pci_ext_ops->write(domain, busnum, devfn, reg, 4, domain 135 arch/x86/pci/intel_mid_pci.c return raw_pci_ext_ops->write(domain, busnum, devfn, reg, len, val); domain 506 arch/x86/pci/xen.c domid_t domain; domain 528 arch/x86/pci/xen.c int domain = -ENODEV; domain 533 arch/x86/pci/xen.c domain = owner->domain; domain 535 arch/x86/pci/xen.c return domain; domain 539 arch/x86/pci/xen.c int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain) domain 553 arch/x86/pci/xen.c owner->domain = domain; domain 180 arch/x86/platform/uv/bios_uv.c int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus) domain 183 arch/x86/platform/uv/bios_uv.c (u64)decode, (u64)domain, (u64)bus, 0, 0); domain 75 arch/x86/platform/uv/uv_irq.c static int uv_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 80 arch/x86/platform/uv/uv_irq.c struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); domain 91 arch/x86/platform/uv/uv_irq.c ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); domain 100 arch/x86/platform/uv/uv_irq.c irq_domain_set_info(domain, virq, virq, &uv_irq_chip, chip_data, domain 109 arch/x86/platform/uv/uv_irq.c static void uv_domain_free(struct irq_domain *domain, unsigned int virq, domain 112 arch/x86/platform/uv/uv_irq.c struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); domain 118 arch/x86/platform/uv/uv_irq.c irq_domain_free_irqs_top(domain, virq, nr_irqs); domain 125 arch/x86/platform/uv/uv_irq.c static int uv_domain_activate(struct irq_domain *domain, domain 136 arch/x86/platform/uv/uv_irq.c static void uv_domain_deactivate(struct irq_domain *domain, domain 188 arch/x86/platform/uv/uv_irq.c struct irq_domain *domain = uv_get_irq_domain(); domain 190 arch/x86/platform/uv/uv_irq.c if (!domain) domain 200 arch/x86/platform/uv/uv_irq.c return irq_domain_alloc_irqs(domain, 1, domain 859 block/kyber-iosched.c #define KYBER_LAT_SHOW_STORE(domain, name) \ domain 865 block/kyber-iosched.c return sprintf(page, "%llu\n", kqd->latency_targets[domain]); \ domain 879 block/kyber-iosched.c kqd->latency_targets[domain] = nsec; \ domain 896 block/kyber-iosched.c #define KYBER_DEBUGFS_DOMAIN_ATTRS(domain, name) \ domain 902 block/kyber-iosched.c sbitmap_queue_show(&kqd->domain_tokens[domain], m); \ domain 913 block/kyber-iosched.c return seq_list_start(&khd->rqs[domain], *pos); \ domain 922 block/kyber-iosched.c return seq_list_next(v, &khd->rqs[domain], pos); \ domain 945 block/kyber-iosched.c wait_queue_entry_t *wait = &khd->domain_wait[domain].wait; \ domain 653 drivers/acpi/arm64/iort.c struct irq_domain *domain; domain 684 drivers/acpi/arm64/iort.c domain = irq_find_matching_fwnode(iort_fwnode, DOMAIN_BUS_PLATFORM_MSI); domain 685 drivers/acpi/arm64/iort.c if (domain) domain 686 drivers/acpi/arm64/iort.c dev_set_msi_domain(dev, domain); domain 480 drivers/acpi/cppc_acpi.c if (match_pdomain->domain != pdomain->domain) domain 513 drivers/acpi/cppc_acpi.c if (match_pdomain->domain != pdomain->domain) domain 259 drivers/acpi/irq.c struct irq_domain *domain; domain 267 drivers/acpi/irq.c domain = irq_find_matching_fwnode(fwspec.fwnode, DOMAIN_BUS_ANY); domain 268 drivers/acpi/irq.c if (!domain) domain 665 drivers/acpi/processor_perflib.c if (match_pdomain->domain != pdomain->domain) domain 693 drivers/acpi/processor_perflib.c if (match_pdomain->domain != pdomain->domain) domain 126 drivers/acpi/processor_throttling.c if (match_pdomain->domain != pdomain->domain) domain 159 drivers/acpi/processor_throttling.c if (match_pdomain->domain != pdomain->domain) domain 32 drivers/base/map.c int kobj_map(struct kobj_map *domain, dev_t dev, unsigned long range, domain 56 drivers/base/map.c mutex_lock(domain->lock); domain 58 drivers/base/map.c struct probe **s = &domain->probes[index % 255]; domain 64 drivers/base/map.c mutex_unlock(domain->lock); domain 68 drivers/base/map.c void kobj_unmap(struct kobj_map *domain, dev_t dev, unsigned long range) domain 78 drivers/base/map.c mutex_lock(domain->lock); domain 81 drivers/base/map.c for (s = &domain->probes[index % 255]; *s; s = &(*s)->next) { domain 91 drivers/base/map.c mutex_unlock(domain->lock); domain 95 drivers/base/map.c struct kobject *kobj_lookup(struct kobj_map *domain, dev_t dev, int *index) domain 102 drivers/base/map.c mutex_lock(domain->lock); domain 103 drivers/base/map.c for (p = domain->probes[MAJOR(dev) % 255]; p; p = p->next) { domain 123 drivers/base/map.c mutex_unlock(domain->lock); domain 131 drivers/base/map.c mutex_unlock(domain->lock); domain 54 drivers/base/platform-msi.c static int platform_msi_init(struct irq_domain *domain, domain 59 drivers/base/platform-msi.c return irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 181 drivers/base/platform-msi.c struct irq_domain *domain; domain 188 drivers/base/platform-msi.c domain = msi_create_irq_domain(fwnode, info, parent); domain 189 drivers/base/platform-msi.c if (domain) domain 190 drivers/base/platform-msi.c irq_domain_update_bus_token(domain, DOMAIN_BUS_PLATFORM_MSI); domain 192 drivers/base/platform-msi.c return domain; domain 306 drivers/base/platform-msi.c void *platform_msi_get_host_data(struct irq_domain *domain) domain 308 drivers/base/platform-msi.c struct platform_msi_priv_data *data = domain->host_data; domain 332 drivers/base/platform-msi.c struct irq_domain *domain; domain 340 drivers/base/platform-msi.c domain = irq_domain_create_hierarchy(dev->msi_domain, 0, domain 343 drivers/base/platform-msi.c if (!domain) domain 346 drivers/base/platform-msi.c err = msi_domain_prepare_irqs(domain->parent, dev, nvec, &data->arg); domain 350 drivers/base/platform-msi.c return domain; domain 353 drivers/base/platform-msi.c irq_domain_remove(domain); domain 367 drivers/base/platform-msi.c void platform_msi_domain_free(struct irq_domain *domain, unsigned int virq, domain 370 drivers/base/platform-msi.c struct platform_msi_priv_data *data = domain->host_data; domain 378 drivers/base/platform-msi.c irq_domain_free_irqs_common(domain, desc->irq, 1); domain 396 drivers/base/platform-msi.c int platform_msi_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 399 drivers/base/platform-msi.c struct platform_msi_priv_data *data = domain->host_data; domain 406 drivers/base/platform-msi.c err = msi_domain_populate_irqs(domain->parent, data->dev, domain 409 drivers/base/platform-msi.c platform_msi_domain_free(domain, virq, nr_irqs); domain 539 drivers/base/power/domain.c if (!genpd->gov->power_down_ok(&genpd->domain)) domain 1522 drivers/base/power/domain.c dev_pm_domain_set(dev, &genpd->domain); domain 1798 drivers/base/power/domain.c genpd->domain.ops.runtime_suspend = genpd_runtime_suspend; domain 1799 drivers/base/power/domain.c genpd->domain.ops.runtime_resume = genpd_runtime_resume; domain 1800 drivers/base/power/domain.c genpd->domain.ops.prepare = genpd_prepare; domain 1801 drivers/base/power/domain.c genpd->domain.ops.suspend_noirq = genpd_suspend_noirq; domain 1802 drivers/base/power/domain.c genpd->domain.ops.resume_noirq = genpd_resume_noirq; domain 1803 drivers/base/power/domain.c genpd->domain.ops.freeze_noirq = genpd_freeze_noirq; domain 1804 drivers/base/power/domain.c genpd->domain.ops.thaw_noirq = genpd_thaw_noirq; domain 1805 drivers/base/power/domain.c genpd->domain.ops.poweroff_noirq = genpd_poweroff_noirq; domain 1806 drivers/base/power/domain.c genpd->domain.ops.restore_noirq = genpd_restore_noirq; domain 1807 drivers/base/power/domain.c genpd->domain.ops.complete = genpd_complete; domain 246 drivers/base/power/domain_governor.c static bool always_on_power_down_ok(struct dev_pm_domain *domain) domain 28 drivers/base/regmap/regmap-irq.c struct irq_domain *domain; domain 506 drivers/base/regmap/regmap-irq.c handle_nested_irq(irq_find_mapping(data->domain, i)); domain 772 drivers/base/regmap/regmap-irq.c d->domain = irq_domain_add_legacy(map->dev->of_node, domain 776 drivers/base/regmap/regmap-irq.c d->domain = irq_domain_add_linear(map->dev->of_node, domain 779 drivers/base/regmap/regmap-irq.c if (!d->domain) { domain 841 drivers/base/regmap/regmap-irq.c virq = irq_find_mapping(d->domain, hwirq); domain 846 drivers/base/regmap/regmap-irq.c irq_domain_remove(d->domain); domain 971 drivers/base/regmap/regmap-irq.c return irq_create_mapping(data->domain, irq); domain 988 drivers/base/regmap/regmap-irq.c return data->domain; domain 116 drivers/bcma/driver_gpio.c generic_handle_irq(irq_find_mapping(gc->irq.domain, gpio)); domain 164 drivers/bus/fsl-mc/fsl-mc-msi.c struct irq_domain *domain; domain 173 drivers/bus/fsl-mc/fsl-mc-msi.c domain = msi_create_irq_domain(fwnode, info, parent); domain 174 drivers/bus/fsl-mc/fsl-mc-msi.c if (domain) domain 175 drivers/bus/fsl-mc/fsl-mc-msi.c irq_domain_update_bus_token(domain, DOMAIN_BUS_FSL_MC_MSI); domain 177 drivers/bus/fsl-mc/fsl-mc-msi.c return domain; domain 708 drivers/bus/moxtet.c sub_irq = irq_find_mapping(moxtet->irq.domain, i); domain 731 drivers/bus/moxtet.c irq = irq_find_mapping(moxtet->irq.domain, i); domain 736 drivers/bus/moxtet.c irq_domain_remove(moxtet->irq.domain); domain 743 drivers/bus/moxtet.c moxtet->irq.domain = irq_domain_add_simple(moxtet->dev->of_node, domain 746 drivers/bus/moxtet.c if (moxtet->irq.domain == NULL) { domain 753 drivers/bus/moxtet.c irq_create_mapping(moxtet->irq.domain, i); domain 43 drivers/clk/qcom/gdsc.c #define domain_to_gdsc(domain) container_of(domain, struct gdsc, pd) domain 205 drivers/clk/qcom/gdsc.c static int gdsc_enable(struct generic_pm_domain *domain) domain 207 drivers/clk/qcom/gdsc.c struct gdsc *sc = domain_to_gdsc(domain); domain 260 drivers/clk/qcom/gdsc.c static int gdsc_disable(struct generic_pm_domain *domain) domain 262 drivers/clk/qcom/gdsc.c struct gdsc *sc = domain_to_gdsc(domain); domain 153 drivers/clk/qcom/gpucc-sdm845.c static int gx_gdsc_enable(struct generic_pm_domain *domain) domain 112 drivers/clocksource/ingenic-timer.c struct irq_domain *domain; domain 130 drivers/clocksource/ingenic-timer.c domain = irq_find_host(np); domain 131 drivers/clocksource/ingenic-timer.c if (!domain) { domain 136 drivers/clocksource/ingenic-timer.c timer_virq = irq_create_mapping(domain, channel); domain 82 drivers/cpufreq/scmi-cpufreq.c int cpu, domain, tdomain; domain 85 drivers/cpufreq/scmi-cpufreq.c domain = handle->perf_ops->device_domain_id(cpu_dev); domain 86 drivers/cpufreq/scmi-cpufreq.c if (domain < 0) domain 87 drivers/cpufreq/scmi-cpufreq.c return domain; domain 98 drivers/cpufreq/scmi-cpufreq.c if (tdomain == domain) domain 110 drivers/cpufreq/scmi-cpufreq.c int ret, domain; domain 117 drivers/cpufreq/scmi-cpufreq.c domain = handle->perf_ops->device_domain_id(cpu_dev); domain 118 drivers/cpufreq/scmi-cpufreq.c if (domain < 0) domain 119 drivers/cpufreq/scmi-cpufreq.c return domain; domain 123 drivers/cpufreq/scmi-cpufreq.c ret = handle->perf_ops->est_power_get(handle, domain, &Hz, power); domain 74 drivers/cpufreq/scpi-cpufreq.c int cpu, domain, tdomain; domain 77 drivers/cpufreq/scpi-cpufreq.c domain = scpi_ops->device_domain_id(cpu_dev); domain 78 drivers/cpufreq/scpi-cpufreq.c if (domain < 0) domain 79 drivers/cpufreq/scpi-cpufreq.c return domain; domain 90 drivers/cpufreq/scpi-cpufreq.c if (tdomain == domain) domain 90 drivers/crypto/caam/caamalg_qi2.c phys_addr = priv->domain ? iommu_iova_to_phys(priv->domain, iova_addr) : domain 5122 drivers/crypto/caam/caamalg_qi2.c priv->domain = iommu_get_domain_for_dev(dev); domain 65 drivers/crypto/caam/caamalg_qi2.h struct iommu_domain *domain; domain 727 drivers/crypto/caam/ctrl.c ctrlpriv->domain = iommu_get_domain_for_dev(dev); domain 76 drivers/crypto/caam/intern.h struct iommu_domain *domain; domain 97 drivers/crypto/caam/qi.c static void *caam_iova_to_virt(struct iommu_domain *domain, domain 102 drivers/crypto/caam/qi.c phys_addr = domain ? iommu_iova_to_phys(domain, iova_addr) : iova_addr; domain 156 drivers/crypto/caam/qi.c drv_req = caam_iova_to_virt(priv->domain, qm_fd_addr_get64(fd)); domain 590 drivers/crypto/caam/qi.c drv_req = caam_iova_to_virt(priv->domain, qm_fd_addr_get64(fd)); domain 373 drivers/crypto/hisilicon/sec/sec_drv.c struct iommu_domain *domain; domain 376 drivers/crypto/hisilicon/sec/sec_drv.c domain = iommu_get_domain_for_dev(info->dev); domain 379 drivers/crypto/hisilicon/sec/sec_drv.c if (domain && (domain->type & __IOMMU_DOMAIN_PAGING)) domain 921 drivers/crypto/hisilicon/sec/sec_drv.c struct iommu_domain *domain; domain 926 drivers/crypto/hisilicon/sec/sec_drv.c domain = iommu_get_domain_for_dev(info->dev); domain 932 drivers/crypto/hisilicon/sec/sec_drv.c if (domain && (domain->type & __IOMMU_DOMAIN_PAGING)) domain 972 drivers/crypto/hisilicon/sec/sec_drv.c if (domain && (domain->type & __IOMMU_DOMAIN_PAGING)) { domain 44 drivers/dca/dca-core.c struct dca_domain *domain; domain 46 drivers/dca/dca-core.c domain = kzalloc(sizeof(*domain), GFP_NOWAIT); domain 47 drivers/dca/dca-core.c if (!domain) domain 50 drivers/dca/dca-core.c INIT_LIST_HEAD(&domain->dca_providers); domain 51 drivers/dca/dca-core.c domain->pci_rc = rc; domain 53 drivers/dca/dca-core.c return domain; domain 56 drivers/dca/dca-core.c static void dca_free_domain(struct dca_domain *domain) domain 58 drivers/dca/dca-core.c list_del(&domain->node); domain 59 drivers/dca/dca-core.c kfree(domain); domain 81 drivers/dca/dca-core.c struct dca_domain *domain; domain 97 drivers/dca/dca-core.c domain = list_first_entry(&dca_domains, struct dca_domain, node); domain 99 drivers/dca/dca-core.c list_for_each_entry_safe(dca, _dca, &domain->dca_providers, node) domain 102 drivers/dca/dca-core.c dca_free_domain(domain); domain 114 drivers/dca/dca-core.c struct dca_domain *domain; domain 116 drivers/dca/dca-core.c list_for_each_entry(domain, &dca_domains, node) domain 117 drivers/dca/dca-core.c if (domain->pci_rc == rc) domain 118 drivers/dca/dca-core.c return domain; domain 126 drivers/dca/dca-core.c struct dca_domain *domain; domain 129 drivers/dca/dca-core.c domain = dca_find_domain(rc); domain 131 drivers/dca/dca-core.c if (!domain) { domain 136 drivers/dca/dca-core.c return domain; domain 143 drivers/dca/dca-core.c struct dca_domain *domain; domain 147 drivers/dca/dca-core.c domain = dca_find_domain(rc); domain 148 drivers/dca/dca-core.c if (!domain) domain 152 drivers/dca/dca-core.c domain = list_first_entry(&dca_domains, domain 159 drivers/dca/dca-core.c list_for_each_entry(dca, &domain->dca_providers, node) domain 176 drivers/dca/dca-core.c struct dca_domain *domain; domain 191 drivers/dca/dca-core.c domain = dca_find_domain(pci_rc); domain 192 drivers/dca/dca-core.c if (!domain) { domain 197 drivers/dca/dca-core.c list_for_each_entry(dca, &domain->dca_providers, node) { domain 344 drivers/dca/dca-core.c struct dca_domain *domain, *newdomain = NULL; domain 358 drivers/dca/dca-core.c domain = dca_get_domain(dev); domain 359 drivers/dca/dca-core.c if (!domain) { domain 376 drivers/dca/dca-core.c domain = dca_get_domain(dev); domain 377 drivers/dca/dca-core.c if (!domain) { domain 378 drivers/dca/dca-core.c domain = newdomain; domain 380 drivers/dca/dca-core.c list_add(&domain->node, &dca_domains); domain 383 drivers/dca/dca-core.c list_add(&dca->node, &domain->dca_providers); domain 401 drivers/dca/dca-core.c struct dca_domain *domain; domain 416 drivers/dca/dca-core.c domain = dca_find_domain(pci_rc); domain 417 drivers/dca/dca-core.c if (list_empty(&domain->dca_providers)) domain 418 drivers/dca/dca-core.c dca_free_domain(domain); domain 1902 drivers/edac/altera_edac.c irq = irq_linear_revmap(edac->domain, dberr * 32 + bit); domain 2219 drivers/edac/altera_edac.c edac->domain = irq_domain_add_linear(pdev->dev.of_node, 64, domain 2221 drivers/edac/altera_edac.c if (!edac->domain) { domain 392 drivers/edac/altera_edac.h struct irq_domain *domain; domain 341 drivers/edac/sb_edac.c enum domain dom; domain 358 drivers/edac/sb_edac.c enum domain dom; domain 398 drivers/edac/sb_edac.c #define PCI_DESCR(device_id, opt, domain) \ domain 401 drivers/edac/sb_edac.c .dom = domain domain 732 drivers/edac/sb_edac.c static struct sbridge_dev *get_sbridge_dev(int seg, u8 bus, enum domain dom, domain 759 drivers/edac/sb_edac.c static struct sbridge_dev *alloc_sbridge_dev(int seg, u8 bus, enum domain dom, domain 59 drivers/firmware/arm_scmi/perf.c __le32 domain; domain 64 drivers/firmware/arm_scmi/perf.c __le32 domain; domain 75 drivers/firmware/arm_scmi/perf.c __le32 domain; domain 80 drivers/firmware/arm_scmi/perf.c __le32 domain; domain 96 drivers/firmware/arm_scmi/perf.c __le32 domain; domain 185 drivers/firmware/arm_scmi/perf.c scmi_perf_domain_attributes_get(const struct scmi_handle *handle, u32 domain, domain 193 drivers/firmware/arm_scmi/perf.c SCMI_PROTOCOL_PERF, sizeof(domain), domain 198 drivers/firmware/arm_scmi/perf.c put_unaligned_le32(domain, t->tx.buf); domain 237 drivers/firmware/arm_scmi/perf.c scmi_perf_describe_levels_get(const struct scmi_handle *handle, u32 domain, domain 257 drivers/firmware/arm_scmi/perf.c dom_info->domain = cpu_to_le32(domain); domain 331 drivers/firmware/arm_scmi/perf.c static int scmi_perf_mb_limits_set(const struct scmi_handle *handle, u32 domain, domain 344 drivers/firmware/arm_scmi/perf.c limits->domain = cpu_to_le32(domain); domain 354 drivers/firmware/arm_scmi/perf.c static int scmi_perf_limits_set(const struct scmi_handle *handle, u32 domain, domain 358 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; domain 367 drivers/firmware/arm_scmi/perf.c return scmi_perf_mb_limits_set(handle, domain, max_perf, min_perf); domain 370 drivers/firmware/arm_scmi/perf.c static int scmi_perf_mb_limits_get(const struct scmi_handle *handle, u32 domain, domain 382 drivers/firmware/arm_scmi/perf.c put_unaligned_le32(domain, t->tx.buf); domain 396 drivers/firmware/arm_scmi/perf.c static int scmi_perf_limits_get(const struct scmi_handle *handle, u32 domain, domain 400 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; domain 408 drivers/firmware/arm_scmi/perf.c return scmi_perf_mb_limits_get(handle, domain, max_perf, min_perf); domain 411 drivers/firmware/arm_scmi/perf.c static int scmi_perf_mb_level_set(const struct scmi_handle *handle, u32 domain, domain 425 drivers/firmware/arm_scmi/perf.c lvl->domain = cpu_to_le32(domain); domain 434 drivers/firmware/arm_scmi/perf.c static int scmi_perf_level_set(const struct scmi_handle *handle, u32 domain, domain 438 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; domain 446 drivers/firmware/arm_scmi/perf.c return scmi_perf_mb_level_set(handle, domain, level, poll); domain 449 drivers/firmware/arm_scmi/perf.c static int scmi_perf_mb_level_get(const struct scmi_handle *handle, u32 domain, domain 461 drivers/firmware/arm_scmi/perf.c put_unaligned_le32(domain, t->tx.buf); domain 471 drivers/firmware/arm_scmi/perf.c static int scmi_perf_level_get(const struct scmi_handle *handle, u32 domain, domain 475 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; domain 482 drivers/firmware/arm_scmi/perf.c return scmi_perf_mb_level_get(handle, domain, level, poll); domain 495 drivers/firmware/arm_scmi/perf.c scmi_perf_domain_desc_fc(const struct scmi_handle *handle, u32 domain, domain 519 drivers/firmware/arm_scmi/perf.c info->domain = cpu_to_le32(domain); domain 564 drivers/firmware/arm_scmi/perf.c u32 domain, struct scmi_fc_info **p_fc) domain 572 drivers/firmware/arm_scmi/perf.c scmi_perf_domain_desc_fc(handle, domain, PERF_LEVEL_SET, domain 574 drivers/firmware/arm_scmi/perf.c scmi_perf_domain_desc_fc(handle, domain, PERF_LEVEL_GET, domain 576 drivers/firmware/arm_scmi/perf.c scmi_perf_domain_desc_fc(handle, domain, PERF_LIMITS_SET, domain 578 drivers/firmware/arm_scmi/perf.c scmi_perf_domain_desc_fc(handle, domain, PERF_LIMITS_GET, domain 598 drivers/firmware/arm_scmi/perf.c int idx, ret, domain; domain 604 drivers/firmware/arm_scmi/perf.c domain = scmi_dev_domain_id(dev); domain 605 drivers/firmware/arm_scmi/perf.c if (domain < 0) domain 606 drivers/firmware/arm_scmi/perf.c return domain; domain 608 drivers/firmware/arm_scmi/perf.c dom = pi->dom_info + domain; domain 632 drivers/firmware/arm_scmi/perf.c int domain = scmi_dev_domain_id(dev); domain 634 drivers/firmware/arm_scmi/perf.c if (domain < 0) domain 635 drivers/firmware/arm_scmi/perf.c return domain; domain 637 drivers/firmware/arm_scmi/perf.c dom = pi->dom_info + domain; domain 642 drivers/firmware/arm_scmi/perf.c static int scmi_dvfs_freq_set(const struct scmi_handle *handle, u32 domain, domain 646 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; domain 648 drivers/firmware/arm_scmi/perf.c return scmi_perf_level_set(handle, domain, freq / dom->mult_factor, domain 652 drivers/firmware/arm_scmi/perf.c static int scmi_dvfs_freq_get(const struct scmi_handle *handle, u32 domain, domain 658 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pi->dom_info + domain; domain 660 drivers/firmware/arm_scmi/perf.c ret = scmi_perf_level_get(handle, domain, &level, poll); domain 667 drivers/firmware/arm_scmi/perf.c static int scmi_dvfs_est_power_get(const struct scmi_handle *handle, u32 domain, domain 676 drivers/firmware/arm_scmi/perf.c dom = pi->dom_info + domain; domain 709 drivers/firmware/arm_scmi/perf.c int domain; domain 729 drivers/firmware/arm_scmi/perf.c for (domain = 0; domain < pinfo->num_domains; domain++) { domain 730 drivers/firmware/arm_scmi/perf.c struct perf_dom_info *dom = pinfo->dom_info + domain; domain 732 drivers/firmware/arm_scmi/perf.c scmi_perf_domain_attributes_get(handle, domain, dom); domain 733 drivers/firmware/arm_scmi/perf.c scmi_perf_describe_levels_get(handle, domain, dom); domain 736 drivers/firmware/arm_scmi/perf.c scmi_perf_domain_init_fc(handle, domain, &dom->fc_info); domain 36 drivers/firmware/arm_scmi/power.c __le32 domain; domain 41 drivers/firmware/arm_scmi/power.c __le32 domain; domain 86 drivers/firmware/arm_scmi/power.c scmi_power_domain_attributes_get(const struct scmi_handle *handle, u32 domain, domain 94 drivers/firmware/arm_scmi/power.c SCMI_PROTOCOL_POWER, sizeof(domain), domain 99 drivers/firmware/arm_scmi/power.c put_unaligned_le32(domain, t->tx.buf); domain 117 drivers/firmware/arm_scmi/power.c scmi_power_state_set(const struct scmi_handle *handle, u32 domain, u32 state) domain 130 drivers/firmware/arm_scmi/power.c st->domain = cpu_to_le32(domain); domain 140 drivers/firmware/arm_scmi/power.c scmi_power_state_get(const struct scmi_handle *handle, u32 domain, u32 *state) domain 150 drivers/firmware/arm_scmi/power.c put_unaligned_le32(domain, t->tx.buf); domain 167 drivers/firmware/arm_scmi/power.c static char *scmi_power_name_get(const struct scmi_handle *handle, u32 domain) domain 170 drivers/firmware/arm_scmi/power.c struct power_dom_info *dom = pi->dom_info + domain; domain 184 drivers/firmware/arm_scmi/power.c int domain; domain 204 drivers/firmware/arm_scmi/power.c for (domain = 0; domain < pinfo->num_domains; domain++) { domain 205 drivers/firmware/arm_scmi/power.c struct power_dom_info *dom = pinfo->dom_info + domain; domain 207 drivers/firmware/arm_scmi/power.c scmi_power_domain_attributes_get(handle, domain, dom); domain 78 drivers/firmware/arm_scmi/reset.c scmi_reset_domain_attributes_get(const struct scmi_handle *handle, u32 domain, domain 86 drivers/firmware/arm_scmi/reset.c SCMI_PROTOCOL_RESET, sizeof(domain), domain 91 drivers/firmware/arm_scmi/reset.c put_unaligned_le32(domain, t->tx.buf); domain 117 drivers/firmware/arm_scmi/reset.c static char *scmi_reset_name_get(const struct scmi_handle *handle, u32 domain) domain 120 drivers/firmware/arm_scmi/reset.c struct reset_dom_info *dom = pi->dom_info + domain; domain 125 drivers/firmware/arm_scmi/reset.c static int scmi_reset_latency_get(const struct scmi_handle *handle, u32 domain) domain 128 drivers/firmware/arm_scmi/reset.c struct reset_dom_info *dom = pi->dom_info + domain; domain 133 drivers/firmware/arm_scmi/reset.c static int scmi_domain_reset(const struct scmi_handle *handle, u32 domain, domain 140 drivers/firmware/arm_scmi/reset.c struct reset_dom_info *rdom = pi->dom_info + domain; domain 151 drivers/firmware/arm_scmi/reset.c dom->domain_id = cpu_to_le32(domain); domain 164 drivers/firmware/arm_scmi/reset.c static int scmi_reset_domain_reset(const struct scmi_handle *handle, u32 domain) domain 166 drivers/firmware/arm_scmi/reset.c return scmi_domain_reset(handle, domain, AUTONOMOUS_RESET, domain 171 drivers/firmware/arm_scmi/reset.c scmi_reset_domain_assert(const struct scmi_handle *handle, u32 domain) domain 173 drivers/firmware/arm_scmi/reset.c return scmi_domain_reset(handle, domain, EXPLICIT_RESET_ASSERT, domain 178 drivers/firmware/arm_scmi/reset.c scmi_reset_domain_deassert(const struct scmi_handle *handle, u32 domain) domain 180 drivers/firmware/arm_scmi/reset.c return scmi_domain_reset(handle, domain, 0, ARCH_COLD_RESET); domain 194 drivers/firmware/arm_scmi/reset.c int domain; domain 214 drivers/firmware/arm_scmi/reset.c for (domain = 0; domain < pinfo->num_domains; domain++) { domain 215 drivers/firmware/arm_scmi/reset.c struct reset_dom_info *dom = pinfo->dom_info + domain; domain 217 drivers/firmware/arm_scmi/reset.c scmi_reset_domain_attributes_get(handle, domain, dom); domain 18 drivers/firmware/arm_scmi/scmi_pm_domain.c u32 domain; domain 23 drivers/firmware/arm_scmi/scmi_pm_domain.c static int scmi_pd_power(struct generic_pm_domain *domain, bool power_on) domain 27 drivers/firmware/arm_scmi/scmi_pm_domain.c struct scmi_pm_domain *pd = to_scmi_pd(domain); domain 35 drivers/firmware/arm_scmi/scmi_pm_domain.c ret = ops->state_set(pd->handle, pd->domain, state); domain 37 drivers/firmware/arm_scmi/scmi_pm_domain.c ret = ops->state_get(pd->handle, pd->domain, &ret_state); domain 44 drivers/firmware/arm_scmi/scmi_pm_domain.c static int scmi_pd_power_on(struct generic_pm_domain *domain) domain 46 drivers/firmware/arm_scmi/scmi_pm_domain.c return scmi_pd_power(domain, true); domain 49 drivers/firmware/arm_scmi/scmi_pm_domain.c static int scmi_pd_power_off(struct generic_pm_domain *domain) domain 51 drivers/firmware/arm_scmi/scmi_pm_domain.c return scmi_pd_power(domain, false); domain 90 drivers/firmware/arm_scmi/scmi_pm_domain.c scmi_pd->domain = i; domain 301 drivers/firmware/arm_scpi.c u8 domain; domain 311 drivers/firmware/arm_scpi.c u8 domain; domain 583 drivers/firmware/arm_scpi.c static int scpi_dvfs_get_idx(u8 domain) domain 588 drivers/firmware/arm_scpi.c ret = scpi_send_message(CMD_GET_DVFS, &domain, sizeof(domain), domain 594 drivers/firmware/arm_scpi.c static int scpi_dvfs_set_idx(u8 domain, u8 index) domain 597 drivers/firmware/arm_scpi.c struct dvfs_set dvfs = {domain, index}; domain 610 drivers/firmware/arm_scpi.c static struct scpi_dvfs_info *scpi_dvfs_get_info(u8 domain) domain 617 drivers/firmware/arm_scpi.c if (domain >= MAX_DVFS_DOMAINS) domain 620 drivers/firmware/arm_scpi.c if (scpi_info->dvfs[domain]) /* data already populated */ domain 621 drivers/firmware/arm_scpi.c return scpi_info->dvfs[domain]; domain 623 drivers/firmware/arm_scpi.c ret = scpi_send_message(CMD_GET_DVFS_INFO, &domain, sizeof(domain), domain 648 drivers/firmware/arm_scpi.c scpi_info->dvfs[domain] = info; domain 665 drivers/firmware/arm_scpi.c int domain = scpi_dev_domain_id(dev); domain 667 drivers/firmware/arm_scpi.c if (domain < 0) domain 668 drivers/firmware/arm_scpi.c return ERR_PTR(domain); domain 670 drivers/firmware/arm_scpi.c return scpi_dvfs_get_info(domain); domain 176 drivers/firmware/imx/scu-pd.c static int imx_sc_pd_power(struct generic_pm_domain *domain, bool power_on) domain 183 drivers/firmware/imx/scu-pd.c pd = to_imx_sc_pd(domain); domain 195 drivers/firmware/imx/scu-pd.c dev_err(&domain->dev, "failed to power %s resource %d ret %d\n", domain 201 drivers/firmware/imx/scu-pd.c static int imx_sc_pd_power_on(struct generic_pm_domain *domain) domain 203 drivers/firmware/imx/scu-pd.c return imx_sc_pd_power(domain, true); domain 206 drivers/firmware/imx/scu-pd.c static int imx_sc_pd_power_off(struct generic_pm_domain *domain) domain 208 drivers/firmware/imx/scu-pd.c return imx_sc_pd_power(domain, false); domain 214 drivers/firmware/imx/scu-pd.c struct generic_pm_domain *domain = ERR_PTR(-ENOENT); domain 223 drivers/firmware/imx/scu-pd.c domain = &sc_pd->pd; domain 228 drivers/firmware/imx/scu-pd.c return domain; domain 18 drivers/firmware/scpi_pm_domain.c u32 domain; domain 44 drivers/firmware/scpi_pm_domain.c ret = pd->ops->device_set_power_state(pd->domain, state); domain 48 drivers/firmware/scpi_pm_domain.c return !(state == pd->ops->device_get_power_state(pd->domain)); domain 51 drivers/firmware/scpi_pm_domain.c static int scpi_pd_power_on(struct generic_pm_domain *domain) domain 53 drivers/firmware/scpi_pm_domain.c struct scpi_pm_domain *pd = to_scpi_pd(domain); domain 58 drivers/firmware/scpi_pm_domain.c static int scpi_pd_power_off(struct generic_pm_domain *domain) domain 60 drivers/firmware/scpi_pm_domain.c struct scpi_pm_domain *pd = to_scpi_pd(domain); domain 111 drivers/firmware/scpi_pm_domain.c scpi_pd->domain = i; domain 367 drivers/gpio/gpio-104-dio-48e.c generic_handle_irq(irq_find_mapping(chip->irq.domain, domain 250 drivers/gpio/gpio-104-idi-48.c generic_handle_irq(irq_find_mapping(chip->irq.domain, domain 208 drivers/gpio/gpio-104-idio-16.c generic_handle_irq(irq_find_mapping(chip->irq.domain, gpio)); domain 322 drivers/gpio/gpio-adnp.c child_irq = irq_find_mapping(adnp->gpio.irq.domain, domain 265 drivers/gpio/gpio-adp5588.c dev->gpio_chip.irq.domain, gpio)); domain 195 drivers/gpio/gpio-altera.c irqdomain = altera_gc->mmchip.gc.irq.domain; domain 223 drivers/gpio/gpio-altera.c irqdomain = altera_gc->mmchip.gc.irq.domain; domain 678 drivers/gpio/gpio-aspeed.c girq = irq_find_mapping(gc->irq.domain, i * 32 + p); domain 209 drivers/gpio/gpio-ath79.c irq_linear_revmap(gc->irq.domain, irq)); domain 275 drivers/gpio/gpio-brcmstb.c struct irq_domain *domain = priv->irq_domain; domain 287 drivers/gpio/gpio-brcmstb.c irq = irq_linear_revmap(domain, hwbase + offset); domain 136 drivers/gpio/gpio-cadence.c generic_handle_irq(irq_find_mapping(chip->irq.domain, hwirq)); domain 289 drivers/gpio/gpio-crystalcove.c virq = irq_find_mapping(cg->chip.irq.domain, gpio); domain 419 drivers/gpio/gpio-dln2.c irq = irq_find_mapping(dln2->gpio.irq.domain, pin); domain 97 drivers/gpio/gpio-dwapb.c struct irq_domain *domain; domain 151 drivers/gpio/gpio-dwapb.c return irq_find_mapping(gpio->domain, offset); domain 197 drivers/gpio/gpio-dwapb.c int gpio_irq = irq_find_mapping(gpio->domain, hwirq); domain 395 drivers/gpio/gpio-dwapb.c gpio->domain = irq_domain_create_linear(fwnode, ngpio, domain 397 drivers/gpio/gpio-dwapb.c if (!gpio->domain) domain 400 drivers/gpio/gpio-dwapb.c err = irq_alloc_domain_generic_chips(gpio->domain, ngpio, 2, domain 406 drivers/gpio/gpio-dwapb.c irq_domain_remove(gpio->domain); domain 407 drivers/gpio/gpio-dwapb.c gpio->domain = NULL; domain 411 drivers/gpio/gpio-dwapb.c irq_gc = irq_get_domain_generic_chip(gpio->domain, 0); domain 413 drivers/gpio/gpio-dwapb.c irq_domain_remove(gpio->domain); domain 414 drivers/gpio/gpio-dwapb.c gpio->domain = NULL; domain 461 drivers/gpio/gpio-dwapb.c irq_domain_remove(gpio->domain); domain 462 drivers/gpio/gpio-dwapb.c gpio->domain = NULL; domain 468 drivers/gpio/gpio-dwapb.c irq_create_mapping(gpio->domain, hwirq); domain 480 drivers/gpio/gpio-dwapb.c if (!gpio->domain) domain 484 drivers/gpio/gpio-dwapb.c irq_dispose_mapping(irq_find_mapping(gpio->domain, hwirq)); domain 486 drivers/gpio/gpio-dwapb.c irq_domain_remove(gpio->domain); domain 487 drivers/gpio/gpio-dwapb.c gpio->domain = NULL; domain 535 drivers/gpio/gpio-eic-sprd.c girq = irq_find_mapping(chip->irq.domain, offset); domain 264 drivers/gpio/gpio-em.c struct irq_domain *domain = data; domain 266 drivers/gpio/gpio-em.c irq_domain_remove(domain); domain 125 drivers/gpio/gpio-ep93xx.c generic_handle_irq(irq_find_mapping(epg->gc[0].irq.domain, domain 130 drivers/gpio/gpio-ep93xx.c generic_handle_irq(irq_find_mapping(epg->gc[1].irq.domain, domain 152 drivers/gpio/gpio-ftgpio010.c generic_handle_irq(irq_find_mapping(gc->irq.domain, domain 73 drivers/gpio/gpio-grgpio.c struct irq_domain *domain; domain 112 drivers/gpio/gpio-grgpio.c return irq_create_mapping(priv->domain, offset); domain 389 drivers/gpio/gpio-grgpio.c priv->domain = irq_domain_add_linear(np, gc->ngpio, domain 392 drivers/gpio/gpio-grgpio.c if (!priv->domain) { domain 424 drivers/gpio/gpio-grgpio.c if (priv->domain) domain 425 drivers/gpio/gpio-grgpio.c irq_domain_remove(priv->domain); domain 430 drivers/gpio/gpio-grgpio.c priv->regs, gc->base, gc->ngpio, priv->domain ? "on" : "off"); domain 444 drivers/gpio/gpio-grgpio.c if (priv->domain) { domain 455 drivers/gpio/gpio-grgpio.c if (priv->domain) domain 456 drivers/gpio/gpio-grgpio.c irq_domain_remove(priv->domain); domain 101 drivers/gpio/gpio-hlwd.c int irq = irq_find_mapping(hlwd->gpioc.irq.domain, hwirq); domain 288 drivers/gpio/gpio-intel-mid.c generic_handle_irq(irq_find_mapping(gc->irq.domain, domain 44 drivers/gpio/gpio-lpc18xx.c struct irq_domain *domain; domain 163 drivers/gpio/gpio-lpc18xx.c static int lpc18xx_gpio_pin_ic_domain_alloc(struct irq_domain *domain, domain 168 drivers/gpio/gpio-lpc18xx.c struct lpc18xx_gpio_pin_ic *ic = domain->host_data; domain 183 drivers/gpio/gpio-lpc18xx.c parent_fwspec.fwnode = domain->parent->fwnode; domain 187 drivers/gpio/gpio-lpc18xx.c ret = irq_domain_alloc_irqs_parent(domain, virq, 1, &parent_fwspec); domain 194 drivers/gpio/gpio-lpc18xx.c return irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 245 drivers/gpio/gpio-lpc18xx.c ic->domain = irq_domain_add_hierarchy(parent_domain, 0, domain 250 drivers/gpio/gpio-lpc18xx.c if (!ic->domain) { domain 390 drivers/gpio/gpio-lpc18xx.c irq_domain_remove(gc->pin_ic->domain); domain 252 drivers/gpio/gpio-lynxpoint.c irq = irq_find_mapping(lg->chip.irq.domain, base + pin); domain 486 drivers/gpio/gpio-max732x.c handle_nested_irq(irq_find_mapping(chip->gpio_chip.irq.domain, domain 357 drivers/gpio/gpio-merrifield.c irq = irq_find_mapping(gc->irq.domain, base + gpio); domain 98 drivers/gpio/gpio-mt7621.c u32 map = irq_find_mapping(gc->irq.domain, bit); domain 116 drivers/gpio/gpio-mvebu.c struct irq_domain *domain; domain 394 drivers/gpio/gpio-mvebu.c return irq_create_mapping(mvchip->domain, pin); domain 575 drivers/gpio/gpio-mvebu.c irq = irq_find_mapping(mvchip->domain, i); domain 1203 drivers/gpio/gpio-mvebu.c mvchip->domain = domain 1205 drivers/gpio/gpio-mvebu.c if (!mvchip->domain) { domain 1212 drivers/gpio/gpio-mvebu.c mvchip->domain, ngpios, 2, np->name, handle_level_irq, domain 1224 drivers/gpio/gpio-mvebu.c gc = irq_get_domain_generic_chip(mvchip->domain, 0); domain 1263 drivers/gpio/gpio-mvebu.c irq_domain_remove(mvchip->domain); domain 64 drivers/gpio/gpio-mxc.c struct irq_domain *domain; domain 269 drivers/gpio/gpio-mxc.c generic_handle_irq(irq_find_mapping(port->domain, irqoffset)); domain 407 drivers/gpio/gpio-mxc.c return irq_find_mapping(port->domain, offset); domain 507 drivers/gpio/gpio-mxc.c port->domain = irq_domain_add_legacy(np, 32, irq_base, 0, domain 509 drivers/gpio/gpio-mxc.c if (!port->domain) { domain 526 drivers/gpio/gpio-mxc.c irq_domain_remove(port->domain); domain 51 drivers/gpio/gpio-mxs.c struct irq_domain *domain; domain 165 drivers/gpio/gpio-mxs.c generic_handle_irq(irq_find_mapping(port->domain, irqoffset)); domain 241 drivers/gpio/gpio-mxs.c return irq_find_mapping(port->domain, offset); domain 322 drivers/gpio/gpio-mxs.c port->domain = irq_domain_add_legacy(np, 32, irq_base, 0, domain 324 drivers/gpio/gpio-mxs.c if (!port->domain) { domain 357 drivers/gpio/gpio-mxs.c irq_domain_remove(port->domain); domain 612 drivers/gpio/gpio-omap.c generic_handle_irq(irq_find_mapping(bank->chip.irq.domain, domain 755 drivers/gpio/gpio-pca953x.c handle_nested_irq(irq_find_mapping(chip->gpio_chip.irq.domain, domain 186 drivers/gpio/gpio-pcf857x.c handle_nested_irq(irq_find_mapping(gpio->chip.irq.domain, i)); domain 284 drivers/gpio/gpio-pci-idio-16.c generic_handle_irq(irq_find_mapping(chip->irq.domain, gpio)); domain 455 drivers/gpio/gpio-pcie-idio-24.c generic_handle_irq(irq_find_mapping(chip->irq.domain, domain 222 drivers/gpio/gpio-pl061.c generic_handle_irq(irq_find_mapping(gc->irq.domain, domain 282 drivers/gpio/gpio-pmic-eic-sprd.c girq = irq_find_mapping(chip->irq.domain, n); domain 209 drivers/gpio/gpio-rcar.c generic_handle_irq(irq_find_mapping(p->gpio_chip.irq.domain, domain 79 drivers/gpio/gpio-siox.c struct irq_domain *irqdomain = ddata->gchip.irq.domain; domain 199 drivers/gpio/gpio-sprd.c girq = irq_find_mapping(chip->irq.domain, domain 408 drivers/gpio/gpio-stmpe.c int child_irq = irq_find_mapping(stmpe_gpio->chip.irq.domain, domain 43 drivers/gpio/gpio-tb10x.c struct irq_domain *domain; domain 79 drivers/gpio/gpio-tb10x.c return irq_create_mapping(tb10x_gpio->domain, offset); domain 103 drivers/gpio/gpio-tb10x.c generic_handle_irq(irq_find_mapping(tb10x_gpio->domain, i)); domain 186 drivers/gpio/gpio-tb10x.c tb10x_gpio->domain = irq_domain_add_linear(np, domain 189 drivers/gpio/gpio-tb10x.c if (!tb10x_gpio->domain) { domain 193 drivers/gpio/gpio-tb10x.c ret = irq_alloc_domain_generic_chips(tb10x_gpio->domain, domain 200 drivers/gpio/gpio-tb10x.c gc = tb10x_gpio->domain->gc->gc[0]; domain 219 drivers/gpio/gpio-tb10x.c irq_remove_generic_chip(tb10x_gpio->domain->gc->gc[0], domain 221 drivers/gpio/gpio-tb10x.c kfree(tb10x_gpio->domain->gc); domain 222 drivers/gpio/gpio-tb10x.c irq_domain_remove(tb10x_gpio->domain); domain 271 drivers/gpio/gpio-tc3589x.c int irq = irq_find_mapping(tc3589x_gpio->chip.irq.domain, domain 336 drivers/gpio/gpio-tegra186.c struct irq_domain *domain = gpio->gpio.irq.domain; domain 356 drivers/gpio/gpio-tegra186.c irq = irq_find_mapping(domain, offset + pin); domain 370 drivers/gpio/gpio-tegra186.c static int tegra186_gpio_irq_domain_xlate(struct irq_domain *domain, domain 376 drivers/gpio/gpio-tegra186.c struct tegra_gpio *gpio = gpiochip_get_data(domain->host_data); domain 546 drivers/gpio/gpio-thunderx.c txgpio->irqd = irq_domain_create_hierarchy(irq_get_irq_data(txgpio->msix_entries[0].vector)->domain, domain 193 drivers/gpio/gpio-tqmx86.c child_irq = irq_find_mapping(gpio->chip.irq.domain, domain 33 drivers/gpio/gpio-uniphier.c struct irq_domain *domain; domain 248 drivers/gpio/gpio-uniphier.c static int uniphier_gpio_irq_domain_translate(struct irq_domain *domain, domain 262 drivers/gpio/gpio-uniphier.c static int uniphier_gpio_irq_domain_alloc(struct irq_domain *domain, domain 266 drivers/gpio/gpio-uniphier.c struct uniphier_gpio_priv *priv = domain->host_data; domain 275 drivers/gpio/gpio-uniphier.c ret = uniphier_gpio_irq_domain_translate(domain, arg, &hwirq, &type); domain 284 drivers/gpio/gpio-uniphier.c parent_fwspec.fwnode = domain->parent->fwnode; domain 290 drivers/gpio/gpio-uniphier.c ret = irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 295 drivers/gpio/gpio-uniphier.c return irq_domain_alloc_irqs_parent(domain, virq, 1, &parent_fwspec); domain 298 drivers/gpio/gpio-uniphier.c static int uniphier_gpio_irq_domain_activate(struct irq_domain *domain, domain 301 drivers/gpio/gpio-uniphier.c struct uniphier_gpio_priv *priv = domain->host_data; domain 307 drivers/gpio/gpio-uniphier.c static void uniphier_gpio_irq_domain_deactivate(struct irq_domain *domain, domain 310 drivers/gpio/gpio-uniphier.c struct uniphier_gpio_priv *priv = domain->host_data; domain 407 drivers/gpio/gpio-uniphier.c priv->domain = irq_domain_create_hierarchy( domain 412 drivers/gpio/gpio-uniphier.c if (!priv->domain) domain 424 drivers/gpio/gpio-uniphier.c irq_domain_remove(priv->domain); domain 152 drivers/gpio/gpio-vf610.c generic_handle_irq(irq_find_mapping(port->gc.irq.domain, pin)); domain 344 drivers/gpio/gpio-wcove.c virq = irq_find_mapping(wg->chip.irq.domain, gpio); domain 373 drivers/gpio/gpio-ws16c48.c chip->irq.domain, gpio + 8*port)); domain 176 drivers/gpio/gpio-xgene-sb.c static int xgene_gpio_sb_domain_alloc(struct irq_domain *domain, domain 182 drivers/gpio/gpio-xgene-sb.c struct xgene_gpio_sb *priv = domain->host_data; domain 188 drivers/gpio/gpio-xgene-sb.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 191 drivers/gpio/gpio-xgene-sb.c parent_fwspec.fwnode = domain->parent->fwnode; domain 205 drivers/gpio/gpio-xgene-sb.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, domain 238 drivers/gpio/gpio-xgene-sb.c parent_domain = irq_get_irq_data(ret)->domain; domain 281 drivers/gpio/gpio-xgene-sb.c priv->gc.irq.domain = priv->irq_domain; domain 220 drivers/gpio/gpio-xlp.c priv->chip.irq.domain, gpio)); domain 170 drivers/gpio/gpio-zx.c generic_handle_irq(irq_find_mapping(gc->irq.domain, domain 607 drivers/gpio/gpio-zynq.c struct irq_domain *irqdomain = gpio->chip.irq.domain; domain 1699 drivers/gpio/gpiolib.c if (!girq->domain) { domain 1823 drivers/gpio/gpiolib.c ret = __irq_domain_alloc_irqs(gc->irq.domain, domain 1976 drivers/gpio/gpiolib.c gc->irq.domain = irq_domain_create_hierarchy( domain 1984 drivers/gpio/gpiolib.c if (!gc->irq.domain) domain 2118 drivers/gpio/gpiolib.c int gpiochip_irq_domain_activate(struct irq_domain *domain, domain 2121 drivers/gpio/gpiolib.c struct gpio_chip *chip = domain->host_data; domain 2136 drivers/gpio/gpiolib.c void gpiochip_irq_domain_deactivate(struct irq_domain *domain, domain 2139 drivers/gpio/gpiolib.c struct gpio_chip *chip = domain->host_data; domain 2147 drivers/gpio/gpiolib.c struct irq_domain *domain = chip->irq.domain; domain 2153 drivers/gpio/gpiolib.c if (irq_domain_is_hierarchy(domain)) { domain 2156 drivers/gpio/gpiolib.c spec.fwnode = domain->fwnode; domain 2165 drivers/gpio/gpiolib.c return irq_create_mapping(domain, offset); domain 2297 drivers/gpio/gpiolib.c gpiochip->irq.domain = irq_domain_add_simple(np, domain 2301 drivers/gpio/gpiolib.c if (!gpiochip->irq.domain) domain 2350 drivers/gpio/gpiolib.c if (gpiochip->irq.domain) { domain 2357 drivers/gpio/gpiolib.c irq = irq_find_mapping(gpiochip->irq.domain, offset); domain 2361 drivers/gpio/gpiolib.c irq_domain_remove(gpiochip->irq.domain); domain 2457 drivers/gpio/gpiolib.c gpiochip->irq.domain = irq_domain_add_simple(of_node, domain 2460 drivers/gpio/gpiolib.c if (!gpiochip->irq.domain) { domain 364 drivers/gpio/sgpio-aspeed.c girq = irq_find_mapping(gc->irq.domain, i * 32 + p); domain 362 drivers/gpu/drm/amd/amdgpu/amdgpu.h uint32_t domain; domain 281 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c bp.domain = AMDGPU_GEM_DOMAIN_GTT; domain 362 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c bp.domain = AMDGPU_GEM_DOMAIN_GWS; domain 56 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h uint32_t domain; domain 60 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c uint32_t domain; domain 73 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c #define domain_string(domain) domain_bit_to_string[ffs(domain)-1] domain 117 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c uint64_t size, u32 domain, bool sg) domain 127 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c if (domain == AMDGPU_GEM_DOMAIN_GTT) { domain 131 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c } else if (domain == AMDGPU_GEM_DOMAIN_CPU && !sg) { domain 139 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c if (domain == AMDGPU_GEM_DOMAIN_VRAM) domain 163 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c uint64_t size, u32 domain, bool sg) domain 171 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c if (domain == AMDGPU_GEM_DOMAIN_GTT) { domain 174 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c } else if (domain == AMDGPU_GEM_DOMAIN_CPU && !sg) { domain 180 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c if (domain == AMDGPU_GEM_DOMAIN_VRAM) { domain 197 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c u32 domain = bo->preferred_domains; domain 201 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c domain = AMDGPU_GEM_DOMAIN_CPU; domain 205 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c unreserve_mem_limit(adev, amdgpu_bo_size(bo), domain, sg); domain 274 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c static int amdgpu_amdkfd_bo_validate(struct amdgpu_bo *bo, uint32_t domain, domain 284 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_bo_placement_from_domain(bo, domain); domain 300 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c return amdgpu_amdkfd_bo_validate(bo, p->domain, p->wait); domain 317 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c param.domain = AMDGPU_GEM_DOMAIN_VRAM; domain 518 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_bo_placement_from_domain(bo, mem->domain); domain 1083 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c u32 domain, alloc_domain; domain 1092 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c domain = alloc_domain = AMDGPU_GEM_DOMAIN_VRAM; domain 1098 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c domain = alloc_domain = AMDGPU_GEM_DOMAIN_GTT; domain 1101 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c domain = AMDGPU_GEM_DOMAIN_GTT; domain 1109 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c domain = AMDGPU_GEM_DOMAIN_GTT; domain 1172 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c bp.domain = alloc_domain; domain 1192 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c (*mem)->domain = domain; domain 1305 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c uint32_t domain; domain 1337 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c domain = mem->domain; domain 1343 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c vm, domain_string(domain)); domain 1381 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ret = amdgpu_amdkfd_bo_validate(bo, domain, true); domain 1636 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c (*mem)->domain = (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) ? domain 1823 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_bo_placement_from_domain(bo, mem->domain); domain 2024 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c uint32_t domain = mem->domain; domain 2027 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ret = amdgpu_amdkfd_bo_validate(bo, domain, false); domain 2114 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c (*mem)->domain = AMDGPU_GEM_DOMAIN_GWS; domain 86 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c bp.domain = sdomain; domain 109 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c bp.domain = ddomain; domain 408 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c uint32_t domain; domain 425 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c domain = bo->preferred_domains; domain 427 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c domain = bo->allowed_domains; domain 429 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c domain = bo->preferred_domains; domain 432 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c domain = bo->allowed_domains; domain 436 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c amdgpu_bo_placement_from_domain(bo, domain); domain 444 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (unlikely(r == -ENOMEM) && domain != bo->allowed_domains) { domain 445 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c domain = bo->allowed_domains; domain 456 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c uint32_t domain = validated->allowed_domains; domain 483 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (!(other & domain)) domain 487 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c other = bo->allowed_domains & ~domain; domain 38 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c u32 domain, uint32_t size) domain 44 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c domain, bo, domain 33 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.h u32 domain, uint32_t size); domain 502 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM; domain 519 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c domain |= AMDGPU_GEM_DOMAIN_GTT; domain 522 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c return domain; domain 288 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c u32 domain = amdgpu_display_supported_domains(adev, bo->flags); domain 293 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c if (!reads || !(domain & AMDGPU_GEM_DOMAIN_GTT)) domain 379 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c bp.domain = AMDGPU_GEM_DOMAIN_CPU; domain 129 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c u32 tiling_flags = 0, domain; domain 144 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c domain = amdgpu_display_supported_domains(adev, flags); domain 148 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c ret = amdgpu_gem_object_create(adev, aligned_size, 0, domain, flags, domain 170 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c ret = amdgpu_bo_pin(abo, domain); domain 124 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c bp.domain = AMDGPU_GEM_DOMAIN_VRAM; domain 70 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c bp.domain = initial_domain; domain 754 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c u32 domain; domain 769 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c domain = amdgpu_bo_get_preferred_pin_domain(adev, domain 771 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c r = amdgpu_gem_object_create(adev, args->size, 0, domain, flags, domain 801 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c unsigned domain; domain 805 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type); domain 806 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c switch (domain) { domain 401 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c generic_handle_irq(irq_find_mapping(adev->irq.domain, src_id)); domain 628 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c adev->irq.domain = irq_domain_add_linear(NULL, AMDGPU_MAX_IRQ_SRC_ID, domain 630 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c if (!adev->irq.domain) { domain 648 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c if (adev->irq.domain) { domain 649 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c irq_domain_remove(adev->irq.domain); domain 650 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c adev->irq.domain = NULL; domain 669 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c adev->irq.virq[src_id] = irq_create_mapping(adev->irq.domain, src_id); domain 97 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h struct irq_domain *domain; /* GPU irq controller domain */ domain 125 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) domain 133 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_VRAM) { domain 151 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_GTT) { domain 163 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_CPU) { domain 175 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_GDS) { domain 182 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_GWS) { domain 189 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_OA) { domain 233 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c u32 domain, struct amdgpu_bo **bo_ptr, domain 248 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c bp.domain = domain; domain 271 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c r = amdgpu_bo_pin(*bo_ptr, domain); domain 328 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c u32 domain, struct amdgpu_bo **bo_ptr, domain 333 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c r = amdgpu_bo_create_reserved(adev, size, align, domain, bo_ptr, domain 361 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c uint64_t offset, uint64_t size, uint32_t domain, domain 371 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c r = amdgpu_bo_create_reserved(adev, size, PAGE_SIZE, domain, bo_ptr, domain 439 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c unsigned long size, u32 domain) domain 447 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_GTT) { domain 456 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_VRAM) { domain 526 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (bp->domain & (AMDGPU_GEM_DOMAIN_GWS | AMDGPU_GEM_DOMAIN_OA)) { domain 530 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c } else if (bp->domain & AMDGPU_GEM_DOMAIN_GDS) { domain 540 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (!amdgpu_bo_validate_size(adev, size, bp->domain)) domain 555 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c bp->domain; domain 567 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (bp->domain & (AMDGPU_GEM_DOMAIN_GWS | AMDGPU_GEM_DOMAIN_OA | domain 571 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_placement_from_domain(bo, bp->domain); domain 633 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c bp.domain = AMDGPU_GEM_DOMAIN_GTT; domain 708 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c uint32_t domain; domain 714 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c domain = bo->preferred_domains; domain 717 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_placement_from_domain(bo, domain); domain 719 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (unlikely(r == -ENOMEM) && domain != bo->allowed_domains) { domain 720 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c domain = bo->allowed_domains; domain 882 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain, domain 897 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain & AMDGPU_GEM_DOMAIN_GTT) domain 898 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c domain = AMDGPU_GEM_DOMAIN_GTT; domain 906 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c domain = amdgpu_bo_get_preferred_pin_domain(adev, domain); domain 911 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (!(domain & amdgpu_mem_type_to_domain(mem_type))) domain 929 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_placement_from_domain(bo, domain); domain 952 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type); domain 953 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain == AMDGPU_GEM_DOMAIN_VRAM) { domain 957 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c } else if (domain == AMDGPU_GEM_DOMAIN_GTT) { domain 977 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c int amdgpu_bo_pin(struct amdgpu_bo *bo, u32 domain) domain 979 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c return amdgpu_bo_pin_restricted(bo, domain, 0, 0); domain 1454 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c uint32_t domain) domain 1456 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c if (domain == (AMDGPU_GEM_DOMAIN_VRAM | AMDGPU_GEM_DOMAIN_GTT)) { domain 1457 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c domain = AMDGPU_GEM_DOMAIN_VRAM; domain 1459 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c domain = AMDGPU_GEM_DOMAIN_GTT; domain 1461 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c return domain; domain 40 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h u32 domain; domain 227 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain); domain 234 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h u32 domain, struct amdgpu_bo **bo_ptr, domain 238 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h u32 domain, struct amdgpu_bo **bo_ptr, domain 241 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h uint64_t offset, uint64_t size, uint32_t domain, domain 250 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h int amdgpu_bo_pin(struct amdgpu_bo *bo, u32 domain); domain 251 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain, domain 280 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h uint32_t domain); domain 298 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h unsigned size, u32 align, u32 domain); domain 52 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c unsigned size, u32 align, u32 domain) domain 59 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c sa_manager->domain = domain; domain 66 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c r = amdgpu_bo_create_kernel(adev, size, align, domain, &sa_manager->bo, domain 66 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c bp.domain = AMDGPU_GEM_DOMAIN_VRAM; domain 91 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c bp.domain = AMDGPU_GEM_DOMAIN_GTT; domain 2420 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c int domain; domain 2447 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (ttm_debugfs_entries[count].domain == TTM_PL_VRAM) domain 2449 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c else if (ttm_debugfs_entries[count].domain == TTM_PL_TT) domain 495 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM; domain 496 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_bo_placement_from_domain(bo, domain); domain 825 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c bp->domain = AMDGPU_GEM_DOMAIN_VRAM; domain 826 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c bp->domain = amdgpu_bo_get_preferred_pin_domain(adev, bp->domain); domain 4498 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c uint32_t domain; domain 4527 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c domain = amdgpu_display_supported_domains(adev, rbo->flags); domain 4529 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c domain = AMDGPU_GEM_DOMAIN_VRAM; domain 4531 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c r = amdgpu_bo_pin(rbo, domain); domain 936 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c tables[i].domain, domain 1190 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c memory_pool->domain = AMDGPU_GEM_DOMAIN_GTT; domain 1200 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c memory_pool->domain, domain 174 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h tables[table_id].domain = d; \ domain 180 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h uint8_t domain; domain 219 drivers/gpu/drm/cirrus/cirrus_drv.h void cirrus_ttm_placement(struct cirrus_bo *bo, int domain); domain 362 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c submit->pmrs[i].domain = r->domain; domain 19 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c const struct etnaviv_pm_domain *domain, domain 41 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c const struct etnaviv_pm_domain *domain, domain 44 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c gpu_write(gpu, domain->profile_config, signal->data); domain 46 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c return gpu_read(gpu, domain->profile_read); domain 50 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c const struct etnaviv_pm_domain *domain, domain 61 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c gpu_write(gpu, domain->profile_config, signal->data); domain 62 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c value += gpu_read(gpu, domain->profile_read); domain 74 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c const struct etnaviv_pm_domain *domain, domain 88 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c const struct etnaviv_pm_domain *domain, domain 447 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c const struct etnaviv_pm_domain *domain = NULL; domain 461 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c domain = meta->domains + (index - offset); domain 464 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c return domain; domain 468 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c struct drm_etnaviv_pm_domain *domain) domain 473 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c if (domain->iter >= nr_domains) domain 476 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c dom = pm_domain(gpu, domain->iter); domain 480 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c domain->id = domain->iter; domain 481 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c domain->nr_signals = dom->nr_signals; domain 482 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c strncpy(domain->name, dom->name, sizeof(domain->name)); domain 484 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c domain->iter++; domain 485 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c if (domain->iter == nr_domains) domain 486 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c domain->iter = 0xff; domain 498 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c if (signal->domain >= nr_domains) domain 501 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c dom = pm_domain(gpu, signal->domain); domain 526 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c if (r->domain >= meta->nr_domains) domain 529 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c dom = meta->domains + r->domain; domain 546 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c dom = meta->domains + pmr->domain; domain 17 drivers/gpu/drm/etnaviv/etnaviv_perfmon.h u8 domain; domain 27 drivers/gpu/drm/etnaviv/etnaviv_perfmon.h struct drm_etnaviv_pm_domain *domain); domain 177 drivers/gpu/drm/gma500/cdv_device.c static inline u32 CDV_MSG_READ32(int domain, uint port, uint offset) domain 181 drivers/gpu/drm/gma500/cdv_device.c struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0); domain 188 drivers/gpu/drm/gma500/cdv_device.c static inline void CDV_MSG_WRITE32(int domain, uint port, uint offset, domain 192 drivers/gpu/drm/gma500/cdv_device.c struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0); domain 209 drivers/gpu/drm/gma500/cdv_device.c int domain = pci_domain_nr(dev->pdev->bus); domain 212 drivers/gpu/drm/gma500/cdv_device.c dev_priv->apm_base = CDV_MSG_READ32(domain, PSB_PUNIT_PORT, domain 214 drivers/gpu/drm/gma500/cdv_device.c dev_priv->ospm_base = CDV_MSG_READ32(domain, PSB_PUNIT_PORT, domain 96 drivers/gpu/drm/gma500/mid_bios.c int domain = pci_domain_nr(dev_priv->dev->pdev->bus); domain 98 drivers/gpu/drm/gma500/mid_bios.c pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(2, 0)); domain 248 drivers/gpu/drm/gma500/psb_drv.c int domain = pci_domain_nr(dev->pdev->bus); domain 251 drivers/gpu/drm/gma500/psb_drv.c pci_get_domain_bus_and_slot(domain, 0, domain 273 drivers/gpu/drm/gma500/psb_drv.c pci_get_domain_bus_and_slot(domain, 0, domain 772 drivers/gpu/drm/gma500/psb_drv.h static inline u32 MRST_MSG_READ32(int domain, uint port, uint offset) domain 776 drivers/gpu/drm/gma500/psb_drv.h struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0); domain 782 drivers/gpu/drm/gma500/psb_drv.h static inline void MRST_MSG_WRITE32(int domain, uint port, uint offset, domain 786 drivers/gpu/drm/gma500/psb_drv.h struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0); domain 791 drivers/gpu/drm/gma500/psb_drv.h static inline u32 MDFLD_MSG_READ32(int domain, uint port, uint offset) domain 795 drivers/gpu/drm/gma500/psb_drv.h struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0); domain 801 drivers/gpu/drm/gma500/psb_drv.h static inline void MDFLD_MSG_WRITE32(int domain, uint port, uint offset, domain 805 drivers/gpu/drm/gma500/psb_drv.h struct pci_dev *pci_root = pci_get_domain_bus_and_slot(domain, 0, 0); domain 6827 drivers/gpu/drm/i915/display/intel_display.c enum intel_display_power_domain domain; domain 6836 drivers/gpu/drm/i915/display/intel_display.c for_each_power_domain(domain, domains) domain 6837 drivers/gpu/drm/i915/display/intel_display.c intel_display_power_get(dev_priv, domain); domain 6845 drivers/gpu/drm/i915/display/intel_display.c enum intel_display_power_domain domain; domain 6847 drivers/gpu/drm/i915/display/intel_display.c for_each_power_domain(domain, domains) domain 6848 drivers/gpu/drm/i915/display/intel_display.c intel_display_power_put_unchecked(dev_priv, domain); domain 7040 drivers/gpu/drm/i915/display/intel_display.c enum intel_display_power_domain domain; domain 7095 drivers/gpu/drm/i915/display/intel_display.c for_each_power_domain(domain, domains) domain 7096 drivers/gpu/drm/i915/display/intel_display.c intel_display_power_put_unchecked(dev_priv, domain); domain 28 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 32 drivers/gpu/drm/i915/display/intel_display_power.c switch (domain) { domain 171 drivers/gpu/drm/i915/display/intel_display_power.c MISSING_CASE(domain); domain 222 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 232 drivers/gpu/drm/i915/display/intel_display_power.c for_each_power_domain_well_reverse(dev_priv, power_well, BIT_ULL(domain)) { domain 263 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 271 drivers/gpu/drm/i915/display/intel_display_power.c ret = __intel_display_power_is_enabled(dev_priv, domain); domain 1705 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain; domain 1712 drivers/gpu/drm/i915/display/intel_display_power.c for_each_power_domain(domain, __async_put_domains_mask(power_domains)) domain 1713 drivers/gpu/drm/i915/display/intel_display_power.c err |= WARN_ON(power_domains->domain_use_count[domain] != 1); domain 1724 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain; domain 1727 drivers/gpu/drm/i915/display/intel_display_power.c for_each_power_domain(domain, mask) domain 1729 drivers/gpu/drm/i915/display/intel_display_power.c intel_display_power_domain_str(i915, domain), domain 1730 drivers/gpu/drm/i915/display/intel_display_power.c power_domains->domain_use_count[domain]); domain 1775 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 1779 drivers/gpu/drm/i915/display/intel_display_power.c power_domains->async_put_domains[0] &= ~BIT_ULL(domain); domain 1780 drivers/gpu/drm/i915/display/intel_display_power.c power_domains->async_put_domains[1] &= ~BIT_ULL(domain); domain 1785 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 1790 drivers/gpu/drm/i915/display/intel_display_power.c if (!(async_put_domains_mask(power_domains) & BIT_ULL(domain))) domain 1793 drivers/gpu/drm/i915/display/intel_display_power.c async_put_domains_clear_domain(power_domains, domain); domain 1811 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 1816 drivers/gpu/drm/i915/display/intel_display_power.c if (intel_display_power_grab_async_put_ref(dev_priv, domain)) domain 1819 drivers/gpu/drm/i915/display/intel_display_power.c for_each_power_domain_well(dev_priv, power_well, BIT_ULL(domain)) domain 1822 drivers/gpu/drm/i915/display/intel_display_power.c power_domains->domain_use_count[domain]++; domain 1838 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 1844 drivers/gpu/drm/i915/display/intel_display_power.c __intel_display_power_get_domain(dev_priv, domain); domain 1864 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 1876 drivers/gpu/drm/i915/display/intel_display_power.c if (__intel_display_power_is_enabled(dev_priv, domain)) { domain 1877 drivers/gpu/drm/i915/display/intel_display_power.c __intel_display_power_get_domain(dev_priv, domain); domain 1895 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 1899 drivers/gpu/drm/i915/display/intel_display_power.c const char *name = intel_display_power_domain_str(dev_priv, domain); domain 1903 drivers/gpu/drm/i915/display/intel_display_power.c WARN(!power_domains->domain_use_count[domain], domain 1906 drivers/gpu/drm/i915/display/intel_display_power.c WARN(async_put_domains_mask(power_domains) & BIT_ULL(domain), domain 1910 drivers/gpu/drm/i915/display/intel_display_power.c power_domains->domain_use_count[domain]--; domain 1912 drivers/gpu/drm/i915/display/intel_display_power.c for_each_power_domain_well_reverse(dev_priv, power_well, BIT_ULL(domain)) domain 1917 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 1922 drivers/gpu/drm/i915/display/intel_display_power.c __intel_display_power_put_domain(dev_priv, domain); domain 1940 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain) domain 1942 drivers/gpu/drm/i915/display/intel_display_power.c __intel_display_power_put(dev_priv, domain); domain 1964 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain; domain 1975 drivers/gpu/drm/i915/display/intel_display_power.c for_each_power_domain(domain, mask) { domain 1977 drivers/gpu/drm/i915/display/intel_display_power.c async_put_domains_clear_domain(power_domains, domain); domain 1978 drivers/gpu/drm/i915/display/intel_display_power.c __intel_display_power_put_domain(dev_priv, domain); domain 2038 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain, domain 2047 drivers/gpu/drm/i915/display/intel_display_power.c if (power_domains->domain_use_count[domain] > 1) { domain 2048 drivers/gpu/drm/i915/display/intel_display_power.c __intel_display_power_put_domain(i915, domain); domain 2053 drivers/gpu/drm/i915/display/intel_display_power.c WARN_ON(power_domains->domain_use_count[domain] != 1); domain 2057 drivers/gpu/drm/i915/display/intel_display_power.c power_domains->async_put_domains[1] |= BIT_ULL(domain); domain 2059 drivers/gpu/drm/i915/display/intel_display_power.c power_domains->async_put_domains[0] |= BIT_ULL(domain); domain 2143 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain, domain 2146 drivers/gpu/drm/i915/display/intel_display_power.c __intel_display_power_put(dev_priv, domain); domain 5109 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain; domain 5114 drivers/gpu/drm/i915/display/intel_display_power.c for_each_power_domain(domain, power_well->desc->domains) domain 5117 drivers/gpu/drm/i915/display/intel_display_power.c domain), domain 5118 drivers/gpu/drm/i915/display/intel_display_power.c power_domains->domain_use_count[domain]); domain 5144 drivers/gpu/drm/i915/display/intel_display_power.c enum intel_display_power_domain domain; domain 5156 drivers/gpu/drm/i915/display/intel_display_power.c for_each_power_domain(domain, power_well->desc->domains) domain 5157 drivers/gpu/drm/i915/display/intel_display_power.c domains_count += power_domains->domain_use_count[domain]; domain 232 drivers/gpu/drm/i915/display/intel_display_power.h #define for_each_power_domain(domain, mask) \ domain 233 drivers/gpu/drm/i915/display/intel_display_power.h for ((domain) = 0; (domain) < POWER_DOMAIN_NUM; (domain)++) \ domain 234 drivers/gpu/drm/i915/display/intel_display_power.h for_each_if(BIT_ULL(domain) & (mask)) domain 273 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain); domain 276 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain); domain 278 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain); domain 280 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain); domain 283 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain); domain 285 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain); domain 287 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain, domain 292 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain, domain 296 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain, domain 299 drivers/gpu/drm/i915/display/intel_display_power.h __intel_display_power_put_async(i915, domain, wakeref); domain 304 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain, domain 307 drivers/gpu/drm/i915/display/intel_display_power.h intel_display_power_put_unchecked(i915, domain); domain 312 drivers/gpu/drm/i915/display/intel_display_power.h enum intel_display_power_domain domain, domain 315 drivers/gpu/drm/i915/display/intel_display_power.h __intel_display_power_put_async(i915, domain, -1); domain 319 drivers/gpu/drm/i915/display/intel_display_power.h #define with_intel_display_power(i915, domain, wf) \ domain 320 drivers/gpu/drm/i915/display/intel_display_power.h for ((wf) = intel_display_power_get((i915), (domain)); (wf); \ domain 321 drivers/gpu/drm/i915/display/intel_display_power.h intel_display_power_put_async((i915), (domain), (wf)), (wf) = 0) domain 147 drivers/gpu/drm/i915/i915_drv.c int domain = pci_domain_nr(dev_priv->drm.pdev->bus); domain 150 drivers/gpu/drm/i915/i915_drv.c pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 0)); domain 373 drivers/gpu/drm/i915/intel_uncore.c struct intel_uncore_forcewake_domain *domain = domain 375 drivers/gpu/drm/i915/intel_uncore.c struct intel_uncore *uncore = domain->uncore; domain 380 drivers/gpu/drm/i915/intel_uncore.c if (xchg(&domain->active, false)) domain 385 drivers/gpu/drm/i915/intel_uncore.c uncore->fw_domains_timer &= ~domain->mask; domain 387 drivers/gpu/drm/i915/intel_uncore.c GEM_BUG_ON(!domain->wake_count); domain 388 drivers/gpu/drm/i915/intel_uncore.c if (--domain->wake_count == 0) domain 389 drivers/gpu/drm/i915/intel_uncore.c uncore->funcs.force_wake_put(uncore, domain->mask); domain 401 drivers/gpu/drm/i915/intel_uncore.c struct intel_uncore_forcewake_domain *domain; domain 416 drivers/gpu/drm/i915/intel_uncore.c for_each_fw_domain(domain, uncore, tmp) { domain 417 drivers/gpu/drm/i915/intel_uncore.c smp_store_mb(domain->active, false); domain 418 drivers/gpu/drm/i915/intel_uncore.c if (hrtimer_cancel(&domain->timer) == 0) domain 421 drivers/gpu/drm/i915/intel_uncore.c intel_uncore_fw_release_timer(&domain->timer); domain 426 drivers/gpu/drm/i915/intel_uncore.c for_each_fw_domain(domain, uncore, tmp) { domain 427 drivers/gpu/drm/i915/intel_uncore.c if (hrtimer_active(&domain->timer)) domain 428 drivers/gpu/drm/i915/intel_uncore.c active_domains |= domain->mask; domain 587 drivers/gpu/drm/i915/intel_uncore.c struct intel_uncore_forcewake_domain *domain; domain 592 drivers/gpu/drm/i915/intel_uncore.c for_each_fw_domain_masked(domain, fw_domains, uncore, tmp) { domain 593 drivers/gpu/drm/i915/intel_uncore.c if (domain->wake_count++) { domain 594 drivers/gpu/drm/i915/intel_uncore.c fw_domains &= ~domain->mask; domain 595 drivers/gpu/drm/i915/intel_uncore.c domain->active = true; domain 697 drivers/gpu/drm/i915/intel_uncore.c struct intel_uncore_forcewake_domain *domain; domain 702 drivers/gpu/drm/i915/intel_uncore.c for_each_fw_domain_masked(domain, fw_domains, uncore, tmp) { domain 703 drivers/gpu/drm/i915/intel_uncore.c GEM_BUG_ON(!domain->wake_count); domain 705 drivers/gpu/drm/i915/intel_uncore.c if (--domain->wake_count) { domain 706 drivers/gpu/drm/i915/intel_uncore.c domain->active = true; domain 710 drivers/gpu/drm/i915/intel_uncore.c fw_domain_arm_timer(domain); domain 767 drivers/gpu/drm/i915/intel_uncore.c struct intel_uncore_forcewake_domain *domain; domain 789 drivers/gpu/drm/i915/intel_uncore.c for_each_fw_domain_masked(domain, fw_domains, uncore, tmp) { domain 790 drivers/gpu/drm/i915/intel_uncore.c unsigned int actual = READ_ONCE(domain->wake_count); domain 793 drivers/gpu/drm/i915/intel_uncore.c if (uncore->fw_domains_timer & domain->mask) domain 798 drivers/gpu/drm/i915/intel_uncore.c domain->id, actual)) domain 1184 drivers/gpu/drm/i915/intel_uncore.c struct intel_uncore_forcewake_domain *domain; domain 1189 drivers/gpu/drm/i915/intel_uncore.c for_each_fw_domain_masked(domain, fw_domains, uncore, tmp) domain 1190 drivers/gpu/drm/i915/intel_uncore.c fw_domain_arm_timer(domain); domain 142 drivers/gpu/drm/i915/selftests/intel_uncore.c struct intel_uncore_forcewake_domain *domain; domain 181 drivers/gpu/drm/i915/selftests/intel_uncore.c for_each_fw_domain(domain, uncore, tmp) { domain 182 drivers/gpu/drm/i915/selftests/intel_uncore.c smp_store_mb(domain->active, false); domain 183 drivers/gpu/drm/i915/selftests/intel_uncore.c if (!hrtimer_cancel(&domain->timer)) domain 186 drivers/gpu/drm/i915/selftests/intel_uncore.c intel_uncore_fw_release_timer(&domain->timer); domain 203 drivers/gpu/drm/i915/selftests/intel_uncore.c for_each_fw_domain_masked(domain, fw_domains, uncore, tmp) { domain 204 drivers/gpu/drm/i915/selftests/intel_uncore.c if (!domain->wake_count) domain 208 drivers/gpu/drm/i915/selftests/intel_uncore.c intel_uncore_forcewake_domain_to_str(domain->id)); domain 218 drivers/gpu/drm/i915/selftests/intel_uncore.c for_each_fw_domain_masked(domain, fw_domains, uncore, tmp) { domain 219 drivers/gpu/drm/i915/selftests/intel_uncore.c smp_store_mb(domain->active, false); domain 220 drivers/gpu/drm/i915/selftests/intel_uncore.c if (hrtimer_cancel(&domain->timer)) domain 221 drivers/gpu/drm/i915/selftests/intel_uncore.c intel_uncore_fw_release_timer(&domain->timer); domain 224 drivers/gpu/drm/i915/selftests/intel_uncore.c err = wait_ack_clear(domain, FORCEWAKE_KERNEL); domain 228 drivers/gpu/drm/i915/selftests/intel_uncore.c intel_uncore_forcewake_domain_to_str(domain->id)); domain 890 drivers/gpu/drm/msm/adreno/a6xx_gmu.c iommu_unmap(gmu->domain, iova, PAGE_SIZE); domain 927 drivers/gpu/drm/msm/adreno/a6xx_gmu.c ret = iommu_map(gmu->domain, domain 936 drivers/gpu/drm/msm/adreno/a6xx_gmu.c iommu_unmap(gmu->domain, domain 978 drivers/gpu/drm/msm/adreno/a6xx_gmu.c gmu->domain = iommu_domain_alloc(&platform_bus_type); domain 979 drivers/gpu/drm/msm/adreno/a6xx_gmu.c if (!gmu->domain) domain 982 drivers/gpu/drm/msm/adreno/a6xx_gmu.c ret = iommu_attach_device(gmu->domain, gmu->dev); domain 985 drivers/gpu/drm/msm/adreno/a6xx_gmu.c iommu_domain_free(gmu->domain); domain 986 drivers/gpu/drm/msm/adreno/a6xx_gmu.c gmu->domain = NULL; domain 1247 drivers/gpu/drm/msm/adreno/a6xx_gmu.c iommu_detach_device(gmu->domain, gmu->dev); domain 1249 drivers/gpu/drm/msm/adreno/a6xx_gmu.c iommu_domain_free(gmu->domain); domain 1333 drivers/gpu/drm/msm/adreno/a6xx_gmu.c if (gmu->domain) { domain 1334 drivers/gpu/drm/msm/adreno/a6xx_gmu.c iommu_detach_device(gmu->domain, gmu->dev); domain 1336 drivers/gpu/drm/msm/adreno/a6xx_gmu.c iommu_domain_free(gmu->domain); domain 52 drivers/gpu/drm/msm/adreno/a6xx_gmu.h struct iommu_domain *domain; domain 737 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c struct iommu_domain *domain; domain 741 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c domain = iommu_domain_alloc(&platform_bus_type); domain 742 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c if (!domain) domain 745 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c domain->geometry.aperture_start = 0x1000; domain 746 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c domain->geometry.aperture_end = 0xffffffff; domain 749 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c domain, "dpu1"); domain 751 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c iommu_domain_free(domain); domain 22 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c struct irq_domain *domain; domain 80 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c mapping = irq_find_mapping(dpu_mdss->irq_controller.domain, domain 130 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c static int dpu_mdss_irqdomain_map(struct irq_domain *domain, domain 133 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c struct dpu_mdss *dpu_mdss = domain->host_data; domain 148 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c struct irq_domain *domain; domain 152 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c domain = irq_domain_add_linear(dev->of_node, 32, domain 154 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c if (!domain) { domain 160 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c dpu_mdss->irq_controller.domain = domain; domain 167 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c if (dpu_mdss->irq_controller.domain) { domain 168 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c irq_domain_remove(dpu_mdss->irq_controller.domain); domain 169 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c dpu_mdss->irq_controller.domain = NULL; domain 27 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c struct irq_domain *domain; domain 54 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c mdp5_mdss->irqcontroller.domain, hwirq)); domain 129 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c mdp5_mdss->irqcontroller.domain = d; domain 190 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c irq_domain_remove(mdp5_mdss->irqcontroller.domain); domain 191 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c mdp5_mdss->irqcontroller.domain = NULL; domain 250 drivers/gpu/drm/msm/msm_drv.h msm_gem_address_space_create(struct device *dev, struct iommu_domain *domain, domain 130 drivers/gpu/drm/msm/msm_gem_vma.c msm_gem_address_space_create(struct device *dev, struct iommu_domain *domain, domain 134 drivers/gpu/drm/msm/msm_gem_vma.c u64 size = domain->geometry.aperture_end - domain 135 drivers/gpu/drm/msm/msm_gem_vma.c domain->geometry.aperture_start; domain 143 drivers/gpu/drm/msm/msm_gem_vma.c aspace->mmu = msm_iommu_new(dev, domain); domain 145 drivers/gpu/drm/msm/msm_gem_vma.c drm_mm_init(&aspace->mm, (domain->geometry.aperture_start >> PAGE_SHIFT), domain 12 drivers/gpu/drm/msm/msm_iommu.c struct iommu_domain *domain; domain 16 drivers/gpu/drm/msm/msm_iommu.c static int msm_fault_handler(struct iommu_domain *domain, struct device *dev, domain 31 drivers/gpu/drm/msm/msm_iommu.c return iommu_attach_device(iommu->domain, mmu->dev); domain 39 drivers/gpu/drm/msm/msm_iommu.c iommu_detach_device(iommu->domain, mmu->dev); domain 48 drivers/gpu/drm/msm/msm_iommu.c ret = iommu_map_sg(iommu->domain, iova, sgt->sgl, sgt->nents, prot); domain 58 drivers/gpu/drm/msm/msm_iommu.c iommu_unmap(iommu->domain, iova, len); domain 66 drivers/gpu/drm/msm/msm_iommu.c iommu_domain_free(iommu->domain); domain 78 drivers/gpu/drm/msm/msm_iommu.c struct msm_mmu *msm_iommu_new(struct device *dev, struct iommu_domain *domain) domain 86 drivers/gpu/drm/msm/msm_iommu.c iommu->domain = domain; domain 88 drivers/gpu/drm/msm/msm_iommu.c iommu_set_fault_handler(domain, msm_fault_handler, iommu); domain 35 drivers/gpu/drm/msm/msm_mmu.h struct msm_mmu *msm_iommu_new(struct device *dev, struct iommu_domain *domain); domain 214 drivers/gpu/drm/nouveau/dispnv04/arb.c int domain = pci_domain_nr(dev->pdev->bus); domain 216 drivers/gpu/drm/nouveau/dispnv04/arb.c pci_read_config_dword(pci_get_domain_bus_and_slot(domain, 0, 1), domain 218 drivers/gpu/drm/nouveau/dispnv04/hw.c int domain; domain 220 drivers/gpu/drm/nouveau/dispnv04/hw.c domain = pci_domain_nr(dev->pdev->bus); domain 225 drivers/gpu/drm/nouveau/dispnv04/hw.c pci_read_config_dword(pci_get_domain_bus_and_slot(domain, 0, 3), domain 237 drivers/gpu/drm/nouveau/dispnv04/hw.c pci_read_config_dword(pci_get_domain_bus_and_slot(domain, 0, 5), domain 21 drivers/gpu/drm/nouveau/include/nvif/if0002.h __u8 domain; domain 31 drivers/gpu/drm/nouveau/include/nvif/if0002.h __u8 domain; domain 7 drivers/gpu/drm/nouveau/include/nvif/if0003.h __u8 domain; domain 27 drivers/gpu/drm/nouveau/include/nvkm/core/tegra.h struct iommu_domain *domain; domain 19 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/boost.h u8 domain; domain 59 drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h u32 domain[nv_clk_src_max]; domain 648 drivers/gpu/drm/nouveau/nouveau_display.c uint32_t domain; domain 657 drivers/gpu/drm/nouveau/nouveau_display.c domain = NOUVEAU_GEM_DOMAIN_VRAM; domain 659 drivers/gpu/drm/nouveau/nouveau_display.c domain = NOUVEAU_GEM_DOMAIN_GART; domain 661 drivers/gpu/drm/nouveau/nouveau_display.c ret = nouveau_gem_new(cli, args->size, 0, domain, 0, 0, &bo); domain 168 drivers/gpu/drm/nouveau/nouveau_gem.c nouveau_gem_new(struct nouveau_cli *cli, u64 size, int align, uint32_t domain, domain 177 drivers/gpu/drm/nouveau/nouveau_gem.c if (domain & NOUVEAU_GEM_DOMAIN_VRAM) domain 179 drivers/gpu/drm/nouveau/nouveau_gem.c if (domain & NOUVEAU_GEM_DOMAIN_GART) domain 181 drivers/gpu/drm/nouveau/nouveau_gem.c if (!flags || domain & NOUVEAU_GEM_DOMAIN_CPU) domain 184 drivers/gpu/drm/nouveau/nouveau_gem.c if (domain & NOUVEAU_GEM_DOMAIN_COHERENT) domain 213 drivers/gpu/drm/nouveau/nouveau_gem.c nvbo->valid_domains &= domain; domain 230 drivers/gpu/drm/nouveau/nouveau_gem.c rep->domain = nvbo->valid_domains; domain 232 drivers/gpu/drm/nouveau/nouveau_gem.c rep->domain = NOUVEAU_GEM_DOMAIN_GART; domain 234 drivers/gpu/drm/nouveau/nouveau_gem.c rep->domain = NOUVEAU_GEM_DOMAIN_VRAM; domain 268 drivers/gpu/drm/nouveau/nouveau_gem.c req->info.domain, req->info.tile_mode, domain 524 drivers/gpu/drm/nouveau/nouveau_gem.c b->presumed.domain & NOUVEAU_GEM_DOMAIN_VRAM) || domain 526 drivers/gpu/drm/nouveau/nouveau_gem.c b->presumed.domain & NOUVEAU_GEM_DOMAIN_GART))) domain 530 drivers/gpu/drm/nouveau/nouveau_gem.c b->presumed.domain = NOUVEAU_GEM_DOMAIN_GART; domain 532 drivers/gpu/drm/nouveau/nouveau_gem.c b->presumed.domain = NOUVEAU_GEM_DOMAIN_VRAM; domain 667 drivers/gpu/drm/nouveau/nouveau_gem.c if (b->presumed.domain == NOUVEAU_GEM_DOMAIN_GART) domain 16 drivers/gpu/drm/nouveau/nouveau_gem.h uint32_t domain, uint32_t tile_mode, domain 182 drivers/gpu/drm/nouveau/nv84_fence.c u32 domain; domain 200 drivers/gpu/drm/nouveau/nv84_fence.c domain = drm->client.device.info.ram_size != 0 ? TTM_PL_FLAG_VRAM : domain 207 drivers/gpu/drm/nouveau/nv84_fence.c domain, 0, 0, NULL, NULL, &priv->bo); domain 209 drivers/gpu/drm/nouveau/nv84_fence.c ret = nouveau_bo_pin(priv->bo, domain, false); domain 74 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c const struct nvkm_domain *domain; domain 94 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c domain = clk->domains; domain 96 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c while (domain->name != nv_clk_src_max) { domain 97 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c if (domain->mname && ++j == args->v0.index) domain 99 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c domain++; domain 102 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c if (domain->name == nv_clk_src_max) domain 111 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c lo = pstate->base.domain[domain->name]; domain 114 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c lo = min(lo, cstate->domain[domain->name]); domain 115 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c hi = max(hi, cstate->domain[domain->name]); domain 120 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c lo = max(nvkm_clk_read(clk, domain->name), 0); domain 124 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c snprintf(args->v0.name, sizeof(args->v0.name), "%s", domain->mname); domain 126 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c args->v0.min = lo / domain->mdiv; domain 127 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c args->v0.max = hi / domain->mdiv; domain 130 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c while ((++domain)->name != nv_clk_src_max) { domain 131 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c if (domain->mname) { domain 127 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c tdev->iommu.domain = iommu_domain_alloc(&platform_bus_type); domain 128 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c if (!tdev->iommu.domain) domain 136 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c pgsize_bitmap = tdev->iommu.domain->ops->pgsize_bitmap; domain 148 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c ret = iommu_attach_device(tdev->iommu.domain, dev); domain 162 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c iommu_detach_device(tdev->iommu.domain, dev); domain 165 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c iommu_domain_free(tdev->iommu.domain); domain 168 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c tdev->iommu.domain = NULL; domain 178 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c if (tdev->iommu.domain) { domain 180 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c iommu_detach_device(tdev->iommu.domain, tdev->device.dev); domain 181 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c iommu_domain_free(tdev->iommu.domain); domain 141 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c sig = nvkm_perfsig_find(pm, ctr->domain, domain 180 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c sig = nvkm_perfsig_find(pm, ctr->domain, domain 330 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c nvkm_perfctr_new(struct nvkm_perfdom *dom, int slot, u8 domain, domain 344 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c ctr->domain = domain; domain 384 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c args->v0.version, args->v0.domain, args->v0.mode); domain 393 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c sig[s] = nvkm_perfsig_find(pm, args->v0.domain, domain 407 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c ret = nvkm_perfctr_new(sdom, c, args->v0.domain, sig, src, domain 501 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c args->v0.version, args->v0.domain, args->v0.iter); domain 506 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c dom = nvkm_perfdom_find(pm, args->v0.domain); domain 554 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c args->v0.version, args->v0.domain, args->v0.signal, domain 560 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c sig = nvkm_perfsig_find(pm, args->v0.domain, args->v0.signal, &dom); domain 16 drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h u8 domain; domain 120 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->domain = nvbios_rd08(bios, data + 0x00); domain 68 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c enum nvbios_therm_domain domain, domain 76 drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c if (domain != NVBIOS_THERM_DOMAIN_CORE) domain 42 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c u8 pstate, u8 domain, u32 input) domain 62 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (subd && boostS.domain == domain) { domain 82 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c const struct nvkm_domain *domain = clk->domains; domain 86 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c while (domain && domain->name != nv_clk_src_max) { domain 87 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (domain->flags & NVKM_CLK_DOM_FLAG_VPSTATE) { domain 88 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c u32 freq = cstate->domain[domain->name]; domain 99 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c domain++; domain 227 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c const struct nvkm_domain *domain = clk->domains; domain 248 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c while (domain && domain->name != nv_clk_src_max) { domain 249 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (domain->flags & NVKM_CLK_DOM_FLAG_CORE) { domain 251 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c domain->bios, cstepX.freq); domain 252 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c cstate->domain[domain->name] = freq; domain 254 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c domain++; domain 285 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c int khz = pstate->base.domain[nv_clk_src_mem]; domain 358 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c u32 lo = pstate->base.domain[clock->name]; domain 365 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c u32 freq = cstate->domain[clock->name]; domain 404 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c const struct nvkm_domain *domain = clk->domains - 1; domain 430 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c cstate->domain[nv_clk_src_core] = perfE.core; domain 431 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c cstate->domain[nv_clk_src_shader] = perfE.shader; domain 432 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c cstate->domain[nv_clk_src_mem] = perfE.memory; domain 433 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c cstate->domain[nv_clk_src_vdec] = perfE.vdec; domain 434 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c cstate->domain[nv_clk_src_dom6] = perfE.disp; domain 436 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c while (ver >= 0x40 && (++domain)->name != nv_clk_src_max) { domain 439 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c u32 perfSe = nvbios_perfSp(bios, data, domain->bios, domain 444 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (domain->flags & NVKM_CLK_DOM_FLAG_CORE) { domain 447 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c domain->bios, domain 451 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c cstate->domain[domain->name] = perfS.v40.freq; domain 607 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c clk->bstate.base.domain[clock->name] = ret; domain 277 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c u32 freq = cstate->domain[dom]; domain 294 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gf100.c clk1 = cstate->domain[nv_clk_src_hubk06]; domain 291 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c u32 freq = cstate->domain[dom]; domain 308 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk104.c clk1 = cstate->domain[nv_clk_src_hubk06]; domain 369 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 72000, domain 375 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 108000, domain 381 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 180000, domain 387 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 252000, domain 393 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 324000, domain 399 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 396000, domain 405 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 468000, domain 411 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 540000, domain 417 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 612000, domain 423 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 648000, domain 429 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 684000, domain 435 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 708000, domain 441 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 756000, domain 447 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 804000, domain 453 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c .domain[nv_clk_src_gpc] = 852000, domain 484 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.c return gk20a_pllg_calc_mnp(clk, cstate->domain[nv_clk_src_gpc] * domain 471 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c ret = gk20a_pllg_calc_mnp(&clk->base, cstate->domain[nv_clk_src_gpc] * domain 641 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 76800, domain 647 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 153600, domain 653 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 230400, domain 659 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 307200, domain 665 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 384000, domain 671 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 460800, domain 677 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 537600, domain 683 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 614400, domain 689 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 691200, domain 695 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 768000, domain 701 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 844800, domain 707 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 921600, domain 713 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c .domain[nv_clk_src_gpc] = 998400, domain 1002 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c pstates[i].base.domain[nv_clk_src_gpc]); domain 277 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c int ret = gt215_pll_info(&clk->base, idx, pll, cstate->domain[dom], domain 288 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c u32 kHz = cstate->domain[nv_clk_src_host]; domain 476 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c cstate->domain[nv_clk_src_core_intm], domain 206 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c const int shader = cstate->domain[nv_clk_src_shader]; domain 207 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c const int core = cstate->domain[nv_clk_src_core]; domain 208 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c const int vdec = cstate->domain[nv_clk_src_vdec]; domain 149 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c int gclk = cstate->domain[nv_clk_src_core]; domain 150 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c int sclk = cstate->domain[nv_clk_src_shader]; domain 374 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c const int shader = cstate->domain[nv_clk_src_shader]; domain 375 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c const int core = cstate->domain[nv_clk_src_core]; domain 376 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c const int vdec = cstate->domain[nv_clk_src_vdec]; domain 377 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c const int dom6 = cstate->domain[nv_clk_src_dom6]; domain 31 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c int domain = 0; domain 38 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c domain = pci_domain_nr(pdev->bus); domain 40 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c bridge = pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 1)); domain 106 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c struct iommu_domain *domain; domain 336 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c iommu_unmap(imem->domain, domain 477 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c ret = iommu_map(imem->domain, offset, node->dma_addrs[i], domain 484 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c iommu_unmap(imem->domain, offset, PAGE_SIZE); domain 523 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c imem->domain ? "IOMMU" : "DMA", size, align); domain 529 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c if (imem->domain) domain 588 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c if (tdev->iommu.domain) { domain 591 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c imem->domain = tdev->iommu.domain; domain 334 drivers/gpu/drm/qxl/qxl_drv.h u32 domain, domain 77 drivers/gpu/drm/qxl/qxl_gem.c u32 domain, domain 90 drivers/gpu/drm/qxl/qxl_gem.c domain, domain 44 drivers/gpu/drm/qxl/qxl_ioctl.c u32 domain = QXL_GEM_DOMAIN_VRAM; domain 51 drivers/gpu/drm/qxl/qxl_ioctl.c domain, domain 54 drivers/gpu/drm/qxl/qxl_object.c void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned) domain 62 drivers/gpu/drm/qxl/qxl_object.c if (domain == QXL_GEM_DOMAIN_VRAM) domain 64 drivers/gpu/drm/qxl/qxl_object.c if (domain == QXL_GEM_DOMAIN_SURFACE) { domain 68 drivers/gpu/drm/qxl/qxl_object.c if (domain == QXL_GEM_DOMAIN_CPU) domain 81 drivers/gpu/drm/qxl/qxl_object.c unsigned long size, bool kernel, bool pinned, u32 domain, domain 103 drivers/gpu/drm/qxl/qxl_object.c bo->type = domain; domain 111 drivers/gpu/drm/qxl/qxl_object.c qxl_ttm_placement_from_domain(bo, domain, pinned); domain 120 drivers/gpu/drm/qxl/qxl_object.c size, domain); domain 91 drivers/gpu/drm/qxl/qxl_object.h bool kernel, bool pinned, u32 domain, domain 102 drivers/gpu/drm/qxl/qxl_object.h extern void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain, bool pinned); domain 551 drivers/gpu/drm/radeon/radeon.h uint32_t domain; domain 2811 drivers/gpu/drm/radeon/radeon.h extern void radeon_ttm_placement_from_domain(struct radeon_bo *rbo, u32 domain); domain 148 drivers/gpu/drm/radeon/radeon_cs.c uint32_t domain = r->write_domain ? domain 151 drivers/gpu/drm/radeon/radeon_cs.c if (domain & RADEON_GEM_DOMAIN_CPU) { domain 157 drivers/gpu/drm/radeon/radeon_cs.c p->relocs[i].preferred_domains = domain; domain 158 drivers/gpu/drm/radeon/radeon_cs.c if (domain == RADEON_GEM_DOMAIN_VRAM) domain 159 drivers/gpu/drm/radeon/radeon_cs.c domain |= RADEON_GEM_DOMAIN_GTT; domain 160 drivers/gpu/drm/radeon/radeon_cs.c p->relocs[i].allowed_domains = domain; domain 164 drivers/gpu/drm/radeon/radeon_cs.c uint32_t domain = p->relocs[i].preferred_domains; domain 165 drivers/gpu/drm/radeon/radeon_cs.c if (!(domain & RADEON_GEM_DOMAIN_GTT)) { domain 171 drivers/gpu/drm/radeon/radeon_cs.c domain = RADEON_GEM_DOMAIN_GTT; domain 172 drivers/gpu/drm/radeon/radeon_cs.c p->relocs[i].preferred_domains = domain; domain 173 drivers/gpu/drm/radeon/radeon_cs.c p->relocs[i].allowed_domains = domain; domain 100 drivers/gpu/drm/radeon/radeon_gem.c uint32_t domain; domain 106 drivers/gpu/drm/radeon/radeon_gem.c domain = wdomain; domain 107 drivers/gpu/drm/radeon/radeon_gem.c if (!domain) { domain 108 drivers/gpu/drm/radeon/radeon_gem.c domain = rdomain; domain 110 drivers/gpu/drm/radeon/radeon_gem.c if (!domain) { domain 115 drivers/gpu/drm/radeon/radeon_gem.c if (domain == RADEON_GEM_DOMAIN_CPU) { domain 126 drivers/gpu/drm/radeon/radeon_gem.c if (domain == RADEON_GEM_DOMAIN_VRAM && robj->prime_shared_count) { domain 461 drivers/gpu/drm/radeon/radeon_gem.c args->domain = radeon_mem_type_to_domain(cur_placement); domain 556 drivers/gpu/drm/radeon/radeon_gem.c unsigned domain; domain 574 drivers/gpu/drm/radeon/radeon_gem.c domain = radeon_mem_type_to_domain(entry->bo->mem.mem_type); domain 577 drivers/gpu/drm/radeon/radeon_gem.c if (domain == RADEON_GEM_DOMAIN_CPU) domain 790 drivers/gpu/drm/radeon/radeon_gem.c unsigned domain; domain 793 drivers/gpu/drm/radeon/radeon_gem.c domain = radeon_mem_type_to_domain(rbo->tbo.mem.mem_type); domain 794 drivers/gpu/drm/radeon/radeon_gem.c switch (domain) { domain 101 drivers/gpu/drm/radeon/radeon_object.c void radeon_ttm_placement_from_domain(struct radeon_bo *rbo, u32 domain) domain 107 drivers/gpu/drm/radeon/radeon_object.c if (domain & RADEON_GEM_DOMAIN_VRAM) { domain 126 drivers/gpu/drm/radeon/radeon_object.c if (domain & RADEON_GEM_DOMAIN_GTT) { domain 145 drivers/gpu/drm/radeon/radeon_object.c if (domain & RADEON_GEM_DOMAIN_CPU) { domain 185 drivers/gpu/drm/radeon/radeon_object.c u32 domain, u32 flags, struct sg_table *sg, domain 217 drivers/gpu/drm/radeon/radeon_object.c bo->initial_domain = domain & (RADEON_GEM_DOMAIN_VRAM | domain 259 drivers/gpu/drm/radeon/radeon_object.c radeon_ttm_placement_from_domain(bo, domain); domain 328 drivers/gpu/drm/radeon/radeon_object.c int radeon_bo_pin_restricted(struct radeon_bo *bo, u32 domain, u64 max_offset, domain 345 drivers/gpu/drm/radeon/radeon_object.c if (domain == RADEON_GEM_DOMAIN_VRAM) domain 355 drivers/gpu/drm/radeon/radeon_object.c if (bo->prime_shared_count && domain == RADEON_GEM_DOMAIN_VRAM) { domain 360 drivers/gpu/drm/radeon/radeon_object.c radeon_ttm_placement_from_domain(bo, domain); domain 379 drivers/gpu/drm/radeon/radeon_object.c if (domain == RADEON_GEM_DOMAIN_VRAM) domain 389 drivers/gpu/drm/radeon/radeon_object.c int radeon_bo_pin(struct radeon_bo *bo, u32 domain, u64 *gpu_addr) domain 391 drivers/gpu/drm/radeon/radeon_object.c return radeon_bo_pin_restricted(bo, domain, 0, gpu_addr); domain 553 drivers/gpu/drm/radeon/radeon_object.c u32 domain = lobj->preferred_domains; domain 567 drivers/gpu/drm/radeon/radeon_object.c (domain & current_domain) == 0 && /* will be moved */ domain 570 drivers/gpu/drm/radeon/radeon_object.c domain = current_domain; domain 574 drivers/gpu/drm/radeon/radeon_object.c radeon_ttm_placement_from_domain(bo, domain); domain 585 drivers/gpu/drm/radeon/radeon_object.c domain != lobj->allowed_domains) { domain 586 drivers/gpu/drm/radeon/radeon_object.c domain = lobj->allowed_domains; domain 127 drivers/gpu/drm/radeon/radeon_object.h bool kernel, u32 domain, u32 flags, domain 135 drivers/gpu/drm/radeon/radeon_object.h extern int radeon_bo_pin(struct radeon_bo *bo, u32 domain, u64 *gpu_addr); domain 136 drivers/gpu/drm/radeon/radeon_object.h extern int radeon_bo_pin_restricted(struct radeon_bo *bo, u32 domain, domain 176 drivers/gpu/drm/radeon/radeon_object.h unsigned size, u32 align, u32 domain, domain 52 drivers/gpu/drm/radeon/radeon_sa.c unsigned size, u32 align, u32 domain, u32 flags) domain 59 drivers/gpu/drm/radeon/radeon_sa.c sa_manager->domain = domain; domain 68 drivers/gpu/drm/radeon/radeon_sa.c domain, flags, NULL, NULL, &sa_manager->bo); domain 112 drivers/gpu/drm/radeon/radeon_sa.c r = radeon_bo_pin(sa_manager->bo, sa_manager->domain, &sa_manager->gpu_addr); domain 54 drivers/gpu/drm/rockchip/rockchip_drm_drv.c ret = iommu_attach_device(private->domain, dev); domain 67 drivers/gpu/drm/rockchip/rockchip_drm_drv.c struct iommu_domain *domain = private->domain; domain 72 drivers/gpu/drm/rockchip/rockchip_drm_drv.c iommu_detach_device(domain, dev); domain 84 drivers/gpu/drm/rockchip/rockchip_drm_drv.c private->domain = iommu_domain_alloc(&platform_bus_type); domain 85 drivers/gpu/drm/rockchip/rockchip_drm_drv.c if (!private->domain) domain 88 drivers/gpu/drm/rockchip/rockchip_drm_drv.c geometry = &private->domain->geometry; domain 108 drivers/gpu/drm/rockchip/rockchip_drm_drv.c iommu_domain_free(private->domain); domain 47 drivers/gpu/drm/rockchip/rockchip_drm_drv.h struct iommu_domain *domain; domain 38 drivers/gpu/drm/rockchip/rockchip_drm_gem.c ret = iommu_map_sg(private->domain, rk_obj->dma_addr, rk_obj->sgt->sgl, domain 64 drivers/gpu/drm/rockchip/rockchip_drm_gem.c iommu_unmap(private->domain, rk_obj->dma_addr, rk_obj->size); domain 182 drivers/gpu/drm/rockchip/rockchip_drm_gem.c if (private->domain) domain 349 drivers/gpu/drm/rockchip/rockchip_drm_gem.c if (private->domain) { domain 525 drivers/gpu/drm/rockchip/rockchip_drm_gem.c if (private->domain) domain 100 drivers/gpu/drm/tegra/drm.c tegra->domain = iommu_domain_alloc(&platform_bus_type); domain 101 drivers/gpu/drm/tegra/drm.c if (!tegra->domain) { domain 108 drivers/gpu/drm/tegra/drm.c goto domain; domain 142 drivers/gpu/drm/tegra/drm.c if (tegra->domain) { domain 148 drivers/gpu/drm/tegra/drm.c start = tegra->domain->geometry.aperture_start & dma_mask; domain 149 drivers/gpu/drm/tegra/drm.c end = tegra->domain->geometry.aperture_end & dma_mask; domain 156 drivers/gpu/drm/tegra/drm.c order = __ffs(tegra->domain->pgsize_bitmap); domain 157 drivers/gpu/drm/tegra/drm.c init_iova_domain(&tegra->carveout.domain, 1UL << order, domain 160 drivers/gpu/drm/tegra/drm.c tegra->carveout.shift = iova_shift(&tegra->carveout.domain); domain 204 drivers/gpu/drm/tegra/drm.c if (tegra->domain) { domain 207 drivers/gpu/drm/tegra/drm.c put_iova_domain(&tegra->carveout.domain); domain 217 drivers/gpu/drm/tegra/drm.c domain: domain 218 drivers/gpu/drm/tegra/drm.c if (tegra->domain) domain 219 drivers/gpu/drm/tegra/drm.c iommu_domain_free(tegra->domain); domain 240 drivers/gpu/drm/tegra/drm.c if (tegra->domain) { domain 243 drivers/gpu/drm/tegra/drm.c put_iova_domain(&tegra->carveout.domain); domain 245 drivers/gpu/drm/tegra/drm.c iommu_domain_free(tegra->domain); domain 992 drivers/gpu/drm/tegra/drm.c if (tegra->domain) { domain 1079 drivers/gpu/drm/tegra/drm.c if (tegra->domain) { domain 1095 drivers/gpu/drm/tegra/drm.c err = iommu_attach_group(tegra->domain, group); domain 1117 drivers/gpu/drm/tegra/drm.c iommu_detach_group(tegra->domain, group); domain 1132 drivers/gpu/drm/tegra/drm.c if (tegra->domain) domain 1133 drivers/gpu/drm/tegra/drm.c size = iova_align(&tegra->carveout.domain, size); domain 1138 drivers/gpu/drm/tegra/drm.c if (!tegra->domain) { domain 1152 drivers/gpu/drm/tegra/drm.c if (!tegra->domain) { domain 1161 drivers/gpu/drm/tegra/drm.c alloc = alloc_iova(&tegra->carveout.domain, domain 1169 drivers/gpu/drm/tegra/drm.c *dma = iova_dma_addr(&tegra->carveout.domain, alloc); domain 1170 drivers/gpu/drm/tegra/drm.c err = iommu_map(tegra->domain, *dma, virt_to_phys(virt), domain 1178 drivers/gpu/drm/tegra/drm.c __free_iova(&tegra->carveout.domain, alloc); domain 1188 drivers/gpu/drm/tegra/drm.c if (tegra->domain) domain 1189 drivers/gpu/drm/tegra/drm.c size = iova_align(&tegra->carveout.domain, size); domain 1193 drivers/gpu/drm/tegra/drm.c if (tegra->domain) { domain 1194 drivers/gpu/drm/tegra/drm.c iommu_unmap(tegra->domain, dma, size); domain 1195 drivers/gpu/drm/tegra/drm.c free_iova(&tegra->carveout.domain, domain 1196 drivers/gpu/drm/tegra/drm.c iova_pfn(&tegra->carveout.domain, dma)); domain 38 drivers/gpu/drm/tegra/drm.h struct iommu_domain *domain; domain 44 drivers/gpu/drm/tegra/drm.h struct iova_domain domain; domain 138 drivers/gpu/drm/tegra/gem.c bo->size = iommu_map_sg(tegra->domain, bo->paddr, bo->sgt->sgl, domain 164 drivers/gpu/drm/tegra/gem.c iommu_unmap(tegra->domain, bo->paddr, bo->size); domain 254 drivers/gpu/drm/tegra/gem.c if (tegra->domain) { domain 358 drivers/gpu/drm/tegra/gem.c if (tegra->domain) { domain 392 drivers/gpu/drm/tegra/gem.c if (tegra->domain) domain 37 drivers/gpu/drm/tegra/vic.c struct iommu_domain *domain; domain 190 drivers/gpu/drm/tegra/vic.c if (group && tegra->domain) { domain 191 drivers/gpu/drm/tegra/vic.c err = iommu_attach_group(tegra->domain, group); domain 198 drivers/gpu/drm/tegra/vic.c vic->domain = tegra->domain; domain 224 drivers/gpu/drm/tegra/vic.c if (group && tegra->domain) domain 225 drivers/gpu/drm/tegra/vic.c iommu_detach_group(tegra->domain, group); domain 246 drivers/gpu/drm/tegra/vic.c if (vic->domain) { domain 247 drivers/gpu/drm/tegra/vic.c iommu_detach_group(vic->domain, group); domain 248 drivers/gpu/drm/tegra/vic.c vic->domain = NULL; domain 56 drivers/gpu/host1x/cdma.c if (host1x->domain) { domain 57 drivers/gpu/host1x/cdma.c iommu_unmap(host1x->domain, pb->dma, pb->alloc_size); domain 88 drivers/gpu/host1x/cdma.c if (host1x->domain) { domain 107 drivers/gpu/host1x/cdma.c err = iommu_map(host1x->domain, pb->dma, pb->phys, size, domain 286 drivers/gpu/host1x/dev.c host->domain = iommu_domain_alloc(&platform_bus_type); domain 287 drivers/gpu/host1x/dev.c if (!host->domain) { domain 292 drivers/gpu/host1x/dev.c err = iommu_attach_group(host->domain, host->group); domain 295 drivers/gpu/host1x/dev.c iommu_domain_free(host->domain); domain 296 drivers/gpu/host1x/dev.c host->domain = NULL; domain 306 drivers/gpu/host1x/dev.c geometry = &host->domain->geometry; domain 310 drivers/gpu/host1x/dev.c order = __ffs(host->domain->pgsize_bitmap); domain 369 drivers/gpu/host1x/dev.c if (host->group && host->domain) { domain 371 drivers/gpu/host1x/dev.c iommu_detach_group(host->domain, host->group); domain 374 drivers/gpu/host1x/dev.c if (host->domain) domain 375 drivers/gpu/host1x/dev.c iommu_domain_free(host->domain); domain 395 drivers/gpu/host1x/dev.c if (host->domain) { domain 397 drivers/gpu/host1x/dev.c iommu_detach_group(host->domain, host->group); domain 398 drivers/gpu/host1x/dev.c iommu_domain_free(host->domain); domain 117 drivers/gpu/host1x/dev.h struct iommu_domain *domain; domain 144 drivers/gpu/host1x/job.c if (!IS_ENABLED(CONFIG_TEGRA_HOST1X_FIREWALL) && host->domain) { domain 157 drivers/gpu/host1x/job.c err = iommu_map_sg(host->domain, domain 563 drivers/gpu/host1x/job.c unpin->size && host->domain) { domain 564 drivers/gpu/host1x/job.c iommu_unmap(host->domain, job->addr_phys[i], domain 1079 drivers/gpu/ipu-v3/ipu-common.c irq = irq_linear_revmap(ipu->domain, domain 1117 drivers/gpu/ipu-v3/ipu-common.c virq = irq_linear_revmap(ipu->domain, irq); domain 1119 drivers/gpu/ipu-v3/ipu-common.c virq = irq_create_mapping(ipu->domain, irq); domain 1277 drivers/gpu/ipu-v3/ipu-common.c ipu->domain = irq_domain_add_linear(ipu->dev->of_node, IPU_NUM_IRQS, domain 1279 drivers/gpu/ipu-v3/ipu-common.c if (!ipu->domain) { domain 1284 drivers/gpu/ipu-v3/ipu-common.c ret = irq_alloc_domain_generic_chips(ipu->domain, 32, 1, "IPU", domain 1288 drivers/gpu/ipu-v3/ipu-common.c irq_domain_remove(ipu->domain); domain 1299 drivers/gpu/ipu-v3/ipu-common.c gc = irq_get_domain_generic_chip(ipu->domain, i); domain 1327 drivers/gpu/ipu-v3/ipu-common.c irq = irq_linear_revmap(ipu->domain, i); domain 1332 drivers/gpu/ipu-v3/ipu-common.c irq_domain_remove(ipu->domain); domain 187 drivers/gpu/ipu-v3/ipu-prv.h struct irq_domain *domain; domain 1063 drivers/gpu/vga/vga_switcheroo.c struct dev_pm_domain *domain) domain 1067 drivers/gpu/vga/vga_switcheroo.c domain->ops = *dev->bus->pm; domain 1068 drivers/gpu/vga/vga_switcheroo.c domain->ops.runtime_suspend = vga_switcheroo_runtime_suspend; domain 1069 drivers/gpu/vga/vga_switcheroo.c domain->ops.runtime_resume = vga_switcheroo_runtime_resume; domain 1071 drivers/gpu/vga/vga_switcheroo.c dev_pm_domain_set(dev, domain); domain 987 drivers/gpu/vga/vgaarb.c static int vga_pci_str_to_vars(char *buf, int count, unsigned int *domain, domain 994 drivers/gpu/vga/vgaarb.c n = sscanf(buf, "PCI:%x:%x:%x.%x", domain, bus, &slot, &func); domain 1226 drivers/gpu/vga/vgaarb.c unsigned int domain, bus, devfn; domain 1237 drivers/gpu/vga/vgaarb.c &domain, &bus, &devfn)) { domain 1241 drivers/gpu/vga/vgaarb.c pdev = pci_get_domain_bus_and_slot(domain, bus, devfn); domain 1244 drivers/gpu/vga/vgaarb.c domain, bus, PCI_SLOT(devfn), domain 1251 drivers/gpu/vga/vgaarb.c domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn), domain 99 drivers/hid/hid-rmi.c struct irq_domain *domain; domain 599 drivers/hid/hid-rmi.c struct irq_domain *domain = hdata->domain; domain 601 drivers/hid/hid-rmi.c if (!domain) domain 604 drivers/hid/hid-rmi.c irq_dispose_mapping(irq_find_mapping(domain, 0)); domain 606 drivers/hid/hid-rmi.c irq_domain_remove(domain); domain 607 drivers/hid/hid-rmi.c hdata->domain = NULL; domain 628 drivers/hid/hid-rmi.c hdata->domain = irq_domain_create_linear(hdev->dev.fwnode, 1, domain 630 drivers/hid/hid-rmi.c if (!hdata->domain) domain 637 drivers/hid/hid-rmi.c hdata->rmi_irq = irq_create_mapping(hdata->domain, 0); domain 1246 drivers/i2c/i2c-core-base.c struct irq_domain *domain = adap->host_notify_domain; domain 1249 drivers/i2c/i2c-core-base.c if (!domain) domain 1253 drivers/i2c/i2c-core-base.c irq_dispose_mapping(irq_find_mapping(domain, hwirq)); domain 1255 drivers/i2c/i2c-core-base.c irq_domain_remove(domain); domain 1274 drivers/i2c/i2c-core-base.c struct irq_domain *domain; domain 1279 drivers/i2c/i2c-core-base.c domain = irq_domain_create_linear(adap->dev.fwnode, domain 1282 drivers/i2c/i2c-core-base.c if (!domain) domain 1285 drivers/i2c/i2c-core-base.c adap->host_notify_domain = domain; domain 97 drivers/iio/adc/stm32-adc-core.c struct irq_domain *domain; domain 337 drivers/iio/adc/stm32-adc-core.c generic_handle_irq(irq_find_mapping(priv->domain, 0)); domain 341 drivers/iio/adc/stm32-adc-core.c generic_handle_irq(irq_find_mapping(priv->domain, 1)); domain 345 drivers/iio/adc/stm32-adc-core.c generic_handle_irq(irq_find_mapping(priv->domain, 2)); domain 388 drivers/iio/adc/stm32-adc-core.c priv->domain = irq_domain_add_simple(np, STM32_ADC_MAX_ADCS, 0, domain 391 drivers/iio/adc/stm32-adc-core.c if (!priv->domain) { domain 411 drivers/iio/adc/stm32-adc-core.c irq_dispose_mapping(irq_find_mapping(priv->domain, hwirq)); domain 412 drivers/iio/adc/stm32-adc-core.c irq_domain_remove(priv->domain); domain 1526 drivers/infiniband/hw/mlx4/main.c int domain, domain 1550 drivers/infiniband/hw/mlx4/main.c if (domain >= IB_FLOW_DOMAIN_NUM) { domain 1551 drivers/infiniband/hw/mlx4/main.c pr_err("Invalid domain value %d\n", domain); domain 1563 drivers/infiniband/hw/mlx4/main.c ctrl->prio = cpu_to_be16(__mlx4_domain[domain] | domain 1707 drivers/infiniband/hw/mlx4/main.c int domain, struct ib_udata *udata) domain 1773 drivers/infiniband/hw/mlx4/main.c err = __mlx4_ib_create_flow(qp, flow_attr, domain, type[i], domain 1783 drivers/infiniband/hw/mlx4/main.c domain, type[j], domain 3784 drivers/infiniband/hw/mlx5/main.c int domain, domain 3835 drivers/infiniband/hw/mlx5/main.c if (domain != IB_FLOW_DOMAIN_USER || domain 4504 drivers/infiniband/hw/mlx5/qp.c static void mlx5_fill_inl_bsf(struct ib_sig_domain *domain, domain 4510 drivers/infiniband/hw/mlx5/qp.c inl->dif_apptag = cpu_to_be16(domain->sig.dif.app_tag); domain 4511 drivers/infiniband/hw/mlx5/qp.c inl->dif_reftag = cpu_to_be32(domain->sig.dif.ref_tag); domain 4514 drivers/infiniband/hw/mlx5/qp.c inl->sig_type = domain->sig.dif.bg_type == IB_T10DIF_CRC ? domain 4517 drivers/infiniband/hw/mlx5/qp.c if (domain->sig.dif.ref_remap) domain 4520 drivers/infiniband/hw/mlx5/qp.c if (domain->sig.dif.app_escape) { domain 4521 drivers/infiniband/hw/mlx5/qp.c if (domain->sig.dif.ref_escape) domain 4528 drivers/infiniband/hw/mlx5/qp.c cpu_to_be16(domain->sig.dif.apptag_check_mask); domain 4781 drivers/infiniband/hw/mlx5/qp.c static int set_psv_wr(struct ib_sig_domain *domain, domain 4788 drivers/infiniband/hw/mlx5/qp.c switch (domain->sig_type) { domain 4792 drivers/infiniband/hw/mlx5/qp.c psv_seg->transient_sig = cpu_to_be32(domain->sig.dif.bg << 16 | domain 4793 drivers/infiniband/hw/mlx5/qp.c domain->sig.dif.app_tag); domain 4794 drivers/infiniband/hw/mlx5/qp.c psv_seg->ref_tag = cpu_to_be32(domain->sig.dif.ref_tag); domain 4798 drivers/infiniband/hw/mlx5/qp.c domain->sig_type); domain 55 drivers/infiniband/hw/usnic/usnic_uiom.c static int usnic_uiom_dma_fault(struct iommu_domain *domain, domain 62 drivers/infiniband/hw/usnic/usnic_uiom.c domain, iova, flags); domain 207 drivers/infiniband/hw/usnic/usnic_uiom.c iommu_unmap(pd->domain, va, PAGE_SIZE); domain 284 drivers/infiniband/hw/usnic/usnic_uiom.c err = iommu_map(pd->domain, va_start, pa_start, domain 301 drivers/infiniband/hw/usnic/usnic_uiom.c err = iommu_map(pd->domain, va_start, pa_start, domain 445 drivers/infiniband/hw/usnic/usnic_uiom.c void *domain; domain 451 drivers/infiniband/hw/usnic/usnic_uiom.c pd->domain = domain = iommu_domain_alloc(&pci_bus_type); domain 452 drivers/infiniband/hw/usnic/usnic_uiom.c if (!domain) { domain 458 drivers/infiniband/hw/usnic/usnic_uiom.c iommu_set_fault_handler(pd->domain, usnic_uiom_dma_fault, NULL); domain 468 drivers/infiniband/hw/usnic/usnic_uiom.c iommu_domain_free(pd->domain); domain 482 drivers/infiniband/hw/usnic/usnic_uiom.c err = iommu_attach_device(pd->domain, dev); domain 501 drivers/infiniband/hw/usnic/usnic_uiom.c iommu_detach_device(pd->domain, dev); domain 531 drivers/infiniband/hw/usnic/usnic_uiom.c return iommu_detach_device(pd->domain, dev); domain 58 drivers/infiniband/hw/usnic/usnic_uiom.h struct iommu_domain *domain; domain 305 drivers/infiniband/ulp/iser/iser_memory.c iser_set_dif_domain(struct scsi_cmnd *sc, struct ib_sig_domain *domain) domain 307 drivers/infiniband/ulp/iser/iser_memory.c domain->sig_type = IB_SIG_TYPE_T10_DIF; domain 308 drivers/infiniband/ulp/iser/iser_memory.c domain->sig.dif.pi_interval = scsi_prot_interval(sc); domain 309 drivers/infiniband/ulp/iser/iser_memory.c domain->sig.dif.ref_tag = t10_pi_ref_tag(sc->request); domain 314 drivers/infiniband/ulp/iser/iser_memory.c domain->sig.dif.apptag_check_mask = 0xffff; domain 315 drivers/infiniband/ulp/iser/iser_memory.c domain->sig.dif.app_escape = true; domain 316 drivers/infiniband/ulp/iser/iser_memory.c domain->sig.dif.ref_escape = true; domain 318 drivers/infiniband/ulp/iser/iser_memory.c domain->sig.dif.ref_remap = true; domain 2062 drivers/infiniband/ulp/isert/ib_isert.c isert_set_dif_domain(struct se_cmd *se_cmd, struct ib_sig_domain *domain) domain 2064 drivers/infiniband/ulp/isert/ib_isert.c domain->sig_type = IB_SIG_TYPE_T10_DIF; domain 2065 drivers/infiniband/ulp/isert/ib_isert.c domain->sig.dif.bg_type = IB_T10DIF_CRC; domain 2066 drivers/infiniband/ulp/isert/ib_isert.c domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size; domain 2067 drivers/infiniband/ulp/isert/ib_isert.c domain->sig.dif.ref_tag = se_cmd->reftag_seed; domain 2073 drivers/infiniband/ulp/isert/ib_isert.c domain->sig.dif.apptag_check_mask = 0xffff; domain 2074 drivers/infiniband/ulp/isert/ib_isert.c domain->sig.dif.app_escape = true; domain 2075 drivers/infiniband/ulp/isert/ib_isert.c domain->sig.dif.ref_escape = true; domain 2078 drivers/infiniband/ulp/isert/ib_isert.c domain->sig.dif.ref_remap = true; domain 102 drivers/iommu/amd_iommu.c static void update_domain(struct protection_domain *domain); domain 103 drivers/iommu/amd_iommu.c static int protection_domain_init(struct protection_domain *domain); domain 112 drivers/iommu/amd_iommu.c struct protection_domain domain; domain 187 drivers/iommu/amd_iommu.c return container_of(dom, struct protection_domain, domain); domain 190 drivers/iommu/amd_iommu.c static struct dma_ops_domain* to_dma_ops_domain(struct protection_domain *domain) domain 192 drivers/iommu/amd_iommu.c BUG_ON(domain->flags != PD_DMA_OPS_MASK); domain 193 drivers/iommu/amd_iommu.c return container_of(domain, struct dma_ops_domain, domain); domain 471 drivers/iommu/amd_iommu.c if (dev_data->domain) domain 1266 drivers/iommu/amd_iommu.c static void __domain_flush_pages(struct protection_domain *domain, domain 1273 drivers/iommu/amd_iommu.c build_inv_iommu_pages(&cmd, address, size, domain->id, pde); domain 1276 drivers/iommu/amd_iommu.c if (!domain->dev_iommu[i]) domain 1286 drivers/iommu/amd_iommu.c list_for_each_entry(dev_data, &domain->dev_list, list) { domain 1297 drivers/iommu/amd_iommu.c static void domain_flush_pages(struct protection_domain *domain, domain 1300 drivers/iommu/amd_iommu.c __domain_flush_pages(domain, address, size, 0); domain 1304 drivers/iommu/amd_iommu.c static void domain_flush_tlb(struct protection_domain *domain) domain 1306 drivers/iommu/amd_iommu.c __domain_flush_pages(domain, 0, CMD_INV_IOMMU_ALL_PAGES_ADDRESS, 0); domain 1310 drivers/iommu/amd_iommu.c static void domain_flush_tlb_pde(struct protection_domain *domain) domain 1312 drivers/iommu/amd_iommu.c __domain_flush_pages(domain, 0, CMD_INV_IOMMU_ALL_PAGES_ADDRESS, 1); domain 1315 drivers/iommu/amd_iommu.c static void domain_flush_complete(struct protection_domain *domain) domain 1320 drivers/iommu/amd_iommu.c if (domain && !domain->dev_iommu[i]) domain 1332 drivers/iommu/amd_iommu.c static void domain_flush_np_cache(struct protection_domain *domain, domain 1338 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 1339 drivers/iommu/amd_iommu.c domain_flush_pages(domain, iova, size); domain 1340 drivers/iommu/amd_iommu.c domain_flush_complete(domain); domain 1341 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 1349 drivers/iommu/amd_iommu.c static void domain_flush_devices(struct protection_domain *domain) domain 1353 drivers/iommu/amd_iommu.c list_for_each_entry(dev_data, &domain->dev_list, list) domain 1446 drivers/iommu/amd_iommu.c static void free_pagetable(struct protection_domain *domain) domain 1448 drivers/iommu/amd_iommu.c unsigned long root = (unsigned long)domain->pt_root; domain 1451 drivers/iommu/amd_iommu.c BUG_ON(domain->mode < PAGE_MODE_NONE || domain 1452 drivers/iommu/amd_iommu.c domain->mode > PAGE_MODE_6_LEVEL); domain 1454 drivers/iommu/amd_iommu.c freelist = free_sub_pt(root, domain->mode, freelist); domain 1464 drivers/iommu/amd_iommu.c static bool increase_address_space(struct protection_domain *domain, domain 1472 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 1474 drivers/iommu/amd_iommu.c if (address <= PM_LEVEL_SIZE(domain->mode) || domain 1475 drivers/iommu/amd_iommu.c WARN_ON_ONCE(domain->mode == PAGE_MODE_6_LEVEL)) domain 1482 drivers/iommu/amd_iommu.c *pte = PM_LEVEL_PDE(domain->mode, domain 1483 drivers/iommu/amd_iommu.c iommu_virt_to_phys(domain->pt_root)); domain 1484 drivers/iommu/amd_iommu.c domain->pt_root = pte; domain 1485 drivers/iommu/amd_iommu.c domain->mode += 1; domain 1490 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 1495 drivers/iommu/amd_iommu.c static u64 *alloc_pte(struct protection_domain *domain, domain 1507 drivers/iommu/amd_iommu.c while (address > PM_LEVEL_SIZE(domain->mode)) domain 1508 drivers/iommu/amd_iommu.c *updated = increase_address_space(domain, address, gfp) || *updated; domain 1510 drivers/iommu/amd_iommu.c level = domain->mode - 1; domain 1511 drivers/iommu/amd_iommu.c pte = &domain->pt_root[PM_LEVEL_INDEX(level, address)]; domain 1583 drivers/iommu/amd_iommu.c static u64 *fetch_pte(struct protection_domain *domain, domain 1592 drivers/iommu/amd_iommu.c if (address > PM_LEVEL_SIZE(domain->mode)) domain 1595 drivers/iommu/amd_iommu.c level = domain->mode - 1; domain 1596 drivers/iommu/amd_iommu.c pte = &domain->pt_root[PM_LEVEL_INDEX(level, address)]; domain 1855 drivers/iommu/amd_iommu.c static void free_gcr3_table(struct protection_domain *domain) domain 1857 drivers/iommu/amd_iommu.c if (domain->glx == 2) domain 1858 drivers/iommu/amd_iommu.c free_gcr3_tbl_level2(domain->gcr3_tbl); domain 1859 drivers/iommu/amd_iommu.c else if (domain->glx == 1) domain 1860 drivers/iommu/amd_iommu.c free_gcr3_tbl_level1(domain->gcr3_tbl); domain 1862 drivers/iommu/amd_iommu.c BUG_ON(domain->glx != 0); domain 1864 drivers/iommu/amd_iommu.c free_page((unsigned long)domain->gcr3_tbl); domain 1871 drivers/iommu/amd_iommu.c spin_lock_irqsave(&dom->domain.lock, flags); domain 1872 drivers/iommu/amd_iommu.c domain_flush_tlb(&dom->domain); domain 1873 drivers/iommu/amd_iommu.c domain_flush_complete(&dom->domain); domain 1874 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&dom->domain.lock, flags); domain 1897 drivers/iommu/amd_iommu.c free_pagetable(&dom->domain); domain 1899 drivers/iommu/amd_iommu.c if (dom->domain.id) domain 1900 drivers/iommu/amd_iommu.c domain_id_free(dom->domain.id); domain 1918 drivers/iommu/amd_iommu.c if (protection_domain_init(&dma_dom->domain)) domain 1921 drivers/iommu/amd_iommu.c dma_dom->domain.mode = PAGE_MODE_3_LEVEL; domain 1922 drivers/iommu/amd_iommu.c dma_dom->domain.pt_root = (void *)get_zeroed_page(GFP_KERNEL); domain 1923 drivers/iommu/amd_iommu.c dma_dom->domain.flags = PD_DMA_OPS_MASK; domain 1924 drivers/iommu/amd_iommu.c if (!dma_dom->domain.pt_root) domain 1947 drivers/iommu/amd_iommu.c static bool dma_ops_domain(struct protection_domain *domain) domain 1949 drivers/iommu/amd_iommu.c return domain->flags & PD_DMA_OPS_MASK; domain 1952 drivers/iommu/amd_iommu.c static void set_dte_entry(u16 devid, struct protection_domain *domain, domain 1959 drivers/iommu/amd_iommu.c if (domain->mode != PAGE_MODE_NONE) domain 1960 drivers/iommu/amd_iommu.c pte_root = iommu_virt_to_phys(domain->pt_root); domain 1962 drivers/iommu/amd_iommu.c pte_root |= (domain->mode & DEV_ENTRY_MODE_MASK) domain 1978 drivers/iommu/amd_iommu.c if (domain->flags & PD_IOMMUV2_MASK) { domain 1979 drivers/iommu/amd_iommu.c u64 gcr3 = iommu_virt_to_phys(domain->gcr3_tbl); domain 1980 drivers/iommu/amd_iommu.c u64 glx = domain->glx; domain 2005 drivers/iommu/amd_iommu.c flags |= domain->id; domain 2033 drivers/iommu/amd_iommu.c struct protection_domain *domain) domain 2042 drivers/iommu/amd_iommu.c dev_data->domain = domain; domain 2043 drivers/iommu/amd_iommu.c list_add(&dev_data->list, &domain->dev_list); domain 2046 drivers/iommu/amd_iommu.c domain->dev_iommu[iommu->index] += 1; domain 2047 drivers/iommu/amd_iommu.c domain->dev_cnt += 1; domain 2050 drivers/iommu/amd_iommu.c set_dte_entry(dev_data->devid, domain, ats, dev_data->iommu_v2); domain 2058 drivers/iommu/amd_iommu.c struct protection_domain *domain = dev_data->domain; domain 2064 drivers/iommu/amd_iommu.c dev_data->domain = NULL; domain 2073 drivers/iommu/amd_iommu.c domain_flush_tlb_pde(domain); domain 2076 drivers/iommu/amd_iommu.c domain_flush_complete(domain); domain 2079 drivers/iommu/amd_iommu.c domain->dev_iommu[iommu->index] -= 1; domain 2080 drivers/iommu/amd_iommu.c domain->dev_cnt -= 1; domain 2157 drivers/iommu/amd_iommu.c struct protection_domain *domain) domain 2164 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 2171 drivers/iommu/amd_iommu.c if (dev_data->domain != NULL) domain 2178 drivers/iommu/amd_iommu.c if (domain->flags & PD_IOMMUV2_MASK) { domain 2200 drivers/iommu/amd_iommu.c do_attach(dev_data, domain); domain 2207 drivers/iommu/amd_iommu.c domain_flush_tlb_pde(domain); domain 2209 drivers/iommu/amd_iommu.c domain_flush_complete(domain); domain 2214 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 2224 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2229 drivers/iommu/amd_iommu.c domain = dev_data->domain; domain 2231 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 2241 drivers/iommu/amd_iommu.c if (WARN_ON(!dev_data->domain)) domain 2249 drivers/iommu/amd_iommu.c if (domain->flags & PD_IOMMUV2_MASK && dev_data->iommu_v2) domain 2259 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 2265 drivers/iommu/amd_iommu.c struct iommu_domain *domain; domain 2297 drivers/iommu/amd_iommu.c domain = iommu_get_domain_for_dev(dev); domain 2298 drivers/iommu/amd_iommu.c if (domain->type == IOMMU_DOMAIN_IDENTITY) domain 2350 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2356 drivers/iommu/amd_iommu.c domain = get_dev_data(dev)->domain; domain 2357 drivers/iommu/amd_iommu.c if (domain == NULL && get_dev_data(dev)->defer_attach) { domain 2360 drivers/iommu/amd_iommu.c domain = to_pdomain(io_domain); domain 2361 drivers/iommu/amd_iommu.c attach_device(dev, domain); domain 2363 drivers/iommu/amd_iommu.c if (domain == NULL) domain 2366 drivers/iommu/amd_iommu.c if (!dma_ops_domain(domain)) domain 2369 drivers/iommu/amd_iommu.c return domain; domain 2372 drivers/iommu/amd_iommu.c static void update_device_table(struct protection_domain *domain) domain 2376 drivers/iommu/amd_iommu.c list_for_each_entry(dev_data, &domain->dev_list, list) { domain 2377 drivers/iommu/amd_iommu.c set_dte_entry(dev_data->devid, domain, dev_data->ats.enabled, domain 2383 drivers/iommu/amd_iommu.c static void update_domain(struct protection_domain *domain) domain 2385 drivers/iommu/amd_iommu.c update_device_table(domain); domain 2387 drivers/iommu/amd_iommu.c domain_flush_devices(domain); domain 2388 drivers/iommu/amd_iommu.c domain_flush_tlb_pde(domain); domain 2389 drivers/iommu/amd_iommu.c domain_flush_complete(domain); domain 2435 drivers/iommu/amd_iommu.c ret = iommu_map_page(&dma_dom->domain, start, paddr, domain 2445 drivers/iommu/amd_iommu.c domain_flush_np_cache(&dma_dom->domain, address, size); domain 2454 drivers/iommu/amd_iommu.c iommu_unmap_page(&dma_dom->domain, start, PAGE_SIZE); domain 2457 drivers/iommu/amd_iommu.c spin_lock_irqsave(&dma_dom->domain.lock, flags); domain 2458 drivers/iommu/amd_iommu.c domain_flush_tlb(&dma_dom->domain); domain 2459 drivers/iommu/amd_iommu.c domain_flush_complete(&dma_dom->domain); domain 2460 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&dma_dom->domain.lock, flags); domain 2484 drivers/iommu/amd_iommu.c iommu_unmap_page(&dma_dom->domain, start, PAGE_SIZE); domain 2491 drivers/iommu/amd_iommu.c spin_lock_irqsave(&dma_dom->domain.lock, flags); domain 2492 drivers/iommu/amd_iommu.c domain_flush_tlb(&dma_dom->domain); domain 2493 drivers/iommu/amd_iommu.c domain_flush_complete(&dma_dom->domain); domain 2494 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&dma_dom->domain.lock, flags); domain 2511 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2515 drivers/iommu/amd_iommu.c domain = get_domain(dev); domain 2516 drivers/iommu/amd_iommu.c if (PTR_ERR(domain) == -EINVAL) domain 2518 drivers/iommu/amd_iommu.c else if (IS_ERR(domain)) domain 2522 drivers/iommu/amd_iommu.c dma_dom = to_dma_ops_domain(domain); domain 2533 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2536 drivers/iommu/amd_iommu.c domain = get_domain(dev); domain 2537 drivers/iommu/amd_iommu.c if (IS_ERR(domain)) domain 2540 drivers/iommu/amd_iommu.c dma_dom = to_dma_ops_domain(domain); domain 2580 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2587 drivers/iommu/amd_iommu.c domain = get_domain(dev); domain 2588 drivers/iommu/amd_iommu.c if (IS_ERR(domain)) domain 2591 drivers/iommu/amd_iommu.c dma_dom = to_dma_ops_domain(domain); domain 2611 drivers/iommu/amd_iommu.c ret = iommu_map_page(domain, bus_addr, phys_addr, domain 2633 drivers/iommu/amd_iommu.c domain_flush_np_cache(domain, s->dma_address, s->dma_length); domain 2648 drivers/iommu/amd_iommu.c iommu_unmap_page(domain, bus_addr, PAGE_SIZE); domain 2670 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2675 drivers/iommu/amd_iommu.c domain = get_domain(dev); domain 2676 drivers/iommu/amd_iommu.c if (IS_ERR(domain)) domain 2680 drivers/iommu/amd_iommu.c dma_dom = to_dma_ops_domain(domain); domain 2694 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2698 drivers/iommu/amd_iommu.c domain = get_domain(dev); domain 2699 drivers/iommu/amd_iommu.c if (PTR_ERR(domain) == -EINVAL) { domain 2703 drivers/iommu/amd_iommu.c } else if (IS_ERR(domain)) domain 2706 drivers/iommu/amd_iommu.c dma_dom = to_dma_ops_domain(domain); domain 2749 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2756 drivers/iommu/amd_iommu.c domain = get_domain(dev); domain 2757 drivers/iommu/amd_iommu.c if (IS_ERR(domain)) domain 2760 drivers/iommu/amd_iommu.c dma_dom = to_dma_ops_domain(domain); domain 2895 drivers/iommu/amd_iommu.c static void cleanup_domain(struct protection_domain *domain) domain 2900 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 2902 drivers/iommu/amd_iommu.c while (!list_empty(&domain->dev_list)) { domain 2903 drivers/iommu/amd_iommu.c entry = list_first_entry(&domain->dev_list, domain 2905 drivers/iommu/amd_iommu.c BUG_ON(!entry->domain); domain 2909 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 2912 drivers/iommu/amd_iommu.c static void protection_domain_free(struct protection_domain *domain) domain 2914 drivers/iommu/amd_iommu.c if (!domain) domain 2917 drivers/iommu/amd_iommu.c if (domain->id) domain 2918 drivers/iommu/amd_iommu.c domain_id_free(domain->id); domain 2920 drivers/iommu/amd_iommu.c kfree(domain); domain 2923 drivers/iommu/amd_iommu.c static int protection_domain_init(struct protection_domain *domain) domain 2925 drivers/iommu/amd_iommu.c spin_lock_init(&domain->lock); domain 2926 drivers/iommu/amd_iommu.c mutex_init(&domain->api_lock); domain 2927 drivers/iommu/amd_iommu.c domain->id = domain_id_alloc(); domain 2928 drivers/iommu/amd_iommu.c if (!domain->id) domain 2930 drivers/iommu/amd_iommu.c INIT_LIST_HEAD(&domain->dev_list); domain 2937 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 2939 drivers/iommu/amd_iommu.c domain = kzalloc(sizeof(*domain), GFP_KERNEL); domain 2940 drivers/iommu/amd_iommu.c if (!domain) domain 2943 drivers/iommu/amd_iommu.c if (protection_domain_init(domain)) domain 2946 drivers/iommu/amd_iommu.c return domain; domain 2949 drivers/iommu/amd_iommu.c kfree(domain); domain 2972 drivers/iommu/amd_iommu.c pdomain->domain.geometry.aperture_start = 0; domain 2973 drivers/iommu/amd_iommu.c pdomain->domain.geometry.aperture_end = ~0ULL; domain 2974 drivers/iommu/amd_iommu.c pdomain->domain.geometry.force_aperture = true; domain 2983 drivers/iommu/amd_iommu.c pdomain = &dma_domain->domain; domain 2996 drivers/iommu/amd_iommu.c return &pdomain->domain; domain 3001 drivers/iommu/amd_iommu.c struct protection_domain *domain; domain 3004 drivers/iommu/amd_iommu.c domain = to_pdomain(dom); domain 3006 drivers/iommu/amd_iommu.c if (domain->dev_cnt > 0) domain 3007 drivers/iommu/amd_iommu.c cleanup_domain(domain); domain 3009 drivers/iommu/amd_iommu.c BUG_ON(domain->dev_cnt != 0); domain 3017 drivers/iommu/amd_iommu.c dma_dom = to_dma_ops_domain(domain); domain 3021 drivers/iommu/amd_iommu.c if (domain->mode != PAGE_MODE_NONE) domain 3022 drivers/iommu/amd_iommu.c free_pagetable(domain); domain 3024 drivers/iommu/amd_iommu.c if (domain->flags & PD_IOMMUV2_MASK) domain 3025 drivers/iommu/amd_iommu.c free_gcr3_table(domain); domain 3027 drivers/iommu/amd_iommu.c protection_domain_free(domain); domain 3046 drivers/iommu/amd_iommu.c if (dev_data->domain != NULL) domain 3065 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3079 drivers/iommu/amd_iommu.c if (dev_data->domain) domain 3082 drivers/iommu/amd_iommu.c ret = attach_device(dev, domain); domain 3101 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3105 drivers/iommu/amd_iommu.c if (domain->mode == PAGE_MODE_NONE) domain 3113 drivers/iommu/amd_iommu.c mutex_lock(&domain->api_lock); domain 3114 drivers/iommu/amd_iommu.c ret = iommu_map_page(domain, iova, paddr, page_size, prot, GFP_KERNEL); domain 3115 drivers/iommu/amd_iommu.c mutex_unlock(&domain->api_lock); domain 3117 drivers/iommu/amd_iommu.c domain_flush_np_cache(domain, iova, page_size); domain 3126 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3129 drivers/iommu/amd_iommu.c if (domain->mode == PAGE_MODE_NONE) domain 3132 drivers/iommu/amd_iommu.c mutex_lock(&domain->api_lock); domain 3133 drivers/iommu/amd_iommu.c unmap_size = iommu_unmap_page(domain, iova, page_size); domain 3134 drivers/iommu/amd_iommu.c mutex_unlock(&domain->api_lock); domain 3142 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3146 drivers/iommu/amd_iommu.c if (domain->mode == PAGE_MODE_NONE) domain 3149 drivers/iommu/amd_iommu.c pte = fetch_pte(domain, iova, &pte_pgsize); domain 3238 drivers/iommu/amd_iommu.c struct iommu_domain *domain, domain 3241 drivers/iommu/amd_iommu.c struct dma_ops_domain *dma_dom = to_dma_ops_domain(to_pdomain(domain)); domain 3250 drivers/iommu/amd_iommu.c static bool amd_iommu_is_attach_deferred(struct iommu_domain *domain, domain 3257 drivers/iommu/amd_iommu.c static void amd_iommu_flush_iotlb_all(struct iommu_domain *domain) domain 3259 drivers/iommu/amd_iommu.c struct protection_domain *dom = to_pdomain(domain); domain 3268 drivers/iommu/amd_iommu.c static void amd_iommu_iotlb_sync(struct iommu_domain *domain, domain 3271 drivers/iommu/amd_iommu.c amd_iommu_flush_iotlb_all(domain); domain 3320 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3323 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 3326 drivers/iommu/amd_iommu.c domain->mode = PAGE_MODE_NONE; domain 3329 drivers/iommu/amd_iommu.c update_domain(domain); domain 3332 drivers/iommu/amd_iommu.c free_pagetable(domain); domain 3334 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 3340 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3354 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 3362 drivers/iommu/amd_iommu.c if (domain->dev_cnt > 0 || domain->flags & PD_IOMMUV2_MASK) domain 3366 drivers/iommu/amd_iommu.c domain->gcr3_tbl = (void *)get_zeroed_page(GFP_ATOMIC); domain 3367 drivers/iommu/amd_iommu.c if (domain->gcr3_tbl == NULL) domain 3370 drivers/iommu/amd_iommu.c domain->glx = levels; domain 3371 drivers/iommu/amd_iommu.c domain->flags |= PD_IOMMUV2_MASK; domain 3373 drivers/iommu/amd_iommu.c update_domain(domain); domain 3378 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 3384 drivers/iommu/amd_iommu.c static int __flush_pasid(struct protection_domain *domain, int pasid, domain 3391 drivers/iommu/amd_iommu.c if (!(domain->flags & PD_IOMMUV2_MASK)) domain 3394 drivers/iommu/amd_iommu.c build_inv_iommu_pasid(&cmd, domain->id, pasid, address, size); domain 3401 drivers/iommu/amd_iommu.c if (domain->dev_iommu[i] == 0) domain 3410 drivers/iommu/amd_iommu.c domain_flush_complete(domain); domain 3413 drivers/iommu/amd_iommu.c list_for_each_entry(dev_data, &domain->dev_list, list) { domain 3436 drivers/iommu/amd_iommu.c domain_flush_complete(domain); domain 3445 drivers/iommu/amd_iommu.c static int __amd_iommu_flush_page(struct protection_domain *domain, int pasid, domain 3448 drivers/iommu/amd_iommu.c return __flush_pasid(domain, pasid, address, false); domain 3454 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3458 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 3459 drivers/iommu/amd_iommu.c ret = __amd_iommu_flush_page(domain, pasid, address); domain 3460 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 3466 drivers/iommu/amd_iommu.c static int __amd_iommu_flush_tlb(struct protection_domain *domain, int pasid) domain 3468 drivers/iommu/amd_iommu.c return __flush_pasid(domain, pasid, CMD_INV_IOMMU_ALL_PAGES_ADDRESS, domain 3474 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3478 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 3479 drivers/iommu/amd_iommu.c ret = __amd_iommu_flush_tlb(domain, pasid); domain 3480 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 3518 drivers/iommu/amd_iommu.c static int __set_gcr3(struct protection_domain *domain, int pasid, domain 3523 drivers/iommu/amd_iommu.c if (domain->mode != PAGE_MODE_NONE) domain 3526 drivers/iommu/amd_iommu.c pte = __get_gcr3_pte(domain->gcr3_tbl, domain->glx, pasid, true); domain 3532 drivers/iommu/amd_iommu.c return __amd_iommu_flush_tlb(domain, pasid); domain 3535 drivers/iommu/amd_iommu.c static int __clear_gcr3(struct protection_domain *domain, int pasid) domain 3539 drivers/iommu/amd_iommu.c if (domain->mode != PAGE_MODE_NONE) domain 3542 drivers/iommu/amd_iommu.c pte = __get_gcr3_pte(domain->gcr3_tbl, domain->glx, pasid, false); domain 3548 drivers/iommu/amd_iommu.c return __amd_iommu_flush_tlb(domain, pasid); domain 3554 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3558 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 3559 drivers/iommu/amd_iommu.c ret = __set_gcr3(domain, pasid, cr3); domain 3560 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 3568 drivers/iommu/amd_iommu.c struct protection_domain *domain = to_pdomain(dom); domain 3572 drivers/iommu/amd_iommu.c spin_lock_irqsave(&domain->lock, flags); domain 3573 drivers/iommu/amd_iommu.c ret = __clear_gcr3(domain, pasid); domain 3574 drivers/iommu/amd_iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 3609 drivers/iommu/amd_iommu.c return &pdomain->domain; domain 4232 drivers/iommu/amd_iommu.c static int irq_remapping_alloc(struct irq_domain *domain, unsigned int virq, domain 4259 drivers/iommu/amd_iommu.c ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); domain 4300 drivers/iommu/amd_iommu.c irq_data = irq_domain_get_irq_data(domain, virq + i); domain 4333 drivers/iommu/amd_iommu.c irq_data = irq_domain_get_irq_data(domain, virq + i); domain 4340 drivers/iommu/amd_iommu.c irq_domain_free_irqs_common(domain, virq, nr_irqs); domain 4344 drivers/iommu/amd_iommu.c static void irq_remapping_free(struct irq_domain *domain, unsigned int virq, domain 4353 drivers/iommu/amd_iommu.c irq_data = irq_domain_get_irq_data(domain, virq + i); domain 4362 drivers/iommu/amd_iommu.c irq_domain_free_irqs_common(domain, virq, nr_irqs); domain 4370 drivers/iommu/amd_iommu.c static int irq_remapping_activate(struct irq_domain *domain, domain 4387 drivers/iommu/amd_iommu.c static void irq_remapping_deactivate(struct irq_domain *domain, domain 468 drivers/iommu/amd_iommu_types.h struct iommu_domain domain; /* generic domain handle used by domain 641 drivers/iommu/amd_iommu_types.h struct protection_domain *domain; /* Domain the device is bound to */ domain 59 drivers/iommu/amd_iommu_v2.c struct iommu_domain *domain; domain 136 drivers/iommu/amd_iommu_v2.c iommu_detach_group(dev_state->domain, group); domain 141 drivers/iommu/amd_iommu_v2.c iommu_domain_free(dev_state->domain); domain 275 drivers/iommu/amd_iommu_v2.c struct iommu_domain *domain; domain 277 drivers/iommu/amd_iommu_v2.c domain = pasid_state->device_state->domain; domain 289 drivers/iommu/amd_iommu_v2.c amd_iommu_domain_clear_gcr3(domain, pasid_state->pasid); domain 372 drivers/iommu/amd_iommu_v2.c amd_iommu_flush_page(dev_state->domain, pasid_state->pasid, domain 375 drivers/iommu/amd_iommu_v2.c amd_iommu_flush_tlb(dev_state->domain, pasid_state->pasid); domain 652 drivers/iommu/amd_iommu_v2.c ret = amd_iommu_domain_set_gcr3(dev_state->domain, pasid, domain 773 drivers/iommu/amd_iommu_v2.c dev_state->domain = iommu_domain_alloc(&pci_bus_type); domain 774 drivers/iommu/amd_iommu_v2.c if (dev_state->domain == NULL) domain 777 drivers/iommu/amd_iommu_v2.c amd_iommu_domain_direct_map(dev_state->domain); domain 779 drivers/iommu/amd_iommu_v2.c ret = amd_iommu_domain_enable_v2(dev_state->domain, pasids); domain 789 drivers/iommu/amd_iommu_v2.c ret = iommu_attach_group(dev_state->domain, group); domain 813 drivers/iommu/amd_iommu_v2.c iommu_domain_free(dev_state->domain); domain 636 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *domain; domain 665 drivers/iommu/arm-smmu-v3.c struct iommu_domain domain; domain 694 drivers/iommu/arm-smmu-v3.c return container_of(dom, struct arm_smmu_domain, domain); domain 1552 drivers/iommu/arm-smmu-v3.c smmu_domain = master->domain; domain 2038 drivers/iommu/arm-smmu-v3.c struct iommu_domain *domain = &smmu_domain->domain; domain 2040 drivers/iommu/arm-smmu-v3.c iommu_iotlb_gather_add_page(domain, gather, iova, granule); domain 2094 drivers/iommu/arm-smmu-v3.c iommu_get_dma_cookie(&smmu_domain->domain)) { domain 2103 drivers/iommu/arm-smmu-v3.c return &smmu_domain->domain; domain 2124 drivers/iommu/arm-smmu-v3.c static void arm_smmu_domain_free(struct iommu_domain *domain) domain 2126 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 2129 drivers/iommu/arm-smmu-v3.c iommu_put_dma_cookie(domain); domain 2202 drivers/iommu/arm-smmu-v3.c static int arm_smmu_domain_finalise(struct iommu_domain *domain) domain 2211 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 2214 drivers/iommu/arm-smmu-v3.c if (domain->type == IOMMU_DOMAIN_IDENTITY) { domain 2260 drivers/iommu/arm-smmu-v3.c domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; domain 2261 drivers/iommu/arm-smmu-v3.c domain->geometry.aperture_end = (1UL << pgtbl_cfg.ias) - 1; domain 2262 drivers/iommu/arm-smmu-v3.c domain->geometry.force_aperture = true; domain 2342 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = master->domain; domain 2361 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = master->domain; domain 2380 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = master->domain; domain 2391 drivers/iommu/arm-smmu-v3.c master->domain = NULL; domain 2396 drivers/iommu/arm-smmu-v3.c static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) domain 2402 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 2417 drivers/iommu/arm-smmu-v3.c ret = arm_smmu_domain_finalise(domain); domain 2431 drivers/iommu/arm-smmu-v3.c master->domain = smmu_domain; domain 2452 drivers/iommu/arm-smmu-v3.c static int arm_smmu_map(struct iommu_domain *domain, unsigned long iova, domain 2455 drivers/iommu/arm-smmu-v3.c struct io_pgtable_ops *ops = to_smmu_domain(domain)->pgtbl_ops; domain 2463 drivers/iommu/arm-smmu-v3.c static size_t arm_smmu_unmap(struct iommu_domain *domain, unsigned long iova, domain 2466 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 2475 drivers/iommu/arm-smmu-v3.c static void arm_smmu_flush_iotlb_all(struct iommu_domain *domain) domain 2477 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 2483 drivers/iommu/arm-smmu-v3.c static void arm_smmu_iotlb_sync(struct iommu_domain *domain, domain 2486 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 2493 drivers/iommu/arm-smmu-v3.c arm_smmu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) domain 2495 drivers/iommu/arm-smmu-v3.c struct io_pgtable_ops *ops = to_smmu_domain(domain)->pgtbl_ops; domain 2497 drivers/iommu/arm-smmu-v3.c if (domain->type == IOMMU_DOMAIN_IDENTITY) domain 2621 drivers/iommu/arm-smmu-v3.c static int arm_smmu_domain_get_attr(struct iommu_domain *domain, domain 2624 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 2626 drivers/iommu/arm-smmu-v3.c switch (domain->type) { domain 2650 drivers/iommu/arm-smmu-v3.c static int arm_smmu_domain_set_attr(struct iommu_domain *domain, domain 2654 drivers/iommu/arm-smmu-v3.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 2658 drivers/iommu/arm-smmu-v3.c switch (domain->type) { domain 130 drivers/iommu/arm-smmu.c return container_of(dom, struct arm_smmu_domain, domain); domain 450 drivers/iommu/arm-smmu.c struct iommu_domain *domain = dev; domain 451 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 628 drivers/iommu/arm-smmu.c static int arm_smmu_init_domain_context(struct iommu_domain *domain, domain 636 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 643 drivers/iommu/arm-smmu.c if (domain->type == IOMMU_DOMAIN_IDENTITY) { domain 787 drivers/iommu/arm-smmu.c domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; domain 788 drivers/iommu/arm-smmu.c domain->geometry.aperture_end = (1UL << ias) - 1; domain 789 drivers/iommu/arm-smmu.c domain->geometry.force_aperture = true; domain 801 drivers/iommu/arm-smmu.c IRQF_SHARED, "arm-smmu-context-fault", domain); domain 822 drivers/iommu/arm-smmu.c static void arm_smmu_destroy_domain_context(struct iommu_domain *domain) domain 824 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 829 drivers/iommu/arm-smmu.c if (!smmu || domain->type == IOMMU_DOMAIN_IDENTITY) domain 845 drivers/iommu/arm-smmu.c devm_free_irq(smmu->dev, irq, domain); domain 872 drivers/iommu/arm-smmu.c iommu_get_dma_cookie(&smmu_domain->domain))) { domain 880 drivers/iommu/arm-smmu.c return &smmu_domain->domain; domain 883 drivers/iommu/arm-smmu.c static void arm_smmu_domain_free(struct iommu_domain *domain) domain 885 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 891 drivers/iommu/arm-smmu.c iommu_put_dma_cookie(domain); domain 892 drivers/iommu/arm-smmu.c arm_smmu_destroy_domain_context(domain); domain 1109 drivers/iommu/arm-smmu.c static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) domain 1114 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 1138 drivers/iommu/arm-smmu.c ret = arm_smmu_init_domain_context(domain, smmu); domain 1162 drivers/iommu/arm-smmu.c static int arm_smmu_map(struct iommu_domain *domain, unsigned long iova, domain 1165 drivers/iommu/arm-smmu.c struct io_pgtable_ops *ops = to_smmu_domain(domain)->pgtbl_ops; domain 1166 drivers/iommu/arm-smmu.c struct arm_smmu_device *smmu = to_smmu_domain(domain)->smmu; domain 1179 drivers/iommu/arm-smmu.c static size_t arm_smmu_unmap(struct iommu_domain *domain, unsigned long iova, domain 1182 drivers/iommu/arm-smmu.c struct io_pgtable_ops *ops = to_smmu_domain(domain)->pgtbl_ops; domain 1183 drivers/iommu/arm-smmu.c struct arm_smmu_device *smmu = to_smmu_domain(domain)->smmu; domain 1196 drivers/iommu/arm-smmu.c static void arm_smmu_flush_iotlb_all(struct iommu_domain *domain) domain 1198 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 1208 drivers/iommu/arm-smmu.c static void arm_smmu_iotlb_sync(struct iommu_domain *domain, domain 1211 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 1221 drivers/iommu/arm-smmu.c static phys_addr_t arm_smmu_iova_to_phys_hard(struct iommu_domain *domain, domain 1224 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 1268 drivers/iommu/arm-smmu.c static phys_addr_t arm_smmu_iova_to_phys(struct iommu_domain *domain, domain 1271 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 1274 drivers/iommu/arm-smmu.c if (domain->type == IOMMU_DOMAIN_IDENTITY) domain 1282 drivers/iommu/arm-smmu.c return arm_smmu_iova_to_phys_hard(domain, iova); domain 1443 drivers/iommu/arm-smmu.c static int arm_smmu_domain_get_attr(struct iommu_domain *domain, domain 1446 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 1448 drivers/iommu/arm-smmu.c switch(domain->type) { domain 1472 drivers/iommu/arm-smmu.c static int arm_smmu_domain_set_attr(struct iommu_domain *domain, domain 1476 drivers/iommu/arm-smmu.c struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); domain 1480 drivers/iommu/arm-smmu.c switch(domain->type) { domain 323 drivers/iommu/arm-smmu.h struct iommu_domain domain; domain 78 drivers/iommu/dma-iommu.c int iommu_get_dma_cookie(struct iommu_domain *domain) domain 80 drivers/iommu/dma-iommu.c if (domain->iova_cookie) domain 83 drivers/iommu/dma-iommu.c domain->iova_cookie = cookie_alloc(IOMMU_DMA_IOVA_COOKIE); domain 84 drivers/iommu/dma-iommu.c if (!domain->iova_cookie) domain 103 drivers/iommu/dma-iommu.c int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base) domain 107 drivers/iommu/dma-iommu.c if (domain->type != IOMMU_DOMAIN_UNMANAGED) domain 110 drivers/iommu/dma-iommu.c if (domain->iova_cookie) domain 118 drivers/iommu/dma-iommu.c domain->iova_cookie = cookie; domain 130 drivers/iommu/dma-iommu.c void iommu_put_dma_cookie(struct iommu_domain *domain) domain 132 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 146 drivers/iommu/dma-iommu.c domain->iova_cookie = NULL; domain 238 drivers/iommu/dma-iommu.c struct iommu_domain *domain) domain 240 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 278 drivers/iommu/dma-iommu.c struct iommu_domain *domain; domain 281 drivers/iommu/dma-iommu.c domain = cookie->fq_domain; domain 286 drivers/iommu/dma-iommu.c domain->ops->flush_iotlb_all(domain); domain 301 drivers/iommu/dma-iommu.c static int iommu_dma_init_domain(struct iommu_domain *domain, dma_addr_t base, domain 304 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 315 drivers/iommu/dma-iommu.c order = __ffs(domain->pgsize_bitmap); domain 319 drivers/iommu/dma-iommu.c if (domain->geometry.force_aperture) { domain 320 drivers/iommu/dma-iommu.c if (base > domain->geometry.aperture_end || domain 321 drivers/iommu/dma-iommu.c base + size <= domain->geometry.aperture_start) { domain 327 drivers/iommu/dma-iommu.c domain->geometry.aperture_start >> order); domain 343 drivers/iommu/dma-iommu.c if (!cookie->fq_domain && !iommu_domain_get_attr(domain, domain 345 drivers/iommu/dma-iommu.c cookie->fq_domain = domain; domain 352 drivers/iommu/dma-iommu.c return iova_reserve_iommu_regions(dev, domain); domain 384 drivers/iommu/dma-iommu.c static dma_addr_t iommu_dma_alloc_iova(struct iommu_domain *domain, domain 387 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 410 drivers/iommu/dma-iommu.c if (domain->geometry.force_aperture) domain 411 drivers/iommu/dma-iommu.c dma_limit = min(dma_limit, domain->geometry.aperture_end); domain 444 drivers/iommu/dma-iommu.c struct iommu_domain *domain = iommu_get_dma_domain(dev); domain 445 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 455 drivers/iommu/dma-iommu.c unmapped = iommu_unmap_fast(domain, dma_addr, size, &iotlb_gather); domain 459 drivers/iommu/dma-iommu.c iommu_tlb_sync(domain, &iotlb_gather); domain 466 drivers/iommu/dma-iommu.c struct iommu_domain *domain = iommu_get_dma_domain(dev); domain 467 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 474 drivers/iommu/dma-iommu.c iova = iommu_dma_alloc_iova(domain, size, dma_get_mask(dev), dev); domain 478 drivers/iommu/dma-iommu.c if (iommu_map(domain, iova, phys - iova_off, size, prot)) { domain 567 drivers/iommu/dma-iommu.c struct iommu_domain *domain = iommu_get_dma_domain(dev); domain 568 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 573 drivers/iommu/dma-iommu.c unsigned int count, min_size, alloc_sizes = domain->pgsize_bitmap; domain 598 drivers/iommu/dma-iommu.c iova = iommu_dma_alloc_iova(domain, size, dev->coherent_dma_mask, dev); domain 613 drivers/iommu/dma-iommu.c if (iommu_map_sg(domain, iova, sgt.sgl, sgt.orig_nents, ioprot) domain 813 drivers/iommu/dma-iommu.c struct iommu_domain *domain = iommu_get_dma_domain(dev); domain 814 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 865 drivers/iommu/dma-iommu.c iova = iommu_dma_alloc_iova(domain, iova_len, dma_get_mask(dev), dev); domain 873 drivers/iommu/dma-iommu.c if (iommu_map_sg(domain, iova, sg, nents, prot) < iova_len) domain 1088 drivers/iommu/dma-iommu.c struct iommu_domain *domain = iommu_get_dma_domain(dev); domain 1090 drivers/iommu/dma-iommu.c return (1UL << __ffs(domain->pgsize_bitmap)) - 1; domain 1117 drivers/iommu/dma-iommu.c struct iommu_domain *domain = iommu_get_domain_for_dev(dev); domain 1119 drivers/iommu/dma-iommu.c if (!domain) domain 1126 drivers/iommu/dma-iommu.c if (domain->type == IOMMU_DOMAIN_DMA) { domain 1127 drivers/iommu/dma-iommu.c if (iommu_dma_init_domain(domain, dma_base, size, dev)) domain 1139 drivers/iommu/dma-iommu.c phys_addr_t msi_addr, struct iommu_domain *domain) domain 1141 drivers/iommu/dma-iommu.c struct iommu_dma_cookie *cookie = domain->iova_cookie; domain 1156 drivers/iommu/dma-iommu.c iova = iommu_dma_alloc_iova(domain, size, dma_get_mask(dev), dev); domain 1160 drivers/iommu/dma-iommu.c if (iommu_map(domain, iova, msi_addr, size, prot)) domain 1179 drivers/iommu/dma-iommu.c struct iommu_domain *domain = iommu_get_domain_for_dev(dev); domain 1183 drivers/iommu/dma-iommu.c if (!domain || !domain->iova_cookie) { domain 1194 drivers/iommu/dma-iommu.c msi_page = iommu_dma_get_msi_page(dev, msi_addr, domain); domain 1208 drivers/iommu/dma-iommu.c const struct iommu_domain *domain = iommu_get_domain_for_dev(dev); domain 1213 drivers/iommu/dma-iommu.c if (!domain || !domain->iova_cookie || WARN_ON(!msi_page)) domain 1217 drivers/iommu/dma-iommu.c msg->address_lo &= cookie_msi_granule(domain->iova_cookie) - 1; domain 236 drivers/iommu/exynos-iommu.c struct iommu_domain *domain; /* domain this device is attached */ domain 252 drivers/iommu/exynos-iommu.c struct iommu_domain domain; /* generic domain data structure */ domain 272 drivers/iommu/exynos-iommu.c struct exynos_iommu_domain *domain; /* domain we belong to */ domain 283 drivers/iommu/exynos-iommu.c return container_of(dom, struct exynos_iommu_domain, domain); domain 443 drivers/iommu/exynos-iommu.c if (data->domain) domain 444 drivers/iommu/exynos-iommu.c ret = report_iommu_fault(&data->domain->domain, domain 676 drivers/iommu/exynos-iommu.c if (data->domain) { domain 694 drivers/iommu/exynos-iommu.c if (data->domain) { domain 735 drivers/iommu/exynos-iommu.c struct exynos_iommu_domain *domain; domain 742 drivers/iommu/exynos-iommu.c domain = kzalloc(sizeof(*domain), GFP_KERNEL); domain 743 drivers/iommu/exynos-iommu.c if (!domain) domain 747 drivers/iommu/exynos-iommu.c if (iommu_get_dma_cookie(&domain->domain) != 0) domain 753 drivers/iommu/exynos-iommu.c domain->pgtable = (sysmmu_pte_t *)__get_free_pages(GFP_KERNEL, 2); domain 754 drivers/iommu/exynos-iommu.c if (!domain->pgtable) domain 757 drivers/iommu/exynos-iommu.c domain->lv2entcnt = (short *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, 1); domain 758 drivers/iommu/exynos-iommu.c if (!domain->lv2entcnt) domain 763 drivers/iommu/exynos-iommu.c domain->pgtable[i] = ZERO_LV2LINK; domain 765 drivers/iommu/exynos-iommu.c handle = dma_map_single(dma_dev, domain->pgtable, LV1TABLE_SIZE, domain 768 drivers/iommu/exynos-iommu.c BUG_ON(handle != virt_to_phys(domain->pgtable)); domain 772 drivers/iommu/exynos-iommu.c spin_lock_init(&domain->lock); domain 773 drivers/iommu/exynos-iommu.c spin_lock_init(&domain->pgtablelock); domain 774 drivers/iommu/exynos-iommu.c INIT_LIST_HEAD(&domain->clients); domain 776 drivers/iommu/exynos-iommu.c domain->domain.geometry.aperture_start = 0; domain 777 drivers/iommu/exynos-iommu.c domain->domain.geometry.aperture_end = ~0UL; domain 778 drivers/iommu/exynos-iommu.c domain->domain.geometry.force_aperture = true; domain 780 drivers/iommu/exynos-iommu.c return &domain->domain; domain 783 drivers/iommu/exynos-iommu.c free_pages((unsigned long)domain->lv2entcnt, 1); domain 785 drivers/iommu/exynos-iommu.c free_pages((unsigned long)domain->pgtable, 2); domain 788 drivers/iommu/exynos-iommu.c iommu_put_dma_cookie(&domain->domain); domain 790 drivers/iommu/exynos-iommu.c kfree(domain); domain 796 drivers/iommu/exynos-iommu.c struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); domain 801 drivers/iommu/exynos-iommu.c WARN_ON(!list_empty(&domain->clients)); domain 803 drivers/iommu/exynos-iommu.c spin_lock_irqsave(&domain->lock, flags); domain 805 drivers/iommu/exynos-iommu.c list_for_each_entry_safe(data, next, &domain->clients, domain_node) { domain 809 drivers/iommu/exynos-iommu.c data->domain = NULL; domain 814 drivers/iommu/exynos-iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 819 drivers/iommu/exynos-iommu.c dma_unmap_single(dma_dev, virt_to_phys(domain->pgtable), LV1TABLE_SIZE, domain 823 drivers/iommu/exynos-iommu.c if (lv1ent_page(domain->pgtable + i)) { domain 824 drivers/iommu/exynos-iommu.c phys_addr_t base = lv2table_base(domain->pgtable + i); domain 832 drivers/iommu/exynos-iommu.c free_pages((unsigned long)domain->pgtable, 2); domain 833 drivers/iommu/exynos-iommu.c free_pages((unsigned long)domain->lv2entcnt, 1); domain 834 drivers/iommu/exynos-iommu.c kfree(domain); domain 841 drivers/iommu/exynos-iommu.c struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); domain 842 drivers/iommu/exynos-iommu.c phys_addr_t pagetable = virt_to_phys(domain->pgtable); domain 846 drivers/iommu/exynos-iommu.c if (!has_sysmmu(dev) || owner->domain != iommu_domain) domain 858 drivers/iommu/exynos-iommu.c spin_lock_irqsave(&domain->lock, flags); domain 859 drivers/iommu/exynos-iommu.c list_for_each_entry_safe(data, next, &domain->clients, domain_node) { domain 862 drivers/iommu/exynos-iommu.c data->domain = NULL; domain 866 drivers/iommu/exynos-iommu.c owner->domain = NULL; domain 867 drivers/iommu/exynos-iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 879 drivers/iommu/exynos-iommu.c struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); domain 881 drivers/iommu/exynos-iommu.c phys_addr_t pagetable = virt_to_phys(domain->pgtable); domain 887 drivers/iommu/exynos-iommu.c if (owner->domain) domain 888 drivers/iommu/exynos-iommu.c exynos_iommu_detach_device(owner->domain, dev); domain 892 drivers/iommu/exynos-iommu.c spin_lock_irqsave(&domain->lock, flags); domain 896 drivers/iommu/exynos-iommu.c data->domain = domain; domain 897 drivers/iommu/exynos-iommu.c list_add_tail(&data->domain_node, &domain->clients); domain 900 drivers/iommu/exynos-iommu.c owner->domain = iommu_domain; domain 901 drivers/iommu/exynos-iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 918 drivers/iommu/exynos-iommu.c static sysmmu_pte_t *alloc_lv2entry(struct exynos_iommu_domain *domain, domain 966 drivers/iommu/exynos-iommu.c spin_lock(&domain->lock); domain 967 drivers/iommu/exynos-iommu.c list_for_each_entry(data, &domain->clients, domain_node) domain 969 drivers/iommu/exynos-iommu.c spin_unlock(&domain->lock); domain 976 drivers/iommu/exynos-iommu.c static int lv1set_section(struct exynos_iommu_domain *domain, domain 999 drivers/iommu/exynos-iommu.c spin_lock(&domain->lock); domain 1006 drivers/iommu/exynos-iommu.c list_for_each_entry(data, &domain->clients, domain_node) domain 1009 drivers/iommu/exynos-iommu.c spin_unlock(&domain->lock); domain 1078 drivers/iommu/exynos-iommu.c struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); domain 1084 drivers/iommu/exynos-iommu.c BUG_ON(domain->pgtable == NULL); domain 1087 drivers/iommu/exynos-iommu.c spin_lock_irqsave(&domain->pgtablelock, flags); domain 1089 drivers/iommu/exynos-iommu.c entry = section_entry(domain->pgtable, iova); domain 1092 drivers/iommu/exynos-iommu.c ret = lv1set_section(domain, entry, iova, paddr, prot, domain 1093 drivers/iommu/exynos-iommu.c &domain->lv2entcnt[lv1ent_offset(iova)]); domain 1097 drivers/iommu/exynos-iommu.c pent = alloc_lv2entry(domain, entry, iova, domain 1098 drivers/iommu/exynos-iommu.c &domain->lv2entcnt[lv1ent_offset(iova)]); domain 1104 drivers/iommu/exynos-iommu.c &domain->lv2entcnt[lv1ent_offset(iova)]); domain 1111 drivers/iommu/exynos-iommu.c spin_unlock_irqrestore(&domain->pgtablelock, flags); domain 1116 drivers/iommu/exynos-iommu.c static void exynos_iommu_tlb_invalidate_entry(struct exynos_iommu_domain *domain, domain 1122 drivers/iommu/exynos-iommu.c spin_lock_irqsave(&domain->lock, flags); domain 1124 drivers/iommu/exynos-iommu.c list_for_each_entry(data, &domain->clients, domain_node) domain 1127 drivers/iommu/exynos-iommu.c spin_unlock_irqrestore(&domain->lock, flags); domain 1134 drivers/iommu/exynos-iommu.c struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); domain 1140 drivers/iommu/exynos-iommu.c BUG_ON(domain->pgtable == NULL); domain 1142 drivers/iommu/exynos-iommu.c spin_lock_irqsave(&domain->pgtablelock, flags); domain 1144 drivers/iommu/exynos-iommu.c ent = section_entry(domain->pgtable, iova); domain 1176 drivers/iommu/exynos-iommu.c domain->lv2entcnt[lv1ent_offset(iova)] += 1; domain 1194 drivers/iommu/exynos-iommu.c domain->lv2entcnt[lv1ent_offset(iova)] += SPAGES_PER_LPAGE; domain 1196 drivers/iommu/exynos-iommu.c spin_unlock_irqrestore(&domain->pgtablelock, flags); domain 1198 drivers/iommu/exynos-iommu.c exynos_iommu_tlb_invalidate_entry(domain, iova, size); domain 1202 drivers/iommu/exynos-iommu.c spin_unlock_irqrestore(&domain->pgtablelock, flags); domain 1213 drivers/iommu/exynos-iommu.c struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); domain 1218 drivers/iommu/exynos-iommu.c spin_lock_irqsave(&domain->pgtablelock, flags); domain 1220 drivers/iommu/exynos-iommu.c entry = section_entry(domain->pgtable, iova); domain 1233 drivers/iommu/exynos-iommu.c spin_unlock_irqrestore(&domain->pgtablelock, flags); domain 1275 drivers/iommu/exynos-iommu.c if (owner->domain) { domain 1279 drivers/iommu/exynos-iommu.c WARN_ON(owner->domain != domain 1281 drivers/iommu/exynos-iommu.c exynos_iommu_detach_device(owner->domain, dev); domain 297 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *domain; domain 299 drivers/iommu/fsl_pamu_domain.c domain = kmem_cache_zalloc(fsl_pamu_domain_cache, GFP_KERNEL); domain 300 drivers/iommu/fsl_pamu_domain.c if (!domain) domain 303 drivers/iommu/fsl_pamu_domain.c domain->stash_id = ~(u32)0; domain 304 drivers/iommu/fsl_pamu_domain.c domain->snoop_id = ~(u32)0; domain 305 drivers/iommu/fsl_pamu_domain.c domain->win_cnt = pamu_get_max_subwin_cnt(); domain 306 drivers/iommu/fsl_pamu_domain.c domain->geom_size = 0; domain 308 drivers/iommu/fsl_pamu_domain.c INIT_LIST_HEAD(&domain->devices); domain 310 drivers/iommu/fsl_pamu_domain.c spin_lock_init(&domain->domain_lock); domain 312 drivers/iommu/fsl_pamu_domain.c return domain; domain 356 drivers/iommu/fsl_pamu_domain.c if (old_domain_info && old_domain_info->domain != dma_domain) { domain 358 drivers/iommu/fsl_pamu_domain.c detach_device(dev, old_domain_info->domain); domain 366 drivers/iommu/fsl_pamu_domain.c info->domain = dma_domain; domain 379 drivers/iommu/fsl_pamu_domain.c static phys_addr_t fsl_pamu_iova_to_phys(struct iommu_domain *domain, domain 382 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 384 drivers/iommu/fsl_pamu_domain.c if (iova < domain->geometry.aperture_start || domain 385 drivers/iommu/fsl_pamu_domain.c iova > domain->geometry.aperture_end) domain 396 drivers/iommu/fsl_pamu_domain.c static void fsl_pamu_domain_free(struct iommu_domain *domain) domain 398 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 494 drivers/iommu/fsl_pamu_domain.c static void fsl_pamu_window_disable(struct iommu_domain *domain, u32 wnd_nr) domain 496 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 524 drivers/iommu/fsl_pamu_domain.c static int fsl_pamu_window_enable(struct iommu_domain *domain, u32 wnd_nr, domain 527 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 566 drivers/iommu/fsl_pamu_domain.c ret = check_size(size, domain->geometry.aperture_start); domain 604 drivers/iommu/fsl_pamu_domain.c struct iommu_domain *domain = &dma_domain->iommu_domain; domain 628 drivers/iommu/fsl_pamu_domain.c &domain->geometry, win_cnt); domain 647 drivers/iommu/fsl_pamu_domain.c static int fsl_pamu_attach_device(struct iommu_domain *domain, domain 650 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 684 drivers/iommu/fsl_pamu_domain.c static void fsl_pamu_detach_device(struct iommu_domain *domain, domain 687 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 715 drivers/iommu/fsl_pamu_domain.c static int configure_domain_geometry(struct iommu_domain *domain, void *data) domain 718 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 741 drivers/iommu/fsl_pamu_domain.c memcpy(&domain->geometry, geom_attr, domain 805 drivers/iommu/fsl_pamu_domain.c static int fsl_pamu_set_windows(struct iommu_domain *domain, u32 w_count) domain 807 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 836 drivers/iommu/fsl_pamu_domain.c ret = pamu_set_domain_geometry(dma_domain, &domain->geometry, domain 854 drivers/iommu/fsl_pamu_domain.c static int fsl_pamu_set_domain_attr(struct iommu_domain *domain, domain 857 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 862 drivers/iommu/fsl_pamu_domain.c ret = configure_domain_geometry(domain, data); domain 871 drivers/iommu/fsl_pamu_domain.c ret = fsl_pamu_set_windows(domain, *(u32 *)data); domain 882 drivers/iommu/fsl_pamu_domain.c static int fsl_pamu_get_domain_attr(struct iommu_domain *domain, domain 885 drivers/iommu/fsl_pamu_domain.c struct fsl_dma_domain *dma_domain = to_fsl_dma_domain(domain); domain 71 drivers/iommu/fsl_pamu_domain.h struct fsl_dma_domain *domain; /* pointer to domain */ domain 68 drivers/iommu/hyperv-iommu.c static int hyperv_irq_remapping_alloc(struct irq_domain *domain, domain 80 drivers/iommu/hyperv-iommu.c ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); domain 84 drivers/iommu/hyperv-iommu.c irq_data = irq_domain_get_irq_data(domain, virq); domain 86 drivers/iommu/hyperv-iommu.c irq_domain_free_irqs_common(domain, virq, nr_irqs); domain 116 drivers/iommu/hyperv-iommu.c static void hyperv_irq_remapping_free(struct irq_domain *domain, domain 119 drivers/iommu/hyperv-iommu.c irq_domain_free_irqs_common(domain, virq, nr_irqs); domain 122 drivers/iommu/hyperv-iommu.c static int hyperv_irq_remapping_activate(struct irq_domain *domain, domain 310 drivers/iommu/intel-iommu.c #define for_each_domain_iommu(idx, domain) \ domain 312 drivers/iommu/intel-iommu.c if (domain->iommu_refcnt[idx]) domain 340 drivers/iommu/intel-iommu.c static void domain_exit(struct dmar_domain *domain); domain 341 drivers/iommu/intel-iommu.c static void domain_remove_dev_info(struct dmar_domain *domain); domain 346 drivers/iommu/intel-iommu.c static int domain_detach_iommu(struct dmar_domain *domain, domain 349 drivers/iommu/intel-iommu.c static int intel_iommu_attach_device(struct iommu_domain *domain, domain 351 drivers/iommu/intel-iommu.c static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain, domain 434 drivers/iommu/intel-iommu.c return container_of(dom, struct dmar_domain, domain); domain 497 drivers/iommu/intel-iommu.c struct dmar_domain *domain) domain 511 drivers/iommu/intel-iommu.c domains[did & 0xff] = domain; domain 550 drivers/iommu/intel-iommu.c static inline int domain_type_is_si(struct dmar_domain *domain) domain 552 drivers/iommu/intel-iommu.c return domain->flags & DOMAIN_FLAG_STATIC_IDENTITY; domain 555 drivers/iommu/intel-iommu.c static inline int domain_pfn_supported(struct dmar_domain *domain, domain 558 drivers/iommu/intel-iommu.c int addr_width = agaw_to_width(domain->agaw) - VTD_PAGE_SHIFT; domain 597 drivers/iommu/intel-iommu.c struct intel_iommu *domain_get_iommu(struct dmar_domain *domain) domain 602 drivers/iommu/intel-iommu.c if (WARN_ON(domain->domain.type != IOMMU_DOMAIN_DMA)) domain 605 drivers/iommu/intel-iommu.c for_each_domain_iommu(iommu_id, domain) domain 614 drivers/iommu/intel-iommu.c static void domain_update_iommu_coherency(struct dmar_domain *domain) domain 621 drivers/iommu/intel-iommu.c domain->iommu_coherency = 1; domain 623 drivers/iommu/intel-iommu.c for_each_domain_iommu(i, domain) { domain 626 drivers/iommu/intel-iommu.c domain->iommu_coherency = 0; domain 637 drivers/iommu/intel-iommu.c domain->iommu_coherency = 0; domain 689 drivers/iommu/intel-iommu.c static void domain_update_iommu_cap(struct dmar_domain *domain) domain 691 drivers/iommu/intel-iommu.c domain_update_iommu_coherency(domain); domain 692 drivers/iommu/intel-iommu.c domain->iommu_snooping = domain_update_iommu_snooping(NULL); domain 693 drivers/iommu/intel-iommu.c domain->iommu_superpage = domain_update_iommu_superpage(NULL); domain 831 drivers/iommu/intel-iommu.c static void domain_flush_cache(struct dmar_domain *domain, domain 834 drivers/iommu/intel-iommu.c if (!domain->iommu_coherency) domain 881 drivers/iommu/intel-iommu.c static struct dma_pte *pfn_to_dma_pte(struct dmar_domain *domain, domain 885 drivers/iommu/intel-iommu.c int level = agaw_to_level(domain->agaw); domain 888 drivers/iommu/intel-iommu.c BUG_ON(!domain->pgd); domain 890 drivers/iommu/intel-iommu.c if (!domain_pfn_supported(domain, pfn)) domain 894 drivers/iommu/intel-iommu.c parent = domain->pgd; domain 909 drivers/iommu/intel-iommu.c tmp_page = alloc_pgtable_page(domain->nid); domain 914 drivers/iommu/intel-iommu.c domain_flush_cache(domain, tmp_page, VTD_PAGE_SIZE); domain 920 drivers/iommu/intel-iommu.c domain_flush_cache(domain, pte, sizeof(*pte)); domain 936 drivers/iommu/intel-iommu.c static struct dma_pte *dma_pfn_level_pte(struct dmar_domain *domain, domain 941 drivers/iommu/intel-iommu.c int total = agaw_to_level(domain->agaw); domain 944 drivers/iommu/intel-iommu.c parent = domain->pgd; domain 968 drivers/iommu/intel-iommu.c static void dma_pte_clear_range(struct dmar_domain *domain, domain 975 drivers/iommu/intel-iommu.c BUG_ON(!domain_pfn_supported(domain, start_pfn)); domain 976 drivers/iommu/intel-iommu.c BUG_ON(!domain_pfn_supported(domain, last_pfn)); domain 982 drivers/iommu/intel-iommu.c first_pte = pte = dma_pfn_level_pte(domain, start_pfn, 1, &large_page); domain 993 drivers/iommu/intel-iommu.c domain_flush_cache(domain, first_pte, domain 999 drivers/iommu/intel-iommu.c static void dma_pte_free_level(struct dmar_domain *domain, int level, domain 1018 drivers/iommu/intel-iommu.c dma_pte_free_level(domain, level - 1, retain_level, domain 1030 drivers/iommu/intel-iommu.c domain_flush_cache(domain, pte, sizeof(*pte)); domain 1042 drivers/iommu/intel-iommu.c static void dma_pte_free_pagetable(struct dmar_domain *domain, domain 1047 drivers/iommu/intel-iommu.c BUG_ON(!domain_pfn_supported(domain, start_pfn)); domain 1048 drivers/iommu/intel-iommu.c BUG_ON(!domain_pfn_supported(domain, last_pfn)); domain 1051 drivers/iommu/intel-iommu.c dma_pte_clear_range(domain, start_pfn, last_pfn); domain 1054 drivers/iommu/intel-iommu.c dma_pte_free_level(domain, agaw_to_level(domain->agaw), retain_level, domain 1055 drivers/iommu/intel-iommu.c domain->pgd, 0, start_pfn, last_pfn); domain 1058 drivers/iommu/intel-iommu.c if (start_pfn == 0 && last_pfn == DOMAIN_MAX_PFN(domain->gaw)) { domain 1059 drivers/iommu/intel-iommu.c free_pgtable_page(domain->pgd); domain 1060 drivers/iommu/intel-iommu.c domain->pgd = NULL; domain 1070 drivers/iommu/intel-iommu.c static struct page *dma_pte_list_pagetables(struct dmar_domain *domain, domain 1086 drivers/iommu/intel-iommu.c freelist = dma_pte_list_pagetables(domain, level - 1, domain 1094 drivers/iommu/intel-iommu.c static struct page *dma_pte_clear_level(struct dmar_domain *domain, int level, domain 1119 drivers/iommu/intel-iommu.c freelist = dma_pte_list_pagetables(domain, level - 1, pte, freelist); domain 1127 drivers/iommu/intel-iommu.c freelist = dma_pte_clear_level(domain, level - 1, domain 1137 drivers/iommu/intel-iommu.c domain_flush_cache(domain, first_pte, domain 1146 drivers/iommu/intel-iommu.c static struct page *domain_unmap(struct dmar_domain *domain, domain 1152 drivers/iommu/intel-iommu.c BUG_ON(!domain_pfn_supported(domain, start_pfn)); domain 1153 drivers/iommu/intel-iommu.c BUG_ON(!domain_pfn_supported(domain, last_pfn)); domain 1157 drivers/iommu/intel-iommu.c freelist = dma_pte_clear_level(domain, agaw_to_level(domain->agaw), domain 1158 drivers/iommu/intel-iommu.c domain->pgd, 0, start_pfn, last_pfn, NULL); domain 1161 drivers/iommu/intel-iommu.c if (start_pfn == 0 && last_pfn == DOMAIN_MAX_PFN(domain->gaw)) { domain 1162 drivers/iommu/intel-iommu.c struct page *pgd_page = virt_to_page(domain->pgd); domain 1166 drivers/iommu/intel-iommu.c domain->pgd = NULL; domain 1343 drivers/iommu/intel-iommu.c iommu_support_dev_iotlb (struct dmar_domain *domain, struct intel_iommu *iommu, domain 1353 drivers/iommu/intel-iommu.c list_for_each_entry(info, &domain->devices, link) domain 1364 drivers/iommu/intel-iommu.c static void domain_update_iotlb(struct dmar_domain *domain) domain 1371 drivers/iommu/intel-iommu.c list_for_each_entry(info, &domain->devices, link) { domain 1384 drivers/iommu/intel-iommu.c domain->has_iotlb_device = has_iotlb_device; domain 1430 drivers/iommu/intel-iommu.c domain_update_iotlb(info->domain); domain 1449 drivers/iommu/intel-iommu.c domain_update_iotlb(info->domain); domain 1463 drivers/iommu/intel-iommu.c static void iommu_flush_dev_iotlb(struct dmar_domain *domain, domain 1470 drivers/iommu/intel-iommu.c if (!domain->has_iotlb_device) domain 1474 drivers/iommu/intel-iommu.c list_for_each_entry(info, &domain->devices, link) { domain 1487 drivers/iommu/intel-iommu.c struct dmar_domain *domain, domain 1493 drivers/iommu/intel-iommu.c u16 did = domain->iommu_did[iommu->seq_id]; domain 1517 drivers/iommu/intel-iommu.c iommu_flush_dev_iotlb(domain, addr, mask); domain 1522 drivers/iommu/intel-iommu.c struct dmar_domain *domain, domain 1527 drivers/iommu/intel-iommu.c iommu_flush_iotlb_psi(iommu, domain, pfn, pages, 0, 1); domain 1534 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 1537 drivers/iommu/intel-iommu.c domain = container_of(iovad, struct dmar_domain, iovad); domain 1539 drivers/iommu/intel-iommu.c for_each_domain_iommu(idx, domain) { domain 1541 drivers/iommu/intel-iommu.c u16 did = domain->iommu_did[iommu->seq_id]; domain 1674 drivers/iommu/intel-iommu.c if (!info->dev || !info->domain) domain 1714 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 1716 drivers/iommu/intel-iommu.c domain = alloc_domain_mem(); domain 1717 drivers/iommu/intel-iommu.c if (!domain) domain 1720 drivers/iommu/intel-iommu.c memset(domain, 0, sizeof(*domain)); domain 1721 drivers/iommu/intel-iommu.c domain->nid = NUMA_NO_NODE; domain 1722 drivers/iommu/intel-iommu.c domain->flags = flags; domain 1723 drivers/iommu/intel-iommu.c domain->has_iotlb_device = false; domain 1724 drivers/iommu/intel-iommu.c INIT_LIST_HEAD(&domain->devices); domain 1726 drivers/iommu/intel-iommu.c return domain; domain 1730 drivers/iommu/intel-iommu.c static int domain_attach_iommu(struct dmar_domain *domain, domain 1739 drivers/iommu/intel-iommu.c domain->iommu_refcnt[iommu->seq_id] += 1; domain 1740 drivers/iommu/intel-iommu.c domain->iommu_count += 1; domain 1741 drivers/iommu/intel-iommu.c if (domain->iommu_refcnt[iommu->seq_id] == 1) { domain 1747 drivers/iommu/intel-iommu.c domain->iommu_refcnt[iommu->seq_id] -= 1; domain 1748 drivers/iommu/intel-iommu.c domain->iommu_count -= 1; domain 1753 drivers/iommu/intel-iommu.c set_iommu_domain(iommu, num, domain); domain 1755 drivers/iommu/intel-iommu.c domain->iommu_did[iommu->seq_id] = num; domain 1756 drivers/iommu/intel-iommu.c domain->nid = iommu->node; domain 1758 drivers/iommu/intel-iommu.c domain_update_iommu_cap(domain); domain 1764 drivers/iommu/intel-iommu.c static int domain_detach_iommu(struct dmar_domain *domain, domain 1772 drivers/iommu/intel-iommu.c domain->iommu_refcnt[iommu->seq_id] -= 1; domain 1773 drivers/iommu/intel-iommu.c count = --domain->iommu_count; domain 1774 drivers/iommu/intel-iommu.c if (domain->iommu_refcnt[iommu->seq_id] == 0) { domain 1775 drivers/iommu/intel-iommu.c num = domain->iommu_did[iommu->seq_id]; domain 1779 drivers/iommu/intel-iommu.c domain_update_iommu_cap(domain); domain 1780 drivers/iommu/intel-iommu.c domain->iommu_did[iommu->seq_id] = 0; domain 1828 drivers/iommu/intel-iommu.c static void domain_reserve_special_ranges(struct dmar_domain *domain) domain 1830 drivers/iommu/intel-iommu.c copy_reserved_iova(&reserved_iova_list, &domain->iovad); domain 1847 drivers/iommu/intel-iommu.c static int domain_init(struct dmar_domain *domain, struct intel_iommu *iommu, domain 1854 drivers/iommu/intel-iommu.c init_iova_domain(&domain->iovad, VTD_PAGE_SIZE, IOVA_START_PFN); domain 1856 drivers/iommu/intel-iommu.c err = init_iova_flush_queue(&domain->iovad, domain 1861 drivers/iommu/intel-iommu.c domain_reserve_special_ranges(domain); domain 1866 drivers/iommu/intel-iommu.c domain->gaw = guest_width; domain 1877 drivers/iommu/intel-iommu.c domain->agaw = agaw; domain 1880 drivers/iommu/intel-iommu.c domain->iommu_coherency = 1; domain 1882 drivers/iommu/intel-iommu.c domain->iommu_coherency = 0; domain 1885 drivers/iommu/intel-iommu.c domain->iommu_snooping = 1; domain 1887 drivers/iommu/intel-iommu.c domain->iommu_snooping = 0; domain 1890 drivers/iommu/intel-iommu.c domain->iommu_superpage = fls(cap_super_page_val(iommu->cap)); domain 1892 drivers/iommu/intel-iommu.c domain->iommu_superpage = 0; domain 1894 drivers/iommu/intel-iommu.c domain->nid = iommu->node; domain 1897 drivers/iommu/intel-iommu.c domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid); domain 1898 drivers/iommu/intel-iommu.c if (!domain->pgd) domain 1900 drivers/iommu/intel-iommu.c __iommu_flush_cache(iommu, domain->pgd, PAGE_SIZE); domain 1904 drivers/iommu/intel-iommu.c static void domain_exit(struct dmar_domain *domain) domain 1908 drivers/iommu/intel-iommu.c domain_remove_dev_info(domain); domain 1911 drivers/iommu/intel-iommu.c put_iova_domain(&domain->iovad); domain 1913 drivers/iommu/intel-iommu.c if (domain->pgd) { domain 1916 drivers/iommu/intel-iommu.c freelist = domain_unmap(domain, 0, DOMAIN_MAX_PFN(domain->gaw)); domain 1920 drivers/iommu/intel-iommu.c free_domain_mem(domain); domain 1973 drivers/iommu/intel-iommu.c static int domain_context_mapping_one(struct dmar_domain *domain, domain 1978 drivers/iommu/intel-iommu.c u16 did = domain->iommu_did[iommu->seq_id]; domain 1987 drivers/iommu/intel-iommu.c if (hw_pass_through && domain_type_is_si(domain)) domain 1993 drivers/iommu/intel-iommu.c BUG_ON(!domain->pgd); domain 2048 drivers/iommu/intel-iommu.c info = iommu_support_dev_iotlb(domain, iommu, bus, devfn); domain 2054 drivers/iommu/intel-iommu.c struct dma_pte *pgd = domain->pgd; domain 2064 drivers/iommu/intel-iommu.c for (agaw = domain->agaw; agaw > iommu->agaw; agaw--) { domain 2071 drivers/iommu/intel-iommu.c info = iommu_support_dev_iotlb(domain, iommu, bus, devfn); domain 2093 drivers/iommu/intel-iommu.c domain_flush_cache(domain, context, sizeof(*context)); domain 2122 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 2132 drivers/iommu/intel-iommu.c return domain_context_mapping_one(data->domain, data->iommu, domain 2138 drivers/iommu/intel-iommu.c domain_context_mapping(struct dmar_domain *domain, struct device *dev) domain 2152 drivers/iommu/intel-iommu.c return domain_context_mapping_one(domain, iommu, table, domain 2155 drivers/iommu/intel-iommu.c data.domain = domain; domain 2196 drivers/iommu/intel-iommu.c static inline int hardware_largepage_caps(struct dmar_domain *domain, domain 2204 drivers/iommu/intel-iommu.c support = domain->iommu_superpage; domain 2223 drivers/iommu/intel-iommu.c static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn, domain 2233 drivers/iommu/intel-iommu.c BUG_ON(!domain_pfn_supported(domain, iov_pfn + nr_pages - 1)); domain 2259 drivers/iommu/intel-iommu.c largepage_lvl = hardware_largepage_caps(domain, iov_pfn, phys_pfn, sg_res); domain 2261 drivers/iommu/intel-iommu.c first_pte = pte = pfn_to_dma_pte(domain, iov_pfn, &largepage_lvl); domain 2280 drivers/iommu/intel-iommu.c dma_pte_free_pagetable(domain, iov_pfn, end_pfn, domain 2327 drivers/iommu/intel-iommu.c domain_flush_cache(domain, first_pte, domain 2338 drivers/iommu/intel-iommu.c static int domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn, domain 2346 drivers/iommu/intel-iommu.c ret = __domain_mapping(domain, iov_pfn, sg, phys_pfn, nr_pages, prot); domain 2350 drivers/iommu/intel-iommu.c for_each_domain_iommu(iommu_id, domain) { domain 2352 drivers/iommu/intel-iommu.c __mapping_notify_one(iommu, domain, iov_pfn, nr_pages); domain 2358 drivers/iommu/intel-iommu.c static inline int domain_sg_mapping(struct dmar_domain *domain, unsigned long iov_pfn, domain 2362 drivers/iommu/intel-iommu.c return domain_mapping(domain, iov_pfn, sg, 0, nr_pages, prot); domain 2365 drivers/iommu/intel-iommu.c static inline int domain_pfn_mapping(struct dmar_domain *domain, unsigned long iov_pfn, domain 2369 drivers/iommu/intel-iommu.c return domain_mapping(domain, iov_pfn, NULL, phys_pfn, nr_pages, prot); domain 2412 drivers/iommu/intel-iommu.c static void domain_remove_dev_info(struct dmar_domain *domain) domain 2418 drivers/iommu/intel-iommu.c list_for_each_entry_safe(info, tmp, &domain->devices, link) domain 2432 drivers/iommu/intel-iommu.c struct iommu_domain *domain; domain 2435 drivers/iommu/intel-iommu.c domain = iommu_get_domain_for_dev(dev); domain 2436 drivers/iommu/intel-iommu.c if (domain) domain 2437 drivers/iommu/intel-iommu.c intel_iommu_attach_device(domain, dev); domain 2444 drivers/iommu/intel-iommu.c return info->domain; domain 2464 drivers/iommu/intel-iommu.c struct dmar_domain *domain) domain 2481 drivers/iommu/intel-iommu.c info->domain = domain; domain 2518 drivers/iommu/intel-iommu.c found = info2->domain; domain 2531 drivers/iommu/intel-iommu.c ret = domain_attach_iommu(domain, iommu); domain 2540 drivers/iommu/intel-iommu.c list_add(&info->link, &domain->devices); domain 2557 drivers/iommu/intel-iommu.c if (hw_pass_through && domain_type_is_si(domain)) domain 2558 drivers/iommu/intel-iommu.c ret = intel_pasid_setup_pass_through(iommu, domain, domain 2561 drivers/iommu/intel-iommu.c ret = intel_pasid_setup_second_level(iommu, domain, domain 2571 drivers/iommu/intel-iommu.c if (dev && domain_context_mapping(domain, dev)) { domain 2577 drivers/iommu/intel-iommu.c return domain; domain 2589 drivers/iommu/intel-iommu.c struct dmar_domain *domain = NULL; domain 2610 drivers/iommu/intel-iommu.c domain = info->domain; domain 2620 drivers/iommu/intel-iommu.c domain = alloc_domain(0); domain 2621 drivers/iommu/intel-iommu.c if (!domain) domain 2623 drivers/iommu/intel-iommu.c if (domain_init(domain, iommu, gaw)) { domain 2624 drivers/iommu/intel-iommu.c domain_exit(domain); domain 2629 drivers/iommu/intel-iommu.c return domain; domain 2633 drivers/iommu/intel-iommu.c struct dmar_domain *domain) domain 2654 drivers/iommu/intel-iommu.c dma_alias & 0xff, NULL, domain); domain 2656 drivers/iommu/intel-iommu.c if (!tmp || tmp != domain) domain 2661 drivers/iommu/intel-iommu.c tmp = dmar_insert_one_dev_info(iommu, bus, devfn, dev, domain); domain 2662 drivers/iommu/intel-iommu.c if (!tmp || tmp != domain) domain 2665 drivers/iommu/intel-iommu.c return domain; domain 2668 drivers/iommu/intel-iommu.c static int iommu_domain_identity_map(struct dmar_domain *domain, domain 2675 drivers/iommu/intel-iommu.c if (!reserve_iova(&domain->iovad, dma_to_mm_pfn(first_vpfn), domain 2686 drivers/iommu/intel-iommu.c dma_pte_clear_range(domain, first_vpfn, last_vpfn); domain 2688 drivers/iommu/intel-iommu.c return __domain_mapping(domain, first_vpfn, NULL, domain 2694 drivers/iommu/intel-iommu.c struct dmar_domain *domain, domain 2702 drivers/iommu/intel-iommu.c if (domain == si_domain && hw_pass_through) { domain 2719 drivers/iommu/intel-iommu.c if (end >> agaw_to_width(domain->agaw)) { domain 2722 drivers/iommu/intel-iommu.c agaw_to_width(domain->agaw), domain 2729 drivers/iommu/intel-iommu.c return iommu_domain_identity_map(domain, start, end); domain 2732 drivers/iommu/intel-iommu.c static int md_domain_init(struct dmar_domain *domain, int guest_width); domain 2793 drivers/iommu/intel-iommu.c return (info->domain == si_domain); domain 2798 drivers/iommu/intel-iommu.c static int domain_add_dev_info(struct dmar_domain *domain, struct device *dev) domain 2808 drivers/iommu/intel-iommu.c ndomain = dmar_insert_one_dev_info(iommu, bus, devfn, dev, domain); domain 2809 drivers/iommu/intel-iommu.c if (ndomain != domain) domain 3369 drivers/iommu/intel-iommu.c struct dmar_domain *domain, domain 3375 drivers/iommu/intel-iommu.c dma_mask = min_t(uint64_t, DOMAIN_MAX_ADDR(domain->gaw), dma_mask); domain 3385 drivers/iommu/intel-iommu.c iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, domain 3390 drivers/iommu/intel-iommu.c iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, domain 3403 drivers/iommu/intel-iommu.c struct dmar_domain *domain, *tmp; domain 3409 drivers/iommu/intel-iommu.c domain = find_domain(dev); domain 3410 drivers/iommu/intel-iommu.c if (domain) domain 3413 drivers/iommu/intel-iommu.c domain = find_or_alloc_domain(dev, DEFAULT_DOMAIN_ADDRESS_WIDTH); domain 3414 drivers/iommu/intel-iommu.c if (!domain) domain 3425 drivers/iommu/intel-iommu.c ret = domain_prepare_identity_map(dev, domain, domain 3434 drivers/iommu/intel-iommu.c tmp = set_domain_for_dev(dev, domain); domain 3435 drivers/iommu/intel-iommu.c if (!tmp || domain != tmp) { domain 3436 drivers/iommu/intel-iommu.c domain_exit(domain); domain 3437 drivers/iommu/intel-iommu.c domain = tmp; domain 3441 drivers/iommu/intel-iommu.c if (!domain) domain 3444 drivers/iommu/intel-iommu.c domain->domain.type = IOMMU_DOMAIN_DMA; domain 3446 drivers/iommu/intel-iommu.c return domain; domain 3474 drivers/iommu/intel-iommu.c struct iommu_domain *domain; domain 3477 drivers/iommu/intel-iommu.c domain = iommu_get_domain_for_dev(dev); domain 3478 drivers/iommu/intel-iommu.c if (domain) { domain 3479 drivers/iommu/intel-iommu.c dmar_domain = to_dmar_domain(domain); domain 3495 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 3505 drivers/iommu/intel-iommu.c domain = find_domain(dev); domain 3506 drivers/iommu/intel-iommu.c if (!domain) domain 3509 drivers/iommu/intel-iommu.c iommu = domain_get_iommu(domain); domain 3512 drivers/iommu/intel-iommu.c iova_pfn = intel_alloc_iova(dev, domain, dma_to_mm_pfn(size), dma_mask); domain 3531 drivers/iommu/intel-iommu.c ret = domain_pfn_mapping(domain, mm_to_dma_pfn(iova_pfn), domain 3545 drivers/iommu/intel-iommu.c free_iova_fast(&domain->iovad, iova_pfn, dma_to_mm_pfn(size)); domain 3574 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 3582 drivers/iommu/intel-iommu.c domain = find_domain(dev); domain 3583 drivers/iommu/intel-iommu.c BUG_ON(!domain); domain 3585 drivers/iommu/intel-iommu.c iommu = domain_get_iommu(domain); domain 3596 drivers/iommu/intel-iommu.c freelist = domain_unmap(domain, start_pfn, last_pfn); domain 3598 drivers/iommu/intel-iommu.c !has_iova_flush_queue(&domain->iovad)) { domain 3599 drivers/iommu/intel-iommu.c iommu_flush_iotlb_psi(iommu, domain, start_pfn, domain 3602 drivers/iommu/intel-iommu.c free_iova_fast(&domain->iovad, iova_pfn, dma_to_mm_pfn(nrpages)); domain 3605 drivers/iommu/intel-iommu.c queue_iova(&domain->iovad, iova_pfn, nrpages, domain 3712 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 3725 drivers/iommu/intel-iommu.c domain = find_domain(dev); domain 3726 drivers/iommu/intel-iommu.c if (!domain) domain 3729 drivers/iommu/intel-iommu.c iommu = domain_get_iommu(domain); domain 3734 drivers/iommu/intel-iommu.c iova_pfn = intel_alloc_iova(dev, domain, dma_to_mm_pfn(size), domain 3753 drivers/iommu/intel-iommu.c ret = domain_sg_mapping(domain, start_vpfn, sglist, size, prot); domain 3755 drivers/iommu/intel-iommu.c dma_pte_free_pagetable(domain, start_vpfn, domain 3757 drivers/iommu/intel-iommu.c agaw_to_level(domain->agaw) + 1); domain 3758 drivers/iommu/intel-iommu.c free_iova_fast(&domain->iovad, iova_pfn, dma_to_mm_pfn(size)); domain 3794 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 3797 drivers/iommu/intel-iommu.c domain = find_domain(dev); domain 3798 drivers/iommu/intel-iommu.c if (WARN_ON(!domain)) domain 3801 drivers/iommu/intel-iommu.c tlb_addr = intel_iommu_iova_to_phys(&domain->domain, addr); domain 3812 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 3820 drivers/iommu/intel-iommu.c domain = find_domain(dev); domain 3821 drivers/iommu/intel-iommu.c if (WARN_ON(dir == DMA_NONE || !domain)) domain 3824 drivers/iommu/intel-iommu.c iommu = domain_get_iommu(domain); domain 3829 drivers/iommu/intel-iommu.c iova_pfn = intel_alloc_iova(dev, domain, domain 3872 drivers/iommu/intel-iommu.c ret = domain_pfn_mapping(domain, mm_to_dma_pfn(iova_pfn), domain 3886 drivers/iommu/intel-iommu.c free_iova_fast(&domain->iovad, iova_pfn, dma_to_mm_pfn(nrpages)); domain 3898 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 3901 drivers/iommu/intel-iommu.c domain = find_domain(dev); domain 3902 drivers/iommu/intel-iommu.c if (WARN_ON(!domain)) domain 3905 drivers/iommu/intel-iommu.c tlb_addr = intel_iommu_iova_to_phys(&domain->domain, dev_addr); domain 4723 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 4730 drivers/iommu/intel-iommu.c domain = get_iommu_domain(iommu, (u16)did); domain 4732 drivers/iommu/intel-iommu.c if (!domain) domain 4734 drivers/iommu/intel-iommu.c free_cpu_cached_iovas(cpu, &domain->iovad); domain 5088 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 5098 drivers/iommu/intel-iommu.c domain = info->domain; domain 5113 drivers/iommu/intel-iommu.c domain_detach_iommu(domain, iommu); domain 5117 drivers/iommu/intel-iommu.c if (domain->flags & DOMAIN_FLAG_LOSE_CHILDREN && domain 5118 drivers/iommu/intel-iommu.c !(domain->flags & DOMAIN_FLAG_STATIC_IDENTITY) && domain 5119 drivers/iommu/intel-iommu.c list_empty(&domain->devices)) domain 5120 drivers/iommu/intel-iommu.c domain_exit(info->domain); domain 5138 drivers/iommu/intel-iommu.c static int md_domain_init(struct dmar_domain *domain, int guest_width) domain 5142 drivers/iommu/intel-iommu.c init_iova_domain(&domain->iovad, VTD_PAGE_SIZE, IOVA_START_PFN); domain 5143 drivers/iommu/intel-iommu.c domain_reserve_special_ranges(domain); domain 5146 drivers/iommu/intel-iommu.c domain->gaw = guest_width; domain 5148 drivers/iommu/intel-iommu.c domain->agaw = width_to_agaw(adjust_width); domain 5150 drivers/iommu/intel-iommu.c domain->iommu_coherency = 0; domain 5151 drivers/iommu/intel-iommu.c domain->iommu_snooping = 0; domain 5152 drivers/iommu/intel-iommu.c domain->iommu_superpage = 0; domain 5153 drivers/iommu/intel-iommu.c domain->max_addr = 0; domain 5156 drivers/iommu/intel-iommu.c domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid); domain 5157 drivers/iommu/intel-iommu.c if (!domain->pgd) domain 5159 drivers/iommu/intel-iommu.c domain_flush_cache(domain, domain->pgd, PAGE_SIZE); domain 5166 drivers/iommu/intel-iommu.c struct iommu_domain *domain; domain 5192 drivers/iommu/intel-iommu.c domain = &dmar_domain->domain; domain 5193 drivers/iommu/intel-iommu.c domain->geometry.aperture_start = 0; domain 5194 drivers/iommu/intel-iommu.c domain->geometry.aperture_end = domain 5196 drivers/iommu/intel-iommu.c domain->geometry.force_aperture = true; domain 5198 drivers/iommu/intel-iommu.c return domain; domain 5200 drivers/iommu/intel-iommu.c return &si_domain->domain; domain 5208 drivers/iommu/intel-iommu.c static void intel_iommu_domain_free(struct iommu_domain *domain) domain 5210 drivers/iommu/intel-iommu.c if (domain != &si_domain->domain) domain 5211 drivers/iommu/intel-iommu.c domain_exit(to_dmar_domain(domain)); domain 5219 drivers/iommu/intel-iommu.c is_aux_domain(struct device *dev, struct iommu_domain *domain) domain 5224 drivers/iommu/intel-iommu.c domain->type == IOMMU_DOMAIN_UNMANAGED; domain 5227 drivers/iommu/intel-iommu.c static void auxiliary_link_device(struct dmar_domain *domain, domain 5236 drivers/iommu/intel-iommu.c domain->auxd_refcnt++; domain 5237 drivers/iommu/intel-iommu.c list_add(&domain->auxd, &info->auxiliary_domains); domain 5240 drivers/iommu/intel-iommu.c static void auxiliary_unlink_device(struct dmar_domain *domain, domain 5249 drivers/iommu/intel-iommu.c list_del(&domain->auxd); domain 5250 drivers/iommu/intel-iommu.c domain->auxd_refcnt--; domain 5252 drivers/iommu/intel-iommu.c if (!domain->auxd_refcnt && domain->default_pasid > 0) domain 5253 drivers/iommu/intel-iommu.c intel_pasid_free_id(domain->default_pasid); domain 5256 drivers/iommu/intel-iommu.c static int aux_domain_add_dev(struct dmar_domain *domain, domain 5268 drivers/iommu/intel-iommu.c if (domain->default_pasid <= 0) { domain 5271 drivers/iommu/intel-iommu.c pasid = intel_pasid_alloc_id(domain, PASID_MIN, domain 5278 drivers/iommu/intel-iommu.c domain->default_pasid = pasid; domain 5287 drivers/iommu/intel-iommu.c ret = domain_attach_iommu(domain, iommu); domain 5292 drivers/iommu/intel-iommu.c ret = intel_pasid_setup_second_level(iommu, domain, dev, domain 5293 drivers/iommu/intel-iommu.c domain->default_pasid); domain 5298 drivers/iommu/intel-iommu.c auxiliary_link_device(domain, dev); domain 5305 drivers/iommu/intel-iommu.c domain_detach_iommu(domain, iommu); domain 5309 drivers/iommu/intel-iommu.c if (!domain->auxd_refcnt && domain->default_pasid > 0) domain 5310 drivers/iommu/intel-iommu.c intel_pasid_free_id(domain->default_pasid); domain 5315 drivers/iommu/intel-iommu.c static void aux_domain_remove_dev(struct dmar_domain *domain, domain 5322 drivers/iommu/intel-iommu.c if (!is_aux_domain(dev, &domain->domain)) domain 5329 drivers/iommu/intel-iommu.c auxiliary_unlink_device(domain, dev); domain 5332 drivers/iommu/intel-iommu.c intel_pasid_tear_down_entry(iommu, dev, domain->default_pasid); domain 5333 drivers/iommu/intel-iommu.c domain_detach_iommu(domain, iommu); domain 5339 drivers/iommu/intel-iommu.c static int prepare_domain_attach_device(struct iommu_domain *domain, domain 5342 drivers/iommu/intel-iommu.c struct dmar_domain *dmar_domain = to_dmar_domain(domain); domain 5382 drivers/iommu/intel-iommu.c static int intel_iommu_attach_device(struct iommu_domain *domain, domain 5387 drivers/iommu/intel-iommu.c if (domain->type == IOMMU_DOMAIN_UNMANAGED && domain 5393 drivers/iommu/intel-iommu.c if (is_aux_domain(dev, domain)) domain 5405 drivers/iommu/intel-iommu.c ret = prepare_domain_attach_device(domain, dev); domain 5409 drivers/iommu/intel-iommu.c return domain_add_dev_info(to_dmar_domain(domain), dev); domain 5412 drivers/iommu/intel-iommu.c static int intel_iommu_aux_attach_device(struct iommu_domain *domain, domain 5417 drivers/iommu/intel-iommu.c if (!is_aux_domain(dev, domain)) domain 5420 drivers/iommu/intel-iommu.c ret = prepare_domain_attach_device(domain, dev); domain 5424 drivers/iommu/intel-iommu.c return aux_domain_add_dev(to_dmar_domain(domain), dev); domain 5427 drivers/iommu/intel-iommu.c static void intel_iommu_detach_device(struct iommu_domain *domain, domain 5433 drivers/iommu/intel-iommu.c static void intel_iommu_aux_detach_device(struct iommu_domain *domain, domain 5436 drivers/iommu/intel-iommu.c aux_domain_remove_dev(to_dmar_domain(domain), dev); domain 5439 drivers/iommu/intel-iommu.c static int intel_iommu_map(struct iommu_domain *domain, domain 5443 drivers/iommu/intel-iommu.c struct dmar_domain *dmar_domain = to_dmar_domain(domain); domain 5477 drivers/iommu/intel-iommu.c static size_t intel_iommu_unmap(struct iommu_domain *domain, domain 5481 drivers/iommu/intel-iommu.c struct dmar_domain *dmar_domain = to_dmar_domain(domain); domain 5513 drivers/iommu/intel-iommu.c static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain, domain 5516 drivers/iommu/intel-iommu.c struct dmar_domain *dmar_domain = to_dmar_domain(domain); domain 5579 drivers/iommu/intel-iommu.c struct iommu_domain *domain; domain 5603 drivers/iommu/intel-iommu.c domain = iommu_get_domain_for_dev(dev); domain 5604 drivers/iommu/intel-iommu.c dmar_domain = to_dmar_domain(domain); domain 5605 drivers/iommu/intel-iommu.c if (domain->type == IOMMU_DOMAIN_DMA) { domain 5736 drivers/iommu/intel-iommu.c struct dmar_domain *domain; domain 5741 drivers/iommu/intel-iommu.c domain = find_domain(dev); domain 5742 drivers/iommu/intel-iommu.c if (!domain) domain 5764 drivers/iommu/intel-iommu.c domain->iommu_did[iommu->seq_id], domain 5784 drivers/iommu/intel-iommu.c struct iommu_domain *domain, domain 5787 drivers/iommu/intel-iommu.c struct dmar_domain *dmar_domain = to_dmar_domain(domain); domain 5944 drivers/iommu/intel-iommu.c intel_iommu_aux_get_pasid(struct iommu_domain *domain, struct device *dev) domain 5946 drivers/iommu/intel-iommu.c struct dmar_domain *dmar_domain = to_dmar_domain(domain); domain 5952 drivers/iommu/intel-iommu.c static bool intel_iommu_is_attach_deferred(struct iommu_domain *domain, domain 539 drivers/iommu/intel-pasid.c struct dmar_domain *domain, domain 562 drivers/iommu/intel-pasid.c pgd = domain->pgd; domain 563 drivers/iommu/intel-pasid.c for (agaw = domain->agaw; agaw > iommu->agaw; agaw--) { domain 572 drivers/iommu/intel-pasid.c did = domain->iommu_did[iommu->seq_id]; domain 612 drivers/iommu/intel-pasid.c struct dmar_domain *domain, domain 91 drivers/iommu/intel-pasid.h struct dmar_domain *domain, domain 94 drivers/iommu/intel-pasid.h struct dmar_domain *domain, domain 1321 drivers/iommu/intel_irq_remapping.c static void intel_free_irq_resources(struct irq_domain *domain, domain 1330 drivers/iommu/intel_irq_remapping.c irq_data = irq_domain_get_irq_data(domain, virq + i); domain 1343 drivers/iommu/intel_irq_remapping.c static int intel_irq_remapping_alloc(struct irq_domain *domain, domain 1347 drivers/iommu/intel_irq_remapping.c struct intel_iommu *iommu = domain->host_data; domain 1367 drivers/iommu/intel_irq_remapping.c ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); domain 1386 drivers/iommu/intel_irq_remapping.c irq_data = irq_domain_get_irq_data(domain, virq + i); domain 1413 drivers/iommu/intel_irq_remapping.c intel_free_irq_resources(domain, virq, i); domain 1415 drivers/iommu/intel_irq_remapping.c irq_domain_free_irqs_common(domain, virq, nr_irqs); domain 1419 drivers/iommu/intel_irq_remapping.c static void intel_irq_remapping_free(struct irq_domain *domain, domain 1422 drivers/iommu/intel_irq_remapping.c intel_free_irq_resources(domain, virq, nr_irqs); domain 1423 drivers/iommu/intel_irq_remapping.c irq_domain_free_irqs_common(domain, virq, nr_irqs); domain 1426 drivers/iommu/intel_irq_remapping.c static int intel_irq_remapping_activate(struct irq_domain *domain, domain 1433 drivers/iommu/intel_irq_remapping.c static void intel_irq_remapping_deactivate(struct irq_domain *domain, domain 45 drivers/iommu/iommu.c struct iommu_domain *domain; domain 205 drivers/iommu/iommu.c static int __iommu_attach_device(struct iommu_domain *domain, domain 207 drivers/iommu/iommu.c static int __iommu_attach_group(struct iommu_domain *domain, domain 209 drivers/iommu/iommu.c static void __iommu_detach_group(struct iommu_domain *domain, domain 626 drivers/iommu/iommu.c struct iommu_domain *domain = group->default_domain; domain 632 drivers/iommu/iommu.c if (!domain || domain->type != IOMMU_DOMAIN_DMA) domain 635 drivers/iommu/iommu.c BUG_ON(!domain->pgsize_bitmap); domain 637 drivers/iommu/iommu.c pg_size = 1UL << __ffs(domain->pgsize_bitmap); domain 646 drivers/iommu/iommu.c if (domain->ops->apply_resv_region) domain 647 drivers/iommu/iommu.c domain->ops->apply_resv_region(dev, domain, entry); domain 659 drivers/iommu/iommu.c phys_addr = iommu_iova_to_phys(domain, addr); domain 663 drivers/iommu/iommu.c ret = iommu_map(domain, addr, addr, pg_size, entry->prot); domain 670 drivers/iommu/iommu.c iommu_flush_tlb_all(domain); domain 732 drivers/iommu/iommu.c if (group->domain) domain 733 drivers/iommu/iommu.c ret = __iommu_attach_device(group->domain, dev); domain 1090 drivers/iommu/iommu.c struct iommu_domain *domain = iommu_get_domain_for_dev(dev); domain 1092 drivers/iommu/iommu.c if (!domain || !domain->ops->page_response) domain 1123 drivers/iommu/iommu.c ret = domain->ops->page_response(dev, evt, msg); domain 1391 drivers/iommu/iommu.c if (!group->domain) domain 1392 drivers/iommu/iommu.c group->domain = dom; domain 1581 drivers/iommu/iommu.c void iommu_set_fault_handler(struct iommu_domain *domain, domain 1585 drivers/iommu/iommu.c BUG_ON(!domain); domain 1587 drivers/iommu/iommu.c domain->handler = handler; domain 1588 drivers/iommu/iommu.c domain->handler_token = token; domain 1595 drivers/iommu/iommu.c struct iommu_domain *domain; domain 1600 drivers/iommu/iommu.c domain = bus->iommu_ops->domain_alloc(type); domain 1601 drivers/iommu/iommu.c if (!domain) domain 1604 drivers/iommu/iommu.c domain->ops = bus->iommu_ops; domain 1605 drivers/iommu/iommu.c domain->type = type; domain 1607 drivers/iommu/iommu.c domain->pgsize_bitmap = bus->iommu_ops->pgsize_bitmap; domain 1609 drivers/iommu/iommu.c return domain; domain 1618 drivers/iommu/iommu.c void iommu_domain_free(struct iommu_domain *domain) domain 1620 drivers/iommu/iommu.c domain->ops->domain_free(domain); domain 1624 drivers/iommu/iommu.c static int __iommu_attach_device(struct iommu_domain *domain, domain 1628 drivers/iommu/iommu.c if ((domain->ops->is_attach_deferred != NULL) && domain 1629 drivers/iommu/iommu.c domain->ops->is_attach_deferred(domain, dev)) domain 1632 drivers/iommu/iommu.c if (unlikely(domain->ops->attach_dev == NULL)) domain 1635 drivers/iommu/iommu.c ret = domain->ops->attach_dev(domain, dev); domain 1641 drivers/iommu/iommu.c int iommu_attach_device(struct iommu_domain *domain, struct device *dev) domain 1659 drivers/iommu/iommu.c ret = __iommu_attach_group(domain, group); domain 1669 drivers/iommu/iommu.c static void __iommu_detach_device(struct iommu_domain *domain, domain 1672 drivers/iommu/iommu.c if ((domain->ops->is_attach_deferred != NULL) && domain 1673 drivers/iommu/iommu.c domain->ops->is_attach_deferred(domain, dev)) domain 1676 drivers/iommu/iommu.c if (unlikely(domain->ops->detach_dev == NULL)) domain 1679 drivers/iommu/iommu.c domain->ops->detach_dev(domain, dev); domain 1683 drivers/iommu/iommu.c void iommu_detach_device(struct iommu_domain *domain, struct device *dev) domain 1697 drivers/iommu/iommu.c __iommu_detach_group(domain, group); domain 1707 drivers/iommu/iommu.c struct iommu_domain *domain; domain 1714 drivers/iommu/iommu.c domain = group->domain; domain 1718 drivers/iommu/iommu.c return domain; domain 1743 drivers/iommu/iommu.c struct iommu_domain *domain = data; domain 1745 drivers/iommu/iommu.c return __iommu_attach_device(domain, dev); domain 1748 drivers/iommu/iommu.c static int __iommu_attach_group(struct iommu_domain *domain, domain 1753 drivers/iommu/iommu.c if (group->default_domain && group->domain != group->default_domain) domain 1756 drivers/iommu/iommu.c ret = __iommu_group_for_each_dev(group, domain, domain 1759 drivers/iommu/iommu.c group->domain = domain; domain 1764 drivers/iommu/iommu.c int iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group) domain 1769 drivers/iommu/iommu.c ret = __iommu_attach_group(domain, group); domain 1778 drivers/iommu/iommu.c struct iommu_domain *domain = data; domain 1780 drivers/iommu/iommu.c __iommu_detach_device(domain, dev); domain 1785 drivers/iommu/iommu.c static void __iommu_detach_group(struct iommu_domain *domain, domain 1791 drivers/iommu/iommu.c __iommu_group_for_each_dev(group, domain, domain 1793 drivers/iommu/iommu.c group->domain = NULL; domain 1797 drivers/iommu/iommu.c if (group->domain == group->default_domain) domain 1806 drivers/iommu/iommu.c group->domain = group->default_domain; domain 1809 drivers/iommu/iommu.c void iommu_detach_group(struct iommu_domain *domain, struct iommu_group *group) domain 1812 drivers/iommu/iommu.c __iommu_detach_group(domain, group); domain 1817 drivers/iommu/iommu.c phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) domain 1819 drivers/iommu/iommu.c if (unlikely(domain->ops->iova_to_phys == NULL)) domain 1822 drivers/iommu/iommu.c return domain->ops->iova_to_phys(domain, iova); domain 1826 drivers/iommu/iommu.c static size_t iommu_pgsize(struct iommu_domain *domain, domain 1846 drivers/iommu/iommu.c pgsize &= domain->pgsize_bitmap; domain 1858 drivers/iommu/iommu.c int iommu_map(struct iommu_domain *domain, unsigned long iova, domain 1861 drivers/iommu/iommu.c const struct iommu_ops *ops = domain->ops; domain 1869 drivers/iommu/iommu.c domain->pgsize_bitmap == 0UL)) domain 1872 drivers/iommu/iommu.c if (unlikely(!(domain->type & __IOMMU_DOMAIN_PAGING))) domain 1876 drivers/iommu/iommu.c min_pagesz = 1 << __ffs(domain->pgsize_bitmap); domain 1892 drivers/iommu/iommu.c size_t pgsize = iommu_pgsize(domain, iova | paddr, size); domain 1897 drivers/iommu/iommu.c ret = ops->map(domain, iova, paddr, pgsize, prot); domain 1907 drivers/iommu/iommu.c ops->iotlb_sync_map(domain); domain 1911 drivers/iommu/iommu.c iommu_unmap(domain, orig_iova, orig_size - size); domain 1919 drivers/iommu/iommu.c static size_t __iommu_unmap(struct iommu_domain *domain, domain 1923 drivers/iommu/iommu.c const struct iommu_ops *ops = domain->ops; domain 1929 drivers/iommu/iommu.c domain->pgsize_bitmap == 0UL)) domain 1932 drivers/iommu/iommu.c if (unlikely(!(domain->type & __IOMMU_DOMAIN_PAGING))) domain 1936 drivers/iommu/iommu.c min_pagesz = 1 << __ffs(domain->pgsize_bitmap); domain 1956 drivers/iommu/iommu.c size_t pgsize = iommu_pgsize(domain, iova, size - unmapped); domain 1958 drivers/iommu/iommu.c unmapped_page = ops->unmap(domain, iova, pgsize, iotlb_gather); domain 1973 drivers/iommu/iommu.c size_t iommu_unmap(struct iommu_domain *domain, domain 1980 drivers/iommu/iommu.c ret = __iommu_unmap(domain, iova, size, &iotlb_gather); domain 1981 drivers/iommu/iommu.c iommu_tlb_sync(domain, &iotlb_gather); domain 1987 drivers/iommu/iommu.c size_t iommu_unmap_fast(struct iommu_domain *domain, domain 1991 drivers/iommu/iommu.c return __iommu_unmap(domain, iova, size, iotlb_gather); domain 1995 drivers/iommu/iommu.c size_t iommu_map_sg(struct iommu_domain *domain, unsigned long iova, domain 2007 drivers/iommu/iommu.c ret = iommu_map(domain, iova + mapped, start, len, prot); domain 2030 drivers/iommu/iommu.c iommu_unmap(domain, iova, mapped); domain 2037 drivers/iommu/iommu.c int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr, domain 2040 drivers/iommu/iommu.c if (unlikely(domain->ops->domain_window_enable == NULL)) domain 2043 drivers/iommu/iommu.c return domain->ops->domain_window_enable(domain, wnd_nr, paddr, size, domain 2048 drivers/iommu/iommu.c void iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr) domain 2050 drivers/iommu/iommu.c if (unlikely(domain->ops->domain_window_disable == NULL)) domain 2053 drivers/iommu/iommu.c return domain->ops->domain_window_disable(domain, wnd_nr); domain 2081 drivers/iommu/iommu.c int report_iommu_fault(struct iommu_domain *domain, struct device *dev, domain 2090 drivers/iommu/iommu.c if (domain->handler) domain 2091 drivers/iommu/iommu.c ret = domain->handler(domain, dev, iova, flags, domain 2092 drivers/iommu/iommu.c domain->handler_token); domain 2111 drivers/iommu/iommu.c int iommu_domain_get_attr(struct iommu_domain *domain, domain 2121 drivers/iommu/iommu.c *geometry = domain->geometry; domain 2126 drivers/iommu/iommu.c *paging = (domain->pgsize_bitmap != 0UL); domain 2129 drivers/iommu/iommu.c if (!domain->ops->domain_get_attr) domain 2132 drivers/iommu/iommu.c ret = domain->ops->domain_get_attr(domain, attr, data); domain 2139 drivers/iommu/iommu.c int iommu_domain_set_attr(struct iommu_domain *domain, domain 2146 drivers/iommu/iommu.c if (domain->ops->domain_set_attr == NULL) domain 2149 drivers/iommu/iommu.c ret = domain->ops->domain_set_attr(domain, attr, data); domain 2193 drivers/iommu/iommu.c struct iommu_domain *domain; domain 2214 drivers/iommu/iommu.c domain = __iommu_domain_alloc(dev->bus, type); domain 2215 drivers/iommu/iommu.c if (!domain) domain 2219 drivers/iommu/iommu.c ret = __iommu_attach_group(domain, group); domain 2221 drivers/iommu/iommu.c iommu_domain_free(domain); domain 2228 drivers/iommu/iommu.c group->default_domain = domain; domain 2412 drivers/iommu/iommu.c int iommu_aux_attach_device(struct iommu_domain *domain, struct device *dev) domain 2416 drivers/iommu/iommu.c if (domain->ops->aux_attach_dev) domain 2417 drivers/iommu/iommu.c ret = domain->ops->aux_attach_dev(domain, dev); domain 2426 drivers/iommu/iommu.c void iommu_aux_detach_device(struct iommu_domain *domain, struct device *dev) domain 2428 drivers/iommu/iommu.c if (domain->ops->aux_detach_dev) { domain 2429 drivers/iommu/iommu.c domain->ops->aux_detach_dev(domain, dev); domain 2435 drivers/iommu/iommu.c int iommu_aux_get_pasid(struct iommu_domain *domain, struct device *dev) domain 2439 drivers/iommu/iommu.c if (domain->ops->aux_get_pasid) domain 2440 drivers/iommu/iommu.c ret = domain->ops->aux_get_pasid(domain, dev); domain 267 drivers/iommu/ipmmu-vmsa.c static u32 ipmmu_ctx_read_root(struct ipmmu_vmsa_domain *domain, domain 270 drivers/iommu/ipmmu-vmsa.c return ipmmu_read(domain->mmu->root, domain 271 drivers/iommu/ipmmu-vmsa.c domain->context_id * IM_CTX_SIZE + reg); domain 274 drivers/iommu/ipmmu-vmsa.c static void ipmmu_ctx_write_root(struct ipmmu_vmsa_domain *domain, domain 277 drivers/iommu/ipmmu-vmsa.c ipmmu_write(domain->mmu->root, domain 278 drivers/iommu/ipmmu-vmsa.c domain->context_id * IM_CTX_SIZE + reg, data); domain 281 drivers/iommu/ipmmu-vmsa.c static void ipmmu_ctx_write_all(struct ipmmu_vmsa_domain *domain, domain 284 drivers/iommu/ipmmu-vmsa.c if (domain->mmu != domain->mmu->root) domain 285 drivers/iommu/ipmmu-vmsa.c ipmmu_write(domain->mmu, domain 286 drivers/iommu/ipmmu-vmsa.c domain->context_id * IM_CTX_SIZE + reg, data); domain 288 drivers/iommu/ipmmu-vmsa.c ipmmu_write(domain->mmu->root, domain 289 drivers/iommu/ipmmu-vmsa.c domain->context_id * IM_CTX_SIZE + reg, data); domain 297 drivers/iommu/ipmmu-vmsa.c static void ipmmu_tlb_sync(struct ipmmu_vmsa_domain *domain) domain 301 drivers/iommu/ipmmu-vmsa.c while (ipmmu_ctx_read_root(domain, IMCTR) & IMCTR_FLUSH) { domain 304 drivers/iommu/ipmmu-vmsa.c dev_err_ratelimited(domain->mmu->dev, domain 312 drivers/iommu/ipmmu-vmsa.c static void ipmmu_tlb_invalidate(struct ipmmu_vmsa_domain *domain) domain 316 drivers/iommu/ipmmu-vmsa.c reg = ipmmu_ctx_read_root(domain, IMCTR); domain 318 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_all(domain, IMCTR, reg); domain 320 drivers/iommu/ipmmu-vmsa.c ipmmu_tlb_sync(domain); domain 326 drivers/iommu/ipmmu-vmsa.c static void ipmmu_utlb_enable(struct ipmmu_vmsa_domain *domain, domain 329 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_device *mmu = domain->mmu; domain 340 drivers/iommu/ipmmu-vmsa.c IMUCTR_TTSEL_MMU(domain->context_id) | IMUCTR_FLUSH | domain 342 drivers/iommu/ipmmu-vmsa.c mmu->utlb_ctx[utlb] = domain->context_id; domain 348 drivers/iommu/ipmmu-vmsa.c static void ipmmu_utlb_disable(struct ipmmu_vmsa_domain *domain, domain 351 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_device *mmu = domain->mmu; domain 359 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain = cookie; domain 361 drivers/iommu/ipmmu-vmsa.c ipmmu_tlb_invalidate(domain); domain 381 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain) domain 390 drivers/iommu/ipmmu-vmsa.c mmu->domains[ret] = domain; domain 413 drivers/iommu/ipmmu-vmsa.c static void ipmmu_domain_setup_context(struct ipmmu_vmsa_domain *domain) domain 419 drivers/iommu/ipmmu-vmsa.c ttbr = domain->cfg.arm_lpae_s1_cfg.ttbr[0]; domain 420 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_root(domain, IMTTLBR0, ttbr); domain 421 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_root(domain, IMTTUBR0, ttbr >> 32); domain 428 drivers/iommu/ipmmu-vmsa.c if (domain->mmu->features->twobit_imttbcr_sl0) domain 433 drivers/iommu/ipmmu-vmsa.c if (domain->mmu->features->cache_snoop) domain 437 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_root(domain, IMTTBCR, IMTTBCR_EAE | tmp); domain 440 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_root(domain, IMMAIR0, domain 441 drivers/iommu/ipmmu-vmsa.c domain->cfg.arm_lpae_s1_cfg.mair[0]); domain 444 drivers/iommu/ipmmu-vmsa.c if (domain->mmu->features->setup_imbuscr) domain 445 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_root(domain, IMBUSCR, domain 446 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_read_root(domain, IMBUSCR) & domain 453 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_root(domain, IMSTR, ipmmu_ctx_read_root(domain, IMSTR)); domain 462 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_all(domain, IMCTR, domain 466 drivers/iommu/ipmmu-vmsa.c static int ipmmu_domain_init_context(struct ipmmu_vmsa_domain *domain) domain 481 drivers/iommu/ipmmu-vmsa.c domain->cfg.quirks = IO_PGTABLE_QUIRK_ARM_NS; domain 482 drivers/iommu/ipmmu-vmsa.c domain->cfg.pgsize_bitmap = SZ_1G | SZ_2M | SZ_4K; domain 483 drivers/iommu/ipmmu-vmsa.c domain->cfg.ias = 32; domain 484 drivers/iommu/ipmmu-vmsa.c domain->cfg.oas = 40; domain 485 drivers/iommu/ipmmu-vmsa.c domain->cfg.tlb = &ipmmu_flush_ops; domain 486 drivers/iommu/ipmmu-vmsa.c domain->io_domain.geometry.aperture_end = DMA_BIT_MASK(32); domain 487 drivers/iommu/ipmmu-vmsa.c domain->io_domain.geometry.force_aperture = true; domain 492 drivers/iommu/ipmmu-vmsa.c domain->cfg.coherent_walk = false; domain 493 drivers/iommu/ipmmu-vmsa.c domain->cfg.iommu_dev = domain->mmu->root->dev; domain 498 drivers/iommu/ipmmu-vmsa.c ret = ipmmu_domain_allocate_context(domain->mmu->root, domain); domain 502 drivers/iommu/ipmmu-vmsa.c domain->context_id = ret; domain 504 drivers/iommu/ipmmu-vmsa.c domain->iop = alloc_io_pgtable_ops(ARM_32_LPAE_S1, &domain->cfg, domain 505 drivers/iommu/ipmmu-vmsa.c domain); domain 506 drivers/iommu/ipmmu-vmsa.c if (!domain->iop) { domain 507 drivers/iommu/ipmmu-vmsa.c ipmmu_domain_free_context(domain->mmu->root, domain 508 drivers/iommu/ipmmu-vmsa.c domain->context_id); domain 512 drivers/iommu/ipmmu-vmsa.c ipmmu_domain_setup_context(domain); domain 516 drivers/iommu/ipmmu-vmsa.c static void ipmmu_domain_destroy_context(struct ipmmu_vmsa_domain *domain) domain 518 drivers/iommu/ipmmu-vmsa.c if (!domain->mmu) domain 527 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_all(domain, IMCTR, IMCTR_FLUSH); domain 528 drivers/iommu/ipmmu-vmsa.c ipmmu_tlb_sync(domain); domain 529 drivers/iommu/ipmmu-vmsa.c ipmmu_domain_free_context(domain->mmu->root, domain->context_id); domain 536 drivers/iommu/ipmmu-vmsa.c static irqreturn_t ipmmu_domain_irq(struct ipmmu_vmsa_domain *domain) domain 539 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_device *mmu = domain->mmu; domain 543 drivers/iommu/ipmmu-vmsa.c status = ipmmu_ctx_read_root(domain, IMSTR); domain 547 drivers/iommu/ipmmu-vmsa.c iova = ipmmu_ctx_read_root(domain, IMELAR); domain 549 drivers/iommu/ipmmu-vmsa.c iova |= (u64)ipmmu_ctx_read_root(domain, IMEUAR) << 32; domain 557 drivers/iommu/ipmmu-vmsa.c ipmmu_ctx_write_root(domain, IMSTR, 0); domain 576 drivers/iommu/ipmmu-vmsa.c if (!report_iommu_fault(&domain->io_domain, mmu->dev, iova, 0)) domain 616 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain; domain 618 drivers/iommu/ipmmu-vmsa.c domain = kzalloc(sizeof(*domain), GFP_KERNEL); domain 619 drivers/iommu/ipmmu-vmsa.c if (!domain) domain 622 drivers/iommu/ipmmu-vmsa.c mutex_init(&domain->mutex); domain 624 drivers/iommu/ipmmu-vmsa.c return &domain->io_domain; domain 650 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); domain 657 drivers/iommu/ipmmu-vmsa.c ipmmu_domain_destroy_context(domain); domain 658 drivers/iommu/ipmmu-vmsa.c free_io_pgtable_ops(domain->iop); domain 659 drivers/iommu/ipmmu-vmsa.c kfree(domain); domain 667 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); domain 676 drivers/iommu/ipmmu-vmsa.c mutex_lock(&domain->mutex); domain 678 drivers/iommu/ipmmu-vmsa.c if (!domain->mmu) { domain 680 drivers/iommu/ipmmu-vmsa.c domain->mmu = mmu; domain 681 drivers/iommu/ipmmu-vmsa.c ret = ipmmu_domain_init_context(domain); domain 684 drivers/iommu/ipmmu-vmsa.c domain->mmu = NULL; domain 687 drivers/iommu/ipmmu-vmsa.c domain->context_id); domain 689 drivers/iommu/ipmmu-vmsa.c } else if (domain->mmu != mmu) { domain 695 drivers/iommu/ipmmu-vmsa.c dev_name(mmu->dev), dev_name(domain->mmu->dev)); domain 698 drivers/iommu/ipmmu-vmsa.c dev_info(dev, "Reusing IPMMU context %u\n", domain->context_id); domain 700 drivers/iommu/ipmmu-vmsa.c mutex_unlock(&domain->mutex); domain 706 drivers/iommu/ipmmu-vmsa.c ipmmu_utlb_enable(domain, fwspec->ids[i]); domain 715 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); domain 719 drivers/iommu/ipmmu-vmsa.c ipmmu_utlb_disable(domain, fwspec->ids[i]); domain 729 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); domain 731 drivers/iommu/ipmmu-vmsa.c if (!domain) domain 734 drivers/iommu/ipmmu-vmsa.c return domain->iop->map(domain->iop, iova, paddr, size, prot); domain 740 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); domain 742 drivers/iommu/ipmmu-vmsa.c return domain->iop->unmap(domain->iop, iova, size, gather); domain 747 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); domain 749 drivers/iommu/ipmmu-vmsa.c if (domain->mmu) domain 750 drivers/iommu/ipmmu-vmsa.c ipmmu_tlb_flush_all(domain); domain 762 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); domain 766 drivers/iommu/ipmmu-vmsa.c return domain->iop->iova_to_phys(domain->iop, iova); domain 43 drivers/iommu/msm_iommu.c struct iommu_domain domain; domain 52 drivers/iommu/msm_iommu.c return container_of(dom, struct msm_priv, domain); domain 326 drivers/iommu/msm_iommu.c priv->domain.geometry.aperture_start = 0; domain 327 drivers/iommu/msm_iommu.c priv->domain.geometry.aperture_end = (1ULL << 32) - 1; domain 328 drivers/iommu/msm_iommu.c priv->domain.geometry.force_aperture = true; domain 330 drivers/iommu/msm_iommu.c return &priv->domain; domain 337 drivers/iommu/msm_iommu.c static void msm_iommu_domain_free(struct iommu_domain *domain) domain 343 drivers/iommu/msm_iommu.c priv = to_msm_priv(domain); domain 430 drivers/iommu/msm_iommu.c static int msm_iommu_attach_dev(struct iommu_domain *domain, struct device *dev) domain 435 drivers/iommu/msm_iommu.c struct msm_priv *priv = to_msm_priv(domain); domain 479 drivers/iommu/msm_iommu.c static void msm_iommu_detach_dev(struct iommu_domain *domain, domain 482 drivers/iommu/msm_iommu.c struct msm_priv *priv = to_msm_priv(domain); domain 506 drivers/iommu/msm_iommu.c static int msm_iommu_map(struct iommu_domain *domain, unsigned long iova, domain 509 drivers/iommu/msm_iommu.c struct msm_priv *priv = to_msm_priv(domain); domain 520 drivers/iommu/msm_iommu.c static size_t msm_iommu_unmap(struct iommu_domain *domain, unsigned long iova, domain 523 drivers/iommu/msm_iommu.c struct msm_priv *priv = to_msm_priv(domain); domain 533 drivers/iommu/msm_iommu.c static phys_addr_t msm_iommu_iova_to_phys(struct iommu_domain *domain, domain 545 drivers/iommu/msm_iommu.c priv = to_msm_priv(domain); domain 109 drivers/iommu/mtk_iommu.c struct iommu_domain domain; domain 161 drivers/iommu/mtk_iommu.c return container_of(dom, struct mtk_iommu_domain, domain); domain 288 drivers/iommu/mtk_iommu.c if (report_iommu_fault(&dom->domain, data->dev, fault_iova, domain 355 drivers/iommu/mtk_iommu.c dom->domain.pgsize_bitmap = dom->cfg.pgsize_bitmap; domain 370 drivers/iommu/mtk_iommu.c if (iommu_get_dma_cookie(&dom->domain)) domain 376 drivers/iommu/mtk_iommu.c dom->domain.geometry.aperture_start = 0; domain 377 drivers/iommu/mtk_iommu.c dom->domain.geometry.aperture_end = DMA_BIT_MASK(32); domain 378 drivers/iommu/mtk_iommu.c dom->domain.geometry.force_aperture = true; domain 380 drivers/iommu/mtk_iommu.c return &dom->domain; domain 383 drivers/iommu/mtk_iommu.c iommu_put_dma_cookie(&dom->domain); domain 389 drivers/iommu/mtk_iommu.c static void mtk_iommu_domain_free(struct iommu_domain *domain) domain 391 drivers/iommu/mtk_iommu.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 394 drivers/iommu/mtk_iommu.c iommu_put_dma_cookie(domain); domain 395 drivers/iommu/mtk_iommu.c kfree(to_mtk_domain(domain)); domain 398 drivers/iommu/mtk_iommu.c static int mtk_iommu_attach_device(struct iommu_domain *domain, domain 401 drivers/iommu/mtk_iommu.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 418 drivers/iommu/mtk_iommu.c static void mtk_iommu_detach_device(struct iommu_domain *domain, domain 429 drivers/iommu/mtk_iommu.c static int mtk_iommu_map(struct iommu_domain *domain, unsigned long iova, domain 432 drivers/iommu/mtk_iommu.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 448 drivers/iommu/mtk_iommu.c static size_t mtk_iommu_unmap(struct iommu_domain *domain, domain 452 drivers/iommu/mtk_iommu.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 463 drivers/iommu/mtk_iommu.c static void mtk_iommu_flush_iotlb_all(struct iommu_domain *domain) domain 468 drivers/iommu/mtk_iommu.c static void mtk_iommu_iotlb_sync(struct iommu_domain *domain, domain 479 drivers/iommu/mtk_iommu.c static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain, domain 482 drivers/iommu/mtk_iommu.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 93 drivers/iommu/mtk_iommu_v1.c struct iommu_domain domain; domain 101 drivers/iommu/mtk_iommu_v1.c return container_of(dom, struct mtk_iommu_domain, domain); domain 181 drivers/iommu/mtk_iommu_v1.c if (report_iommu_fault(&dom->domain, data->dev, fault_iova, domain 250 drivers/iommu/mtk_iommu_v1.c return &dom->domain; domain 253 drivers/iommu/mtk_iommu_v1.c static void mtk_iommu_domain_free(struct iommu_domain *domain) domain 255 drivers/iommu/mtk_iommu_v1.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 260 drivers/iommu/mtk_iommu_v1.c kfree(to_mtk_domain(domain)); domain 263 drivers/iommu/mtk_iommu_v1.c static int mtk_iommu_attach_device(struct iommu_domain *domain, domain 266 drivers/iommu/mtk_iommu_v1.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 286 drivers/iommu/mtk_iommu_v1.c static void mtk_iommu_detach_device(struct iommu_domain *domain, domain 297 drivers/iommu/mtk_iommu_v1.c static int mtk_iommu_map(struct iommu_domain *domain, unsigned long iova, domain 300 drivers/iommu/mtk_iommu_v1.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 326 drivers/iommu/mtk_iommu_v1.c static size_t mtk_iommu_unmap(struct iommu_domain *domain, domain 330 drivers/iommu/mtk_iommu_v1.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 344 drivers/iommu/mtk_iommu_v1.c static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain, domain 347 drivers/iommu/mtk_iommu_v1.c struct mtk_iommu_domain *dom = to_mtk_domain(domain); domain 27 drivers/iommu/omap-iommu-debug.c return !obj->domain; domain 73 drivers/iommu/omap-iommu.c return container_of(dom, struct omap_iommu_domain, domain); domain 821 drivers/iommu/omap-iommu.c struct iommu_domain *domain = obj->domain; domain 822 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 832 drivers/iommu/omap-iommu.c if (!report_iommu_fault(domain, obj->dev, da, 0)) domain 961 drivers/iommu/omap-iommu.c int omap_iommu_domain_deactivate(struct iommu_domain *domain) domain 963 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 990 drivers/iommu/omap-iommu.c int omap_iommu_domain_activate(struct iommu_domain *domain) domain 992 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 1030 drivers/iommu/omap-iommu.c if (obj->domain && obj->iopgd) domain 1091 drivers/iommu/omap-iommu.c if (obj->domain) domain 1341 drivers/iommu/omap-iommu.c static int omap_iommu_map(struct iommu_domain *domain, unsigned long da, domain 1344 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 1385 drivers/iommu/omap-iommu.c static size_t omap_iommu_unmap(struct iommu_domain *domain, unsigned long da, domain 1388 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 1476 drivers/iommu/omap-iommu.c omap_iommu_attach_dev(struct iommu_domain *domain, struct device *dev) domain 1478 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 1516 drivers/iommu/omap-iommu.c oiommu->domain = domain; domain 1531 drivers/iommu/omap-iommu.c oiommu->domain = NULL; domain 1571 drivers/iommu/omap-iommu.c oiommu->domain = NULL; domain 1579 drivers/iommu/omap-iommu.c static void omap_iommu_detach_dev(struct iommu_domain *domain, domain 1582 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 1602 drivers/iommu/omap-iommu.c omap_domain->domain.geometry.aperture_start = 0; domain 1603 drivers/iommu/omap-iommu.c omap_domain->domain.geometry.aperture_end = (1ULL << 32) - 1; domain 1604 drivers/iommu/omap-iommu.c omap_domain->domain.geometry.force_aperture = true; domain 1606 drivers/iommu/omap-iommu.c return &omap_domain->domain; domain 1609 drivers/iommu/omap-iommu.c static void omap_iommu_domain_free(struct iommu_domain *domain) domain 1611 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 1623 drivers/iommu/omap-iommu.c static phys_addr_t omap_iommu_iova_to_phys(struct iommu_domain *domain, domain 1626 drivers/iommu/omap-iommu.c struct omap_iommu_domain *omap_domain = to_omap_domain(domain); domain 51 drivers/iommu/omap-iommu.h struct iommu_domain domain; domain 59 drivers/iommu/omap-iommu.h struct iommu_domain *domain; domain 59 drivers/iommu/qcom_iommu.c struct iommu_domain *domain; domain 66 drivers/iommu/qcom_iommu.c struct iommu_domain domain; domain 72 drivers/iommu/qcom_iommu.c return container_of(dom, struct qcom_iommu_domain, domain); domain 210 drivers/iommu/qcom_iommu.c if (!report_iommu_fault(ctx->domain, ctx->dev, iova, 0)) { domain 223 drivers/iommu/qcom_iommu.c static int qcom_iommu_init_domain(struct iommu_domain *domain, domain 227 drivers/iommu/qcom_iommu.c struct qcom_iommu_domain *qcom_domain = to_qcom_iommu_domain(domain); domain 254 drivers/iommu/qcom_iommu.c domain->pgsize_bitmap = pgtbl_cfg.pgsize_bitmap; domain 255 drivers/iommu/qcom_iommu.c domain->geometry.aperture_end = (1ULL << pgtbl_cfg.ias) - 1; domain 256 drivers/iommu/qcom_iommu.c domain->geometry.force_aperture = true; domain 300 drivers/iommu/qcom_iommu.c ctx->domain = domain; domain 333 drivers/iommu/qcom_iommu.c iommu_get_dma_cookie(&qcom_domain->domain)) { domain 341 drivers/iommu/qcom_iommu.c return &qcom_domain->domain; domain 344 drivers/iommu/qcom_iommu.c static void qcom_iommu_domain_free(struct iommu_domain *domain) domain 346 drivers/iommu/qcom_iommu.c struct qcom_iommu_domain *qcom_domain = to_qcom_iommu_domain(domain); domain 348 drivers/iommu/qcom_iommu.c iommu_put_dma_cookie(domain); domain 365 drivers/iommu/qcom_iommu.c static int qcom_iommu_attach_dev(struct iommu_domain *domain, struct device *dev) domain 369 drivers/iommu/qcom_iommu.c struct qcom_iommu_domain *qcom_domain = to_qcom_iommu_domain(domain); domain 379 drivers/iommu/qcom_iommu.c ret = qcom_iommu_init_domain(domain, qcom_iommu, fwspec); domain 399 drivers/iommu/qcom_iommu.c static void qcom_iommu_detach_dev(struct iommu_domain *domain, struct device *dev) domain 403 drivers/iommu/qcom_iommu.c struct qcom_iommu_domain *qcom_domain = to_qcom_iommu_domain(domain); domain 416 drivers/iommu/qcom_iommu.c ctx->domain = NULL; domain 421 drivers/iommu/qcom_iommu.c static int qcom_iommu_map(struct iommu_domain *domain, unsigned long iova, domain 426 drivers/iommu/qcom_iommu.c struct qcom_iommu_domain *qcom_domain = to_qcom_iommu_domain(domain); domain 438 drivers/iommu/qcom_iommu.c static size_t qcom_iommu_unmap(struct iommu_domain *domain, unsigned long iova, domain 443 drivers/iommu/qcom_iommu.c struct qcom_iommu_domain *qcom_domain = to_qcom_iommu_domain(domain); domain 463 drivers/iommu/qcom_iommu.c static void qcom_iommu_flush_iotlb_all(struct iommu_domain *domain) domain 465 drivers/iommu/qcom_iommu.c struct qcom_iommu_domain *qcom_domain = to_qcom_iommu_domain(domain); domain 476 drivers/iommu/qcom_iommu.c static void qcom_iommu_iotlb_sync(struct iommu_domain *domain, domain 479 drivers/iommu/qcom_iommu.c qcom_iommu_flush_iotlb_all(domain); domain 482 drivers/iommu/qcom_iommu.c static phys_addr_t qcom_iommu_iova_to_phys(struct iommu_domain *domain, domain 487 drivers/iommu/qcom_iommu.c struct qcom_iommu_domain *qcom_domain = to_qcom_iommu_domain(domain); domain 91 drivers/iommu/rockchip-iommu.c struct iommu_domain domain; domain 109 drivers/iommu/rockchip-iommu.c struct iommu_domain *domain; /* domain to which iommu is attached */ domain 130 drivers/iommu/rockchip-iommu.c return container_of(dom, struct rk_iommu_domain, domain); domain 562 drivers/iommu/rockchip-iommu.c if (iommu->domain) domain 563 drivers/iommu/rockchip-iommu.c report_iommu_fault(iommu->domain, iommu->dev, iova, domain 589 drivers/iommu/rockchip-iommu.c static phys_addr_t rk_iommu_iova_to_phys(struct iommu_domain *domain, domain 592 drivers/iommu/rockchip-iommu.c struct rk_iommu_domain *rk_domain = to_rk_domain(domain); domain 760 drivers/iommu/rockchip-iommu.c static int rk_iommu_map(struct iommu_domain *domain, unsigned long _iova, domain 763 drivers/iommu/rockchip-iommu.c struct rk_iommu_domain *rk_domain = to_rk_domain(domain); domain 797 drivers/iommu/rockchip-iommu.c static size_t rk_iommu_unmap(struct iommu_domain *domain, unsigned long _iova, domain 800 drivers/iommu/rockchip-iommu.c struct rk_iommu_domain *rk_domain = to_rk_domain(domain); domain 864 drivers/iommu/rockchip-iommu.c struct iommu_domain *domain = iommu->domain; domain 865 drivers/iommu/rockchip-iommu.c struct rk_iommu_domain *rk_domain = to_rk_domain(domain); domain 896 drivers/iommu/rockchip-iommu.c static void rk_iommu_detach_device(struct iommu_domain *domain, domain 900 drivers/iommu/rockchip-iommu.c struct rk_iommu_domain *rk_domain = to_rk_domain(domain); domain 912 drivers/iommu/rockchip-iommu.c if (iommu->domain != domain) domain 915 drivers/iommu/rockchip-iommu.c iommu->domain = NULL; domain 929 drivers/iommu/rockchip-iommu.c static int rk_iommu_attach_device(struct iommu_domain *domain, domain 933 drivers/iommu/rockchip-iommu.c struct rk_iommu_domain *rk_domain = to_rk_domain(domain); domain 948 drivers/iommu/rockchip-iommu.c if (iommu->domain == domain) domain 951 drivers/iommu/rockchip-iommu.c if (iommu->domain) domain 952 drivers/iommu/rockchip-iommu.c rk_iommu_detach_device(iommu->domain, dev); domain 954 drivers/iommu/rockchip-iommu.c iommu->domain = domain; domain 966 drivers/iommu/rockchip-iommu.c rk_iommu_detach_device(iommu->domain, dev); domain 988 drivers/iommu/rockchip-iommu.c iommu_get_dma_cookie(&rk_domain->domain)) domain 1013 drivers/iommu/rockchip-iommu.c rk_domain->domain.geometry.aperture_start = 0; domain 1014 drivers/iommu/rockchip-iommu.c rk_domain->domain.geometry.aperture_end = DMA_BIT_MASK(32); domain 1015 drivers/iommu/rockchip-iommu.c rk_domain->domain.geometry.force_aperture = true; domain 1017 drivers/iommu/rockchip-iommu.c return &rk_domain->domain; domain 1023 drivers/iommu/rockchip-iommu.c iommu_put_dma_cookie(&rk_domain->domain); domain 1030 drivers/iommu/rockchip-iommu.c static void rk_iommu_domain_free(struct iommu_domain *domain) domain 1032 drivers/iommu/rockchip-iommu.c struct rk_iommu_domain *rk_domain = to_rk_domain(domain); domain 1052 drivers/iommu/rockchip-iommu.c if (domain->type == IOMMU_DOMAIN_DMA) domain 1053 drivers/iommu/rockchip-iommu.c iommu_put_dma_cookie(&rk_domain->domain); domain 1272 drivers/iommu/rockchip-iommu.c if (!iommu->domain) domain 1283 drivers/iommu/rockchip-iommu.c if (!iommu->domain) domain 25 drivers/iommu/s390-iommu.c struct iommu_domain domain; domain 39 drivers/iommu/s390-iommu.c return container_of(dom, struct s390_domain, domain); domain 75 drivers/iommu/s390-iommu.c return &s390_domain->domain; domain 78 drivers/iommu/s390-iommu.c static void s390_domain_free(struct iommu_domain *domain) domain 80 drivers/iommu/s390-iommu.c struct s390_domain *s390_domain = to_s390_domain(domain); domain 86 drivers/iommu/s390-iommu.c static int s390_iommu_attach_device(struct iommu_domain *domain, domain 89 drivers/iommu/s390-iommu.c struct s390_domain *s390_domain = to_s390_domain(domain); domain 114 drivers/iommu/s390-iommu.c domain->geometry.aperture_start = zdev->start_dma; domain 115 drivers/iommu/s390-iommu.c domain->geometry.aperture_end = zdev->end_dma; domain 116 drivers/iommu/s390-iommu.c domain->geometry.force_aperture = true; domain 118 drivers/iommu/s390-iommu.c } else if (domain->geometry.aperture_start != zdev->start_dma || domain 119 drivers/iommu/s390-iommu.c domain->geometry.aperture_end != zdev->end_dma) { domain 138 drivers/iommu/s390-iommu.c static void s390_iommu_detach_device(struct iommu_domain *domain, domain 141 drivers/iommu/s390-iommu.c struct s390_domain *s390_domain = to_s390_domain(domain); domain 186 drivers/iommu/s390-iommu.c struct iommu_domain *domain; domain 200 drivers/iommu/s390-iommu.c domain = iommu_get_domain_for_dev(dev); domain 201 drivers/iommu/s390-iommu.c if (domain) domain 202 drivers/iommu/s390-iommu.c s390_iommu_detach_device(domain, dev); domain 220 drivers/iommu/s390-iommu.c if (dma_addr < s390_domain->domain.geometry.aperture_start || domain 221 drivers/iommu/s390-iommu.c dma_addr + size > s390_domain->domain.geometry.aperture_end) domain 267 drivers/iommu/s390-iommu.c static int s390_iommu_map(struct iommu_domain *domain, unsigned long iova, domain 270 drivers/iommu/s390-iommu.c struct s390_domain *s390_domain = to_s390_domain(domain); domain 285 drivers/iommu/s390-iommu.c static phys_addr_t s390_iommu_iova_to_phys(struct iommu_domain *domain, domain 288 drivers/iommu/s390-iommu.c struct s390_domain *s390_domain = to_s390_domain(domain); domain 293 drivers/iommu/s390-iommu.c if (iova < domain->geometry.aperture_start || domain 294 drivers/iommu/s390-iommu.c iova > domain->geometry.aperture_end) domain 316 drivers/iommu/s390-iommu.c static size_t s390_iommu_unmap(struct iommu_domain *domain, domain 320 drivers/iommu/s390-iommu.c struct s390_domain *s390_domain = to_s390_domain(domain); domain 325 drivers/iommu/s390-iommu.c paddr = s390_iommu_iova_to_phys(domain, iova); domain 106 drivers/iommu/tegra-gart.c static int gart_iommu_attach_dev(struct iommu_domain *domain, domain 114 drivers/iommu/tegra-gart.c if (gart->active_domain && gart->active_domain != domain) { domain 116 drivers/iommu/tegra-gart.c } else if (dev->archdata.iommu != domain) { domain 117 drivers/iommu/tegra-gart.c dev->archdata.iommu = domain; domain 118 drivers/iommu/tegra-gart.c gart->active_domain = domain; domain 127 drivers/iommu/tegra-gart.c static void gart_iommu_detach_dev(struct iommu_domain *domain, domain 134 drivers/iommu/tegra-gart.c if (dev->archdata.iommu == domain) { domain 146 drivers/iommu/tegra-gart.c struct iommu_domain *domain; domain 151 drivers/iommu/tegra-gart.c domain = kzalloc(sizeof(*domain), GFP_KERNEL); domain 152 drivers/iommu/tegra-gart.c if (domain) { domain 153 drivers/iommu/tegra-gart.c domain->geometry.aperture_start = gart_handle->iovmm_base; domain 154 drivers/iommu/tegra-gart.c domain->geometry.aperture_end = gart_handle->iovmm_end - 1; domain 155 drivers/iommu/tegra-gart.c domain->geometry.force_aperture = true; domain 158 drivers/iommu/tegra-gart.c return domain; domain 161 drivers/iommu/tegra-gart.c static void gart_iommu_domain_free(struct iommu_domain *domain) domain 163 drivers/iommu/tegra-gart.c WARN_ON(gart_handle->active_domain == domain); domain 164 drivers/iommu/tegra-gart.c kfree(domain); domain 180 drivers/iommu/tegra-gart.c static int gart_iommu_map(struct iommu_domain *domain, unsigned long iova, domain 209 drivers/iommu/tegra-gart.c static size_t gart_iommu_unmap(struct iommu_domain *domain, unsigned long iova, domain 225 drivers/iommu/tegra-gart.c static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain, domain 276 drivers/iommu/tegra-gart.c static void gart_iommu_sync_map(struct iommu_domain *domain) domain 281 drivers/iommu/tegra-gart.c static void gart_iommu_sync(struct iommu_domain *domain, domain 284 drivers/iommu/tegra-gart.c gart_iommu_sync_map(domain); domain 49 drivers/iommu/tegra-smmu.c struct iommu_domain domain; domain 62 drivers/iommu/tegra-smmu.c return container_of(dom, struct tegra_smmu_as, domain); domain 312 drivers/iommu/tegra-smmu.c as->domain.geometry.aperture_start = 0; domain 313 drivers/iommu/tegra-smmu.c as->domain.geometry.aperture_end = 0xffffffff; domain 314 drivers/iommu/tegra-smmu.c as->domain.geometry.force_aperture = true; domain 316 drivers/iommu/tegra-smmu.c return &as->domain; domain 319 drivers/iommu/tegra-smmu.c static void tegra_smmu_domain_free(struct iommu_domain *domain) domain 321 drivers/iommu/tegra-smmu.c struct tegra_smmu_as *as = to_smmu_as(domain); domain 460 drivers/iommu/tegra-smmu.c static int tegra_smmu_attach_dev(struct iommu_domain *domain, domain 464 drivers/iommu/tegra-smmu.c struct tegra_smmu_as *as = to_smmu_as(domain); domain 495 drivers/iommu/tegra-smmu.c static void tegra_smmu_detach_dev(struct iommu_domain *domain, struct device *dev) domain 497 drivers/iommu/tegra-smmu.c struct tegra_smmu_as *as = to_smmu_as(domain); domain 653 drivers/iommu/tegra-smmu.c static int tegra_smmu_map(struct iommu_domain *domain, unsigned long iova, domain 656 drivers/iommu/tegra-smmu.c struct tegra_smmu_as *as = to_smmu_as(domain); domain 683 drivers/iommu/tegra-smmu.c static size_t tegra_smmu_unmap(struct iommu_domain *domain, unsigned long iova, domain 686 drivers/iommu/tegra-smmu.c struct tegra_smmu_as *as = to_smmu_as(domain); domain 700 drivers/iommu/tegra-smmu.c static phys_addr_t tegra_smmu_iova_to_phys(struct iommu_domain *domain, domain 703 drivers/iommu/tegra-smmu.c struct tegra_smmu_as *as = to_smmu_as(domain); domain 64 drivers/iommu/virtio-iommu.c struct iommu_domain domain; domain 100 drivers/iommu/virtio-iommu.c #define to_viommu_domain(domain) \ domain 101 drivers/iommu/virtio-iommu.c container_of(domain, struct viommu_domain, domain) domain 401 drivers/iommu/virtio-iommu.c .domain = cpu_to_le32(vdomain->id), domain 603 drivers/iommu/virtio-iommu.c iommu_get_dma_cookie(&vdomain->domain)) { domain 608 drivers/iommu/virtio-iommu.c return &vdomain->domain; domain 612 drivers/iommu/virtio-iommu.c struct iommu_domain *domain) domain 615 drivers/iommu/virtio-iommu.c struct viommu_domain *vdomain = to_viommu_domain(domain); domain 624 drivers/iommu/virtio-iommu.c domain->pgsize_bitmap = viommu->pgsize_bitmap; domain 625 drivers/iommu/virtio-iommu.c domain->geometry = viommu->geometry; domain 633 drivers/iommu/virtio-iommu.c static void viommu_domain_free(struct iommu_domain *domain) domain 635 drivers/iommu/virtio-iommu.c struct viommu_domain *vdomain = to_viommu_domain(domain); domain 637 drivers/iommu/virtio-iommu.c iommu_put_dma_cookie(domain); domain 648 drivers/iommu/virtio-iommu.c static int viommu_attach_dev(struct iommu_domain *domain, struct device *dev) domain 655 drivers/iommu/virtio-iommu.c struct viommu_domain *vdomain = to_viommu_domain(domain); domain 663 drivers/iommu/virtio-iommu.c ret = viommu_domain_finalise(vdev->viommu, domain); domain 690 drivers/iommu/virtio-iommu.c .domain = cpu_to_le32(vdomain->id), domain 717 drivers/iommu/virtio-iommu.c static int viommu_map(struct iommu_domain *domain, unsigned long iova, domain 723 drivers/iommu/virtio-iommu.c struct viommu_domain *vdomain = to_viommu_domain(domain); domain 738 drivers/iommu/virtio-iommu.c .domain = cpu_to_le32(vdomain->id), domain 755 drivers/iommu/virtio-iommu.c static size_t viommu_unmap(struct iommu_domain *domain, unsigned long iova, domain 761 drivers/iommu/virtio-iommu.c struct viommu_domain *vdomain = to_viommu_domain(domain); domain 773 drivers/iommu/virtio-iommu.c .domain = cpu_to_le32(vdomain->id), domain 782 drivers/iommu/virtio-iommu.c static phys_addr_t viommu_iova_to_phys(struct iommu_domain *domain, domain 789 drivers/iommu/virtio-iommu.c struct viommu_domain *vdomain = to_viommu_domain(domain); domain 802 drivers/iommu/virtio-iommu.c static void viommu_iotlb_sync(struct iommu_domain *domain, domain 805 drivers/iommu/virtio-iommu.c struct viommu_domain *vdomain = to_viommu_domain(domain); domain 39 drivers/irqchip/irq-al-fic.c struct irq_domain *domain; domain 110 drivers/irqchip/irq-al-fic.c struct irq_domain *domain = fic->domain; domain 112 drivers/irqchip/irq-al-fic.c struct irq_chip_generic *gc = irq_get_domain_generic_chip(domain, 0); domain 123 drivers/irqchip/irq-al-fic.c irq = irq_find_mapping(domain, hwirq); domain 146 drivers/irqchip/irq-al-fic.c fic->domain = irq_domain_add_linear(node, domain 150 drivers/irqchip/irq-al-fic.c if (!fic->domain) { domain 155 drivers/irqchip/irq-al-fic.c ret = irq_alloc_domain_generic_chips(fic->domain, domain 165 drivers/irqchip/irq-al-fic.c gc = irq_get_domain_generic_chip(fic->domain, 0); domain 183 drivers/irqchip/irq-al-fic.c irq_domain_remove(fic->domain); domain 119 drivers/irqchip/irq-alpine-msi.c static int alpine_msix_gic_domain_alloc(struct irq_domain *domain, domain 126 drivers/irqchip/irq-alpine-msi.c if (!is_of_node(domain->parent->fwnode)) domain 129 drivers/irqchip/irq-alpine-msi.c fwspec.fwnode = domain->parent->fwnode; domain 135 drivers/irqchip/irq-alpine-msi.c ret = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 139 drivers/irqchip/irq-alpine-msi.c d = irq_domain_get_irq_data(domain->parent, virq); domain 145 drivers/irqchip/irq-alpine-msi.c static int alpine_msix_middle_domain_alloc(struct irq_domain *domain, domain 149 drivers/irqchip/irq-alpine-msi.c struct alpine_msix_data *priv = domain->host_data; domain 157 drivers/irqchip/irq-alpine-msi.c err = alpine_msix_gic_domain_alloc(domain, virq + i, sgi + i); domain 161 drivers/irqchip/irq-alpine-msi.c irq_domain_set_hwirq_and_chip(domain, virq + i, sgi + i, domain 169 drivers/irqchip/irq-alpine-msi.c irq_domain_free_irqs_parent(domain, virq, i); domain 174 drivers/irqchip/irq-alpine-msi.c static void alpine_msix_middle_domain_free(struct irq_domain *domain, domain 178 drivers/irqchip/irq-alpine-msi.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 181 drivers/irqchip/irq-alpine-msi.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 229 drivers/irqchip/irq-armada-370-xp.c static int armada_370_xp_msi_alloc(struct irq_domain *domain, unsigned int virq, domain 247 drivers/irqchip/irq-armada-370-xp.c irq_domain_set_info(domain, virq + i, hwirq + i, domain 249 drivers/irqchip/irq-armada-370-xp.c domain->host_data, handle_simple_irq, domain 256 drivers/irqchip/irq-armada-370-xp.c static void armada_370_xp_msi_free(struct irq_domain *domain, domain 259 drivers/irqchip/irq-armada-370-xp.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 52 drivers/irqchip/irq-aspeed-i2c-ic.c static int aspeed_i2c_ic_map_irq_domain(struct irq_domain *domain, domain 56 drivers/irqchip/irq-aspeed-i2c-ic.c irq_set_chip_data(irq, domain->host_data); domain 34 drivers/irqchip/irq-ath79-misc.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 36 drivers/irqchip/irq-ath79-misc.c void __iomem *base = domain->host_data; domain 53 drivers/irqchip/irq-ath79-misc.c generic_handle_irq(irq_linear_revmap(domain, bit)); domain 118 drivers/irqchip/irq-ath79-misc.c struct irq_domain *domain, int irq) domain 120 drivers/irqchip/irq-ath79-misc.c void __iomem *base = domain->host_data; domain 122 drivers/irqchip/irq-ath79-misc.c ath79_perfcount_irq = irq_create_mapping(domain, ATH79_MISC_PERF_IRQ); domain 128 drivers/irqchip/irq-ath79-misc.c irq_set_chained_handler_and_data(irq, ath79_misc_irq_handler, domain); domain 134 drivers/irqchip/irq-ath79-misc.c struct irq_domain *domain; domain 150 drivers/irqchip/irq-ath79-misc.c domain = irq_domain_add_linear(node, ATH79_MISC_IRQ_COUNT, domain 152 drivers/irqchip/irq-ath79-misc.c if (!domain) { domain 157 drivers/irqchip/irq-ath79-misc.c ath79_misc_intc_domain_init(domain, irq); domain 184 drivers/irqchip/irq-ath79-misc.c struct irq_domain *domain; domain 191 drivers/irqchip/irq-ath79-misc.c domain = irq_domain_add_legacy(NULL, ATH79_MISC_IRQ_COUNT, domain 193 drivers/irqchip/irq-ath79-misc.c if (!domain) domain 196 drivers/irqchip/irq-ath79-misc.c ath79_misc_intc_domain_init(domain, irq); domain 109 drivers/irqchip/irq-atmel-aic-common.c static void __init aic_common_ext_irq_of_init(struct irq_domain *domain) domain 111 drivers/irqchip/irq-atmel-aic-common.c struct device_node *node = irq_domain_get_of_node(domain); domain 118 drivers/irqchip/irq-atmel-aic-common.c gc = irq_get_domain_generic_chip(domain, 0); domain 124 drivers/irqchip/irq-atmel-aic-common.c gc = irq_get_domain_generic_chip(domain, hwirq); domain 127 drivers/irqchip/irq-atmel-aic-common.c hwirq, domain->revmap_size); domain 214 drivers/irqchip/irq-atmel-aic-common.c struct irq_domain *domain; domain 233 drivers/irqchip/irq-atmel-aic-common.c domain = irq_domain_add_linear(node, nchips * 32, ops, aic); domain 234 drivers/irqchip/irq-atmel-aic-common.c if (!domain) { domain 239 drivers/irqchip/irq-atmel-aic-common.c ret = irq_alloc_domain_generic_chips(domain, 32, 1, name, domain 247 drivers/irqchip/irq-atmel-aic-common.c gc = irq_get_domain_generic_chip(domain, i * 32); domain 260 drivers/irqchip/irq-atmel-aic-common.c aic_common_ext_irq_of_init(domain); domain 263 drivers/irqchip/irq-atmel-aic-common.c return domain; domain 266 drivers/irqchip/irq-atmel-aic-common.c irq_domain_remove(domain); domain 141 drivers/irqchip/irq-atmel-aic.c static void __init aic_hw_init(struct irq_domain *domain) domain 143 drivers/irqchip/irq-atmel-aic.c struct irq_chip_generic *gc = irq_get_domain_generic_chip(domain, 0); domain 245 drivers/irqchip/irq-atmel-aic.c struct irq_domain *domain; domain 250 drivers/irqchip/irq-atmel-aic.c domain = aic_common_of_init(node, &aic_irq_ops, "atmel-aic", domain 252 drivers/irqchip/irq-atmel-aic.c if (IS_ERR(domain)) domain 253 drivers/irqchip/irq-atmel-aic.c return PTR_ERR(domain); domain 255 drivers/irqchip/irq-atmel-aic.c aic_domain = domain; domain 256 drivers/irqchip/irq-atmel-aic.c gc = irq_get_domain_generic_chip(domain, 0); domain 269 drivers/irqchip/irq-atmel-aic.c aic_hw_init(domain); domain 88 drivers/irqchip/irq-atmel-aic5.c struct irq_domain *domain = d->domain; domain 89 drivers/irqchip/irq-atmel-aic5.c struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); domain 105 drivers/irqchip/irq-atmel-aic5.c struct irq_domain *domain = d->domain; domain 106 drivers/irqchip/irq-atmel-aic5.c struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); domain 122 drivers/irqchip/irq-atmel-aic5.c struct irq_domain *domain = d->domain; domain 123 drivers/irqchip/irq-atmel-aic5.c struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); domain 136 drivers/irqchip/irq-atmel-aic5.c struct irq_domain *domain = d->domain; domain 137 drivers/irqchip/irq-atmel-aic5.c struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); domain 157 drivers/irqchip/irq-atmel-aic5.c struct irq_domain *domain = d->domain; domain 158 drivers/irqchip/irq-atmel-aic5.c struct irq_domain_chip_generic *dgc = domain->gc; domain 159 drivers/irqchip/irq-atmel-aic5.c struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); domain 165 drivers/irqchip/irq-atmel-aic5.c for (i = 0; i < domain->revmap_size; i++) { domain 187 drivers/irqchip/irq-atmel-aic5.c struct irq_domain *domain = d->domain; domain 188 drivers/irqchip/irq-atmel-aic5.c struct irq_domain_chip_generic *dgc = domain->gc; domain 189 drivers/irqchip/irq-atmel-aic5.c struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); domain 198 drivers/irqchip/irq-atmel-aic5.c for (i = 0; i < domain->revmap_size; i++) { domain 223 drivers/irqchip/irq-atmel-aic5.c struct irq_domain *domain = d->domain; domain 224 drivers/irqchip/irq-atmel-aic5.c struct irq_domain_chip_generic *dgc = domain->gc; domain 225 drivers/irqchip/irq-atmel-aic5.c struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); domain 243 drivers/irqchip/irq-atmel-aic5.c static void __init aic5_hw_init(struct irq_domain *domain) domain 245 drivers/irqchip/irq-atmel-aic5.c struct irq_chip_generic *gc = irq_get_domain_generic_chip(domain, 0); domain 266 drivers/irqchip/irq-atmel-aic5.c for (i = 0; i < domain->revmap_size; i++) { domain 325 drivers/irqchip/irq-atmel-aic5.c struct irq_domain *domain; domain 335 drivers/irqchip/irq-atmel-aic5.c domain = aic_common_of_init(node, &aic5_irq_ops, "atmel-aic5", domain 337 drivers/irqchip/irq-atmel-aic5.c if (IS_ERR(domain)) domain 338 drivers/irqchip/irq-atmel-aic5.c return PTR_ERR(domain); domain 340 drivers/irqchip/irq-atmel-aic5.c aic5_domain = domain; domain 343 drivers/irqchip/irq-atmel-aic5.c gc = irq_get_domain_generic_chip(domain, i * 32); domain 355 drivers/irqchip/irq-atmel-aic5.c aic5_hw_init(domain); domain 83 drivers/irqchip/irq-bcm2835.c struct irq_domain *domain; domain 143 drivers/irqchip/irq-bcm2835.c intc.domain = irq_domain_add_linear(node, MAKE_HWIRQ(NR_BANKS, 0), domain 145 drivers/irqchip/irq-bcm2835.c if (!intc.domain) domain 154 drivers/irqchip/irq-bcm2835.c irq = irq_create_mapping(intc.domain, MAKE_HWIRQ(b, i)); domain 234 drivers/irqchip/irq-bcm2835.c handle_domain_irq(intc.domain, hwirq, regs); domain 242 drivers/irqchip/irq-bcm2835.c generic_handle_irq(irq_linear_revmap(intc.domain, hwirq)); domain 18 drivers/irqchip/irq-bcm2836.c struct irq_domain *domain; domain 143 drivers/irqchip/irq-bcm2836.c handle_domain_irq(intc.domain, hwirq, regs); domain 229 drivers/irqchip/irq-bcm2836.c intc.domain = irq_domain_add_linear(node, LAST_IRQ + 1, domain 232 drivers/irqchip/irq-bcm2836.c if (!intc.domain) domain 79 drivers/irqchip/irq-bcm6345-l1.c struct irq_domain *domain; domain 141 drivers/irqchip/irq-bcm6345-l1.c irq = irq_linear_revmap(intc->domain, base + hwirq); domain 329 drivers/irqchip/irq-bcm6345-l1.c intc->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * intc->n_words, domain 332 drivers/irqchip/irq-bcm6345-l1.c if (!intc->domain) { domain 40 drivers/irqchip/irq-bcm7038-l1.c struct irq_domain *domain; domain 140 drivers/irqchip/irq-bcm7038-l1.c generic_handle_irq(irq_find_mapping(intc->domain, domain 339 drivers/irqchip/irq-bcm7038-l1.c intc->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * intc->n_words, domain 342 drivers/irqchip/irq-bcm7038-l1.c if (!intc->domain) { domain 47 drivers/irqchip/irq-bcm7120-l2.c struct irq_domain *domain; domain 67 drivers/irqchip/irq-bcm7120-l2.c irq_get_domain_generic_chip(b->domain, base); domain 78 drivers/irqchip/irq-bcm7120-l2.c generic_handle_irq(irq_find_mapping(b->domain, domain 256 drivers/irqchip/irq-bcm7120-l2.c data->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * data->n_words, domain 258 drivers/irqchip/irq-bcm7120-l2.c if (!data->domain) { domain 270 drivers/irqchip/irq-bcm7120-l2.c ret = irq_alloc_domain_generic_chips(data->domain, IRQS_PER_WORD, 1, domain 282 drivers/irqchip/irq-bcm7120-l2.c gc = irq_get_domain_generic_chip(data->domain, irq); domain 324 drivers/irqchip/irq-bcm7120-l2.c irq_domain_remove(data->domain); domain 57 drivers/irqchip/irq-brcmstb-l2.c struct irq_domain *domain; domain 113 drivers/irqchip/irq-brcmstb-l2.c generic_handle_irq(irq_linear_revmap(b->domain, irq)); domain 197 drivers/irqchip/irq-brcmstb-l2.c data->domain = irq_domain_add_linear(np, 32, domain 199 drivers/irqchip/irq-brcmstb-l2.c if (!data->domain) { domain 212 drivers/irqchip/irq-brcmstb-l2.c ret = irq_alloc_domain_generic_chips(data->domain, 32, 1, domain 223 drivers/irqchip/irq-brcmstb-l2.c data->gc = irq_get_domain_generic_chip(data->domain, 0); domain 264 drivers/irqchip/irq-brcmstb-l2.c irq_domain_remove(data->domain); domain 68 drivers/irqchip/irq-clps711x.c struct irq_domain *domain; domain 80 drivers/irqchip/irq-clps711x.c handle_domain_irq(clps711x_intc->domain, domain 86 drivers/irqchip/irq-clps711x.c handle_domain_irq(clps711x_intc->domain, domain 186 drivers/irqchip/irq-clps711x.c clps711x_intc->domain = domain 189 drivers/irqchip/irq-clps711x.c if (!clps711x_intc->domain) { domain 194 drivers/irqchip/irq-clps711x.c irq_set_default_host(clps711x_intc->domain); domain 74 drivers/irqchip/irq-crossbar.c static int allocate_gic_irq(struct irq_domain *domain, unsigned virq, domain 81 drivers/irqchip/irq-crossbar.c if (!irq_domain_get_of_node(domain->parent)) domain 96 drivers/irqchip/irq-crossbar.c fwspec.fwnode = domain->parent->fwnode; domain 102 drivers/irqchip/irq-crossbar.c err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 152 drivers/irqchip/irq-crossbar.c static void crossbar_domain_free(struct irq_domain *domain, unsigned int virq, domain 159 drivers/irqchip/irq-crossbar.c struct irq_data *d = irq_domain_get_irq_data(domain, virq + i); domain 336 drivers/irqchip/irq-crossbar.c struct irq_domain *parent_domain, *domain; domain 354 drivers/irqchip/irq-crossbar.c domain = irq_domain_add_hierarchy(parent_domain, 0, domain 358 drivers/irqchip/irq-crossbar.c if (!domain) { domain 73 drivers/irqchip/irq-dw-apb-ictl.c struct irq_domain *domain; domain 123 drivers/irqchip/irq-dw-apb-ictl.c domain = irq_domain_add_linear(np, nrirqs, domain 125 drivers/irqchip/irq-dw-apb-ictl.c if (!domain) { domain 131 drivers/irqchip/irq-dw-apb-ictl.c ret = irq_alloc_domain_generic_chips(domain, 32, 1, np->name, domain 140 drivers/irqchip/irq-dw-apb-ictl.c gc = irq_get_domain_generic_chip(domain, i * 32); domain 149 drivers/irqchip/irq-dw-apb-ictl.c irq_set_chained_handler_and_data(irq, dw_apb_ictl_handler, domain); domain 51 drivers/irqchip/irq-ftintc010.c struct irq_domain *domain; domain 137 drivers/irqchip/irq-ftintc010.c handle_domain_irq(f->domain, irq, regs); domain 184 drivers/irqchip/irq-ftintc010.c f->domain = irq_domain_add_simple(node, FT010_NUM_IRQS, 0, domain 134 drivers/irqchip/irq-gic-v2m.c static int gicv2m_irq_gic_domain_alloc(struct irq_domain *domain, domain 142 drivers/irqchip/irq-gic-v2m.c if (is_of_node(domain->parent->fwnode)) { domain 143 drivers/irqchip/irq-gic-v2m.c fwspec.fwnode = domain->parent->fwnode; domain 148 drivers/irqchip/irq-gic-v2m.c } else if (is_fwnode_irqchip(domain->parent->fwnode)) { domain 149 drivers/irqchip/irq-gic-v2m.c fwspec.fwnode = domain->parent->fwnode; domain 157 drivers/irqchip/irq-gic-v2m.c err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 162 drivers/irqchip/irq-gic-v2m.c d = irq_domain_get_irq_data(domain->parent, virq); domain 176 drivers/irqchip/irq-gic-v2m.c static int gicv2m_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 205 drivers/irqchip/irq-gic-v2m.c err = gicv2m_irq_gic_domain_alloc(domain, virq + i, hwirq + i); domain 209 drivers/irqchip/irq-gic-v2m.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 216 drivers/irqchip/irq-gic-v2m.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 221 drivers/irqchip/irq-gic-v2m.c static void gicv2m_irq_domain_free(struct irq_domain *domain, domain 224 drivers/irqchip/irq-gic-v2m.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 228 drivers/irqchip/irq-gic-v2m.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 53 drivers/irqchip/irq-gic-v3-its-pci-msi.c static int its_pci_msi_prepare(struct irq_domain *domain, struct device *dev, domain 63 drivers/irqchip/irq-gic-v3-its-pci-msi.c msi_info = msi_get_domain_info(domain->parent); domain 76 drivers/irqchip/irq-gic-v3-its-pci-msi.c info->scratchpad[0].ul = pci_msi_domain_get_msi_rid(domain, pdev); domain 89 drivers/irqchip/irq-gic-v3-its-pci-msi.c return msi_info->ops->msi_prepare(domain->parent, dev, nvec, info); domain 17 drivers/irqchip/irq-gic-v3-its-platform-msi.c static int of_pmsi_get_dev_id(struct irq_domain *domain, struct device *dev, domain 29 drivers/irqchip/irq-gic-v3-its-platform-msi.c if (args.np == irq_domain_get_of_node(domain)) { domain 46 drivers/irqchip/irq-gic-v3-its-platform-msi.c static int its_pmsi_prepare(struct irq_domain *domain, struct device *dev, domain 53 drivers/irqchip/irq-gic-v3-its-platform-msi.c msi_info = msi_get_domain_info(domain->parent); domain 56 drivers/irqchip/irq-gic-v3-its-platform-msi.c ret = of_pmsi_get_dev_id(domain, dev, &dev_id); domain 67 drivers/irqchip/irq-gic-v3-its-platform-msi.c return msi_info->ops->msi_prepare(domain->parent, domain 2494 drivers/irqchip/irq-gic-v3-its.c static int its_msi_prepare(struct irq_domain *domain, struct device *dev, domain 2511 drivers/irqchip/irq-gic-v3-its.c msi_info = msi_get_domain_info(domain); domain 2554 drivers/irqchip/irq-gic-v3-its.c static int its_irq_gic_domain_alloc(struct irq_domain *domain, domain 2560 drivers/irqchip/irq-gic-v3-its.c if (irq_domain_get_of_node(domain->parent)) { domain 2561 drivers/irqchip/irq-gic-v3-its.c fwspec.fwnode = domain->parent->fwnode; domain 2566 drivers/irqchip/irq-gic-v3-its.c } else if (is_fwnode_irqchip(domain->parent->fwnode)) { domain 2567 drivers/irqchip/irq-gic-v3-its.c fwspec.fwnode = domain->parent->fwnode; domain 2575 drivers/irqchip/irq-gic-v3-its.c return irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 2578 drivers/irqchip/irq-gic-v3-its.c static int its_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 2597 drivers/irqchip/irq-gic-v3-its.c err = its_irq_gic_domain_alloc(domain, virq + i, hwirq + i); domain 2601 drivers/irqchip/irq-gic-v3-its.c irq_domain_set_hwirq_and_chip(domain, virq + i, domain 2612 drivers/irqchip/irq-gic-v3-its.c static int its_irq_domain_activate(struct irq_domain *domain, domain 2641 drivers/irqchip/irq-gic-v3-its.c static void its_irq_domain_deactivate(struct irq_domain *domain, domain 2651 drivers/irqchip/irq-gic-v3-its.c static void its_irq_domain_free(struct irq_domain *domain, unsigned int virq, domain 2654 drivers/irqchip/irq-gic-v3-its.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 2660 drivers/irqchip/irq-gic-v3-its.c its_get_event_id(irq_domain_get_irq_data(domain, virq)), domain 2664 drivers/irqchip/irq-gic-v3-its.c struct irq_data *data = irq_domain_get_irq_data(domain, domain 2691 drivers/irqchip/irq-gic-v3-its.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 3051 drivers/irqchip/irq-gic-v3-its.c static void its_vpe_irq_domain_free(struct irq_domain *domain, domain 3055 drivers/irqchip/irq-gic-v3-its.c struct its_vm *vm = domain->host_data; domain 3058 drivers/irqchip/irq-gic-v3-its.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 3061 drivers/irqchip/irq-gic-v3-its.c struct irq_data *data = irq_domain_get_irq_data(domain, domain 3078 drivers/irqchip/irq-gic-v3-its.c static int its_vpe_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 3113 drivers/irqchip/irq-gic-v3-its.c err = its_irq_gic_domain_alloc(domain, virq + i, domain 3117 drivers/irqchip/irq-gic-v3-its.c irq_domain_set_hwirq_and_chip(domain, virq + i, i, domain 3124 drivers/irqchip/irq-gic-v3-its.c its_vpe_irq_domain_free(domain, virq, i - 1); domain 3133 drivers/irqchip/irq-gic-v3-its.c static int its_vpe_irq_domain_activate(struct irq_domain *domain, domain 3159 drivers/irqchip/irq-gic-v3-its.c static void its_vpe_irq_domain_deactivate(struct irq_domain *domain, domain 41 drivers/irqchip/irq-gic-v3-mbi.c static int mbi_irq_gic_domain_alloc(struct irq_domain *domain, domain 53 drivers/irqchip/irq-gic-v3-mbi.c if (!is_of_node(domain->parent->fwnode)) domain 61 drivers/irqchip/irq-gic-v3-mbi.c fwspec.fwnode = domain->parent->fwnode; domain 67 drivers/irqchip/irq-gic-v3-mbi.c err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 71 drivers/irqchip/irq-gic-v3-mbi.c d = irq_domain_get_irq_data(domain->parent, virq); domain 84 drivers/irqchip/irq-gic-v3-mbi.c static int mbi_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 114 drivers/irqchip/irq-gic-v3-mbi.c err = mbi_irq_gic_domain_alloc(domain, virq + i, hwirq + i); domain 118 drivers/irqchip/irq-gic-v3-mbi.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 125 drivers/irqchip/irq-gic-v3-mbi.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 130 drivers/irqchip/irq-gic-v3-mbi.c static void mbi_irq_domain_free(struct irq_domain *domain, domain 133 drivers/irqchip/irq-gic-v3-mbi.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 137 drivers/irqchip/irq-gic-v3-mbi.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 49 drivers/irqchip/irq-gic-v3.c struct irq_domain *domain; domain 610 drivers/irqchip/irq-gic-v3.c err = handle_domain_nmi(gic_data.domain, irqnr, regs); domain 648 drivers/irqchip/irq-gic-v3.c err = handle_domain_irq(gic_data.domain, irqnr, regs); domain 1340 drivers/irqchip/irq-gic-v3.c static int gic_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 1348 drivers/irqchip/irq-gic-v3.c ret = gic_irq_domain_translate(domain, fwspec, &hwirq, &type); domain 1353 drivers/irqchip/irq-gic-v3.c ret = gic_irq_domain_map(domain, virq + i, hwirq + i); domain 1361 drivers/irqchip/irq-gic-v3.c static void gic_irq_domain_free(struct irq_domain *domain, unsigned int virq, domain 1367 drivers/irqchip/irq-gic-v3.c struct irq_data *d = irq_domain_get_irq_data(domain, virq + i); domain 1394 drivers/irqchip/irq-gic-v3.c return d == gic_data.domain; domain 1545 drivers/irqchip/irq-gic-v3.c gic_data.domain = irq_domain_create_tree(handle, &gic_irq_domain_ops, domain 1547 drivers/irqchip/irq-gic-v3.c irq_domain_update_bus_token(gic_data.domain, DOMAIN_BUS_WIRED); domain 1552 drivers/irqchip/irq-gic-v3.c if (WARN_ON(!gic_data.domain) || WARN_ON(!gic_data.rdists.rdist)) { domain 1562 drivers/irqchip/irq-gic-v3.c err = mbi_init(handle, gic_data.domain); domain 1577 drivers/irqchip/irq-gic-v3.c its_init(handle, &gic_data.rdists, gic_data.domain); domain 1581 drivers/irqchip/irq-gic-v3.c gicv2m_init(handle, gic_data.domain); domain 1589 drivers/irqchip/irq-gic-v3.c if (gic_data.domain) domain 1590 drivers/irqchip/irq-gic-v3.c irq_domain_remove(gic_data.domain); domain 98 drivers/irqchip/irq-gic-v4.c vm->domain = irq_domain_create_hierarchy(gic_domain, 0, vm->nr_vpes, domain 101 drivers/irqchip/irq-gic-v4.c if (!vm->domain) domain 109 drivers/irqchip/irq-gic-v4.c vpe_base_irq = __irq_domain_alloc_irqs(vm->domain, -1, vm->nr_vpes, domain 121 drivers/irqchip/irq-gic-v4.c if (vm->domain) domain 122 drivers/irqchip/irq-gic-v4.c irq_domain_remove(vm->domain); domain 132 drivers/irqchip/irq-gic-v4.c irq_domain_remove(vm->domain); domain 214 drivers/irqchip/irq-gic-v4.c int its_init_v4(struct irq_domain *domain, const struct irq_domain_ops *ops) domain 216 drivers/irqchip/irq-gic-v4.c if (domain) { domain 218 drivers/irqchip/irq-gic-v4.c gic_domain = domain; domain 84 drivers/irqchip/irq-gic.c struct irq_domain *domain; domain 372 drivers/irqchip/irq-gic.c handle_domain_irq(gic->domain, irqnr, regs); domain 411 drivers/irqchip/irq-gic.c cascade_irq = irq_find_mapping(chip_data->domain, gic_irq); domain 1045 drivers/irqchip/irq-gic.c static int gic_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 1053 drivers/irqchip/irq-gic.c ret = gic_irq_domain_translate(domain, fwspec, &hwirq, &type); domain 1058 drivers/irqchip/irq-gic.c ret = gic_irq_domain_map(domain, virq + i, hwirq + i); domain 1146 drivers/irqchip/irq-gic.c gic->domain = irq_domain_create_linear(handle, gic_irqs, domain 1165 drivers/irqchip/irq-gic.c gic->domain = irq_domain_add_legacy(NULL, gic_irqs, irq_base, domain 1169 drivers/irqchip/irq-gic.c if (WARN_ON(!gic->domain)) { domain 1200 drivers/irqchip/irq-gic.c if (WARN_ON(!gic || gic->domain)) domain 1471 drivers/irqchip/irq-gic.c gicv2m_init(&node->fwnode, gic_data[gic_cnt].domain); domain 1656 drivers/irqchip/irq-gic.c gicv2m_init(NULL, gic_data[0].domain); domain 55 drivers/irqchip/irq-hip04.c struct irq_domain *domain; domain 186 drivers/irqchip/irq-hip04.c handle_domain_irq(hip04_data.domain, irqnr, regs); domain 401 drivers/irqchip/irq-hip04.c hip04_data.domain = irq_domain_add_legacy(node, nr_irqs, irq_base, domain 406 drivers/irqchip/irq-hip04.c if (WARN_ON(!hip04_data.domain)) domain 314 drivers/irqchip/irq-i8259.c struct irq_domain *domain; domain 321 drivers/irqchip/irq-i8259.c domain = irq_domain_add_legacy(node, 16, I8259A_IRQ_BASE, 0, domain 323 drivers/irqchip/irq-i8259.c if (!domain) domain 328 drivers/irqchip/irq-i8259.c return domain; domain 338 drivers/irqchip/irq-i8259.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 345 drivers/irqchip/irq-i8259.c irq = irq_linear_revmap(domain, hwirq); domain 351 drivers/irqchip/irq-i8259.c struct irq_domain *domain; domain 354 drivers/irqchip/irq-i8259.c domain = __init_i8259_irqs(node); domain 359 drivers/irqchip/irq-i8259.c irq_domain_remove(domain); domain 364 drivers/irqchip/irq-i8259.c domain); domain 82 drivers/irqchip/irq-imgpdc.c struct irq_domain *domain; domain 122 drivers/irqchip/irq-imgpdc.c return (struct pdc_intc_priv *)data->domain->host_data; domain 240 drivers/irqchip/irq-imgpdc.c irq_no = irq_linear_revmap(priv->domain, i); domain 261 drivers/irqchip/irq-imgpdc.c irq_no = irq_linear_revmap(priv->domain, domain 382 drivers/irqchip/irq-imgpdc.c priv->domain = irq_domain_add_linear(node, 16, &irq_generic_chip_ops, domain 384 drivers/irqchip/irq-imgpdc.c if (unlikely(!priv->domain)) { domain 394 drivers/irqchip/irq-imgpdc.c ret = irq_alloc_domain_generic_chips(priv->domain, 8, 2, "pdc", domain 402 drivers/irqchip/irq-imgpdc.c gc = irq_get_domain_generic_chip(priv->domain, 0); domain 416 drivers/irqchip/irq-imgpdc.c gc = irq_get_domain_generic_chip(priv->domain, 8); domain 467 drivers/irqchip/irq-imgpdc.c irq_domain_remove(priv->domain); domain 475 drivers/irqchip/irq-imgpdc.c irq_domain_remove(priv->domain); domain 161 drivers/irqchip/irq-imx-gpcv2.c static int imx_gpcv2_domain_alloc(struct irq_domain *domain, domain 172 drivers/irqchip/irq-imx-gpcv2.c err = imx_gpcv2_domain_translate(domain, fwspec, &hwirq, &type); domain 180 drivers/irqchip/irq-imx-gpcv2.c irq_domain_set_hwirq_and_chip(domain, irq + i, hwirq + i, domain 181 drivers/irqchip/irq-imx-gpcv2.c &gpcv2_irqchip_data_chip, domain->host_data); domain 185 drivers/irqchip/irq-imx-gpcv2.c parent_fwspec.fwnode = domain->parent->fwnode; domain 186 drivers/irqchip/irq-imx-gpcv2.c return irq_domain_alloc_irqs_parent(domain, irq, nr_irqs, domain 205 drivers/irqchip/irq-imx-gpcv2.c struct irq_domain *parent_domain, *domain; domain 245 drivers/irqchip/irq-imx-gpcv2.c domain = irq_domain_add_hierarchy(parent_domain, 0, GPC_MAX_IRQS, domain 247 drivers/irqchip/irq-imx-gpcv2.c if (!domain) { domain 252 drivers/irqchip/irq-imx-gpcv2.c irq_set_default_host(domain); domain 35 drivers/irqchip/irq-imx-irqsteer.c struct irq_domain *domain; domain 134 drivers/irqchip/irq-imx-irqsteer.c virq = irq_find_mapping(data->domain, pos + hwirq); domain 201 drivers/irqchip/irq-imx-irqsteer.c data->domain = irq_domain_add_linear(np, data->reg_num * 32, domain 203 drivers/irqchip/irq-imx-irqsteer.c if (!data->domain) { domain 243 drivers/irqchip/irq-imx-irqsteer.c irq_domain_remove(irqsteer_data->domain); domain 19 drivers/irqchip/irq-ingenic-tcu.c struct irq_domain *domain; domain 27 drivers/irqchip/irq-ingenic-tcu.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 28 drivers/irqchip/irq-ingenic-tcu.c struct irq_chip_generic *gc = irq_get_domain_generic_chip(domain, 0); domain 41 drivers/irqchip/irq-ingenic-tcu.c generic_handle_irq(irq_linear_revmap(domain, i)); domain 115 drivers/irqchip/irq-ingenic-tcu.c tcu->domain = irq_domain_add_linear(np, 32, &irq_generic_chip_ops, domain 117 drivers/irqchip/irq-ingenic-tcu.c if (!tcu->domain) { domain 122 drivers/irqchip/irq-ingenic-tcu.c ret = irq_alloc_domain_generic_chips(tcu->domain, 32, 1, "TCU", domain 130 drivers/irqchip/irq-ingenic-tcu.c gc = irq_get_domain_generic_chip(tcu->domain, 0); domain 166 drivers/irqchip/irq-ingenic-tcu.c tcu->domain); domain 175 drivers/irqchip/irq-ingenic-tcu.c irq_domain_remove(tcu->domain); domain 84 drivers/irqchip/irq-ingenic.c struct irq_domain *domain; domain 111 drivers/irqchip/irq-ingenic.c domain = irq_domain_add_legacy(node, num_chips * 32, domain 114 drivers/irqchip/irq-ingenic.c if (!domain) { domain 55 drivers/irqchip/irq-ixp4xx.c struct irq_domain *domain; domain 117 drivers/irqchip/irq-ixp4xx.c handle_domain_irq(ixi->domain, i, regs); domain 125 drivers/irqchip/irq-ixp4xx.c handle_domain_irq(ixi->domain, i + 32, regs); domain 129 drivers/irqchip/irq-ixp4xx.c static int ixp4xx_irq_domain_translate(struct irq_domain *domain, domain 207 drivers/irqchip/irq-ixp4xx.c return ixi->domain; domain 288 drivers/irqchip/irq-ixp4xx.c ixi->domain = irq_domain_create_linear(fwnode, nr_irqs, domain 291 drivers/irqchip/irq-ixp4xx.c if (!ixi->domain) { domain 351 drivers/irqchip/irq-ixp4xx.c ret = __irq_domain_alloc_irqs(ixi->domain, domain 70 drivers/irqchip/irq-jcore-aic.c struct irq_domain *domain; domain 103 drivers/irqchip/irq-jcore-aic.c domain = irq_domain_add_linear(node, dom_sz, &jcore_aic_irqdomain_ops, domain 105 drivers/irqchip/irq-jcore-aic.c if (!domain) domain 107 drivers/irqchip/irq-jcore-aic.c irq_create_strict_mappings(domain, min_irq, min_irq, dom_sz - min_irq); domain 28 drivers/irqchip/irq-lpc32xx.c struct irq_domain *domain; domain 129 drivers/irqchip/irq-lpc32xx.c handle_domain_irq(lpc32xx_mic_irqc->domain, irq, regs); domain 144 drivers/irqchip/irq-lpc32xx.c generic_handle_irq(irq_find_mapping(ic->domain, irq)); domain 202 drivers/irqchip/irq-lpc32xx.c irqc->domain = irq_domain_add_linear(node, NR_LPC32XX_IC_IRQS, domain 204 drivers/irqchip/irq-lpc32xx.c if (!irqc->domain) { domain 136 drivers/irqchip/irq-ls-scfg-msi.c static int ls_scfg_msi_domain_irq_alloc(struct irq_domain *domain, domain 142 drivers/irqchip/irq-ls-scfg-msi.c struct ls_scfg_msi *msi_data = domain->host_data; domain 162 drivers/irqchip/irq-ls-scfg-msi.c irq_domain_set_info(domain, virq, pos, domain 169 drivers/irqchip/irq-ls-scfg-msi.c static void ls_scfg_msi_domain_irq_free(struct irq_domain *domain, domain 172 drivers/irqchip/irq-ls-scfg-msi.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 32 drivers/irqchip/irq-ls1x.c struct irq_domain *domain; domain 53 drivers/irqchip/irq-ls1x.c generic_handle_irq(irq_find_mapping(priv->domain, bit)); domain 129 drivers/irqchip/irq-ls1x.c priv->domain = irq_domain_add_linear(node, 32, &irq_generic_chip_ops, domain 131 drivers/irqchip/irq-ls1x.c if (!priv->domain) { domain 137 drivers/irqchip/irq-ls1x.c err = irq_alloc_domain_generic_chips(priv->domain, 32, 2, domain 155 drivers/irqchip/irq-ls1x.c gc = irq_get_domain_generic_chip(priv->domain, 0); domain 184 drivers/irqchip/irq-ls1x.c irq_domain_remove(priv->domain); domain 195 drivers/irqchip/irq-mbigen.c static int mbigen_irq_domain_alloc(struct irq_domain *domain, domain 206 drivers/irqchip/irq-mbigen.c err = mbigen_domain_translate(domain, fwspec, &hwirq, &type); domain 210 drivers/irqchip/irq-mbigen.c err = platform_msi_domain_alloc(domain, virq, nr_irqs); domain 214 drivers/irqchip/irq-mbigen.c mgn_chip = platform_msi_get_host_data(domain); domain 217 drivers/irqchip/irq-mbigen.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 223 drivers/irqchip/irq-mbigen.c static void mbigen_irq_domain_free(struct irq_domain *domain, unsigned int virq, domain 226 drivers/irqchip/irq-mbigen.c platform_msi_domain_free(domain, virq, nr_irqs); domain 240 drivers/irqchip/irq-mbigen.c struct irq_domain *domain; domain 262 drivers/irqchip/irq-mbigen.c domain = platform_msi_create_device_domain(&child->dev, num_pins, domain 266 drivers/irqchip/irq-mbigen.c if (!domain) { domain 279 drivers/irqchip/irq-mbigen.c struct irq_domain *domain; domain 310 drivers/irqchip/irq-mbigen.c domain = platform_msi_create_device_domain(&pdev->dev, num_pins, domain 314 drivers/irqchip/irq-mbigen.c if (!domain) domain 235 drivers/irqchip/irq-meson-gpio.c struct meson_gpio_irq_controller *ctl = data->domain->host_data; domain 260 drivers/irqchip/irq-meson-gpio.c static int meson_gpio_irq_domain_translate(struct irq_domain *domain, domain 274 drivers/irqchip/irq-meson-gpio.c static int meson_gpio_irq_allocate_gic_irq(struct irq_domain *domain, domain 281 drivers/irqchip/irq-meson-gpio.c fwspec.fwnode = domain->parent->fwnode; domain 287 drivers/irqchip/irq-meson-gpio.c return irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 290 drivers/irqchip/irq-meson-gpio.c static int meson_gpio_irq_domain_alloc(struct irq_domain *domain, domain 296 drivers/irqchip/irq-meson-gpio.c struct meson_gpio_irq_controller *ctl = domain->host_data; domain 305 drivers/irqchip/irq-meson-gpio.c ret = meson_gpio_irq_domain_translate(domain, fwspec, &hwirq, &type); domain 313 drivers/irqchip/irq-meson-gpio.c ret = meson_gpio_irq_allocate_gic_irq(domain, virq, domain 321 drivers/irqchip/irq-meson-gpio.c irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 327 drivers/irqchip/irq-meson-gpio.c static void meson_gpio_irq_domain_free(struct irq_domain *domain, domain 331 drivers/irqchip/irq-meson-gpio.c struct meson_gpio_irq_controller *ctl = domain->host_data; domain 338 drivers/irqchip/irq-meson-gpio.c irq_domain_free_irqs_parent(domain, virq, 1); domain 340 drivers/irqchip/irq-meson-gpio.c irq_data = irq_domain_get_irq_data(domain, virq); domain 380 drivers/irqchip/irq-meson-gpio.c struct irq_domain *domain, *parent_domain; domain 411 drivers/irqchip/irq-meson-gpio.c domain = irq_domain_create_hierarchy(parent_domain, 0, domain 416 drivers/irqchip/irq-meson-gpio.c if (!domain) { domain 181 drivers/irqchip/irq-mips-cpu.c static int mips_cpu_ipi_alloc(struct irq_domain *domain, unsigned int virq, domain 184 drivers/irqchip/irq-mips-cpu.c struct cpu_ipi_domain_state *state = domain->host_data; domain 194 drivers/irqchip/irq-mips-cpu.c ret = irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq, domain 50 drivers/irqchip/irq-mmp.c struct irq_domain *domain; domain 69 drivers/irqchip/irq-mmp.c struct irq_domain *domain = d->domain; domain 70 drivers/irqchip/irq-mmp.c struct icu_chip_data *data = (struct icu_chip_data *)domain->host_data; domain 93 drivers/irqchip/irq-mmp.c struct irq_domain *domain = d->domain; domain 94 drivers/irqchip/irq-mmp.c struct icu_chip_data *data = (struct icu_chip_data *)domain->host_data; domain 122 drivers/irqchip/irq-mmp.c struct irq_domain *domain = d->domain; domain 123 drivers/irqchip/irq-mmp.c struct icu_chip_data *data = (struct icu_chip_data *)domain->host_data; domain 150 drivers/irqchip/irq-mmp.c struct irq_domain *domain; domain 159 drivers/irqchip/irq-mmp.c domain = icu_data[i].domain; domain 160 drivers/irqchip/irq-mmp.c data = (struct icu_chip_data *)domain->host_data; domain 233 drivers/irqchip/irq-mmp.c handle_domain_irq(icu_data[0].domain, hwirq, regs); domain 244 drivers/irqchip/irq-mmp.c handle_domain_irq(icu_data[0].domain, hwirq, regs); domain 259 drivers/irqchip/irq-mmp.c icu_data[0].domain = irq_domain_add_legacy(NULL, 64, 0, 0, domain 266 drivers/irqchip/irq-mmp.c irq_set_default_host(icu_data[0].domain); domain 282 drivers/irqchip/irq-mmp.c icu_data[0].domain = irq_domain_add_legacy(NULL, 64, 0, 0, domain 293 drivers/irqchip/irq-mmp.c icu_data[1].domain = irq_domain_add_legacy(NULL, icu_data[1].nr_irqs, domain 302 drivers/irqchip/irq-mmp.c icu_data[2].domain = irq_domain_add_legacy(NULL, icu_data[2].nr_irqs, domain 311 drivers/irqchip/irq-mmp.c icu_data[3].domain = irq_domain_add_legacy(NULL, icu_data[3].nr_irqs, domain 320 drivers/irqchip/irq-mmp.c icu_data[4].domain = irq_domain_add_legacy(NULL, icu_data[4].nr_irqs, domain 329 drivers/irqchip/irq-mmp.c icu_data[5].domain = irq_domain_add_legacy(NULL, icu_data[5].nr_irqs, domain 338 drivers/irqchip/irq-mmp.c icu_data[6].domain = irq_domain_add_legacy(NULL, icu_data[6].nr_irqs, domain 347 drivers/irqchip/irq-mmp.c icu_data[7].domain = irq_domain_add_legacy(NULL, icu_data[7].nr_irqs, domain 368 drivers/irqchip/irq-mmp.c irq_set_default_host(icu_data[0].domain); domain 390 drivers/irqchip/irq-mmp.c icu_data[0].domain = irq_domain_add_linear(node, nr_irqs, domain 394 drivers/irqchip/irq-mmp.c ret = irq_create_mapping(icu_data[0].domain, irq); domain 409 drivers/irqchip/irq-mmp.c irq_domain_remove(icu_data[0].domain); domain 520 drivers/irqchip/irq-mmp.c icu_data[i].domain = irq_domain_add_linear(node, nr_irqs, domain 524 drivers/irqchip/irq-mmp.c ret = irq_create_mapping(icu_data[i].domain, irq); domain 547 drivers/irqchip/irq-mmp.c irq_domain_remove(icu_data[i].domain); domain 64 drivers/irqchip/irq-mscc-ocelot.c struct irq_domain *domain; domain 72 drivers/irqchip/irq-mscc-ocelot.c domain = irq_domain_add_linear(node, OCELOT_NR_IRQ, domain 74 drivers/irqchip/irq-mscc-ocelot.c if (!domain) { domain 79 drivers/irqchip/irq-mscc-ocelot.c ret = irq_alloc_domain_generic_chips(domain, OCELOT_NR_IRQ, 1, domain 87 drivers/irqchip/irq-mscc-ocelot.c gc = irq_get_domain_generic_chip(domain, 0); domain 106 drivers/irqchip/irq-mscc-ocelot.c domain); domain 114 drivers/irqchip/irq-mscc-ocelot.c irq_domain_remove(domain); domain 35 drivers/irqchip/irq-mtk-cirq.c struct irq_domain *domain; domain 129 drivers/irqchip/irq-mtk-cirq.c static int mtk_cirq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 138 drivers/irqchip/irq-mtk-cirq.c ret = mtk_cirq_domain_translate(domain, fwspec, &hwirq, &type); domain 145 drivers/irqchip/irq-mtk-cirq.c irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 147 drivers/irqchip/irq-mtk-cirq.c domain->host_data); domain 149 drivers/irqchip/irq-mtk-cirq.c parent_fwspec.fwnode = domain->parent->fwnode; domain 150 drivers/irqchip/irq-mtk-cirq.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, domain 188 drivers/irqchip/irq-mtk-cirq.c irq = irq_find_mapping(cirq_data->domain, i); domain 246 drivers/irqchip/irq-mtk-cirq.c struct irq_domain *domain, *domain_parent; domain 278 drivers/irqchip/irq-mtk-cirq.c domain = irq_domain_add_hierarchy(domain_parent, 0, domain 281 drivers/irqchip/irq-mtk-cirq.c if (!domain) { domain 285 drivers/irqchip/irq-mtk-cirq.c cirq_data->domain = domain; domain 91 drivers/irqchip/irq-mtk-sysirq.c static int mtk_sysirq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 108 drivers/irqchip/irq-mtk-sysirq.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 110 drivers/irqchip/irq-mtk-sysirq.c domain->host_data); domain 112 drivers/irqchip/irq-mtk-sysirq.c gic_fwspec.fwnode = domain->parent->fwnode; domain 113 drivers/irqchip/irq-mtk-sysirq.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &gic_fwspec); domain 125 drivers/irqchip/irq-mtk-sysirq.c struct irq_domain *domain, *domain_parent; domain 209 drivers/irqchip/irq-mtk-sysirq.c domain = irq_domain_add_hierarchy(domain_parent, 0, intpol_num, node, domain 211 drivers/irqchip/irq-mtk-sysirq.c if (!domain) { domain 80 drivers/irqchip/irq-mvebu-gicp.c static int gicp_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 83 drivers/irqchip/irq-mvebu-gicp.c struct mvebu_gicp *gicp = domain->host_data; domain 97 drivers/irqchip/irq-mvebu-gicp.c fwspec.fwnode = domain->parent->fwnode; domain 107 drivers/irqchip/irq-mvebu-gicp.c ret = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 113 drivers/irqchip/irq-mvebu-gicp.c ret = irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 121 drivers/irqchip/irq-mvebu-gicp.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 129 drivers/irqchip/irq-mvebu-gicp.c static void gicp_irq_domain_free(struct irq_domain *domain, domain 132 drivers/irqchip/irq-mvebu-gicp.c struct mvebu_gicp *gicp = domain->host_data; domain 133 drivers/irqchip/irq-mvebu-gicp.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 140 drivers/irqchip/irq-mvebu-gicp.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 95 drivers/irqchip/irq-mvebu-icu.c struct mvebu_icu_msi_data *msi_data = platform_msi_get_host_data(d->domain); domain 196 drivers/irqchip/irq-mvebu-icu.c mvebu_icu_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 202 drivers/irqchip/irq-mvebu-icu.c struct mvebu_icu_msi_data *msi_data = platform_msi_get_host_data(domain); domain 211 drivers/irqchip/irq-mvebu-icu.c err = mvebu_icu_irq_domain_translate(domain, fwspec, &hwirq, domain 224 drivers/irqchip/irq-mvebu-icu.c err = platform_msi_domain_alloc(domain, virq, nr_irqs); domain 238 drivers/irqchip/irq-mvebu-icu.c err = irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 248 drivers/irqchip/irq-mvebu-icu.c platform_msi_domain_free(domain, virq, nr_irqs); domain 255 drivers/irqchip/irq-mvebu-icu.c mvebu_icu_irq_domain_free(struct irq_domain *domain, unsigned int virq, domain 263 drivers/irqchip/irq-mvebu-icu.c platform_msi_domain_free(domain, virq, nr_irqs); domain 78 drivers/irqchip/irq-mvebu-odmi.c static int odmi_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 100 drivers/irqchip/irq-mvebu-odmi.c fwspec.fwnode = domain->parent->fwnode; domain 106 drivers/irqchip/irq-mvebu-odmi.c ret = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 116 drivers/irqchip/irq-mvebu-odmi.c d = irq_domain_get_irq_data(domain->parent, virq); domain 119 drivers/irqchip/irq-mvebu-odmi.c irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 125 drivers/irqchip/irq-mvebu-odmi.c static void odmi_irq_domain_free(struct irq_domain *domain, domain 128 drivers/irqchip/irq-mvebu-odmi.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 135 drivers/irqchip/irq-mvebu-odmi.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 31 drivers/irqchip/irq-mvebu-pic.c struct irq_domain *domain; domain 69 drivers/irqchip/irq-mvebu-pic.c static int mvebu_pic_irq_map(struct irq_domain *domain, unsigned int virq, domain 72 drivers/irqchip/irq-mvebu-pic.c struct mvebu_pic *pic = domain->host_data; domain 100 drivers/irqchip/irq-mvebu-pic.c cascade_irq = irq_find_mapping(pic->domain, irqn); domain 150 drivers/irqchip/irq-mvebu-pic.c pic->domain = irq_domain_add_linear(node, PIC_MAX_IRQS, domain 152 drivers/irqchip/irq-mvebu-pic.c if (!pic->domain) { domain 172 drivers/irqchip/irq-mvebu-pic.c irq_domain_remove(pic->domain); domain 167 drivers/irqchip/irq-mvebu-sei.c static int mvebu_sei_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 170 drivers/irqchip/irq-mvebu-sei.c struct mvebu_sei *sei = domain->host_data; domain 174 drivers/irqchip/irq-mvebu-sei.c irq_domain_set_hwirq_and_chip(domain, virq, fwspec->param[0], domain 180 drivers/irqchip/irq-mvebu-sei.c static void mvebu_sei_domain_free(struct irq_domain *domain, unsigned int virq, domain 186 drivers/irqchip/irq-mvebu-sei.c struct irq_data *d = irq_domain_get_irq_data(domain, virq + i); domain 197 drivers/irqchip/irq-mvebu-sei.c static int mvebu_sei_ap_translate(struct irq_domain *domain, domain 208 drivers/irqchip/irq-mvebu-sei.c static int mvebu_sei_ap_alloc(struct irq_domain *domain, unsigned int virq, domain 211 drivers/irqchip/irq-mvebu-sei.c struct mvebu_sei *sei = domain->host_data; domain 217 drivers/irqchip/irq-mvebu-sei.c mvebu_sei_ap_translate(domain, arg, &hwirq, &type); domain 219 drivers/irqchip/irq-mvebu-sei.c fwspec.fwnode = domain->parent->fwnode; domain 223 drivers/irqchip/irq-mvebu-sei.c err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 227 drivers/irqchip/irq-mvebu-sei.c irq_domain_set_info(domain, virq, hwirq, domain 248 drivers/irqchip/irq-mvebu-sei.c static int mvebu_sei_cp_domain_alloc(struct irq_domain *domain, domain 252 drivers/irqchip/irq-mvebu-sei.c struct mvebu_sei *sei = domain->host_data; domain 271 drivers/irqchip/irq-mvebu-sei.c fwspec.fwnode = domain->parent->fwnode; domain 275 drivers/irqchip/irq-mvebu-sei.c ret = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 279 drivers/irqchip/irq-mvebu-sei.c irq_domain_set_info(domain, virq, hwirq, domain 290 drivers/irqchip/irq-mvebu-sei.c static void mvebu_sei_cp_domain_free(struct irq_domain *domain, domain 293 drivers/irqchip/irq-mvebu-sei.c struct mvebu_sei *sei = domain->host_data; domain 294 drivers/irqchip/irq-mvebu-sei.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 302 drivers/irqchip/irq-mvebu-sei.c irq_domain_free_irqs_parent(domain, virq, 1); domain 59 drivers/irqchip/irq-nvic.c static int nvic_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 67 drivers/irqchip/irq-nvic.c ret = nvic_irq_domain_translate(domain, fwspec, &hwirq, &type); domain 72 drivers/irqchip/irq-nvic.c irq_map_generic_chip(domain, virq + i, hwirq + i); domain 67 drivers/irqchip/irq-omap-intc.c static struct irq_domain *domain; domain 251 drivers/irqchip/irq-omap-intc.c domain = irq_domain_add_linear(node, omap_nr_irqs, domain 256 drivers/irqchip/irq-omap-intc.c ret = omap_alloc_gc_of(domain, omap_irq_base); domain 258 drivers/irqchip/irq-omap-intc.c irq_domain_remove(domain); domain 277 drivers/irqchip/irq-omap-intc.c domain = irq_domain_add_legacy(node, omap_nr_irqs, irq_base, 0, domain 360 drivers/irqchip/irq-omap-intc.c handle_domain_irq(domain, irqnr, regs); domain 143 drivers/irqchip/irq-orion.c struct irq_domain *domain; domain 150 drivers/irqchip/irq-orion.c domain = irq_domain_add_linear(np, nrirqs, domain 152 drivers/irqchip/irq-orion.c if (!domain) { domain 157 drivers/irqchip/irq-orion.c ret = irq_alloc_domain_generic_chips(domain, nrirqs, 1, np->name, domain 182 drivers/irqchip/irq-orion.c gc = irq_get_domain_generic_chip(domain, 0); domain 201 drivers/irqchip/irq-orion.c domain); domain 19 drivers/irqchip/irq-partition-percpu.c struct irq_domain *domain; domain 131 drivers/irqchip/irq-partition-percpu.c irq = irq_find_mapping(part->domain, hwirq); domain 138 drivers/irqchip/irq-partition-percpu.c static int partition_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 148 drivers/irqchip/irq-partition-percpu.c ret = domain->ops->translate(domain, fwspec, &hwirq, &type); domain 152 drivers/irqchip/irq-partition-percpu.c part = domain->host_data; domain 158 drivers/irqchip/irq-partition-percpu.c irq_domain_set_info(domain, virq, hwirq, &partition_irq_chip, part, domain 165 drivers/irqchip/irq-partition-percpu.c static void partition_domain_free(struct irq_domain *domain, unsigned int virq, domain 172 drivers/irqchip/irq-partition-percpu.c d = irq_domain_get_irq_data(domain, virq); domain 219 drivers/irqchip/irq-partition-percpu.c desc->domain = d; domain 242 drivers/irqchip/irq-partition-percpu.c return dsc->domain; domain 54 drivers/irqchip/irq-pic32-evic.c return (struct evic_chip_data *)data->domain->host_data; domain 190 drivers/irqchip/irq-pic32-evic.c static void __init pic32_ext_irq_of_init(struct irq_domain *domain) domain 192 drivers/irqchip/irq-pic32-evic.c struct device_node *node = irq_domain_get_of_node(domain); domain 193 drivers/irqchip/irq-pic32-evic.c struct evic_chip_data *priv = domain->host_data; domain 79 drivers/irqchip/irq-renesas-h8300h.c struct irq_domain *domain; domain 88 drivers/irqchip/irq-renesas-h8300h.c domain = irq_domain_add_linear(intc, NR_IRQS, &irq_ops, NULL); domain 89 drivers/irqchip/irq-renesas-h8300h.c BUG_ON(!domain); domain 90 drivers/irqchip/irq-renesas-h8300h.c irq_set_default_host(domain); domain 85 drivers/irqchip/irq-renesas-h8s.c struct irq_domain *domain; domain 96 drivers/irqchip/irq-renesas-h8s.c domain = irq_domain_add_linear(intc, NR_IRQS, &irq_ops, NULL); domain 97 drivers/irqchip/irq-renesas-h8s.c BUG_ON(!domain); domain 98 drivers/irqchip/irq-renesas-h8s.c irq_set_default_host(domain); domain 58 drivers/irqchip/irq-renesas-irqc.c return data->domain->host_data; domain 51 drivers/irqchip/irq-renesas-rza1.c return data->domain->host_data; domain 102 drivers/irqchip/irq-renesas-rza1.c static int rza1_irqc_alloc(struct irq_domain *domain, unsigned int virq, domain 105 drivers/irqchip/irq-renesas-rza1.c struct rza1_irqc_priv *priv = domain->host_data; domain 112 drivers/irqchip/irq-renesas-rza1.c ret = irq_domain_set_hwirq_and_chip(domain, virq, hwirq, &priv->chip, domain 122 drivers/irqchip/irq-renesas-rza1.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &spec); domain 125 drivers/irqchip/irq-renesas-rza1.c static int rza1_irqc_translate(struct irq_domain *domain, domain 64 drivers/irqchip/irq-s3c24xx.c struct irq_domain *domain; domain 98 drivers/irqchip/irq-s3c24xx.c irqno = irq_find_mapping(parent_intc->domain, domain 118 drivers/irqchip/irq-s3c24xx.c irqno = irq_find_mapping(parent_intc->domain, domain 305 drivers/irqchip/irq-s3c24xx.c offset = irq_domain_get_of_node(intc->domain) ? 32 : 0; domain 318 drivers/irqchip/irq-s3c24xx.c irq = irq_find_mapping(sub_intc->domain, offset + n); domain 336 drivers/irqchip/irq-s3c24xx.c if (!irq_domain_get_of_node(intc->domain)) domain 355 drivers/irqchip/irq-s3c24xx.c handle_domain_irq(intc->domain, intc_offset + offset, regs); domain 472 drivers/irqchip/irq-s3c24xx.c irqno = irq_find_mapping(parent_intc->domain, domain 581 drivers/irqchip/irq-s3c24xx.c intc->domain = irq_domain_add_legacy(np, irq_num, irq_start, domain 584 drivers/irqchip/irq-s3c24xx.c if (!intc->domain) { domain 1197 drivers/irqchip/irq-s3c24xx.c irqno = irq_create_mapping(parent_intc->domain, intspec[1]); domain 1228 drivers/irqchip/irq-s3c24xx.c struct irq_domain *domain; domain 1238 drivers/irqchip/irq-s3c24xx.c domain = irq_domain_add_linear(np, num_ctrl * 32, domain 1240 drivers/irqchip/irq-s3c24xx.c if (!domain) { domain 1254 drivers/irqchip/irq-s3c24xx.c intc->domain = domain; domain 119 drivers/irqchip/irq-sni-exiu.c static int exiu_domain_translate(struct irq_domain *domain, domain 124 drivers/irqchip/irq-sni-exiu.c struct exiu_irq_data *info = domain->host_data; domain 213 drivers/irqchip/irq-sni-exiu.c struct irq_domain *parent_domain, *domain; domain 237 drivers/irqchip/irq-sni-exiu.c domain = irq_domain_add_hierarchy(parent_domain, 0, NUM_IRQS, node, domain 239 drivers/irqchip/irq-sni-exiu.c if (!domain) { domain 259 drivers/irqchip/irq-sni-exiu.c struct irq_domain *domain; domain 273 drivers/irqchip/irq-sni-exiu.c domain = acpi_irq_create_hierarchy(0, NUM_IRQS, dev_fwnode(&pdev->dev), domain 275 drivers/irqchip/irq-sni-exiu.c if (!domain) { domain 232 drivers/irqchip/irq-stm32-exti.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 234 drivers/irqchip/irq-stm32-exti.c unsigned int virq, nbanks = domain->gc->num_chips; domain 242 drivers/irqchip/irq-stm32-exti.c gc = irq_get_domain_generic_chip(domain, irq_base); domain 246 drivers/irqchip/irq-stm32-exti.c virq = irq_find_mapping(domain, irq_base + n); domain 721 drivers/irqchip/irq-stm32-exti.c struct irq_domain *domain; domain 727 drivers/irqchip/irq-stm32-exti.c domain = irq_domain_add_linear(node, drv_data->bank_nr * IRQS_PER_BANK, domain 729 drivers/irqchip/irq-stm32-exti.c if (!domain) { domain 736 drivers/irqchip/irq-stm32-exti.c ret = irq_alloc_domain_generic_chips(domain, IRQS_PER_BANK, 1, "exti", domain 751 drivers/irqchip/irq-stm32-exti.c gc = irq_get_domain_generic_chip(domain, i * IRQS_PER_BANK); domain 772 drivers/irqchip/irq-stm32-exti.c irq_set_handler_data(irq, domain); domain 779 drivers/irqchip/irq-stm32-exti.c irq_domain_remove(domain); domain 795 drivers/irqchip/irq-stm32-exti.c struct irq_domain *domain = data; domain 797 drivers/irqchip/irq-stm32-exti.c irq_domain_remove(domain); domain 811 drivers/irqchip/irq-stm32-exti.c struct irq_domain *parent_domain, *domain; domain 868 drivers/irqchip/irq-stm32-exti.c domain = irq_domain_add_hierarchy(parent_domain, 0, domain 873 drivers/irqchip/irq-stm32-exti.c if (!domain) { domain 878 drivers/irqchip/irq-stm32-exti.c ret = devm_add_action_or_reset(dev, stm32_exti_remove_irq, domain); domain 101 drivers/irqchip/irq-sunxi-nmi.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 103 drivers/irqchip/irq-sunxi-nmi.c unsigned int virq = irq_find_mapping(domain, 0); domain 162 drivers/irqchip/irq-sunxi-nmi.c struct irq_domain *domain; domain 169 drivers/irqchip/irq-sunxi-nmi.c domain = irq_domain_add_linear(node, 1, &irq_generic_chip_ops, NULL); domain 170 drivers/irqchip/irq-sunxi-nmi.c if (!domain) { domain 175 drivers/irqchip/irq-sunxi-nmi.c ret = irq_alloc_domain_generic_chips(domain, 1, 2, DRV_NAME, domain 190 drivers/irqchip/irq-sunxi-nmi.c gc = irq_get_domain_generic_chip(domain, 0); domain 225 drivers/irqchip/irq-sunxi-nmi.c irq_set_chained_handler_and_data(irq, sunxi_sc_nmi_handle_irq, domain); domain 230 drivers/irqchip/irq-sunxi-nmi.c irq_domain_remove(domain); domain 91 drivers/irqchip/irq-tango.c struct tangox_irq_chip *chip = gc->domain->host_data; domain 128 drivers/irqchip/irq-tango.c struct tangox_irq_chip *chip = gc->domain->host_data; domain 143 drivers/irqchip/irq-tango.c ct[i].chip.name = gc->domain->name; domain 90 drivers/irqchip/irq-tb10x.c struct irq_domain *domain = irq_desc_get_handler_data(desc); domain 93 drivers/irqchip/irq-tb10x.c generic_handle_irq(irq_find_mapping(domain, irq)); domain 102 drivers/irqchip/irq-tb10x.c struct irq_domain *domain; domain 124 drivers/irqchip/irq-tb10x.c domain = irq_domain_add_linear(ictl, AB_IRQCTL_MAXIRQ, domain 126 drivers/irqchip/irq-tb10x.c if (!domain) { domain 133 drivers/irqchip/irq-tb10x.c ret = irq_alloc_domain_generic_chips(domain, AB_IRQCTL_MAXIRQ, domain 143 drivers/irqchip/irq-tb10x.c gc = domain->gc->gc[0]; domain 166 drivers/irqchip/irq-tb10x.c domain); domain 177 drivers/irqchip/irq-tb10x.c irq_domain_remove(domain); domain 236 drivers/irqchip/irq-tegra.c static int tegra_ictlr_domain_alloc(struct irq_domain *domain, domain 242 drivers/irqchip/irq-tegra.c struct tegra_ictlr_info *info = domain->host_data; domain 258 drivers/irqchip/irq-tegra.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 264 drivers/irqchip/irq-tegra.c parent_fwspec.fwnode = domain->parent->fwnode; domain 265 drivers/irqchip/irq-tegra.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, domain 278 drivers/irqchip/irq-tegra.c struct irq_domain *parent_domain, *domain; domain 333 drivers/irqchip/irq-tegra.c domain = irq_domain_add_hierarchy(parent_domain, 0, num_ictlrs * 32, domain 336 drivers/irqchip/irq-tegra.c if (!domain) { domain 68 drivers/irqchip/irq-ti-sci-inta.c struct irq_domain *domain; domain 109 drivers/irqchip/irq-ti-sci-inta.c struct irq_domain *domain; domain 114 drivers/irqchip/irq-ti-sci-inta.c domain = vint_desc->domain; domain 115 drivers/irqchip/irq-ti-sci-inta.c inta = domain->host_data; domain 123 drivers/irqchip/irq-ti-sci-inta.c virq = irq_find_mapping(domain, vint_desc->events[bit].hwirq); domain 137 drivers/irqchip/irq-ti-sci-inta.c static struct ti_sci_inta_vint_desc *ti_sci_inta_alloc_parent_irq(struct irq_domain *domain) domain 139 drivers/irqchip/irq-ti-sci-inta.c struct ti_sci_inta_irq_domain *inta = domain->host_data; domain 153 drivers/irqchip/irq-ti-sci-inta.c vint_desc->domain = domain; domain 188 drivers/irqchip/irq-ti-sci-inta.c struct ti_sci_inta_irq_domain *inta = vint_desc->domain->host_data; domain 229 drivers/irqchip/irq-ti-sci-inta.c static struct ti_sci_inta_event_desc *ti_sci_inta_alloc_irq(struct irq_domain *domain, domain 232 drivers/irqchip/irq-ti-sci-inta.c struct ti_sci_inta_irq_domain *inta = domain->host_data; domain 248 drivers/irqchip/irq-ti-sci-inta.c vint_desc = ti_sci_inta_alloc_parent_irq(domain); domain 295 drivers/irqchip/irq-ti-sci-inta.c inta = vint_desc->domain->host_data; domain 330 drivers/irqchip/irq-ti-sci-inta.c event_desc = ti_sci_inta_alloc_irq(data->domain, data->hwirq); domain 367 drivers/irqchip/irq-ti-sci-inta.c inta = data->domain->host_data; domain 456 drivers/irqchip/irq-ti-sci-inta.c static void ti_sci_inta_irq_domain_free(struct irq_domain *domain, domain 459 drivers/irqchip/irq-ti-sci-inta.c struct irq_data *data = irq_domain_get_irq_data(domain, virq); domain 475 drivers/irqchip/irq-ti-sci-inta.c static int ti_sci_inta_irq_domain_alloc(struct irq_domain *domain, domain 481 drivers/irqchip/irq-ti-sci-inta.c irq_domain_set_info(domain, virq, arg->hwirq, &ti_sci_inta_irq_chip, domain 519 drivers/irqchip/irq-ti-sci-inta.c struct irq_domain *parent_domain, *domain, *msi_domain; domain 576 drivers/irqchip/irq-ti-sci-inta.c domain = irq_domain_add_linear(dev_of_node(dev), domain 579 drivers/irqchip/irq-ti-sci-inta.c if (!domain) { domain 586 drivers/irqchip/irq-ti-sci-inta.c domain); domain 588 drivers/irqchip/irq-ti-sci-inta.c irq_domain_remove(domain); domain 66 drivers/irqchip/irq-ti-sci-intr.c static int ti_sci_intr_irq_domain_translate(struct irq_domain *domain, domain 71 drivers/irqchip/irq-ti-sci-intr.c struct ti_sci_intr_irq_domain *intr = domain->host_data; domain 88 drivers/irqchip/irq-ti-sci-intr.c static void ti_sci_intr_irq_domain_free(struct irq_domain *domain, domain 91 drivers/irqchip/irq-ti-sci-intr.c struct ti_sci_intr_irq_domain *intr = domain->host_data; domain 95 drivers/irqchip/irq-ti-sci-intr.c parent_data = irq_domain_get_irq_data(domain->parent, virq); domain 96 drivers/irqchip/irq-ti-sci-intr.c data = irq_domain_get_irq_data(domain, virq); domain 103 drivers/irqchip/irq-ti-sci-intr.c irq_domain_free_irqs_parent(domain, virq, 1); domain 115 drivers/irqchip/irq-ti-sci-intr.c static int ti_sci_intr_alloc_gic_irq(struct irq_domain *domain, domain 118 drivers/irqchip/irq-ti-sci-intr.c struct ti_sci_intr_irq_domain *intr = domain->host_data; domain 131 drivers/irqchip/irq-ti-sci-intr.c fwspec.fwnode = domain->parent->fwnode; domain 137 drivers/irqchip/irq-ti-sci-intr.c err = irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); domain 149 drivers/irqchip/irq-ti-sci-intr.c irq_domain_free_irqs_parent(domain, virq, 1); domain 164 drivers/irqchip/irq-ti-sci-intr.c static int ti_sci_intr_irq_domain_alloc(struct irq_domain *domain, domain 173 drivers/irqchip/irq-ti-sci-intr.c err = ti_sci_intr_irq_domain_translate(domain, fwspec, &hwirq, &flags); domain 177 drivers/irqchip/irq-ti-sci-intr.c err = ti_sci_intr_alloc_gic_irq(domain, virq, hwirq); domain 181 drivers/irqchip/irq-ti-sci-intr.c irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 195 drivers/irqchip/irq-ti-sci-intr.c struct irq_domain *parent_domain, *domain; domain 248 drivers/irqchip/irq-ti-sci-intr.c domain = irq_domain_add_hierarchy(parent_domain, 0, 0, dev_of_node(dev), domain 250 drivers/irqchip/irq-ti-sci-intr.c if (!domain) { domain 28 drivers/irqchip/irq-ts4800.c struct irq_domain *domain; domain 82 drivers/irqchip/irq-ts4800.c int irq = irq_find_mapping(data->domain, bit); domain 122 drivers/irqchip/irq-ts4800.c data->domain = irq_domain_add_linear(node, 8, &ts4800_ic_ops, data); domain 123 drivers/irqchip/irq-ts4800.c if (!data->domain) { domain 140 drivers/irqchip/irq-ts4800.c irq_domain_remove(data->domain); domain 25 drivers/irqchip/irq-uniphier-aidet.c struct irq_domain *domain; domain 94 drivers/irqchip/irq-uniphier-aidet.c static int uniphier_aidet_domain_translate(struct irq_domain *domain, domain 108 drivers/irqchip/irq-uniphier-aidet.c static int uniphier_aidet_domain_alloc(struct irq_domain *domain, domain 120 drivers/irqchip/irq-uniphier-aidet.c ret = uniphier_aidet_domain_translate(domain, arg, &hwirq, &type); domain 141 drivers/irqchip/irq-uniphier-aidet.c ret = irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 143 drivers/irqchip/irq-uniphier-aidet.c domain->host_data); domain 148 drivers/irqchip/irq-uniphier-aidet.c parent_fwspec.fwnode = domain->parent->fwnode; domain 154 drivers/irqchip/irq-uniphier-aidet.c return irq_domain_alloc_irqs_parent(domain, virq, 1, &parent_fwspec); domain 189 drivers/irqchip/irq-uniphier-aidet.c priv->domain = irq_domain_create_hierarchy( domain 194 drivers/irqchip/irq-uniphier-aidet.c if (!priv->domain) domain 46 drivers/irqchip/irq-versatile-fpga.c struct irq_domain *domain; domain 88 drivers/irqchip/irq-versatile-fpga.c generic_handle_irq(irq_find_mapping(f->domain, irq)); domain 108 drivers/irqchip/irq-versatile-fpga.c handle_domain_irq(f->domain, irq, regs); domain 173 drivers/irqchip/irq-versatile-fpga.c f->domain = irq_domain_add_simple(node, fls(valid), irq_start, domain 180 drivers/irqchip/irq-versatile-fpga.c irq_create_mapping(f->domain, i); domain 124 drivers/irqchip/irq-vf610-mscm-ir.c static int vf610_mscm_ir_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 132 drivers/irqchip/irq-vf610-mscm-ir.c if (!irq_domain_get_of_node(domain->parent)) domain 140 drivers/irqchip/irq-vf610-mscm-ir.c irq_domain_set_hwirq_and_chip(domain, virq + i, hwirq + i, domain 142 drivers/irqchip/irq-vf610-mscm-ir.c domain->host_data); domain 144 drivers/irqchip/irq-vf610-mscm-ir.c parent_fwspec.fwnode = domain->parent->fwnode; domain 156 drivers/irqchip/irq-vf610-mscm-ir.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, domain 181 drivers/irqchip/irq-vf610-mscm-ir.c struct irq_domain *domain, *domain_parent; domain 212 drivers/irqchip/irq-vf610-mscm-ir.c domain = irq_domain_add_hierarchy(domain_parent, 0, domain 215 drivers/irqchip/irq-vf610-mscm-ir.c if (!domain) { domain 220 drivers/irqchip/irq-vf610-mscm-ir.c if (of_device_is_compatible(irq_domain_get_of_node(domain->parent), domain 69 drivers/irqchip/irq-vic.c struct irq_domain *domain; domain 208 drivers/irqchip/irq-vic.c handle_domain_irq(vic->domain, irq, regs); domain 225 drivers/irqchip/irq-vic.c generic_handle_irq(irq_find_mapping(vic->domain, hwirq)); domain 290 drivers/irqchip/irq-vic.c v->domain = irq_domain_add_simple(node, fls(valid_sources), irq, domain 295 drivers/irqchip/irq-vic.c irq_create_mapping(v->domain, i); domain 300 drivers/irqchip/irq-vic.c v->irq = irq_find_mapping(v->domain, 0); domain 63 drivers/irqchip/irq-vt8500.c struct irq_domain *domain; /* Domain for this controller */ domain 72 drivers/irqchip/irq-vt8500.c struct vt8500_irq_data *priv = d->domain->host_data; domain 93 drivers/irqchip/irq-vt8500.c struct vt8500_irq_data *priv = d->domain->host_data; domain 104 drivers/irqchip/irq-vt8500.c struct vt8500_irq_data *priv = d->domain->host_data; domain 186 drivers/irqchip/irq-vt8500.c handle_domain_irq(intc[i].domain, irqnr, regs); domain 203 drivers/irqchip/irq-vt8500.c intc[active_cnt].domain = irq_domain_add_linear(node, 64, domain 211 drivers/irqchip/irq-vt8500.c if (!intc[active_cnt].domain) { domain 32 drivers/irqchip/qcom-irq-combiner.c struct irq_domain *domain; domain 73 drivers/irqchip/qcom-irq-combiner.c virq = irq_find_mapping(combiner->domain, hwirq); domain 105 drivers/irqchip/qcom-irq-combiner.c static int combiner_irq_map(struct irq_domain *domain, unsigned int irq, domain 109 drivers/irqchip/qcom-irq-combiner.c irq_set_chip_data(irq, domain->host_data); domain 114 drivers/irqchip/qcom-irq-combiner.c static void combiner_irq_unmap(struct irq_domain *domain, unsigned int irq) domain 254 drivers/irqchip/qcom-irq-combiner.c combiner->domain = irq_domain_create_linear(pdev->dev.fwnode, combiner->nirqs, domain 256 drivers/irqchip/qcom-irq-combiner.c if (!combiner->domain) domain 191 drivers/irqchip/qcom-pdc.c static int qcom_pdc_alloc(struct irq_domain *domain, unsigned int virq, domain 200 drivers/irqchip/qcom-pdc.c ret = qcom_pdc_translate(domain, fwspec, &hwirq, &type); domain 208 drivers/irqchip/qcom-pdc.c ret = irq_domain_set_hwirq_and_chip(domain, virq, hwirq, domain 219 drivers/irqchip/qcom-pdc.c parent_fwspec.fwnode = domain->parent->fwnode; domain 225 drivers/irqchip/qcom-pdc.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, domain 65 drivers/media/platform/qcom/venus/core.h u32 domain; domain 363 drivers/media/platform/qcom/venus/core.h venus_caps_by_codec(struct venus_core *core, u32 codec, u32 domain) domain 369 drivers/media/platform/qcom/venus/core.h core->caps[c].domain == domain) domain 25 drivers/media/platform/qcom/venus/hfi_parser.c cap->domain = VIDC_SESSION_TYPE_DEC; domain 32 drivers/media/platform/qcom/venus/hfi_parser.c cap->domain = VIDC_SESSION_TYPE_ENC; domain 38 drivers/media/platform/qcom/venus/hfi_parser.c u32 codecs, u32 domain, func cb, void *data, domain 46 drivers/media/platform/qcom/venus/hfi_parser.c if (cap->valid && cap->domain == domain) domain 48 drivers/media/platform/qcom/venus/hfi_parser.c if (cap->codec & codecs && cap->domain == domain) domain 63 drivers/media/platform/qcom/venus/hfi_parser.c parse_alloc_mode(struct venus_core *core, u32 codecs, u32 domain, void *data) domain 78 drivers/media/platform/qcom/venus/hfi_parser.c codecs, domain, fill_buf_mode, type, 1); domain 94 drivers/media/platform/qcom/venus/hfi_parser.c parse_profile_level(struct venus_core *core, u32 codecs, u32 domain, void *data) domain 105 drivers/media/platform/qcom/venus/hfi_parser.c for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, domain 119 drivers/media/platform/qcom/venus/hfi_parser.c parse_caps(struct venus_core *core, u32 codecs, u32 domain, void *data) domain 131 drivers/media/platform/qcom/venus/hfi_parser.c for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, domain 145 drivers/media/platform/qcom/venus/hfi_parser.c parse_raw_formats(struct venus_core *core, u32 codecs, u32 domain, void *data) domain 170 drivers/media/platform/qcom/venus/hfi_parser.c for_each_codec(core->caps, ARRAY_SIZE(core->caps), codecs, domain, domain 195 drivers/media/platform/qcom/venus/hfi_parser.c static void parse_codecs_mask(u32 *codecs, u32 *domain, void *data) domain 200 drivers/media/platform/qcom/venus/hfi_parser.c *domain = mask->video_domains; domain 203 drivers/media/platform/qcom/venus/hfi_parser.c static void parser_init(struct venus_inst *inst, u32 *codecs, u32 *domain) domain 209 drivers/media/platform/qcom/venus/hfi_parser.c *domain = inst->session_type; domain 212 drivers/media/platform/qcom/venus/hfi_parser.c static void parser_fini(struct venus_inst *inst, u32 codecs, u32 domain) domain 226 drivers/media/platform/qcom/venus/hfi_parser.c if (cap->codec & codecs && cap->domain == dom) domain 235 drivers/media/platform/qcom/venus/hfi_parser.c u32 *word = buf, *data, codecs = 0, domain = 0; domain 240 drivers/media/platform/qcom/venus/hfi_parser.c parser_init(inst, &codecs, &domain); domain 254 drivers/media/platform/qcom/venus/hfi_parser.c parse_codecs_mask(&codecs, &domain, data); domain 257 drivers/media/platform/qcom/venus/hfi_parser.c parse_raw_formats(core, codecs, domain, data); domain 260 drivers/media/platform/qcom/venus/hfi_parser.c parse_caps(core, codecs, domain, data); domain 263 drivers/media/platform/qcom/venus/hfi_parser.c parse_profile_level(core, codecs, domain, data); domain 266 drivers/media/platform/qcom/venus/hfi_parser.c parse_alloc_mode(core, codecs, domain, data); domain 276 drivers/media/platform/qcom/venus/hfi_parser.c parser_fini(inst, codecs, domain); domain 496 drivers/mfd/ab8500-core.c handle_nested_irq(irq_create_mapping(ab8500->domain, line)); domain 592 drivers/mfd/ab8500-core.c ab8500->domain = irq_domain_add_simple(ab8500->dev->of_node, domain 596 drivers/mfd/ab8500-core.c if (!ab8500->domain) { domain 1276 drivers/mfd/ab8500-core.c 0, ab8500->domain); domain 1280 drivers/mfd/ab8500-core.c 0, ab8500->domain); domain 1287 drivers/mfd/ab8500-core.c 0, ab8500->domain); domain 1291 drivers/mfd/ab8500-core.c 0, ab8500->domain); domain 1295 drivers/mfd/ab8500-core.c 0, ab8500->domain); domain 1299 drivers/mfd/ab8500-core.c 0, ab8500->domain); domain 1307 drivers/mfd/ab8500-core.c 0, ab8500->domain); domain 38 drivers/mfd/fsl-imx25-tsadc.c generic_handle_irq(irq_find_mapping(tsadc->domain, 1)); domain 41 drivers/mfd/fsl-imx25-tsadc.c generic_handle_irq(irq_find_mapping(tsadc->domain, 0)); domain 75 drivers/mfd/fsl-imx25-tsadc.c tsadc->domain = irq_domain_add_simple(np, 2, 0, &mx25_tsadc_domain_ops, domain 77 drivers/mfd/fsl-imx25-tsadc.c if (!tsadc->domain) { domain 184 drivers/mfd/fsl-imx25-tsadc.c irq_domain_remove(tsadc->domain); domain 38 drivers/mfd/lp8788-irq.c struct irq_domain *domain; domain 123 drivers/mfd/lp8788-irq.c handle_nested_irq(irq_find_mapping(irqd->domain, i)); domain 164 drivers/mfd/lp8788-irq.c irqd->domain = irq_domain_add_linear(lp->dev->of_node, LP8788_INT_MAX, domain 166 drivers/mfd/lp8788-irq.c if (!irqd->domain) { domain 171 drivers/mfd/lp8788-irq.c lp->irqdm = irqd->domain; domain 156 drivers/mfd/max77650.c struct irq_domain *domain; domain 208 drivers/mfd/max77650.c domain = regmap_irq_get_domain(irq_data); domain 212 drivers/mfd/max77650.c NULL, 0, domain); domain 294 drivers/mfd/max8997-irq.c struct irq_domain *domain; domain 330 drivers/mfd/max8997-irq.c domain = irq_domain_add_linear(NULL, MAX8997_IRQ_NR, domain 332 drivers/mfd/max8997-irq.c if (!domain) { domain 336 drivers/mfd/max8997-irq.c max8997->irq_domain = domain; domain 213 drivers/mfd/max8998-irq.c struct irq_domain *domain; domain 233 drivers/mfd/max8998-irq.c domain = irq_domain_add_simple(NULL, MAX8998_IRQ_NR, domain 235 drivers/mfd/max8998-irq.c if (!domain) { domain 239 drivers/mfd/max8998-irq.c max8998->irq_domain = domain; domain 139 drivers/mfd/mfd-core.c int irq_base, struct irq_domain *domain) domain 215 drivers/mfd/mfd-core.c if (domain) { domain 220 drivers/mfd/mfd-core.c domain, cell->resources[r].start); domain 285 drivers/mfd/mfd-core.c int irq_base, struct irq_domain *domain) domain 299 drivers/mfd/mfd-core.c irq_base, domain); domain 362 drivers/mfd/mfd-core.c int irq_base, struct irq_domain *domain) domain 372 drivers/mfd/mfd-core.c irq_base, domain); domain 372 drivers/mfd/qcom-pm8xxx.c struct irq_domain *domain, unsigned int irq, domain 375 drivers/mfd/qcom-pm8xxx.c irq_domain_set_info(domain, irq, hwirq, chip->pm_irq_data->irq_chip, domain 380 drivers/mfd/qcom-pm8xxx.c static int pm8xxx_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 383 drivers/mfd/qcom-pm8xxx.c struct pm_irq_chip *chip = domain->host_data; domain 389 drivers/mfd/qcom-pm8xxx.c ret = irq_domain_translate_twocell(domain, fwspec, &hwirq, &type); domain 394 drivers/mfd/qcom-pm8xxx.c pm8xxx_irq_domain_map(chip, domain, virq + i, hwirq + i, type); domain 1094 drivers/mfd/stmpe.c int base = irq_create_mapping(stmpe->domain, 0); domain 1122 drivers/mfd/stmpe.c int nestedirq = irq_create_mapping(stmpe->domain, line); domain 1224 drivers/mfd/stmpe.c stmpe->domain = irq_domain_add_simple(np, num_irqs, base, domain 1226 drivers/mfd/stmpe.c if (!stmpe->domain) { domain 1300 drivers/mfd/stmpe.c NULL, 0, stmpe->domain); domain 190 drivers/mfd/tc3589x.c int virq = irq_create_mapping(tc3589x->domain, bit); domain 237 drivers/mfd/tc3589x.c tc3589x->domain = irq_domain_add_simple( domain 241 drivers/mfd/tc3589x.c if (!tc3589x->domain) { domain 292 drivers/mfd/tc3589x.c 0, tc3589x->domain); domain 303 drivers/mfd/tc3589x.c 0, tc3589x->domain); domain 563 drivers/mfd/wm831x-irq.c struct irq_domain *domain; domain 590 drivers/mfd/wm831x-irq.c domain = irq_domain_add_legacy(wm831x->dev->of_node, domain 596 drivers/mfd/wm831x-irq.c domain = irq_domain_add_linear(wm831x->dev->of_node, domain 601 drivers/mfd/wm831x-irq.c if (!domain) { domain 615 drivers/mfd/wm831x-irq.c wm831x->irq_domain = domain; domain 145 drivers/misc/cs5535-mfgpt.c struct cs5535_mfgpt_timer *cs5535_mfgpt_alloc_timer(int timer_nr, int domain) domain 156 drivers/misc/cs5535-mfgpt.c if (domain == MFGPT_DOMAIN_WORKING) domain 1408 drivers/misc/fastrpc.c const char *domain; domain 1410 drivers/misc/fastrpc.c err = of_property_read_string(rdev->of_node, "label", &domain); domain 1417 drivers/misc/fastrpc.c if (!strcmp(domains[i], domain)) { domain 82 drivers/misc/ocxl/link.c int domain; domain 283 drivers/misc/ocxl/link.c link->domain, link->bus, link->dev); domain 355 drivers/misc/ocxl/link.c pr_debug("Allocated SPA for %x:%x:%x at %p\n", link->domain, link->bus, domain 366 drivers/misc/ocxl/link.c pr_debug("Freeing SPA for %x:%x:%x\n", link->domain, link->bus, domain 386 drivers/misc/ocxl/link.c link->domain = pci_domain_nr(dev->bus); domain 432 drivers/misc/ocxl/link.c if (link->domain == pci_domain_nr(dev->bus) && domain 161 drivers/net/dsa/mv88e6xxx/chip.c sub_irq = irq_find_mapping(chip->g1_irq.domain, domain 257 drivers/net/dsa/mv88e6xxx/chip.c virq = irq_find_mapping(chip->g1_irq.domain, irq); domain 261 drivers/net/dsa/mv88e6xxx/chip.c irq_domain_remove(chip->g1_irq.domain); domain 283 drivers/net/dsa/mv88e6xxx/chip.c chip->g1_irq.domain = irq_domain_add_simple( domain 286 drivers/net/dsa/mv88e6xxx/chip.c if (!chip->g1_irq.domain) domain 290 drivers/net/dsa/mv88e6xxx/chip.c irq_create_mapping(chip->g1_irq.domain, irq); domain 318 drivers/net/dsa/mv88e6xxx/chip.c virq = irq_find_mapping(chip->g1_irq.domain, irq); domain 322 drivers/net/dsa/mv88e6xxx/chip.c irq_domain_remove(chip->g1_irq.domain); domain 163 drivers/net/dsa/mv88e6xxx/chip.h struct irq_domain *domain; domain 386 drivers/net/dsa/mv88e6xxx/global1_atu.c chip->atu_prob_irq = irq_find_mapping(chip->g1_irq.domain, domain 629 drivers/net/dsa/mv88e6xxx/global1_vtu.c chip->vtu_prob_irq = irq_find_mapping(chip->g1_irq.domain, domain 933 drivers/net/dsa/mv88e6xxx/global2.c chip->watchdog_irq = irq_find_mapping(chip->g2_irq.domain, domain 1011 drivers/net/dsa/mv88e6xxx/global2.c sub_irq = irq_find_mapping(chip->g2_irq.domain, n); domain 1075 drivers/net/dsa/mv88e6xxx/global2.c virq = irq_find_mapping(chip->g2_irq.domain, irq); domain 1079 drivers/net/dsa/mv88e6xxx/global2.c irq_domain_remove(chip->g2_irq.domain); domain 1093 drivers/net/dsa/mv88e6xxx/global2.c chip->g2_irq.domain = irq_domain_add_simple( domain 1095 drivers/net/dsa/mv88e6xxx/global2.c if (!chip->g2_irq.domain) domain 1099 drivers/net/dsa/mv88e6xxx/global2.c irq_create_mapping(chip->g2_irq.domain, irq); domain 1103 drivers/net/dsa/mv88e6xxx/global2.c chip->device_irq = irq_find_mapping(chip->g1_irq.domain, domain 1120 drivers/net/dsa/mv88e6xxx/global2.c virq = irq_find_mapping(chip->g2_irq.domain, irq); domain 1124 drivers/net/dsa/mv88e6xxx/global2.c irq_domain_remove(chip->g2_irq.domain); domain 1135 drivers/net/dsa/mv88e6xxx/global2.c irq = irq_find_mapping(chip->g2_irq.domain, phy); domain 237 drivers/net/dsa/mv88e6xxx/serdes.c return irq_find_mapping(chip->g2_irq.domain, MV88E6352_SERDES_IRQ); domain 559 drivers/net/dsa/mv88e6xxx/serdes.c return irq_find_mapping(chip->g2_irq.domain, port); domain 468 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_irq_map(struct irq_domain *domain, unsigned int irq, domain 471 drivers/net/dsa/rtl8366rb.c irq_set_chip_data(irq, domain->host_data); domain 816 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c dev = pci_get_domain_bus_and_slot(vf->domain, vf->bus, vf->devfn); domain 1620 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c vf->domain = bnx2x_vf_domain(bp, vfid); domain 188 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h unsigned int domain; domain 1082 drivers/net/ethernet/emulex/benet/be_cmds.c u32 if_id, u32 *pmac_id, u32 domain) domain 1101 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 1144 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = dom; domain 1533 drivers/net/ethernet/emulex/benet/be_cmds.c u32 *if_handle, u32 domain) domain 1543 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 1562 drivers/net/ethernet/emulex/benet/be_cmds.c int be_cmd_if_destroy(struct be_adapter *adapter, int interface_id, u32 domain) domain 1576 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 1717 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = dom; domain 1943 drivers/net/ethernet/emulex/benet/be_cmds.c u32 num, u32 domain) domain 1961 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 3473 drivers/net/ethernet/emulex/benet/be_cmds.c static int be_cmd_set_qos(struct be_adapter *adapter, u32 bps, u32 domain) domain 3492 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 3605 drivers/net/ethernet/emulex/benet/be_cmds.c u32 domain) domain 3625 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 3649 drivers/net/ethernet/emulex/benet/be_cmds.c u32 domain) domain 3667 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 3685 drivers/net/ethernet/emulex/benet/be_cmds.c u8 domain) domain 3720 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 3778 drivers/net/ethernet/emulex/benet/be_cmds.c u8 *mac, u32 if_handle, bool active, u32 domain) domain 3782 drivers/net/ethernet/emulex/benet/be_cmds.c if_handle, domain); domain 3790 drivers/net/ethernet/emulex/benet/be_cmds.c if_handle, domain); domain 3817 drivers/net/ethernet/emulex/benet/be_cmds.c u8 mac_count, u32 domain) domain 3844 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 3878 drivers/net/ethernet/emulex/benet/be_cmds.c u32 domain, u16 intf_id, u16 hsw_mode, u8 spoofchk) domain 3904 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 3936 drivers/net/ethernet/emulex/benet/be_cmds.c u32 domain, u16 intf_id, u8 *mode, bool *spoofchk) domain 3959 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 4434 drivers/net/ethernet/emulex/benet/be_cmds.c u8 profile_type, u8 query, u8 domain) domain 4462 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 4527 drivers/net/ethernet/emulex/benet/be_cmds.c int size, int count, u8 version, u8 domain) domain 4546 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 4595 drivers/net/ethernet/emulex/benet/be_cmds.c u8 domain) domain 4602 drivers/net/ethernet/emulex/benet/be_cmds.c return be_cmd_set_qos(adapter, max_rate / 10, domain); domain 4606 drivers/net/ethernet/emulex/benet/be_cmds.c nic_desc.vf_num = domain; domain 4625 drivers/net/ethernet/emulex/benet/be_cmds.c 1, version, domain); domain 4747 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = vf_num + 1; domain 4841 drivers/net/ethernet/emulex/benet/be_cmds.c int be_cmd_enable_vf(struct be_adapter *adapter, u8 domain) domain 4864 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 4934 drivers/net/ethernet/emulex/benet/be_cmds.c int link_state, int version, u8 domain) domain 4956 drivers/net/ethernet/emulex/benet/be_cmds.c req->hdr.domain = domain; domain 4974 drivers/net/ethernet/emulex/benet/be_cmds.c int link_state, u8 domain) domain 4982 drivers/net/ethernet/emulex/benet/be_cmds.c 2, domain); domain 4989 drivers/net/ethernet/emulex/benet/be_cmds.c 1, domain); domain 332 drivers/net/ethernet/emulex/benet/be_cmds.h u8 domain; /* dword 0 */ domain 2389 drivers/net/ethernet/emulex/benet/be_cmds.h u32 *pmac_id, u32 domain); domain 2391 drivers/net/ethernet/emulex/benet/be_cmds.h u32 domain); domain 2393 drivers/net/ethernet/emulex/benet/be_cmds.h u32 *if_handle, u32 domain); domain 2394 drivers/net/ethernet/emulex/benet/be_cmds.h int be_cmd_if_destroy(struct be_adapter *adapter, int if_handle, u32 domain); domain 2416 drivers/net/ethernet/emulex/benet/be_cmds.h u32 num, u32 domain); domain 2455 drivers/net/ethernet/emulex/benet/be_cmds.h u16 link_speed, u8 domain); domain 2463 drivers/net/ethernet/emulex/benet/be_cmds.h u32 domain); domain 2468 drivers/net/ethernet/emulex/benet/be_cmds.h u32 if_handle, u8 domain); domain 2470 drivers/net/ethernet/emulex/benet/be_cmds.h u32 if_handle, bool active, u32 domain); domain 2473 drivers/net/ethernet/emulex/benet/be_cmds.h u32 domain); domain 2475 drivers/net/ethernet/emulex/benet/be_cmds.h int be_cmd_set_hsw_config(struct be_adapter *adapter, u16 pvid, u32 domain, domain 2477 drivers/net/ethernet/emulex/benet/be_cmds.h int be_cmd_get_hsw_config(struct be_adapter *adapter, u16 *pvid, u32 domain, domain 2498 drivers/net/ethernet/emulex/benet/be_cmds.h u8 profile_type, u8 query, u8 domain); domain 2502 drivers/net/ethernet/emulex/benet/be_cmds.h int be_cmd_enable_vf(struct be_adapter *adapter, u8 domain); domain 2505 drivers/net/ethernet/emulex/benet/be_cmds.h int link_state, u8 domain); domain 32 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static void *dpaa2_iova_to_virt(struct iommu_domain *domain, domain 37 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c phys_addr = domain ? iommu_iova_to_phys(domain, iova_addr) : iova_addr; domain 558 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c dr_action_get_action_domain(enum mlx5dr_domain_type domain, domain 561 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c switch (domain) { domain 983 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c static bool dr_rule_skip(enum mlx5dr_domain_type domain, domain 988 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c if (domain != MLX5DR_DOMAIN_TYPE_FDB) domain 176 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c static struct mlx5dr_action *create_vport_action(struct mlx5dr_domain *domain, domain 181 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c return mlx5dr_action_create_dest_vport(domain, dest_attr->vport.num, domain 197 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c static struct mlx5dr_action *create_action_push_vlan(struct mlx5dr_domain *domain, domain 206 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c return mlx5dr_action_create_push_vlan(domain, htonl(vlan_hdr)); domain 215 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c struct mlx5dr_domain *domain = ns->fs_dr_domain.dr_domain; domain 254 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c tmp_action = create_action_push_vlan(domain, &fte->action.vlan[0]); domain 264 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c tmp_action = create_action_push_vlan(domain, &fte->action.vlan[1]); domain 277 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c tmp_action = mlx5dr_action_create_packet_reformat(domain, domain 375 drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c tmp_action = create_vport_action(domain, dst); domain 41 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h int mlx5dr_domain_destroy(struct mlx5dr_domain *domain); domain 43 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h int mlx5dr_domain_sync(struct mlx5dr_domain *domain, u32 flags); domain 49 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_table_create(struct mlx5dr_domain *domain, u32 level); domain 82 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_action_create_dest_vport(struct mlx5dr_domain *domain, domain 100 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_action_create_modify_header(struct mlx5dr_domain *domain, domain 108 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_action_create_push_vlan(struct mlx5dr_domain *domain, __be32 vlan_hdr); domain 124 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_domain_destroy(struct mlx5dr_domain *domain) { return 0; } domain 127 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_domain_sync(struct mlx5dr_domain *domain, u32 flags) { return 0; } domain 134 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_table_create(struct mlx5dr_domain *domain, u32 level) { return NULL; } domain 172 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_action_create_dest_vport(struct mlx5dr_domain *domain, domain 192 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_action_create_modify_header(struct mlx5dr_domain *domain, domain 201 drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h mlx5dr_action_create_push_vlan(struct mlx5dr_domain *domain, domain 638 drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c cpp_params.island = sym->domain; domain 60 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h int domain; domain 75 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sw->domain = nfp_meid(fw->island, fw->menum); domain 77 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sw->domain = fw->island; domain 79 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sw->domain = -1; domain 244 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sym->domain); domain 251 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sym->domain); domain 9756 drivers/net/ethernet/sun/niu.c parent_id.pci.domain = pci_domain_nr(pdev->bus); domain 3058 drivers/net/ethernet/sun/niu.h int domain; domain 2339 drivers/net/wireless/atmel/at76c50x-usb.c priv->domain = at76_get_reg_domain(priv->regulatory_domain); domain 2391 drivers/net/wireless/atmel/at76c50x-usb.c priv->regulatory_domain, priv->domain->name); domain 424 drivers/net/wireless/atmel/at76c50x-usb.h struct reg_domain const *domain; /* reg domain description */ domain 2632 drivers/net/wireless/atmel/atmel.c char domain[REGDOMAINSZ + 1]; domain 2665 drivers/net/wireless/atmel/atmel.c if (copy_from_user(domain, rq->ifr_data, REGDOMAINSZ)) { domain 2675 drivers/net/wireless/atmel/atmel.c domain[REGDOMAINSZ] = 0; domain 2678 drivers/net/wireless/atmel/atmel.c if (!strcasecmp(channel_table[i].name, domain)) { domain 131 drivers/net/wireless/intel/iwlwifi/fw/acpi.c union acpi_object *domain; domain 140 drivers/net/wireless/intel/iwlwifi/fw/acpi.c domain = &wifi_pkg->package.elements[0]; domain 141 drivers/net/wireless/intel/iwlwifi/fw/acpi.c if (domain->type == ACPI_TYPE_INTEGER && domain 142 drivers/net/wireless/intel/iwlwifi/fw/acpi.c domain->integer.value == ACPI_WIFI_DOMAIN) domain 138 drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h __le32 domain; domain 207 drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h __le32 domain; domain 1883 drivers/net/wireless/intel/iwlwifi/fw/dbg.c if (le32_to_cpu(reg->domain) != IWL_FW_INI_DBG_DOMAIN_ALWAYS_ON) domain 702 drivers/net/wireless/marvell/libertas/cmd.c struct mrvl_ie_domain_param_set *domain = &cmd.domain; domain 722 drivers/net/wireless/marvell/libertas/cmd.c domain->header.type = cpu_to_le16(TLV_TYPE_DOMAIN); domain 725 drivers/net/wireless/marvell/libertas/cmd.c domain->country_code[0] = priv->country_code[0]; domain 726 drivers/net/wireless/marvell/libertas/cmd.c domain->country_code[1] = priv->country_code[1]; domain 727 drivers/net/wireless/marvell/libertas/cmd.c domain->country_code[2] = ' '; domain 768 drivers/net/wireless/marvell/libertas/cmd.c t = &domain->triplet[num_triplet]; domain 781 drivers/net/wireless/marvell/libertas/cmd.c t = &domain->triplet[num_triplet]; domain 793 drivers/net/wireless/marvell/libertas/cmd.c domain->header.len = cpu_to_le16(sizeof(domain->country_code) + domain 797 drivers/net/wireless/marvell/libertas/cmd.c (u8 *) &cmd.domain.country_code, domain 798 drivers/net/wireless/marvell/libertas/cmd.c le16_to_cpu(domain->header.len)); domain 802 drivers/net/wireless/marvell/libertas/cmd.c sizeof(cmd.domain.header) + domain 803 drivers/net/wireless/marvell/libertas/cmd.c sizeof(cmd.domain.country_code) + domain 399 drivers/net/wireless/marvell/libertas/host.h struct mrvl_ie_domain_param_set domain; domain 1648 drivers/net/wireless/marvell/mwifiex/fw.h struct mwifiex_ietypes_domain_param_set domain; domain 1653 drivers/net/wireless/marvell/mwifiex/fw.h struct mwifiex_ietypes_domain_param_set domain; domain 1037 drivers/net/wireless/marvell/mwifiex/sta_cmd.c struct mwifiex_ietypes_domain_param_set *domain = domain 1038 drivers/net/wireless/marvell/mwifiex/sta_cmd.c &domain_info->domain; domain 1052 drivers/net/wireless/marvell/mwifiex/sta_cmd.c domain->header.type = cpu_to_le16(WLAN_EID_COUNTRY); domain 1053 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(domain->country_code, adapter->domain_reg.country_code, domain 1054 drivers/net/wireless/marvell/mwifiex/sta_cmd.c sizeof(domain->country_code)); domain 1056 drivers/net/wireless/marvell/mwifiex/sta_cmd.c domain->header.len = domain 1059 drivers/net/wireless/marvell/mwifiex/sta_cmd.c + sizeof(domain->country_code)); domain 1062 drivers/net/wireless/marvell/mwifiex/sta_cmd.c memcpy(domain->triplet, adapter->domain_reg.triplet, domain 1067 drivers/net/wireless/marvell/mwifiex/sta_cmd.c le16_to_cpu(domain->header.len) + domain 657 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c struct mwifiex_ietypes_domain_param_set *domain = &domain_info->domain; domain 661 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c no_of_triplet = (u8) ((le16_to_cpu(domain->header.len) domain 391 drivers/of/irq.c struct irq_domain *domain; domain 397 drivers/of/irq.c domain = irq_find_host(oirq.np); domain 398 drivers/of/irq.c if (!domain) domain 222 drivers/pci/controller/dwc/pci-dra7xx.c static int dra7xx_pcie_intx_map(struct irq_domain *domain, unsigned int irq, domain 226 drivers/pci/controller/dwc/pci-dra7xx.c irq_set_chip_data(irq, domain->host_data); domain 206 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_irq_domain_alloc(struct irq_domain *domain, domain 210 drivers/pci/controller/dwc/pcie-designware-host.c struct pcie_port *pp = domain->host_data; domain 226 drivers/pci/controller/dwc/pcie-designware-host.c irq_domain_set_info(domain, virq + i, bit + i, domain 234 drivers/pci/controller/dwc/pcie-designware-host.c static void dw_pcie_irq_domain_free(struct irq_domain *domain, domain 237 drivers/pci/controller/dwc/pcie-designware-host.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 216 drivers/pci/controller/dwc/pcie-uniphier.c static int uniphier_pcie_intx_map(struct irq_domain *domain, unsigned int irq, domain 221 drivers/pci/controller/dwc/pcie-uniphier.c irq_set_chip_data(irq, domain->host_data); domain 685 drivers/pci/controller/pci-aardvark.c static int advk_msi_irq_domain_alloc(struct irq_domain *domain, domain 689 drivers/pci/controller/pci-aardvark.c struct advk_pcie *pcie = domain->host_data; domain 704 drivers/pci/controller/pci-aardvark.c irq_domain_set_info(domain, virq + i, hwirq + i, domain 706 drivers/pci/controller/pci-aardvark.c domain->host_data, handle_simple_irq, domain 712 drivers/pci/controller/pci-aardvark.c static void advk_msi_irq_domain_free(struct irq_domain *domain, domain 715 drivers/pci/controller/pci-aardvark.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 716 drivers/pci/controller/pci-aardvark.c struct advk_pcie *pcie = domain->host_data; domain 730 drivers/pci/controller/pci-aardvark.c struct advk_pcie *pcie = d->domain->host_data; domain 741 drivers/pci/controller/pci-aardvark.c struct advk_pcie *pcie = d->domain->host_data; domain 330 drivers/pci/controller/pci-ftpci100.c static int faraday_pci_irq_map(struct irq_domain *domain, unsigned int irq, domain 334 drivers/pci/controller/pci-ftpci100.c irq_set_chip_data(irq, domain->host_data); domain 1135 drivers/pci/controller/pci-hyperv.c static void hv_msi_free(struct irq_domain *domain, struct msi_domain_info *info, domain 1142 drivers/pci/controller/pci-hyperv.c struct irq_data *irq_data = irq_domain_get_irq_data(domain, irq); domain 2183 drivers/pci/controller/pci-hyperv.c pdev = pci_get_domain_bus_and_slot(hbus->sysdata.domain, 0, wslot); domain 2908 drivers/pci/controller/pci-hyperv.c hbus->sysdata.domain = dom; domain 2920 drivers/pci/controller/pci-hyperv.c hbus->sysdata.domain); domain 3008 drivers/pci/controller/pci-hyperv.c hv_put_dom_num(hbus->sysdata.domain); domain 3091 drivers/pci/controller/pci-hyperv.c hv_put_dom_num(hbus->sysdata.domain); domain 292 drivers/pci/controller/pci-tegra.c struct irq_domain *domain; domain 1661 drivers/pci/controller/pci-tegra.c irq = irq_find_mapping(msi->domain, index); domain 1697 drivers/pci/controller/pci-tegra.c irq = irq_create_mapping(msi->domain, hwirq); domain 1733 drivers/pci/controller/pci-tegra.c static int tegra_msi_map(struct irq_domain *domain, unsigned int irq, domain 1737 drivers/pci/controller/pci-tegra.c irq_set_chip_data(irq, domain->host_data); domain 1762 drivers/pci/controller/pci-tegra.c msi->domain = irq_domain_add_linear(dev->of_node, INT_PCI_MSI_NR, domain 1764 drivers/pci/controller/pci-tegra.c if (!msi->domain) { domain 1810 drivers/pci/controller/pci-tegra.c irq_domain_remove(msi->domain); domain 1853 drivers/pci/controller/pci-tegra.c irq = irq_find_mapping(msi->domain, i); domain 1858 drivers/pci/controller/pci-tegra.c irq_domain_remove(msi->domain); domain 194 drivers/pci/controller/pci-xgene-msi.c static int xgene_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 197 drivers/pci/controller/pci-xgene-msi.c struct xgene_msi *msi = domain->host_data; domain 214 drivers/pci/controller/pci-xgene-msi.c irq_domain_set_info(domain, virq, msi_irq, domain 215 drivers/pci/controller/pci-xgene-msi.c &xgene_msi_bottom_irq_chip, domain->host_data, domain 221 drivers/pci/controller/pci-xgene-msi.c static void xgene_irq_domain_free(struct irq_domain *domain, domain 224 drivers/pci/controller/pci-xgene-msi.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 235 drivers/pci/controller/pci-xgene-msi.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 116 drivers/pci/controller/pcie-altera-msi.c static int altera_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 119 drivers/pci/controller/pcie-altera-msi.c struct altera_msi *msi = domain->host_data; domain 136 drivers/pci/controller/pcie-altera-msi.c irq_domain_set_info(domain, virq, bit, &altera_msi_bottom_irq_chip, domain 137 drivers/pci/controller/pcie-altera-msi.c domain->host_data, handle_simple_irq, domain 147 drivers/pci/controller/pcie-altera-msi.c static void altera_irq_domain_free(struct irq_domain *domain, domain 150 drivers/pci/controller/pcie-altera-msi.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 630 drivers/pci/controller/pcie-altera.c static int altera_pcie_intx_map(struct irq_domain *domain, unsigned int irq, domain 634 drivers/pci/controller/pcie-altera.c irq_set_chip_data(irq, domain->host_data); domain 241 drivers/pci/controller/pcie-iproc-msi.c static int iproc_msi_irq_domain_alloc(struct irq_domain *domain, domain 245 drivers/pci/controller/pcie-iproc-msi.c struct iproc_msi *msi = domain->host_data; domain 263 drivers/pci/controller/pcie-iproc-msi.c irq_domain_set_info(domain, virq + i, hwirq + i, domain 265 drivers/pci/controller/pcie-iproc-msi.c domain->host_data, handle_simple_irq, domain 272 drivers/pci/controller/pcie-iproc-msi.c static void iproc_msi_irq_domain_free(struct irq_domain *domain, domain 275 drivers/pci/controller/pcie-iproc-msi.c struct irq_data *data = irq_domain_get_irq_data(domain, virq); domain 286 drivers/pci/controller/pcie-iproc-msi.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 435 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 438 drivers/pci/controller/pcie-mediatek.c struct mtk_pcie_port *port = domain->host_data; domain 454 drivers/pci/controller/pcie-mediatek.c irq_domain_set_info(domain, virq, bit, &mtk_msi_bottom_irq_chip, domain 455 drivers/pci/controller/pcie-mediatek.c domain->host_data, handle_edge_irq, domain 461 drivers/pci/controller/pcie-mediatek.c static void mtk_pcie_irq_domain_free(struct irq_domain *domain, domain 464 drivers/pci/controller/pcie-mediatek.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 477 drivers/pci/controller/pcie-mediatek.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 557 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_intx_map(struct irq_domain *domain, unsigned int irq, domain 561 drivers/pci/controller/pcie-mediatek.c irq_set_chip_data(irq, domain->host_data); domain 707 drivers/pci/controller/pcie-mobiveil.c static int mobiveil_pcie_intx_map(struct irq_domain *domain, unsigned int irq, domain 711 drivers/pci/controller/pcie-mobiveil.c irq_set_chip_data(irq, domain->host_data); domain 758 drivers/pci/controller/pcie-mobiveil.c static int mobiveil_irq_msi_domain_alloc(struct irq_domain *domain, domain 762 drivers/pci/controller/pcie-mobiveil.c struct mobiveil_pcie *pcie = domain->host_data; domain 779 drivers/pci/controller/pcie-mobiveil.c irq_domain_set_info(domain, virq, bit, &mobiveil_msi_bottom_irq_chip, domain 780 drivers/pci/controller/pcie-mobiveil.c domain->host_data, handle_level_irq, NULL, NULL); domain 784 drivers/pci/controller/pcie-mobiveil.c static void mobiveil_irq_msi_domain_free(struct irq_domain *domain, domain 788 drivers/pci/controller/pcie-mobiveil.c struct irq_data *d = irq_domain_get_irq_data(domain, virq); domain 136 drivers/pci/controller/pcie-rcar.c struct irq_domain *domain; domain 753 drivers/pci/controller/pcie-rcar.c msi_irq = irq_find_mapping(msi->domain, index); domain 784 drivers/pci/controller/pcie-rcar.c irq = irq_find_mapping(msi->domain, hwirq); domain 823 drivers/pci/controller/pcie-rcar.c irq = irq_find_mapping(msi->domain, hwirq); domain 869 drivers/pci/controller/pcie-rcar.c static int rcar_msi_map(struct irq_domain *domain, unsigned int irq, domain 873 drivers/pci/controller/pcie-rcar.c irq_set_chip_data(irq, domain->host_data); domain 888 drivers/pci/controller/pcie-rcar.c irq = irq_find_mapping(msi->domain, i); domain 893 drivers/pci/controller/pcie-rcar.c irq_domain_remove(msi->domain); domain 910 drivers/pci/controller/pcie-rcar.c msi->domain = irq_domain_add_linear(dev->of_node, INT_PCI_MSI_NR, domain 912 drivers/pci/controller/pcie-rcar.c if (!msi->domain) { domain 918 drivers/pci/controller/pcie-rcar.c irq_create_mapping(msi->domain, i); domain 702 drivers/pci/controller/pcie-rockchip-host.c static int rockchip_pcie_intx_map(struct irq_domain *domain, unsigned int irq, domain 706 drivers/pci/controller/pcie-rockchip-host.c irq_set_chip_data(irq, domain->host_data); domain 423 drivers/pci/controller/pcie-xilinx-nwl.c static int nwl_legacy_map(struct irq_domain *domain, unsigned int irq, domain 427 drivers/pci/controller/pcie-xilinx-nwl.c irq_set_chip_data(irq, domain->host_data); domain 476 drivers/pci/controller/pcie-xilinx-nwl.c static int nwl_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 479 drivers/pci/controller/pcie-xilinx-nwl.c struct nwl_pcie *pcie = domain->host_data; domain 493 drivers/pci/controller/pcie-xilinx-nwl.c irq_domain_set_info(domain, virq + i, bit + i, &nwl_irq_chip, domain 494 drivers/pci/controller/pcie-xilinx-nwl.c domain->host_data, handle_simple_irq, domain 501 drivers/pci/controller/pcie-xilinx-nwl.c static void nwl_irq_domain_free(struct irq_domain *domain, unsigned int virq, domain 504 drivers/pci/controller/pcie-xilinx-nwl.c struct irq_data *data = irq_domain_get_irq_data(domain, virq); domain 321 drivers/pci/controller/pcie-xilinx.c static int xilinx_pcie_msi_map(struct irq_domain *domain, unsigned int irq, domain 325 drivers/pci/controller/pcie-xilinx.c irq_set_chip_data(irq, domain->host_data); domain 364 drivers/pci/controller/pcie-xilinx.c static int xilinx_pcie_intx_map(struct irq_domain *domain, unsigned int irq, domain 368 drivers/pci/controller/pcie-xilinx.c irq_set_chip_data(irq, domain->host_data); domain 226 drivers/pci/controller/vmd.c static int vmd_msi_init(struct irq_domain *domain, struct msi_domain_info *info, domain 244 drivers/pci/controller/vmd.c irq_domain_set_info(domain, virq, vector, info->chip, vmdirq, domain 249 drivers/pci/controller/vmd.c static void vmd_msi_free(struct irq_domain *domain, domain 265 drivers/pci/controller/vmd.c static int vmd_msi_prepare(struct irq_domain *domain, struct device *dev, domain 402 drivers/pci/controller/vmd.c struct dma_domain *domain = &vmd->dma_domain; domain 405 drivers/pci/controller/vmd.c del_dma_domain(domain); domain 418 drivers/pci/controller/vmd.c struct dma_domain *domain = &vmd->dma_domain; domain 420 drivers/pci/controller/vmd.c domain->domain_nr = vmd->sysdata.domain; domain 421 drivers/pci/controller/vmd.c domain->dma_ops = dest; domain 439 drivers/pci/controller/vmd.c add_dma_domain(domain); domain 554 drivers/pci/controller/vmd.c int domain = 0xffff; domain 558 drivers/pci/controller/vmd.c domain = max_t(int, domain, pci_domain_nr(bus)); domain 559 drivers/pci/controller/vmd.c return domain + 1; domain 669 drivers/pci/controller/vmd.c sd->domain = vmd_find_free_domain(); domain 670 drivers/pci/controller/vmd.c if (sd->domain < 0) domain 671 drivers/pci/controller/vmd.c return sd->domain; domain 675 drivers/pci/controller/vmd.c fn = irq_domain_alloc_named_id_fwnode("VMD-MSI", vmd->sysdata.domain); domain 793 drivers/pci/controller/vmd.c vmd->sysdata.domain); domain 37 drivers/pci/msi.c struct irq_domain *domain; domain 39 drivers/pci/msi.c domain = dev_get_msi_domain(&dev->dev); domain 40 drivers/pci/msi.c if (domain && irq_domain_is_hierarchy(domain)) domain 41 drivers/pci/msi.c return msi_domain_alloc_irqs(domain, &dev->dev, nvec); domain 48 drivers/pci/msi.c struct irq_domain *domain; domain 50 drivers/pci/msi.c domain = dev_get_msi_domain(&dev->dev); domain 51 drivers/pci/msi.c if (domain && irq_domain_is_hierarchy(domain)) domain 52 drivers/pci/msi.c msi_domain_free_irqs(domain, &dev->dev); domain 1399 drivers/pci/msi.c int pci_msi_domain_check_cap(struct irq_domain *domain, domain 1414 drivers/pci/msi.c static int pci_msi_domain_handle_error(struct irq_domain *domain, domain 1486 drivers/pci/msi.c struct irq_domain *domain; domain 1503 drivers/pci/msi.c domain = msi_create_irq_domain(fwnode, info, parent); domain 1504 drivers/pci/msi.c if (!domain) domain 1507 drivers/pci/msi.c irq_domain_update_bus_token(domain, DOMAIN_BUS_PCI_MSI); domain 1508 drivers/pci/msi.c return domain; domain 1546 drivers/pci/msi.c u32 pci_msi_domain_get_msi_rid(struct irq_domain *domain, struct pci_dev *pdev) domain 1553 drivers/pci/msi.c of_node = irq_domain_get_of_node(domain); domain 203 drivers/pci/of.c u32 domain; domain 206 drivers/pci/of.c error = of_property_read_u32(node, "linux,pci-domain", &domain); domain 210 drivers/pci/of.c return (u16)domain; domain 6347 drivers/pci/pci.c int domain = -1; domain 6350 drivers/pci/pci.c domain = of_get_pci_domain_nr(parent->of_node); domain 6378 drivers/pci/pci.c if (domain >= 0 && use_dt_domains) { domain 6380 drivers/pci/pci.c } else if (domain < 0 && use_dt_domains != 1) { domain 6382 drivers/pci/pci.c domain = pci_get_new_domain_nr(); domain 6387 drivers/pci/pci.c domain = -1; domain 6390 drivers/pci/pci.c return domain; domain 1015 drivers/pci/pcie/aer.c u16 domain; domain 1029 drivers/pci/pcie/aer.c pdev = pci_get_domain_bus_and_slot(entry.domain, entry.bus, domain 1033 drivers/pci/pcie/aer.c entry.domain, entry.bus, domain 1056 drivers/pci/pcie/aer.c void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, domain 1062 drivers/pci/pcie/aer.c .domain = domain, domain 1072 drivers/pci/pcie/aer.c domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); domain 44 drivers/pci/pcie/aer_inject.c u32 domain; domain 49 drivers/pci/pcie/aer_inject.c u32 domain; domain 77 drivers/pci/pcie/aer_inject.c static void aer_error_init(struct aer_error *err, u32 domain, domain 82 drivers/pci/pcie/aer_inject.c err->domain = domain; domain 89 drivers/pci/pcie/aer_inject.c static struct aer_error *__find_aer_error(u32 domain, unsigned int bus, domain 95 drivers/pci/pcie/aer_inject.c if (domain == err->domain && domain 106 drivers/pci/pcie/aer_inject.c int domain = pci_domain_nr(dev->bus); domain 107 drivers/pci/pcie/aer_inject.c if (domain < 0) domain 109 drivers/pci/pcie/aer_inject.c return __find_aer_error(domain, dev->bus->number, dev->devfn); domain 223 drivers/pci/pcie/aer_inject.c int domain; domain 229 drivers/pci/pcie/aer_inject.c domain = pci_domain_nr(bus); domain 230 drivers/pci/pcie/aer_inject.c if (domain < 0) domain 232 drivers/pci/pcie/aer_inject.c err = __find_aer_error(domain, bus->number, devfn); domain 255 drivers/pci/pcie/aer_inject.c int domain; domain 261 drivers/pci/pcie/aer_inject.c domain = pci_domain_nr(bus); domain 262 drivers/pci/pcie/aer_inject.c if (domain < 0) domain 264 drivers/pci/pcie/aer_inject.c err = __find_aer_error(domain, bus->number, devfn); domain 332 drivers/pci/pcie/aer_inject.c dev = pci_get_domain_bus_and_slot(einj->domain, einj->bus, devfn); domain 389 drivers/pci/pcie/aer_inject.c aer_error_init(err, einj->domain, einj->bus, devfn, domain 493 drivers/pci/pcie/aer_inject.c if (usize < offsetof(struct aer_error_inj, domain) || domain 135 drivers/pci/search.c struct pci_bus *pci_find_bus(int domain, int busnr) domain 141 drivers/pci/search.c if (pci_domain_nr(bus) != domain) domain 224 drivers/pci/search.c struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, domain 230 drivers/pci/search.c if (pci_domain_nr(dev->bus) == domain && domain 68 drivers/pci/xen-pcifront.c unsigned int domain, unsigned int bus, domain 73 drivers/pci/xen-pcifront.c sd->sd.domain = domain; domain 184 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(bus), domain 222 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(bus), domain 255 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(dev->bus), domain 308 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(dev->bus), domain 327 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(dev->bus), domain 356 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(dev->bus), domain 417 drivers/pci/xen-pcifront.c unsigned int domain, unsigned int bus, domain 438 drivers/pci/xen-pcifront.c "%04x:%02x:%02x.%d found.\n", domain, bus, domain 446 drivers/pci/xen-pcifront.c unsigned int domain, unsigned int bus) domain 460 drivers/pci/xen-pcifront.c if (domain != 0) { domain 462 drivers/pci/xen-pcifront.c "PCI Root in non-zero PCI Domain! domain=%d\n", domain); domain 471 drivers/pci/xen-pcifront.c domain, bus); domain 482 drivers/pci/xen-pcifront.c pcifront_init_sd(sd, domain, bus, pdev); domain 503 drivers/pci/xen-pcifront.c err = pcifront_scan_bus(pdev, domain, bus, b); domain 522 drivers/pci/xen-pcifront.c unsigned int domain, unsigned int bus) domain 528 drivers/pci/xen-pcifront.c if (domain != 0) { domain 530 drivers/pci/xen-pcifront.c "PCI Root in non-zero PCI Domain! domain=%d\n", domain); domain 538 drivers/pci/xen-pcifront.c domain, bus); domain 540 drivers/pci/xen-pcifront.c b = pci_find_bus(domain, bus); domain 543 drivers/pci/xen-pcifront.c return pcifront_scan_root(pdev, domain, bus); domain 545 drivers/pci/xen-pcifront.c err = pcifront_scan_bus(pdev, domain, bus, b); domain 598 drivers/pci/xen-pcifront.c int domain = pdev->sh_info->aer_op.domain; domain 607 drivers/pci/xen-pcifront.c pcidev = pci_get_domain_bus_and_slot(domain, bus, devfn); domain 858 drivers/pci/xen-pcifront.c unsigned int domain, bus; domain 901 drivers/pci/xen-pcifront.c "%x:%x", &domain, &bus); domain 910 drivers/pci/xen-pcifront.c err = pcifront_scan_root(pdev, domain, bus); domain 914 drivers/pci/xen-pcifront.c domain, bus); domain 952 drivers/pci/xen-pcifront.c unsigned int domain, bus; domain 987 drivers/pci/xen-pcifront.c "%x:%x", &domain, &bus); domain 996 drivers/pci/xen-pcifront.c err = pcifront_rescan_root(pdev, domain, bus); domain 1000 drivers/pci/xen-pcifront.c domain, bus); domain 1015 drivers/pci/xen-pcifront.c unsigned int domain, bus, slot, func; domain 1054 drivers/pci/xen-pcifront.c "%x:%x:%x.%x", &domain, &bus, &slot, &func); domain 1063 drivers/pci/xen-pcifront.c pci_dev = pci_get_domain_bus_and_slot(domain, bus, domain 1068 drivers/pci/xen-pcifront.c domain, bus, slot, func); domain 1078 drivers/pci/xen-pcifront.c domain, bus, slot, func); domain 829 drivers/pinctrl/actions/pinctrl-owl.c struct irq_domain *domain = pctrl->chip.irq.domain; domain 849 drivers/pinctrl/actions/pinctrl-owl.c irq = irq_find_mapping(domain, offset + pin); domain 370 drivers/pinctrl/bcm/pinctrl-bcm2835.c generic_handle_irq(irq_linear_revmap(pc->gpio_chip.irq.domain, domain 652 drivers/pinctrl/bcm/pinctrl-bcm2835.c int irq = irq_find_mapping(chip->irq.domain, offset); domain 179 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c int child_irq = irq_find_mapping(gc->irq.domain, pin); domain 1440 drivers/pinctrl/intel/pinctrl-baytrail.c virq = irq_find_mapping(vg->chip.irq.domain, base + pin); domain 1490 drivers/pinctrl/intel/pinctrl-cherryview.c irq = irq_find_mapping(gc->irq.domain, offset); domain 1643 drivers/pinctrl/intel/pinctrl-cherryview.c irq_domain_associate_many(chip->irq.domain, irq_base, domain 1136 drivers/pinctrl/intel/pinctrl-intel.c irq = irq_find_mapping(gc->irq.domain, domain 324 drivers/pinctrl/mediatek/mtk-eint.c virq = irq_find_mapping(eint->domain, index); domain 400 drivers/pinctrl/mediatek/mtk-eint.c virq = irq_find_mapping(eint->domain, eint_num); domain 448 drivers/pinctrl/mediatek/mtk-eint.c irq = irq_find_mapping(eint->domain, eint_n); domain 478 drivers/pinctrl/mediatek/mtk-eint.c eint->domain = irq_domain_add_linear(eint->dev->of_node, domain 481 drivers/pinctrl/mediatek/mtk-eint.c if (!eint->domain) domain 486 drivers/pinctrl/mediatek/mtk-eint.c int virq = irq_create_mapping(eint->domain, i); domain 55 drivers/pinctrl/mediatek/mtk-eint.h struct irq_domain *domain; domain 654 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c struct irq_domain *d = gc->irq.domain; domain 1060 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c d = gc->irq.domain; domain 232 drivers/pinctrl/nomadik/pinctrl-abx500.c return irq_create_mapping(pct->parent->domain, hwirq); domain 413 drivers/pinctrl/nomadik/pinctrl-nomadik.c int irq = irq_find_mapping(nmk_chip->chip.irq.domain, offset); domain 815 drivers/pinctrl/nomadik/pinctrl-nomadik.c generic_handle_irq(irq_find_mapping(chip->irq.domain, bit)); domain 95 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c struct irq_domain *domain; domain 234 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c generic_handle_irq(irq_linear_revmap(gc->irq.domain, bit)); domain 1679 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c virq = irq_find_mapping(npcm->domain, offset); domain 568 drivers/pinctrl/pinctrl-amd.c irq = irq_find_mapping(gc->irq.domain, irqnr + i); domain 1712 drivers/pinctrl/pinctrl-at91.c gpio_chip->irq.domain, n)); domain 520 drivers/pinctrl/pinctrl-coh901.c int pin_irq = irq_find_mapping(chip->irq.domain, offset); domain 1571 drivers/pinctrl/pinctrl-ingenic.c generic_handle_irq(irq_linear_revmap(gc->irq.domain, i)); domain 530 drivers/pinctrl/pinctrl-mcp23s08.c child_irq = irq_find_mapping(mcp->chip.irq.domain, i); domain 728 drivers/pinctrl/pinctrl-ocelot.c generic_handle_irq(irq_linear_revmap(chip->irq.domain, domain 1055 drivers/pinctrl/pinctrl-oxnas.c generic_handle_irq(irq_linear_revmap(gc->irq.domain, pin)); domain 2101 drivers/pinctrl/pinctrl-pic32.c generic_handle_irq(irq_linear_revmap(gc->irq.domain, pin)); domain 1306 drivers/pinctrl/pinctrl-pistachio.c generic_handle_irq(irq_linear_revmap(gc->irq.domain, pin)); domain 157 drivers/pinctrl/pinctrl-rockchip.c struct irq_domain *domain; domain 2810 drivers/pinctrl/pinctrl-rockchip.c if (!bank->domain) domain 2813 drivers/pinctrl/pinctrl-rockchip.c virq = irq_create_mapping(bank->domain, offset); domain 2852 drivers/pinctrl/pinctrl-rockchip.c virq = irq_linear_revmap(bank->domain, irq); domain 3047 drivers/pinctrl/pinctrl-rockchip.c bank->domain = irq_domain_add_linear(bank->of_node, 32, domain 3049 drivers/pinctrl/pinctrl-rockchip.c if (!bank->domain) { domain 3056 drivers/pinctrl/pinctrl-rockchip.c ret = irq_alloc_domain_generic_chips(bank->domain, 32, 1, domain 3062 drivers/pinctrl/pinctrl-rockchip.c irq_domain_remove(bank->domain); domain 3075 drivers/pinctrl/pinctrl-rockchip.c gc = irq_get_domain_generic_chip(bank->domain, 0); domain 3096 drivers/pinctrl/pinctrl-rockchip.c irq_create_mapping(bank->domain, j); domain 201 drivers/pinctrl/pinctrl-single.c struct irq_domain *domain; domain 1292 drivers/pinctrl/pinctrl-single.c if (pcs->domain) domain 1293 drivers/pinctrl/pinctrl-single.c irq_domain_remove(pcs->domain); domain 1463 drivers/pinctrl/pinctrl-single.c generic_handle_irq(irq_find_mapping(pcs->domain, domain 1591 drivers/pinctrl/pinctrl-single.c pcs->domain = irq_domain_add_simple(np, num_irqs, 0, domain 1594 drivers/pinctrl/pinctrl-single.c if (!pcs->domain) { domain 1416 drivers/pinctrl/pinctrl-st.c generic_handle_irq(irq_find_mapping(bank->gpio_chip.irq.domain, n)); domain 555 drivers/pinctrl/pinctrl-stmfx.c handle_nested_irq(irq_find_mapping(gc->irq.domain, n)); domain 556 drivers/pinctrl/pinctrl-sx150x.c handle_nested_irq(irq_find_mapping(pctl->gpio.irq.domain, n)); domain 980 drivers/pinctrl/qcom/pinctrl-msm.c irq_pin = irq_find_mapping(gc->irq.domain, i); domain 930 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c static int pmic_gpio_domain_translate(struct irq_domain *domain, domain 935 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c struct pmic_gpio_state *state = container_of(domain->host_data, domain 98 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct irq_domain *domain; domain 697 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c static int pm8xxx_domain_translate(struct irq_domain *domain, domain 702 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_gpio *pctrl = container_of(domain->host_data, domain 715 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c static int pm8xxx_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 718 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c struct pm8xxx_gpio *pctrl = container_of(domain->host_data, domain 726 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c ret = pm8xxx_domain_translate(domain, fwspec, &hwirq, &type); domain 731 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c irq_domain_set_info(domain, virq + i, hwirq + i, domain 735 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c parent_fwspec.fwnode = domain->parent->fwnode; domain 740 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, domain 845 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pctrl->domain = irq_domain_create_hierarchy(parent_domain, 0, domain 850 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (!pctrl->domain) domain 887 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c irq_domain_remove(pctrl->domain); domain 897 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c irq_domain_remove(pctrl->domain); domain 431 drivers/pinctrl/samsung/pinctrl-exynos.c struct irq_domain *domain) domain 437 drivers/pinctrl/samsung/pinctrl-exynos.c generic_handle_irq(irq_find_mapping(domain, irq)); domain 5817 drivers/pinctrl/sirf/pinctrl-atlas7.c irq_find_mapping(gc->irq.domain, domain 589 drivers/pinctrl/sirf/pinctrl-sirf.c generic_handle_irq(irq_find_mapping(gc->irq.domain, idx + domain 404 drivers/pinctrl/spear/pinctrl-plgpio.c irq_find_mapping(gc->irq.domain, pin)); domain 91 drivers/pinctrl/stm32/pinctrl-stm32.c struct irq_domain *domain; domain 107 drivers/pinctrl/stm32/pinctrl-stm32.c struct irq_domain *domain; domain 308 drivers/pinctrl/stm32/pinctrl-stm32.c struct stm32_gpio_bank *bank = irq_data->domain->host_data; domain 328 drivers/pinctrl/stm32/pinctrl-stm32.c struct stm32_gpio_bank *bank = irq_data->domain->host_data; domain 1216 drivers/pinctrl/stm32/pinctrl-stm32.c bank->domain = irq_domain_create_hierarchy(pctl->domain, 0, domain 1220 drivers/pinctrl/stm32/pinctrl-stm32.c if (!bank->domain) domain 1236 drivers/pinctrl/stm32/pinctrl-stm32.c struct irq_domain *domain; domain 1245 drivers/pinctrl/stm32/pinctrl-stm32.c domain = irq_find_host(parent); domain 1246 drivers/pinctrl/stm32/pinctrl-stm32.c if (!domain) domain 1250 drivers/pinctrl/stm32/pinctrl-stm32.c return domain; domain 1388 drivers/pinctrl/stm32/pinctrl-stm32.c pctl->domain = stm32_pctrl_get_irq_domain(np); domain 1389 drivers/pinctrl/stm32/pinctrl-stm32.c if (IS_ERR(pctl->domain)) domain 1390 drivers/pinctrl/stm32/pinctrl-stm32.c return PTR_ERR(pctl->domain); domain 1424 drivers/pinctrl/stm32/pinctrl-stm32.c if (pctl->domain) { domain 928 drivers/pinctrl/sunxi/pinctrl-sunxi.c return irq_find_mapping(pctl->domain, irqnum); domain 1141 drivers/pinctrl/sunxi/pinctrl-sunxi.c int pin_irq = irq_find_mapping(pctl->domain, domain 1530 drivers/pinctrl/sunxi/pinctrl-sunxi.c pctl->domain = irq_domain_add_linear(node, domain 1534 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (!pctl->domain) { domain 1541 drivers/pinctrl/sunxi/pinctrl-sunxi.c int irqno = irq_create_mapping(pctl->domain, i); domain 163 drivers/pinctrl/sunxi/pinctrl-sunxi.h struct irq_domain *domain; domain 122 drivers/platform/x86/intel_int0002_vgpio.c generic_handle_irq(irq_find_mapping(chip->irq.domain, domain 1146 drivers/powercap/intel_rapl_common.c static int rapl_check_domain(int cpu, int domain, struct rapl_package *rp) domain 1150 drivers/powercap/intel_rapl_common.c switch (domain) { domain 1155 drivers/powercap/intel_rapl_common.c ra.reg = rp->priv->regs[domain][RAPL_DOMAIN_REG_STATUS]; domain 1161 drivers/powercap/intel_rapl_common.c pr_err("invalid domain id %d\n", domain); domain 82 drivers/remoteproc/remoteproc_core.c static int rproc_iommu_fault(struct iommu_domain *domain, struct device *dev, domain 100 drivers/remoteproc/remoteproc_core.c struct iommu_domain *domain; domain 109 drivers/remoteproc/remoteproc_core.c domain = iommu_domain_alloc(dev->bus); domain 110 drivers/remoteproc/remoteproc_core.c if (!domain) { domain 115 drivers/remoteproc/remoteproc_core.c iommu_set_fault_handler(domain, rproc_iommu_fault, rproc); domain 117 drivers/remoteproc/remoteproc_core.c ret = iommu_attach_device(domain, dev); domain 123 drivers/remoteproc/remoteproc_core.c rproc->domain = domain; domain 128 drivers/remoteproc/remoteproc_core.c iommu_domain_free(domain); domain 134 drivers/remoteproc/remoteproc_core.c struct iommu_domain *domain = rproc->domain; domain 137 drivers/remoteproc/remoteproc_core.c if (!domain) domain 140 drivers/remoteproc/remoteproc_core.c iommu_detach_device(domain, dev); domain 141 drivers/remoteproc/remoteproc_core.c iommu_domain_free(domain); domain 685 drivers/remoteproc/remoteproc_core.c if (!rproc->domain) domain 703 drivers/remoteproc/remoteproc_core.c ret = iommu_map(rproc->domain, rsc->da, rsc->pa, rsc->len, rsc->flags); domain 757 drivers/remoteproc/remoteproc_core.c if (mem->da != FW_RSC_ADDR_ANY && !rproc->domain) { domain 786 drivers/remoteproc/remoteproc_core.c if (mem->da != FW_RSC_ADDR_ANY && rproc->domain) { domain 793 drivers/remoteproc/remoteproc_core.c ret = iommu_map(rproc->domain, mem->da, dma, mem->len, domain 1271 drivers/remoteproc/remoteproc_core.c unmapped = iommu_unmap(rproc->domain, entry->da, entry->len); domain 47 drivers/s390/crypto/ap_bus.c module_param_named(domain, ap_domain_index, int, 0440); domain 48 drivers/s390/crypto/ap_bus.c MODULE_PARM_DESC(domain, "domain index for ap devices"); domain 264 drivers/s390/crypto/ap_bus.c int ap_test_config_usage_domain(unsigned int domain) domain 267 drivers/s390/crypto/ap_bus.c return domain < 16; domain 268 drivers/s390/crypto/ap_bus.c return ap_test_config(ap_configuration->aqm, domain); domain 280 drivers/s390/crypto/ap_bus.c int ap_test_config_ctrl_domain(unsigned int domain) domain 284 drivers/s390/crypto/ap_bus.c return ap_test_config(ap_configuration->adm, domain); domain 1030 drivers/s390/crypto/ap_bus.c int domain; domain 1032 drivers/s390/crypto/ap_bus.c if (sscanf(buf, "%i\n", &domain) != 1 || domain 1033 drivers/s390/crypto/ap_bus.c domain < 0 || domain > ap_max_domain_id || domain 1034 drivers/s390/crypto/ap_bus.c !test_bit_inv(domain, ap_perms.aqm)) domain 1037 drivers/s390/crypto/ap_bus.c ap_domain_index = domain; domain 1040 drivers/s390/crypto/ap_bus.c AP_DBF(DBF_DEBUG, "stored new default domain=%d\n", domain); domain 135 drivers/s390/crypto/pkey_api.c u16 cardnr, domain; domain 146 drivers/s390/crypto/pkey_api.c rc = cca_findcard(key, &cardnr, &domain, verify); domain 153 drivers/s390/crypto/pkey_api.c rc = cca_sec2protkey(cardnr, domain, domain 158 drivers/s390/crypto/pkey_api.c rc = cca_cipher2protkey(cardnr, domain, domain 183 drivers/s390/crypto/pkey_api.c u16 cardnr, domain; domain 196 drivers/s390/crypto/pkey_api.c rc = cca_findcard(seckey->seckey, &cardnr, &domain, 1); domain 211 drivers/s390/crypto/pkey_api.c *pdomain = domain; domain 421 drivers/s390/crypto/pkey_api.c dom = apqns[i].domain; domain 468 drivers/s390/crypto/pkey_api.c dom = apqns[i].domain; domain 484 drivers/s390/crypto/pkey_api.c u16 *cardnr, u16 *domain, domain 507 drivers/s390/crypto/pkey_api.c rc = cca_findcard2(&_apqns, &_nr_apqns, *cardnr, *domain, domain 513 drivers/s390/crypto/pkey_api.c *cardnr, *domain, domain 522 drivers/s390/crypto/pkey_api.c *domain = ((struct pkey_apqn *)_apqns)->domain; domain 542 drivers/s390/crypto/pkey_api.c rc = cca_findcard2(&_apqns, &_nr_apqns, *cardnr, *domain, domain 548 drivers/s390/crypto/pkey_api.c *cardnr, *domain, domain 557 drivers/s390/crypto/pkey_api.c *domain = ((struct pkey_apqn *)_apqns)->domain; domain 613 drivers/s390/crypto/pkey_api.c dom = apqns[i].domain; domain 764 drivers/s390/crypto/pkey_api.c rc = cca_genseckey(kgs.cardnr, kgs.domain, domain 779 drivers/s390/crypto/pkey_api.c rc = cca_clr2seckey(kcs.cardnr, kcs.domain, kcs.keytype, domain 795 drivers/s390/crypto/pkey_api.c rc = cca_sec2protkey(ksp.cardnr, ksp.domain, domain 828 drivers/s390/crypto/pkey_api.c &kfc.cardnr, &kfc.domain, 1); domain 856 drivers/s390/crypto/pkey_api.c rc = pkey_verifykey(&kvk.seckey, &kvk.cardnr, &kvk.domain, domain 1004 drivers/s390/crypto/pkey_api.c &kvk.cardnr, &kvk.domain, domain 807 drivers/s390/crypto/zcrypt_api.c unsigned short *domain, tdom; domain 815 drivers/s390/crypto/zcrypt_api.c rc = get_cprb_fc(xcRB, &ap_msg, &func_code, &domain); domain 823 drivers/s390/crypto/zcrypt_api.c tdom = *domain; domain 877 drivers/s390/crypto/zcrypt_api.c if (*domain == (unsigned short) AUTOSELECT) domain 878 drivers/s390/crypto/zcrypt_api.c *domain = AP_QID_QUEUE(qid); domain 1036 drivers/s390/crypto/zcrypt_api.c unsigned int domain; domain 1043 drivers/s390/crypto/zcrypt_api.c rc = get_rng_fc(&ap_msg, &func_code, &domain); domain 40 drivers/s390/crypto/zcrypt_ccamisc.c u16 domain; domain 272 drivers/s390/crypto/zcrypt_ccamisc.c int cca_genseckey(u16 cardnr, u16 domain, domain 320 drivers/s390/crypto/zcrypt_ccamisc.c preqcblk->domain = domain; domain 365 drivers/s390/crypto/zcrypt_ccamisc.c __func__, (int) cardnr, (int) domain, rc); domain 414 drivers/s390/crypto/zcrypt_ccamisc.c int cca_clr2seckey(u16 cardnr, u16 domain, u32 keybitsize, domain 460 drivers/s390/crypto/zcrypt_ccamisc.c preqcblk->domain = domain; domain 502 drivers/s390/crypto/zcrypt_ccamisc.c __func__, (int) cardnr, (int) domain, rc); domain 552 drivers/s390/crypto/zcrypt_ccamisc.c int cca_sec2protkey(u16 cardnr, u16 domain, domain 605 drivers/s390/crypto/zcrypt_ccamisc.c preqcblk->domain = domain; domain 628 drivers/s390/crypto/zcrypt_ccamisc.c __func__, (int) cardnr, (int) domain, rc); domain 712 drivers/s390/crypto/zcrypt_ccamisc.c int cca_gencipherkey(u16 cardnr, u16 domain, u32 keybitsize, u32 keygenflags, domain 794 drivers/s390/crypto/zcrypt_ccamisc.c preqcblk->domain = domain; domain 853 drivers/s390/crypto/zcrypt_ccamisc.c __func__, (int) cardnr, (int) domain, rc); domain 909 drivers/s390/crypto/zcrypt_ccamisc.c static int _ip_cprb_helper(u16 cardnr, u16 domain, domain 972 drivers/s390/crypto/zcrypt_ccamisc.c preqcblk->domain = domain; domain 1020 drivers/s390/crypto/zcrypt_ccamisc.c __func__, (int) cardnr, (int) domain, rc); domain 1149 drivers/s390/crypto/zcrypt_ccamisc.c int cca_cipher2protkey(u16 cardnr, u16 domain, const u8 *ckey, domain 1207 drivers/s390/crypto/zcrypt_ccamisc.c preqcblk->domain = domain; domain 1236 drivers/s390/crypto/zcrypt_ccamisc.c __func__, (int) cardnr, (int) domain, rc); domain 1314 drivers/s390/crypto/zcrypt_ccamisc.c int cca_query_crypto_facility(u16 cardnr, u16 domain, domain 1346 drivers/s390/crypto/zcrypt_ccamisc.c preqcblk->domain = domain; domain 1365 drivers/s390/crypto/zcrypt_ccamisc.c __func__, (int) cardnr, (int) domain, rc); domain 1413 drivers/s390/crypto/zcrypt_ccamisc.c static int cca_info_cache_fetch(u16 cardnr, u16 domain, struct cca_info *ci) domain 1420 drivers/s390/crypto/zcrypt_ccamisc.c if (ptr->cardnr == cardnr && ptr->domain == domain) { domain 1431 drivers/s390/crypto/zcrypt_ccamisc.c static void cca_info_cache_update(u16 cardnr, u16 domain, domain 1440 drivers/s390/crypto/zcrypt_ccamisc.c ptr->domain == domain) { domain 1453 drivers/s390/crypto/zcrypt_ccamisc.c ptr->domain = domain; domain 1460 drivers/s390/crypto/zcrypt_ccamisc.c static void cca_info_cache_scrub(u16 cardnr, u16 domain) domain 1467 drivers/s390/crypto/zcrypt_ccamisc.c ptr->domain == domain) { domain 1491 drivers/s390/crypto/zcrypt_ccamisc.c static int fetch_cca_info(u16 cardnr, u16 domain, struct cca_info *ci) domain 1501 drivers/s390/crypto/zcrypt_ccamisc.c rc = zcrypt_device_status_ext(cardnr, domain, &devstat); domain 1515 drivers/s390/crypto/zcrypt_ccamisc.c rc = cca_query_crypto_facility(cardnr, domain, "STATICSA", domain 1676 drivers/s390/crypto/zcrypt_ccamisc.c int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, domain 1711 drivers/s390/crypto/zcrypt_ccamisc.c if (domain != 0xFFFF && dom != domain) domain 127 drivers/s390/crypto/zcrypt_ccamisc.h int cca_genseckey(u16 cardnr, u16 domain, u32 keybitsize, u8 *seckey); domain 132 drivers/s390/crypto/zcrypt_ccamisc.h int cca_clr2seckey(u16 cardnr, u16 domain, u32 keybitsize, domain 138 drivers/s390/crypto/zcrypt_ccamisc.h int cca_sec2protkey(u16 cardnr, u16 domain, domain 145 drivers/s390/crypto/zcrypt_ccamisc.h int cca_gencipherkey(u16 cardnr, u16 domain, u32 keybitsize, u32 keygenflags, domain 151 drivers/s390/crypto/zcrypt_ccamisc.h int cca_cipher2protkey(u16 cardnr, u16 domain, const u8 *ckey, domain 157 drivers/s390/crypto/zcrypt_ccamisc.h int cca_clr2cipherkey(u16 cardnr, u16 domain, u32 keybitsize, u32 keygenflags, domain 163 drivers/s390/crypto/zcrypt_ccamisc.h int cca_query_crypto_facility(u16 cardnr, u16 domain, domain 195 drivers/s390/crypto/zcrypt_ccamisc.h int cca_findcard2(u32 **apqns, u32 *nr_apqns, u16 cardnr, u16 domain, domain 72 drivers/s390/crypto/zcrypt_cex2c.c unsigned int domain; domain 94 drivers/s390/crypto/zcrypt_cex2c.c rng_type6CPRB_msgX(&ap_msg, 4, &domain); domain 97 drivers/s390/crypto/zcrypt_cex2c.c msg->cprbx.domain = AP_QID_QUEUE(aq->qid); domain 297 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); domain 367 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); domain 479 drivers/s390/crypto/zcrypt_msgtype6.c *dom = (unsigned short *)&msg->cprbx.domain; domain 1253 drivers/s390/crypto/zcrypt_msgtype6.c unsigned int *domain) domain 1269 drivers/s390/crypto/zcrypt_msgtype6.c rng_type6CPRB_msgX(ap_msg, ZCRYPT_RNG_BUFFER_SIZE, domain); domain 1297 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); domain 120 drivers/s390/crypto/zcrypt_msgtype6.h unsigned int *domain) domain 158 drivers/s390/crypto/zcrypt_msgtype6.h *domain = (unsigned short)msg->cprbx.domain; domain 257 drivers/scsi/be2iscsi/be_cmds.h u8 domain; /* dword 0 */ domain 6308 drivers/scsi/hpsa.c pciinfo.domain = pci_domain_nr(h->pdev->bus); domain 693 drivers/scsi/hpsa_cmd.h unsigned short domain; domain 6311 drivers/scsi/lpfc/lpfc_els.c if ((ns_did.un.b.domain == rscn_did.un.b.domain) domain 6317 drivers/scsi/lpfc/lpfc_els.c if ((ns_did.un.b.domain == rscn_did.un.b.domain) domain 6322 drivers/scsi/lpfc/lpfc_els.c if (ns_did.un.b.domain == rscn_did.un.b.domain) domain 5281 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mydid.un.b.domain == 0) && (mydid.un.b.area == 0)) { domain 5288 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mydid.un.b.domain == matchdid.un.b.domain) && domain 5298 drivers/scsi/lpfc/lpfc_hbadisc.c if ((ndlpdid.un.b.domain == 0) && domain 5309 drivers/scsi/lpfc/lpfc_hbadisc.c if ((mydid.un.b.domain == ndlpdid.un.b.domain) && domain 5311 drivers/scsi/lpfc/lpfc_hbadisc.c if ((matchdid.un.b.domain == 0) && domain 1025 drivers/scsi/lpfc/lpfc_hw.h uint8_t domain; domain 1031 drivers/scsi/lpfc/lpfc_hw.h uint8_t domain; domain 820 drivers/scsi/qla2xxx/qla_attr.c did.b.domain = (type & 0x00ff0000) >> 16; domain 825 drivers/scsi/qla2xxx/qla_attr.c did.b.domain, did.b.area, did.b.al_pa); domain 2381 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_id(shost) = vha->d_id.b.domain << 16 | domain 2509 drivers/scsi/qla2xxx/qla_attr.c port_id = fcport->d_id.b.domain << 16 | domain 2581 drivers/scsi/qla2xxx/qla_attr.c fcport->loop_id, fcport->d_id.b.domain, domain 329 drivers/scsi/qla2xxx/qla_bsg.c fcport->d_id.b.domain = domain 387 drivers/scsi/qla2xxx/qla_bsg.c fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); domain 511 drivers/scsi/qla2xxx/qla_bsg.c fcport->d_id.b.domain = bsg_request->rqst_data.h_ct.port_id[2]; domain 534 drivers/scsi/qla2xxx/qla_bsg.c fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area, domain 1837 drivers/scsi/qla2xxx/qla_bsg.c vha->bidir_fcport.d_id.b.domain = vha->d_id.b.domain; domain 2240 drivers/scsi/qla2xxx/qla_bsg.c uint8_t domain, area, al_pa, state; domain 2255 drivers/scsi/qla2xxx/qla_bsg.c &area, &domain, &topo, &sw_cap); domain 39 drivers/scsi/qla2xxx/qla_def.h uint8_t domain; domain 48 drivers/scsi/qla2xxx/qla_def.h uint8_t domain; domain 346 drivers/scsi/qla2xxx/qla_def.h uint8_t domain; domain 352 drivers/scsi/qla2xxx/qla_def.h uint8_t domain; domain 365 drivers/scsi/qla2xxx/qla_def.h res.domain = id.domain; domain 376 drivers/scsi/qla2xxx/qla_def.h res.domain = id.domain; domain 387 drivers/scsi/qla2xxx/qla_def.h res.b.domain = id.domain; domain 399 drivers/scsi/qla2xxx/qla_def.h res.domain = port_id.b.domain; domain 2817 drivers/scsi/qla2xxx/qla_def.h uint8_t domain; domain 2824 drivers/scsi/qla2xxx/qla_def.h uint8_t domain; domain 3129 drivers/scsi/qla2xxx/qla_def.h uint8_t domain; domain 31 drivers/scsi/qla2xxx/qla_dfs.c sess->d_id.b.domain, sess->d_id.b.area, domain 96 drivers/scsi/qla2xxx/qla_dfs.c fc_port.port_name, fc_port.d_id.b.domain, domain 131 drivers/scsi/qla2xxx/qla_gs.c routine, ms_pkt->entry_status, vha->d_id.b.domain, domain 147 drivers/scsi/qla2xxx/qla_gs.c routine, vha->d_id.b.domain, domain 183 drivers/scsi/qla2xxx/qla_gs.c vha->d_id.b.domain, vha->d_id.b.area, domain 255 drivers/scsi/qla2xxx/qla_gs.c fcport->d_id.b.domain = 0xf0; domain 261 drivers/scsi/qla2xxx/qla_gs.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 490 drivers/scsi/qla2xxx/qla_gs.c list[i].d_id.b.domain, list[i].d_id.b.area, domain 1017 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[2] = fcport->d_id.b.domain; domain 1035 drivers/scsi/qla2xxx/qla_gs.c fcport->d_id.b.domain = sns_cmd->p.gan_data[17]; domain 1044 drivers/scsi/qla2xxx/qla_gs.c fcport->d_id.b.domain = 0xf0; domain 1050 drivers/scsi/qla2xxx/qla_gs.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 1106 drivers/scsi/qla2xxx/qla_gs.c list[i].d_id.b.domain = entry[1]; domain 1156 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[2] = list[i].d_id.b.domain; domain 1212 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[2] = list[i].d_id.b.domain; domain 1237 drivers/scsi/qla2xxx/qla_gs.c list[i].d_id.b.domain, list[i].d_id.b.area, domain 1272 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[2] = vha->d_id.b.domain; domain 1321 drivers/scsi/qla2xxx/qla_gs.c sns_cmd->p.cmd.param[2] = vha->d_id.b.domain; domain 3085 drivers/scsi/qla2xxx/qla_gs.c fcport->loop_id, fcport->d_id.b.domain, domain 3502 drivers/scsi/qla2xxx/qla_gs.c ct_req->req.gff_id.port_id[0] = fcport->d_id.b.domain; domain 3622 drivers/scsi/qla2xxx/qla_gs.c if ((rp->id.b.domain & 0xf0) == 0xf0) domain 3784 drivers/scsi/qla2xxx/qla_gs.c id.b.domain = d->port_id[0]; domain 355 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa, domain 406 drivers/scsi/qla2xxx/qla_init.c sp->handle, fcport->loop_id, fcport->d_id.b.domain, domain 468 drivers/scsi/qla2xxx/qla_init.c sp->handle, fcport->loop_id, fcport->d_id.b.domain, domain 727 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 733 drivers/scsi/qla2xxx/qla_init.c id.b.domain = e->port_id[2]; domain 765 drivers/scsi/qla2xxx/qla_init.c fcport->fc4f_nvme, id.b.domain, id.b.area, id.b.al_pa, domain 766 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 895 drivers/scsi/qla2xxx/qla_init.c id.b.domain = e->port_id[0]; domain 1047 drivers/scsi/qla2xxx/qla_init.c id.b.domain = e->port_id[2]; domain 1808 drivers/scsi/qla2xxx/qla_init.c sp->handle, fcport->loop_id, fcport->d_id.b.domain, domain 2026 drivers/scsi/qla2xxx/qla_init.c cid.b.domain = (ea->iop[1] >> 16) & 0xff; domain 2512 drivers/scsi/qla2xxx/qla_init.c uint8_t domain, area, al_pa; domain 2526 drivers/scsi/qla2xxx/qla_init.c &area, &domain, &topo, &sw_cap); domain 4298 drivers/scsi/qla2xxx/qla_init.c uint8_t domain; domain 4307 drivers/scsi/qla2xxx/qla_init.c &loop_id, &al_pa, &area, &domain, &topo, &sw_cap); domain 4381 drivers/scsi/qla2xxx/qla_init.c id.b.domain = domain; domain 4815 drivers/scsi/qla2xxx/qla_init.c port_state_str[state], fcport->d_id.b.domain, domain 5043 drivers/scsi/qla2xxx/qla_init.c uint8_t domain, area, al_pa; domain 5136 drivers/scsi/qla2xxx/qla_init.c domain = gid->domain; domain 5146 drivers/scsi/qla2xxx/qla_init.c if ((domain & 0xf0) == 0xf0) domain 5150 drivers/scsi/qla2xxx/qla_init.c if (area && domain && ((area != vha->d_id.b.area) || domain 5151 drivers/scsi/qla2xxx/qla_init.c (domain != vha->d_id.b.domain)) && domain 5163 drivers/scsi/qla2xxx/qla_init.c new_fcport->d_id.b.domain = domain; domain 5336 drivers/scsi/qla2xxx/qla_init.c rport_ids.port_id = fcport->d_id.b.domain << 16 | domain 5777 drivers/scsi/qla2xxx/qla_init.c new_fcport->d_id.b.domain, domain 5798 drivers/scsi/qla2xxx/qla_init.c if ((new_fcport->d_id.b.domain & 0xf0) == 0xf0) domain 5856 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.domain, domain 5860 drivers/scsi/qla2xxx/qla_init.c new_fcport->d_id.b.domain, domain 6001 drivers/scsi/qla2xxx/qla_init.c fcport->loop_id, fcport->d_id.b.domain, domain 6006 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 6026 drivers/scsi/qla2xxx/qla_init.c fcport->loop_id, fcport->d_id.b.domain, domain 6084 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 6096 drivers/scsi/qla2xxx/qla_init.c "jiffies=%lx.\n", mb[0], fcport->d_id.b.domain, domain 6102 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 8844 drivers/scsi/qla2xxx/qla_init.c fcport->loop_id, fcport->d_id.b.domain, domain 8851 drivers/scsi/qla2xxx/qla_init.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 1670 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; domain 1855 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; domain 1990 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; domain 2190 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; domain 2355 drivers/scsi/qla2xxx/qla_iocb.c logio->port_id[2] = sp->fcport->d_id.b.domain; domain 2377 drivers/scsi/qla2xxx/qla_iocb.c logio->port_id[2] = sp->fcport->d_id.b.domain; domain 2399 drivers/scsi/qla2xxx/qla_iocb.c mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); domain 2424 drivers/scsi/qla2xxx/qla_iocb.c logio->port_id[2] = sp->fcport->d_id.b.domain; domain 2439 drivers/scsi/qla2xxx/qla_iocb.c mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); domain 2498 drivers/scsi/qla2xxx/qla_iocb.c tsk->port_id[2] = fcport->d_id.b.domain; domain 2543 drivers/scsi/qla2xxx/qla_iocb.c sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area, domain 2557 drivers/scsi/qla2xxx/qla_iocb.c sp->name, sp->handle, fcport->d_id.b.domain, domain 2591 drivers/scsi/qla2xxx/qla_iocb.c fcport->d_id.b.domain = remote_did.b.domain; domain 2596 drivers/scsi/qla2xxx/qla_iocb.c fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); domain 2622 drivers/scsi/qla2xxx/qla_iocb.c logo_pyld.s_id[2] = vha->d_id.b.domain; domain 2637 drivers/scsi/qla2xxx/qla_iocb.c sp->name, sp->handle, fcport->loop_id, fcport->d_id.b.domain, domain 2666 drivers/scsi/qla2xxx/qla_iocb.c els_iocb->port_id[2] = sp->fcport->d_id.b.domain; domain 2670 drivers/scsi/qla2xxx/qla_iocb.c els_iocb->s_id[0] = vha->d_id.b.domain; domain 2907 drivers/scsi/qla2xxx/qla_iocb.c els_iocb->port_id[2] = sp->fcport->d_id.b.domain; domain 3245 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; domain 3316 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; domain 3414 drivers/scsi/qla2xxx/qla_iocb.c abt_iocb->port_id[2] = sp->fcport->d_id.b.domain; domain 3535 drivers/scsi/qla2xxx/qla_iocb.c logio->port_id[2] = sp->fcport->d_id.b.domain; domain 3791 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->port_id[2] = vha->d_id.b.domain; domain 1095 drivers/scsi/qla2xxx/qla_isr.c host_pid = (vha->d_id.b.domain << 16) | (vha->d_id.b.area << 8) domain 1375 drivers/scsi/qla2xxx/qla_isr.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 1393 drivers/scsi/qla2xxx/qla_isr.c type, sp->handle, fcport->d_id.b.domain, domain 1423 drivers/scsi/qla2xxx/qla_isr.c fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa, domain 1705 drivers/scsi/qla2xxx/qla_isr.c type, fcport->port_name, sp->handle, fcport->d_id.b.domain, domain 1718 drivers/scsi/qla2xxx/qla_isr.c fcport->d_id.b.domain, domain 1801 drivers/scsi/qla2xxx/qla_isr.c sp->handle, fcport->d_id.b.domain, domain 2734 drivers/scsi/qla2xxx/qla_isr.c "port state= %s comp_status %x.\n", fcport->d_id.b.domain, domain 2789 drivers/scsi/qla2xxx/qla_isr.c cp->device->id, cp->device->lun, fcport->d_id.b.domain, domain 1634 drivers/scsi/qla2xxx/qla_mbx.c uint8_t *area, uint8_t *domain, uint16_t *top, uint16_t *sw_cap) domain 1665 drivers/scsi/qla2xxx/qla_mbx.c *domain = LSB(mcp->mb[3]); domain 1971 drivers/scsi/qla2xxx/qla_mbx.c fcport->d_id.b.domain = pd24->port_id[0]; domain 1997 drivers/scsi/qla2xxx/qla_mbx.c pd->slave_state, fcport->d_id.b.domain, domain 2016 drivers/scsi/qla2xxx/qla_mbx.c fcport->d_id.b.domain = pd->port_id[0]; domain 2359 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_login_fabric(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, domain 2396 drivers/scsi/qla2xxx/qla_mbx.c lg->port_id[2] = domain; domain 2495 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_login_fabric(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, domain 2515 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[2] = domain; domain 2589 drivers/scsi/qla2xxx/qla_mbx.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 2635 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_fabric_logout(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, domain 2664 drivers/scsi/qla2xxx/qla_mbx.c lg->port_id[2] = domain; domain 2710 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_fabric_logout(scsi_qla_host_t *vha, uint16_t loop_id, uint8_t domain, domain 3153 drivers/scsi/qla2xxx/qla_mbx.c abt->port_id[2] = fcport->d_id.b.domain; domain 3233 drivers/scsi/qla2xxx/qla_mbx.c tsk->p.tsk.port_id[2] = fcport->d_id.b.domain; domain 3848 drivers/scsi/qla2xxx/qla_mbx.c id.b.domain = rptid_entry->port_id[2]; domain 4027 drivers/scsi/qla2xxx/qla_mbx.c vha->d_id.b.domain = rptid_entry->port_id[2]; domain 4050 drivers/scsi/qla2xxx/qla_mbx.c fcport->d_id.b.domain = domain 6391 drivers/scsi/qla2xxx/qla_mbx.c fcport->d_id.b.domain = pd->port_id[0]; domain 1967 drivers/scsi/qla2xxx/qla_mr.c vha->d_id.b.domain = pinfo->port_id[0]; domain 453 drivers/scsi/qla2xxx/qla_nvme.c cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; domain 197 drivers/scsi/qla2xxx/qla_target.c vha->d_id.b.domain == d_id.domain && domain 359 drivers/scsi/qla2xxx/qla_target.c atio->u.isp24.fcp_hdr.d_id.domain, domain 840 drivers/scsi/qla2xxx/qla_target.c port_id.b.domain = iocb->u.isp24.port_id[2]; domain 943 drivers/scsi/qla2xxx/qla_target.c logo->id.b.domain, logo->id.b.area, logo->id.b.al_pa, domain 964 drivers/scsi/qla2xxx/qla_target.c sess->d_id.b.domain, sess->d_id.b.area, sess->d_id.b.al_pa, domain 1318 drivers/scsi/qla2xxx/qla_target.c gid->domain == s_id.domain) { domain 1406 drivers/scsi/qla2xxx/qla_target.c fcport->loop_id, sess->d_id.b.domain, sess->d_id.b.area, domain 2153 drivers/scsi/qla2xxx/qla_target.c "tag=%d, param=%x)\n", vha->vp_idx, abts->fcp_hdr_le.s_id.domain, domain 4547 drivers/scsi/qla2xxx/qla_target.c fcport->d_id.b.domain, fcport->d_id.b.area, domain 4636 drivers/scsi/qla2xxx/qla_target.c key = (((u32)s_id->b.domain << 16) | domain 4687 drivers/scsi/qla2xxx/qla_target.c port_id.b.domain = iocb->u.isp24.port_id[2]; domain 4865 drivers/scsi/qla2xxx/qla_target.c port_id.b.domain = iocb->u.isp24.port_id[2]; domain 6099 drivers/scsi/qla2xxx/qla_target.c if (s_id.domain == 0xFF && s_id.area == 0xFC) { domain 6106 drivers/scsi/qla2xxx/qla_target.c s_id.domain, s_id.area, s_id.al_pa); domain 6123 drivers/scsi/qla2xxx/qla_target.c vha->vp_idx, s_id.domain, s_id.area, s_id.al_pa); domain 986 drivers/scsi/qla2xxx/qla_target.h ((_s_id.b.domain == 0xff) && ((_s_id.b.area & 0xf0) == 0xf0)) domain 1035 drivers/scsi/qla2xxx/qla_target.h return s_id.domain << 16 | domain 1487 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->loop_id, loop_id, sess->d_id.b.domain, domain 1488 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id.b.area, sess->d_id.b.al_pa, s_id.b.domain, domain 1509 drivers/scsi/qla2xxx/tcm_qla2xxx.c key = (((u32) sess->d_id.b.domain << 16) | domain 1516 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id.b.domain, sess->d_id.b.area, domain 1520 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id.b.domain, sess->d_id.b.area, domain 1523 drivers/scsi/qla2xxx/tcm_qla2xxx.c key = (((u32) s_id.b.domain << 16) | domain 1529 drivers/scsi/qla2xxx/tcm_qla2xxx.c s_id.b.domain, s_id.b.area, s_id.b.al_pa); domain 5831 drivers/scsi/smartpqi/smartpqi_init.c pciinfo.domain = pci_domain_nr(pci_dev->bus); domain 319 drivers/sh/intc/core.c res = irq_create_identity_mapping(d->domain, irq); domain 322 drivers/sh/intc/core.c res = irq_domain_associate(d->domain, irq, irq); domain 348 drivers/sh/intc/core.c res = irq_create_identity_mapping(d->domain, irq2); domain 351 drivers/sh/intc/core.c res = irq_domain_associate(d->domain, domain 71 drivers/sh/intc/internals.h struct irq_domain *domain; domain 62 drivers/sh/intc/irqdomain.c d->domain = irq_domain_add_linear(NULL, hw->nr_vectors, domain 65 drivers/sh/intc/irqdomain.c d->domain = irq_domain_add_tree(NULL, &intc_evt_ops, NULL); domain 67 drivers/sh/intc/irqdomain.c BUG_ON(!d->domain); domain 57 drivers/soc/actions/owl-sps.c static int owl_sps_power_on(struct generic_pm_domain *domain) domain 59 drivers/soc/actions/owl-sps.c struct owl_sps_domain *pd = to_owl_pd(domain); domain 66 drivers/soc/actions/owl-sps.c static int owl_sps_power_off(struct generic_pm_domain *domain) domain 68 drivers/soc/actions/owl-sps.c struct owl_sps_domain *pd = to_owl_pd(domain); domain 250 drivers/soc/amlogic/meson-ee-pwrc.c static int meson_ee_pwrc_off(struct generic_pm_domain *domain) domain 253 drivers/soc/amlogic/meson-ee-pwrc.c container_of(domain, struct meson_ee_pwrc_domain, base); domain 286 drivers/soc/amlogic/meson-ee-pwrc.c static int meson_ee_pwrc_on(struct generic_pm_domain *domain) domain 289 drivers/soc/amlogic/meson-ee-pwrc.c container_of(domain, struct meson_ee_pwrc_domain, base); domain 135 drivers/soc/bcm/bcm2835-power.c u32 domain; domain 359 drivers/soc/bcm/bcm2835-power.c static int bcm2835_power_pd_power_on(struct generic_pm_domain *domain) domain 362 drivers/soc/bcm/bcm2835-power.c container_of(domain, struct bcm2835_power_domain, base); domain 365 drivers/soc/bcm/bcm2835-power.c switch (pd->domain) { domain 420 drivers/soc/bcm/bcm2835-power.c dev_err(power->dev, "Invalid domain %d\n", pd->domain); domain 425 drivers/soc/bcm/bcm2835-power.c static int bcm2835_power_pd_power_off(struct generic_pm_domain *domain) domain 428 drivers/soc/bcm/bcm2835-power.c container_of(domain, struct bcm2835_power_domain, base); domain 431 drivers/soc/bcm/bcm2835-power.c switch (pd->domain) { domain 483 drivers/soc/bcm/bcm2835-power.c dev_err(power->dev, "Invalid domain %d\n", pd->domain); domain 512 drivers/soc/bcm/bcm2835-power.c dom->domain = pd_xlate_index; domain 24 drivers/soc/bcm/raspberrypi-power.c u32 domain; domain 43 drivers/soc/bcm/raspberrypi-power.c u32 domain; domain 55 drivers/soc/bcm/raspberrypi-power.c packet.domain = rpi_domain->domain; domain 64 drivers/soc/bcm/raspberrypi-power.c static int rpi_domain_off(struct generic_pm_domain *domain) domain 67 drivers/soc/bcm/raspberrypi-power.c container_of(domain, struct rpi_power_domain, base); domain 72 drivers/soc/bcm/raspberrypi-power.c static int rpi_domain_on(struct generic_pm_domain *domain) domain 75 drivers/soc/bcm/raspberrypi-power.c container_of(domain, struct rpi_power_domain, base); domain 113 drivers/soc/bcm/raspberrypi-power.c dom->domain = xlate_index + 1; domain 119 drivers/soc/bcm/raspberrypi-power.c int xlate_index, int domain, domain 125 drivers/soc/bcm/raspberrypi-power.c dom->domain = domain; domain 144 drivers/soc/bcm/raspberrypi-power.c packet.domain = RPI_POWER_DOMAIN_ARM; domain 143 drivers/soc/dove/pmu.c static int pmu_domain_power_off(struct generic_pm_domain *domain) domain 145 drivers/soc/dove/pmu.c struct pmu_domain *pmu_dom = to_pmu_domain(domain); domain 177 drivers/soc/dove/pmu.c static int pmu_domain_power_on(struct generic_pm_domain *domain) domain 179 drivers/soc/dove/pmu.c struct pmu_domain *pmu_dom = to_pmu_domain(domain); domain 211 drivers/soc/dove/pmu.c static void __pmu_domain_register(struct pmu_domain *domain, domain 214 drivers/soc/dove/pmu.c unsigned int val = readl_relaxed(domain->pmu->pmu_base + PMU_PWR); domain 216 drivers/soc/dove/pmu.c domain->base.power_off = pmu_domain_power_off; domain 217 drivers/soc/dove/pmu.c domain->base.power_on = pmu_domain_power_on; domain 219 drivers/soc/dove/pmu.c pm_genpd_init(&domain->base, NULL, !(val & domain->pwr_mask)); domain 222 drivers/soc/dove/pmu.c of_genpd_add_provider_simple(np, &domain->base); domain 230 drivers/soc/dove/pmu.c struct irq_domain *domain = pmu->irq_domain; domain 246 drivers/soc/dove/pmu.c generic_handle_irq(irq_find_mapping(domain, hwirq)); domain 270 drivers/soc/dove/pmu.c struct irq_domain *domain; domain 277 drivers/soc/dove/pmu.c domain = irq_domain_add_linear(pmu->of_node, NR_PMU_IRQS, domain 279 drivers/soc/dove/pmu.c if (!domain) { domain 284 drivers/soc/dove/pmu.c ret = irq_alloc_domain_generic_chips(domain, NR_PMU_IRQS, 1, name, domain 290 drivers/soc/dove/pmu.c irq_domain_remove(domain); domain 294 drivers/soc/dove/pmu.c gc = irq_get_domain_generic_chip(domain, 0); domain 300 drivers/soc/dove/pmu.c pmu->irq_domain = domain; domain 326 drivers/soc/dove/pmu.c struct pmu_domain *domain; domain 328 drivers/soc/dove/pmu.c domain = kzalloc(sizeof(*domain), GFP_KERNEL); domain 329 drivers/soc/dove/pmu.c if (domain) { domain 330 drivers/soc/dove/pmu.c domain->pmu = pmu; domain 331 drivers/soc/dove/pmu.c domain->pwr_mask = domain_initdata->pwr_mask; domain 332 drivers/soc/dove/pmu.c domain->rst_mask = domain_initdata->rst_mask; domain 333 drivers/soc/dove/pmu.c domain->iso_mask = domain_initdata->iso_mask; domain 334 drivers/soc/dove/pmu.c domain->base.name = domain_initdata->name; domain 336 drivers/soc/dove/pmu.c __pmu_domain_register(domain, NULL); domain 410 drivers/soc/dove/pmu.c struct pmu_domain *domain; domain 412 drivers/soc/dove/pmu.c domain = kzalloc(sizeof(*domain), GFP_KERNEL); domain 413 drivers/soc/dove/pmu.c if (!domain) domain 416 drivers/soc/dove/pmu.c domain->pmu = pmu; domain 417 drivers/soc/dove/pmu.c domain->base.name = kasprintf(GFP_KERNEL, "%pOFn", np); domain 418 drivers/soc/dove/pmu.c if (!domain->base.name) { domain 419 drivers/soc/dove/pmu.c kfree(domain); domain 424 drivers/soc/dove/pmu.c &domain->pwr_mask); domain 426 drivers/soc/dove/pmu.c &domain->iso_mask); domain 437 drivers/soc/dove/pmu.c domain->rst_mask = BIT(args.args[0]); domain 441 drivers/soc/dove/pmu.c __pmu_domain_register(domain, np); domain 130 drivers/soc/imx/gpc.c static int imx_pgc_get_clocks(struct device *dev, struct imx_pm_domain *domain) domain 143 drivers/soc/imx/gpc.c domain->clk[i] = clk; domain 145 drivers/soc/imx/gpc.c domain->num_clks = i; domain 151 drivers/soc/imx/gpc.c clk_put(domain->clk[i]); domain 156 drivers/soc/imx/gpc.c static void imx_pgc_put_clocks(struct imx_pm_domain *domain) domain 160 drivers/soc/imx/gpc.c for (i = domain->num_clks - 1; i >= 0; i--) domain 161 drivers/soc/imx/gpc.c clk_put(domain->clk[i]); domain 164 drivers/soc/imx/gpc.c static int imx_pgc_parse_dt(struct device *dev, struct imx_pm_domain *domain) domain 167 drivers/soc/imx/gpc.c domain->supply = devm_regulator_get_optional(dev, "power"); domain 168 drivers/soc/imx/gpc.c if (IS_ERR(domain->supply)) { domain 169 drivers/soc/imx/gpc.c if (PTR_ERR(domain->supply) == -ENODEV) domain 170 drivers/soc/imx/gpc.c domain->supply = NULL; domain 172 drivers/soc/imx/gpc.c return PTR_ERR(domain->supply); domain 176 drivers/soc/imx/gpc.c return imx_pgc_get_clocks(dev, domain); domain 181 drivers/soc/imx/gpc.c struct imx_pm_domain *domain = pdev->dev.platform_data; domain 187 drivers/soc/imx/gpc.c ret = imx_pgc_parse_dt(dev, domain); domain 193 drivers/soc/imx/gpc.c if (domain->base.power_on) domain 194 drivers/soc/imx/gpc.c domain->base.power_on(&domain->base); domain 197 drivers/soc/imx/gpc.c pm_genpd_init(&domain->base, NULL, false); domain 198 drivers/soc/imx/gpc.c ret = of_genpd_add_provider_simple(dev->of_node, &domain->base); domain 208 drivers/soc/imx/gpc.c pm_genpd_remove(&domain->base); domain 209 drivers/soc/imx/gpc.c imx_pgc_put_clocks(domain); domain 216 drivers/soc/imx/gpc.c struct imx_pm_domain *domain = pdev->dev.platform_data; domain 220 drivers/soc/imx/gpc.c pm_genpd_remove(&domain->base); domain 221 drivers/soc/imx/gpc.c imx_pgc_put_clocks(domain); domain 363 drivers/soc/imx/gpc.c struct imx_pm_domain *domain; domain 367 drivers/soc/imx/gpc.c domain = &imx_gpc_domains[i]; domain 368 drivers/soc/imx/gpc.c domain->regmap = regmap; domain 369 drivers/soc/imx/gpc.c domain->ipg_rate_mhz = 66; domain 372 drivers/soc/imx/gpc.c domain->supply = devm_regulator_get(dev, "pu"); domain 373 drivers/soc/imx/gpc.c if (IS_ERR(domain->supply)) domain 374 drivers/soc/imx/gpc.c return PTR_ERR(domain->supply); domain 376 drivers/soc/imx/gpc.c ret = imx_pgc_get_clocks(dev, domain); domain 380 drivers/soc/imx/gpc.c domain->base.power_on(&domain->base); domain 459 drivers/soc/imx/gpc.c struct imx_pm_domain *domain; domain 495 drivers/soc/imx/gpc.c domain = pd_pdev->dev.platform_data; domain 496 drivers/soc/imx/gpc.c domain->regmap = regmap; domain 497 drivers/soc/imx/gpc.c domain->ipg_rate_mhz = ipg_rate_mhz; domain 132 drivers/soc/imx/gpcv2.c struct imx_pgc_domain *domain = container_of(genpd, domain 138 drivers/soc/imx/gpcv2.c const bool has_regulator = !IS_ERR(domain->regulator); domain 142 drivers/soc/imx/gpcv2.c regmap_update_bits(domain->regmap, GPC_PGC_CPU_MAPPING, domain 143 drivers/soc/imx/gpcv2.c domain->bits.map, domain->bits.map); domain 146 drivers/soc/imx/gpcv2.c ret = regulator_enable(domain->regulator); domain 148 drivers/soc/imx/gpcv2.c dev_err(domain->dev, "failed to enable regulator\n"); domain 154 drivers/soc/imx/gpcv2.c for (i = 0; i < domain->num_clks; i++) domain 155 drivers/soc/imx/gpcv2.c clk_prepare_enable(domain->clk[i]); domain 158 drivers/soc/imx/gpcv2.c regmap_update_bits(domain->regmap, GPC_PGC_CTRL(domain->pgc), domain 161 drivers/soc/imx/gpcv2.c if (domain->bits.hsk) domain 162 drivers/soc/imx/gpcv2.c regmap_update_bits(domain->regmap, GPC_PU_PWRHSK, domain 163 drivers/soc/imx/gpcv2.c domain->bits.hsk, on ? domain->bits.hsk : 0); domain 165 drivers/soc/imx/gpcv2.c regmap_update_bits(domain->regmap, offset, domain 166 drivers/soc/imx/gpcv2.c domain->bits.pxx, domain->bits.pxx); domain 172 drivers/soc/imx/gpcv2.c ret = regmap_read_poll_timeout(domain->regmap, offset, pxx_req, domain 173 drivers/soc/imx/gpcv2.c !(pxx_req & domain->bits.pxx), domain 176 drivers/soc/imx/gpcv2.c dev_err(domain->dev, "failed to command PGC\n"); domain 188 drivers/soc/imx/gpcv2.c regmap_update_bits(domain->regmap, GPC_PGC_CTRL(domain->pgc), domain 192 drivers/soc/imx/gpcv2.c for (i = 0; i < domain->num_clks; i++) domain 193 drivers/soc/imx/gpcv2.c clk_disable_unprepare(domain->clk[i]); domain 198 drivers/soc/imx/gpcv2.c err = regulator_disable(domain->regulator); domain 200 drivers/soc/imx/gpcv2.c dev_err(domain->dev, domain 206 drivers/soc/imx/gpcv2.c regmap_update_bits(domain->regmap, GPC_PGC_CPU_MAPPING, domain 207 drivers/soc/imx/gpcv2.c domain->bits.map, 0); domain 445 drivers/soc/imx/gpcv2.c static int imx_pgc_get_clocks(struct imx_pgc_domain *domain) domain 450 drivers/soc/imx/gpcv2.c struct clk *clk = of_clk_get(domain->dev->of_node, i); domain 454 drivers/soc/imx/gpcv2.c dev_err(domain->dev, "more than %d clocks\n", domain 459 drivers/soc/imx/gpcv2.c domain->clk[i] = clk; domain 461 drivers/soc/imx/gpcv2.c domain->num_clks = i; domain 467 drivers/soc/imx/gpcv2.c clk_put(domain->clk[i]); domain 472 drivers/soc/imx/gpcv2.c static void imx_pgc_put_clocks(struct imx_pgc_domain *domain) domain 476 drivers/soc/imx/gpcv2.c for (i = domain->num_clks - 1; i >= 0; i--) domain 477 drivers/soc/imx/gpcv2.c clk_put(domain->clk[i]); domain 482 drivers/soc/imx/gpcv2.c struct imx_pgc_domain *domain = pdev->dev.platform_data; domain 485 drivers/soc/imx/gpcv2.c domain->dev = &pdev->dev; domain 487 drivers/soc/imx/gpcv2.c domain->regulator = devm_regulator_get_optional(domain->dev, "power"); domain 488 drivers/soc/imx/gpcv2.c if (IS_ERR(domain->regulator)) { domain 489 drivers/soc/imx/gpcv2.c if (PTR_ERR(domain->regulator) != -ENODEV) { domain 490 drivers/soc/imx/gpcv2.c if (PTR_ERR(domain->regulator) != -EPROBE_DEFER) domain 491 drivers/soc/imx/gpcv2.c dev_err(domain->dev, "Failed to get domain's regulator\n"); domain 492 drivers/soc/imx/gpcv2.c return PTR_ERR(domain->regulator); domain 494 drivers/soc/imx/gpcv2.c } else if (domain->voltage) { domain 495 drivers/soc/imx/gpcv2.c regulator_set_voltage(domain->regulator, domain 496 drivers/soc/imx/gpcv2.c domain->voltage, domain->voltage); domain 499 drivers/soc/imx/gpcv2.c ret = imx_pgc_get_clocks(domain); domain 502 drivers/soc/imx/gpcv2.c dev_err(domain->dev, "Failed to get domain's clocks\n"); domain 506 drivers/soc/imx/gpcv2.c ret = pm_genpd_init(&domain->genpd, NULL, true); domain 508 drivers/soc/imx/gpcv2.c dev_err(domain->dev, "Failed to init power domain\n"); domain 509 drivers/soc/imx/gpcv2.c imx_pgc_put_clocks(domain); domain 513 drivers/soc/imx/gpcv2.c ret = of_genpd_add_provider_simple(domain->dev->of_node, domain 514 drivers/soc/imx/gpcv2.c &domain->genpd); domain 516 drivers/soc/imx/gpcv2.c dev_err(domain->dev, "Failed to add genpd provider\n"); domain 517 drivers/soc/imx/gpcv2.c pm_genpd_remove(&domain->genpd); domain 518 drivers/soc/imx/gpcv2.c imx_pgc_put_clocks(domain); domain 526 drivers/soc/imx/gpcv2.c struct imx_pgc_domain *domain = pdev->dev.platform_data; domain 528 drivers/soc/imx/gpcv2.c of_genpd_del_provider(domain->dev->of_node); domain 529 drivers/soc/imx/gpcv2.c pm_genpd_remove(&domain->genpd); domain 530 drivers/soc/imx/gpcv2.c imx_pgc_put_clocks(domain); domain 588 drivers/soc/imx/gpcv2.c struct imx_pgc_domain *domain; domain 622 drivers/soc/imx/gpcv2.c domain = pd_pdev->dev.platform_data; domain 623 drivers/soc/imx/gpcv2.c domain->regmap = regmap; domain 624 drivers/soc/imx/gpcv2.c domain->genpd.power_on = imx_gpc_pu_pgc_sw_pup_req; domain 625 drivers/soc/imx/gpcv2.c domain->genpd.power_off = imx_gpc_pu_pgc_sw_pdn_req; domain 323 drivers/soc/qcom/qcom_aoss.c static int qmp_pd_power_on(struct generic_pm_domain *domain) domain 325 drivers/soc/qcom/qcom_aoss.c return qmp_pd_power_toggle(to_qmp_pd_resource(domain), true); domain 328 drivers/soc/qcom/qcom_aoss.c static int qmp_pd_power_off(struct generic_pm_domain *domain) domain 330 drivers/soc/qcom/qcom_aoss.c return qmp_pd_power_toggle(to_qmp_pd_resource(domain), false); domain 18 drivers/soc/qcom/rpmhpd.c #define domain_to_rpmhpd(domain) container_of(domain, struct rpmhpd, pd) domain 217 drivers/soc/qcom/rpmhpd.c static int rpmhpd_power_on(struct generic_pm_domain *domain) domain 219 drivers/soc/qcom/rpmhpd.c struct rpmhpd *pd = domain_to_rpmhpd(domain); domain 235 drivers/soc/qcom/rpmhpd.c static int rpmhpd_power_off(struct generic_pm_domain *domain) domain 237 drivers/soc/qcom/rpmhpd.c struct rpmhpd *pd = domain_to_rpmhpd(domain); domain 252 drivers/soc/qcom/rpmhpd.c static int rpmhpd_set_performance_state(struct generic_pm_domain *domain, domain 255 drivers/soc/qcom/rpmhpd.c struct rpmhpd *pd = domain_to_rpmhpd(domain); domain 17 drivers/soc/qcom/rpmpd.c #define domain_to_rpmpd(domain) container_of(domain, struct rpmpd, pd) domain 267 drivers/soc/qcom/rpmpd.c static int rpmpd_power_on(struct generic_pm_domain *domain) domain 270 drivers/soc/qcom/rpmpd.c struct rpmpd *pd = domain_to_rpmpd(domain); domain 289 drivers/soc/qcom/rpmpd.c static int rpmpd_power_off(struct generic_pm_domain *domain) domain 292 drivers/soc/qcom/rpmpd.c struct rpmpd *pd = domain_to_rpmpd(domain); domain 305 drivers/soc/qcom/rpmpd.c static int rpmpd_set_performance(struct generic_pm_domain *domain, domain 309 drivers/soc/qcom/rpmpd.c struct rpmpd *pd = domain_to_rpmpd(domain); domain 98 drivers/soc/qcom/smp2p.c struct irq_domain *domain; domain 233 drivers/soc/qcom/smp2p.c irq_pin = irq_find_mapping(entry->domain, i); domain 309 drivers/soc/qcom/smp2p.c entry->domain = irq_domain_add_linear(node, 32, &smp2p_irq_ops, entry); domain 310 drivers/soc/qcom/smp2p.c if (!entry->domain) { domain 546 drivers/soc/qcom/smp2p.c irq_domain_remove(entry->domain); domain 569 drivers/soc/qcom/smp2p.c irq_domain_remove(entry->domain); domain 108 drivers/soc/qcom/smsm.c struct irq_domain *domain; domain 216 drivers/soc/qcom/smsm.c irq_pin = irq_find_mapping(entry->domain, i); domain 221 drivers/soc/qcom/smsm.c irq_pin = irq_find_mapping(entry->domain, i); domain 403 drivers/soc/qcom/smsm.c entry->domain = irq_domain_add_linear(node, 32, &smsm_irq_ops, entry); domain 404 drivers/soc/qcom/smsm.c if (!entry->domain) { domain 582 drivers/soc/qcom/smsm.c if (smsm->entries[id].domain) domain 583 drivers/soc/qcom/smsm.c irq_domain_remove(smsm->entries[id].domain); domain 596 drivers/soc/qcom/smsm.c if (smsm->entries[id].domain) domain 597 drivers/soc/qcom/smsm.c irq_domain_remove(smsm->entries[id].domain); domain 329 drivers/soc/rockchip/pm_domains.c static int rockchip_pd_power_on(struct generic_pm_domain *domain) domain 331 drivers/soc/rockchip/pm_domains.c struct rockchip_pm_domain *pd = to_rockchip_pd(domain); domain 336 drivers/soc/rockchip/pm_domains.c static int rockchip_pd_power_off(struct generic_pm_domain *domain) domain 338 drivers/soc/rockchip/pm_domains.c struct rockchip_pm_domain *pd = to_rockchip_pd(domain); domain 36 drivers/soc/samsung/pm_domains.c static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on) domain 43 drivers/soc/samsung/pm_domains.c pd = container_of(domain, struct exynos_pm_domain, pd); domain 55 drivers/soc/samsung/pm_domains.c pr_err("Power domain %s %s failed\n", domain->name, op); domain 66 drivers/soc/samsung/pm_domains.c static int exynos_pd_power_on(struct generic_pm_domain *domain) domain 68 drivers/soc/samsung/pm_domains.c return exynos_pd_power(domain, true); domain 71 drivers/soc/samsung/pm_domains.c static int exynos_pd_power_off(struct generic_pm_domain *domain) domain 73 drivers/soc/samsung/pm_domains.c return exynos_pd_power(domain, false); domain 345 drivers/soc/tegra/pmc.c struct irq_domain *domain; domain 355 drivers/soc/tegra/pmc.c to_powergate(struct generic_pm_domain *domain) domain 357 drivers/soc/tegra/pmc.c return container_of(domain, struct tegra_powergate, genpd); domain 656 drivers/soc/tegra/pmc.c static int tegra_genpd_power_on(struct generic_pm_domain *domain) domain 658 drivers/soc/tegra/pmc.c struct tegra_powergate *pg = to_powergate(domain); domain 675 drivers/soc/tegra/pmc.c static int tegra_genpd_power_off(struct generic_pm_domain *domain) domain 677 drivers/soc/tegra/pmc.c struct tegra_powergate *pg = to_powergate(domain); domain 1840 drivers/soc/tegra/pmc.c static int tegra_pmc_irq_translate(struct irq_domain *domain, domain 1854 drivers/soc/tegra/pmc.c static int tegra_pmc_irq_alloc(struct irq_domain *domain, unsigned int virq, domain 1857 drivers/soc/tegra/pmc.c struct tegra_pmc *pmc = domain->host_data; domain 1875 drivers/soc/tegra/pmc.c err = irq_domain_set_hwirq_and_chip(domain, virq, domain 1887 drivers/soc/tegra/pmc.c err = irq_domain_alloc_irqs_parent(domain, virq, domain 1898 drivers/soc/tegra/pmc.c err = irq_domain_set_hwirq_and_chip(domain, virq, domain 1911 drivers/soc/tegra/pmc.c if (domain->parent) domain 1912 drivers/soc/tegra/pmc.c irq_domain_set_hwirq_and_chip(domain->parent, domain 1926 drivers/soc/tegra/pmc.c err = irq_domain_set_hwirq_and_chip(domain, virq, ULONG_MAX, domain 1936 drivers/soc/tegra/pmc.c if (domain->parent) domain 1937 drivers/soc/tegra/pmc.c irq_domain_set_hwirq_and_chip(domain->parent, virq, 0, domain 2038 drivers/soc/tegra/pmc.c pmc->domain = irq_domain_add_hierarchy(parent, 0, 96, pmc->dev->of_node, domain 2040 drivers/soc/tegra/pmc.c if (!pmc->domain) { domain 150 drivers/soc/tegra/powergate-bpmp.c static int tegra_powergate_power_on(struct generic_pm_domain *domain) domain 152 drivers/soc/tegra/powergate-bpmp.c struct tegra_powergate *powergate = to_tegra_powergate(domain); domain 159 drivers/soc/tegra/powergate-bpmp.c static int tegra_powergate_power_off(struct generic_pm_domain *domain) domain 161 drivers/soc/tegra/powergate-bpmp.c struct tegra_powergate *powergate = to_tegra_powergate(domain); domain 311 drivers/soc/tegra/powergate-bpmp.c struct generic_pm_domain *domain = ERR_PTR(-ENOENT); domain 320 drivers/soc/tegra/powergate-bpmp.c domain = &powergate->genpd; domain 325 drivers/soc/tegra/powergate-bpmp.c return domain; domain 51 drivers/soc/ti/ti_sci_inta_msi.c struct irq_domain *domain; domain 55 drivers/soc/ti/ti_sci_inta_msi.c domain = msi_create_irq_domain(fwnode, info, parent); domain 56 drivers/soc/ti/ti_sci_inta_msi.c if (domain) domain 57 drivers/soc/ti/ti_sci_inta_msi.c irq_domain_update_bus_token(domain, DOMAIN_BUS_TI_SCI_INTA_MSI); domain 59 drivers/soc/ti/ti_sci_inta_msi.c return domain; domain 112 drivers/soc/ti/ti_sci_pm_domains.c static int ti_sci_pd_attach_dev(struct generic_pm_domain *domain, domain 117 drivers/soc/ti/ti_sci_pm_domains.c struct ti_sci_pm_domain *ti_sci_genpd = genpd_to_ti_sci_pd(domain); domain 157 drivers/soc/ti/ti_sci_pm_domains.c static void ti_sci_pd_detach_dev(struct generic_pm_domain *domain, domain 72 drivers/soc/xilinx/zynqmp_pm_domains.c static int zynqmp_gpd_power_on(struct generic_pm_domain *domain) domain 80 drivers/soc/xilinx/zynqmp_pm_domains.c pd = container_of(domain, struct zynqmp_pm_domain, gpd); domain 87 drivers/soc/xilinx/zynqmp_pm_domains.c __func__, domain->name, pd->node_id, ret); domain 91 drivers/soc/xilinx/zynqmp_pm_domains.c pr_debug("%s() Powered on %s domain\n", __func__, domain->name); domain 104 drivers/soc/xilinx/zynqmp_pm_domains.c static int zynqmp_gpd_power_off(struct generic_pm_domain *domain) domain 115 drivers/soc/xilinx/zynqmp_pm_domains.c pd = container_of(domain, struct zynqmp_pm_domain, gpd); domain 120 drivers/soc/xilinx/zynqmp_pm_domains.c __func__, domain->name); domain 124 drivers/soc/xilinx/zynqmp_pm_domains.c list_for_each_entry_safe(pdd, tmp, &domain->dev_list, list_node) { domain 129 drivers/soc/xilinx/zynqmp_pm_domains.c domain->name); domain 143 drivers/soc/xilinx/zynqmp_pm_domains.c __func__, domain->name, pd->node_id, ret); domain 147 drivers/soc/xilinx/zynqmp_pm_domains.c pr_debug("%s() Powered off %s domain\n", __func__, domain->name); domain 158 drivers/soc/xilinx/zynqmp_pm_domains.c static int zynqmp_gpd_attach_dev(struct generic_pm_domain *domain, domain 167 drivers/soc/xilinx/zynqmp_pm_domains.c pd = container_of(domain, struct zynqmp_pm_domain, gpd); domain 170 drivers/soc/xilinx/zynqmp_pm_domains.c if (domain->device_count) domain 178 drivers/soc/xilinx/zynqmp_pm_domains.c __func__, domain->name, pd->node_id, ret); domain 185 drivers/soc/xilinx/zynqmp_pm_domains.c dev_name(dev), domain->name); domain 194 drivers/soc/xilinx/zynqmp_pm_domains.c static void zynqmp_gpd_detach_dev(struct generic_pm_domain *domain, domain 203 drivers/soc/xilinx/zynqmp_pm_domains.c pd = container_of(domain, struct zynqmp_pm_domain, gpd); domain 206 drivers/soc/xilinx/zynqmp_pm_domains.c if (domain->device_count) domain 213 drivers/soc/xilinx/zynqmp_pm_domains.c __func__, domain->name, pd->node_id, ret); domain 220 drivers/soc/xilinx/zynqmp_pm_domains.c dev_name(dev), domain->name); domain 23 drivers/soc/zte/zx2967_pm_domains.c static int zx2967_power_on(struct generic_pm_domain *domain) domain 25 drivers/soc/zte/zx2967_pm_domains.c struct zx2967_pm_domain *zpd = (struct zx2967_pm_domain *)domain; domain 43 drivers/soc/zte/zx2967_pm_domains.c pr_err("Error: %s %s fail\n", __func__, domain->name); domain 62 drivers/soc/zte/zx2967_pm_domains.c pr_debug("poweron %s\n", domain->name); domain 67 drivers/soc/zte/zx2967_pm_domains.c static int zx2967_power_off(struct generic_pm_domain *domain) domain 69 drivers/soc/zte/zx2967_pm_domains.c struct zx2967_pm_domain *zpd = (struct zx2967_pm_domain *)domain; domain 102 drivers/soc/zte/zx2967_pm_domains.c pr_err("Error: %s %s fail\n", __func__, domain->name); domain 106 drivers/soc/zte/zx2967_pm_domains.c pr_debug("poweroff %s\n", domain->name); domain 156 drivers/spmi/spmi-pmic-arb.c struct irq_domain *domain; domain 517 drivers/spmi/spmi-pmic-arb.c irq = irq_find_mapping(pmic_arb->domain, domain 661 drivers/spmi/spmi-pmic-arb.c static int qpnpint_irq_domain_activate(struct irq_domain *domain, domain 737 drivers/spmi/spmi-pmic-arb.c struct irq_domain *domain, unsigned int virq, domain 753 drivers/spmi/spmi-pmic-arb.c irq_domain_set_info(domain, virq, hwirq, &pmic_arb_irqchip, pmic_arb, domain 757 drivers/spmi/spmi-pmic-arb.c static int qpnpint_irq_domain_alloc(struct irq_domain *domain, domain 761 drivers/spmi/spmi-pmic-arb.c struct spmi_pmic_arb *pmic_arb = domain->host_data; domain 767 drivers/spmi/spmi-pmic-arb.c ret = qpnpint_irq_domain_translate(domain, fwspec, &hwirq, &type); domain 772 drivers/spmi/spmi-pmic-arb.c qpnpint_irq_domain_map(pmic_arb, domain, virq + i, hwirq + i, domain 1304 drivers/spmi/spmi-pmic-arb.c pmic_arb->domain = irq_domain_add_tree(pdev->dev.of_node, domain 1306 drivers/spmi/spmi-pmic-arb.c if (!pmic_arb->domain) { domain 1322 drivers/spmi/spmi-pmic-arb.c irq_domain_remove(pmic_arb->domain); domain 1334 drivers/spmi/spmi-pmic-arb.c irq_domain_remove(pmic_arb->domain); domain 85 drivers/staging/board/armadillo800eva.c .domain = "/system-controller@e6180000/pm-domains/c5/a4lc@1" domain 137 drivers/staging/board/board.c const char *domain) domain 142 drivers/staging/board/board.c np = of_find_node_by_path(domain); domain 144 drivers/staging/board/board.c pr_err("Cannot find domain node %s\n", domain); domain 155 drivers/staging/board/board.c const char *domain) domain 179 drivers/staging/board/board.c if (dev->domain) domain 180 drivers/staging/board/board.c board_staging_add_dev_domain(pdev, dev->domain); domain 21 drivers/staging/board/board.h const char *domain; domain 46 drivers/staging/greybus/gpio.c #define irq_data_to_gpio_chip(d) (d->domain->host_data) domain 389 drivers/staging/greybus/gpio.c irq = irq_find_mapping(ggc->chip.irq.domain, event->which); domain 35 drivers/staging/media/tegra-vde/dmabuf-cache.c if (entry->vde->domain) domain 87 drivers/staging/media/tegra-vde/dmabuf-cache.c if (vde->domain) domain 109 drivers/staging/media/tegra-vde/dmabuf-cache.c if (!vde->domain && sgt->nents > 1) { domain 121 drivers/staging/media/tegra-vde/dmabuf-cache.c if (vde->domain) { domain 29 drivers/staging/media/tegra-vde/iommu.c end = vde->domain->geometry.aperture_end; domain 39 drivers/staging/media/tegra-vde/iommu.c size = iommu_map_sg(vde->domain, addr, sgt->sgl, sgt->nents, domain 57 drivers/staging/media/tegra-vde/iommu.c iommu_unmap(vde->domain, addr, size); domain 81 drivers/staging/media/tegra-vde/iommu.c vde->domain = iommu_domain_alloc(&platform_bus_type); domain 82 drivers/staging/media/tegra-vde/iommu.c if (!vde->domain) { domain 91 drivers/staging/media/tegra-vde/iommu.c order = __ffs(vde->domain->pgsize_bitmap); domain 94 drivers/staging/media/tegra-vde/iommu.c err = iommu_attach_group(vde->domain, vde->group); domain 132 drivers/staging/media/tegra-vde/iommu.c iommu_detach_group(vde->domain, vde->group); domain 137 drivers/staging/media/tegra-vde/iommu.c iommu_domain_free(vde->domain); domain 146 drivers/staging/media/tegra-vde/iommu.c if (vde->domain) { domain 149 drivers/staging/media/tegra-vde/iommu.c iommu_detach_group(vde->domain, vde->group); domain 152 drivers/staging/media/tegra-vde/iommu.c iommu_domain_free(vde->domain); domain 155 drivers/staging/media/tegra-vde/iommu.c vde->domain = NULL; domain 46 drivers/staging/media/tegra-vde/vde.h struct iommu_domain *domain; domain 997 drivers/staging/wlan-ng/hfa384x.h u16 domain[5]; domain 530 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c enum rapl_domain_type domain; domain 544 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c for (domain = RAPL_DOMAIN_PACKAGE; domain < RAPL_DOMAIN_MAX; domain++) { domain 546 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c if (rapl_regs->regs[domain][reg]) domain 547 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c rapl_mmio_priv.regs[domain][reg] = domain 549 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c rapl_regs->regs[domain][reg]; domain 550 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c rapl_mmio_priv.limits[domain] = rapl_regs->limits[domain]; domain 354 drivers/thermal/tegra/soctherm.c struct irq_domain *domain; domain 1062 drivers/thermal/tegra/soctherm.c irq_find_mapping(soc_irq_cdata.domain, 0)); domain 1066 drivers/thermal/tegra/soctherm.c irq_find_mapping(soc_irq_cdata.domain, 1)); domain 1070 drivers/thermal/tegra/soctherm.c irq_find_mapping(soc_irq_cdata.domain, 2)); domain 1074 drivers/thermal/tegra/soctherm.c irq_find_mapping(soc_irq_cdata.domain, 3)); domain 1273 drivers/thermal/tegra/soctherm.c soc_irq_cdata.domain = irq_domain_add_linear(np, num_irqs, domain 1277 drivers/thermal/tegra/soctherm.c if (!soc_irq_cdata.domain) { domain 336 drivers/thermal/ti-soc-thermal/dra752-thermal-data.c .domain = "cpu", domain 345 drivers/thermal/ti-soc-thermal/dra752-thermal-data.c .domain = "gpu", domain 352 drivers/thermal/ti-soc-thermal/dra752-thermal-data.c .domain = "core", domain 359 drivers/thermal/ti-soc-thermal/dra752-thermal-data.c .domain = "dspeve", domain 366 drivers/thermal/ti-soc-thermal/dra752-thermal-data.c .domain = "iva", domain 82 drivers/thermal/ti-soc-thermal/omap3-thermal-data.c .domain = "cpu", domain 150 drivers/thermal/ti-soc-thermal/omap3-thermal-data.c .domain = "cpu", domain 72 drivers/thermal/ti-soc-thermal/omap4-thermal-data.c .domain = "cpu", domain 203 drivers/thermal/ti-soc-thermal/omap4-thermal-data.c .domain = "cpu", domain 234 drivers/thermal/ti-soc-thermal/omap4-thermal-data.c .domain = "cpu", domain 283 drivers/thermal/ti-soc-thermal/omap5-thermal-data.c .domain = "cpu", domain 292 drivers/thermal/ti-soc-thermal/omap5-thermal-data.c .domain = "gpu", domain 299 drivers/thermal/ti-soc-thermal/omap5-thermal-data.c .domain = "core", domain 233 drivers/thermal/ti-soc-thermal/ti-bandgap.c __func__, bgp->conf->sensors[i].domain, domain 998 drivers/thermal/ti-soc-thermal/ti-bandgap.c char *domain; domain 1007 drivers/thermal/ti-soc-thermal/ti-bandgap.c domain = bgp->conf->sensors[i].domain; domain 1008 drivers/thermal/ti-soc-thermal/ti-bandgap.c ret = bgp->conf->expose_sensor(bgp, i, domain); domain 227 drivers/thermal/ti-soc-thermal/ti-bandgap.h char *domain; domain 322 drivers/thermal/ti-soc-thermal/ti-bandgap.h int (*expose_sensor)(struct ti_bandgap *bgp, int id, char *domain); domain 166 drivers/thermal/ti-soc-thermal/ti-thermal-common.c char *domain) domain 57 drivers/thermal/ti-soc-thermal/ti-thermal.h int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain); domain 64 drivers/thermal/ti-soc-thermal/ti-thermal.h int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain) domain 32 drivers/tty/vcc.c char *domain; domain 496 drivers/tty/vcc.c rv = scnprintf(buf, PAGE_SIZE, "%s\n", port->domain); domain 542 drivers/tty/vcc.c static DEVICE_ATTR(domain, 0400, vcc_sysfs_domain_show, NULL); domain 573 drivers/tty/vcc.c const char *domain; domain 627 drivers/tty/vcc.c domain = mdesc_get_property(hp, node, "vcc-domain-name", NULL); domain 628 drivers/tty/vcc.c if (!domain) { domain 633 drivers/tty/vcc.c port->domain = kstrdup(domain, GFP_KERNEL); domain 656 drivers/tty/vcc.c kfree(port->domain); domain 717 drivers/tty/vcc.c kfree(port->domain); domain 1044 drivers/tty/vcc.c kfree(port->domain); domain 76 drivers/vfio/vfio_iommu_type1.c struct iommu_domain *domain; domain 661 drivers/vfio/vfio_iommu_type1.c static long vfio_sync_unpin(struct vfio_dma *dma, struct vfio_domain *domain, domain 668 drivers/vfio/vfio_iommu_type1.c iommu_tlb_sync(domain->domain, iotlb_gather); domain 694 drivers/vfio/vfio_iommu_type1.c static size_t unmap_unpin_fast(struct vfio_domain *domain, domain 705 drivers/vfio/vfio_iommu_type1.c unmapped = iommu_unmap_fast(domain->domain, *iova, len, domain 726 drivers/vfio/vfio_iommu_type1.c *unlocked += vfio_sync_unpin(dma, domain, unmapped_list, domain 734 drivers/vfio/vfio_iommu_type1.c static size_t unmap_unpin_slow(struct vfio_domain *domain, domain 739 drivers/vfio/vfio_iommu_type1.c size_t unmapped = iommu_unmap(domain->domain, *iova, len); domain 756 drivers/vfio/vfio_iommu_type1.c struct vfio_domain *domain, *d; domain 775 drivers/vfio/vfio_iommu_type1.c domain = d = list_first_entry(&iommu->domain_list, domain 779 drivers/vfio/vfio_iommu_type1.c iommu_unmap(d->domain, dma->iova, dma->size); domain 788 drivers/vfio/vfio_iommu_type1.c phys = iommu_iova_to_phys(domain->domain, iova); domain 800 drivers/vfio/vfio_iommu_type1.c !domain->fgsp && iova + len < end; len += PAGE_SIZE) { domain 801 drivers/vfio/vfio_iommu_type1.c next = iommu_iova_to_phys(domain->domain, iova + len); domain 810 drivers/vfio/vfio_iommu_type1.c unmapped = unmap_unpin_fast(domain, dma, &iova, len, phys, domain 815 drivers/vfio/vfio_iommu_type1.c unmapped = unmap_unpin_slow(domain, dma, &iova, len, domain 825 drivers/vfio/vfio_iommu_type1.c unlocked += vfio_sync_unpin(dma, domain, &unmapped_region_list, domain 847 drivers/vfio/vfio_iommu_type1.c struct vfio_domain *domain; domain 851 drivers/vfio/vfio_iommu_type1.c list_for_each_entry(domain, &iommu->domain_list, next) domain 852 drivers/vfio/vfio_iommu_type1.c bitmap &= domain->domain->pgsize_bitmap; domain 992 drivers/vfio/vfio_iommu_type1.c ret = iommu_map(d->domain, iova, (phys_addr_t)pfn << PAGE_SHIFT, domain 1004 drivers/vfio/vfio_iommu_type1.c iommu_unmap(d->domain, iova, npage << PAGE_SHIFT); domain 1188 drivers/vfio/vfio_iommu_type1.c struct vfio_domain *domain) domain 1214 drivers/vfio/vfio_iommu_type1.c phys = iommu_iova_to_phys(d->domain, iova); domain 1225 drivers/vfio/vfio_iommu_type1.c p == iommu_iova_to_phys(d->domain, i)) { domain 1250 drivers/vfio/vfio_iommu_type1.c ret = iommu_map(domain->domain, iova, phys, domain 1251 drivers/vfio/vfio_iommu_type1.c size, dma->prot | domain->prot); domain 1272 drivers/vfio/vfio_iommu_type1.c static void vfio_test_domain_fgsp(struct vfio_domain *domain) domain 1281 drivers/vfio/vfio_iommu_type1.c ret = iommu_map(domain->domain, 0, page_to_phys(pages), PAGE_SIZE * 2, domain 1282 drivers/vfio/vfio_iommu_type1.c IOMMU_READ | IOMMU_WRITE | domain->prot); domain 1284 drivers/vfio/vfio_iommu_type1.c size_t unmapped = iommu_unmap(domain->domain, 0, PAGE_SIZE); domain 1287 drivers/vfio/vfio_iommu_type1.c iommu_unmap(domain->domain, PAGE_SIZE, PAGE_SIZE); domain 1289 drivers/vfio/vfio_iommu_type1.c domain->fgsp = true; domain 1295 drivers/vfio/vfio_iommu_type1.c static struct vfio_group *find_iommu_group(struct vfio_domain *domain, domain 1300 drivers/vfio/vfio_iommu_type1.c list_for_each_entry(g, &domain->group_list, next) { domain 1352 drivers/vfio/vfio_iommu_type1.c struct iommu_domain *domain = data; domain 1358 drivers/vfio/vfio_iommu_type1.c return iommu_aux_attach_device(domain, iommu_device); domain 1360 drivers/vfio/vfio_iommu_type1.c return iommu_attach_device(domain, iommu_device); domain 1368 drivers/vfio/vfio_iommu_type1.c struct iommu_domain *domain = data; domain 1374 drivers/vfio/vfio_iommu_type1.c iommu_aux_detach_device(domain, iommu_device); domain 1376 drivers/vfio/vfio_iommu_type1.c iommu_detach_device(domain, iommu_device); domain 1382 drivers/vfio/vfio_iommu_type1.c static int vfio_iommu_attach_group(struct vfio_domain *domain, domain 1387 drivers/vfio/vfio_iommu_type1.c domain->domain, domain 1390 drivers/vfio/vfio_iommu_type1.c return iommu_attach_group(domain->domain, group->iommu_group); domain 1393 drivers/vfio/vfio_iommu_type1.c static void vfio_iommu_detach_group(struct vfio_domain *domain, domain 1397 drivers/vfio/vfio_iommu_type1.c iommu_group_for_each_dev(group->iommu_group, domain->domain, domain 1400 drivers/vfio/vfio_iommu_type1.c iommu_detach_group(domain->domain, group->iommu_group); domain 1657 drivers/vfio/vfio_iommu_type1.c struct vfio_domain *domain, *d; domain 1683 drivers/vfio/vfio_iommu_type1.c domain = kzalloc(sizeof(*domain), GFP_KERNEL); domain 1684 drivers/vfio/vfio_iommu_type1.c if (!group || !domain) { domain 1706 drivers/vfio/vfio_iommu_type1.c INIT_LIST_HEAD(&domain->group_list); domain 1707 drivers/vfio/vfio_iommu_type1.c iommu->external_domain = domain; domain 1709 drivers/vfio/vfio_iommu_type1.c kfree(domain); domain 1722 drivers/vfio/vfio_iommu_type1.c domain->domain = iommu_domain_alloc(bus); domain 1723 drivers/vfio/vfio_iommu_type1.c if (!domain->domain) { domain 1731 drivers/vfio/vfio_iommu_type1.c ret = iommu_domain_set_attr(domain->domain, DOMAIN_ATTR_NESTING, domain 1737 drivers/vfio/vfio_iommu_type1.c ret = vfio_iommu_attach_group(domain, group); domain 1742 drivers/vfio/vfio_iommu_type1.c iommu_domain_get_attr(domain->domain, DOMAIN_ATTR_GEOMETRY, &geo); domain 1779 drivers/vfio/vfio_iommu_type1.c INIT_LIST_HEAD(&domain->group_list); domain 1780 drivers/vfio/vfio_iommu_type1.c list_add(&group->next, &domain->group_list); domain 1793 drivers/vfio/vfio_iommu_type1.c domain->prot |= IOMMU_CACHE; domain 1803 drivers/vfio/vfio_iommu_type1.c if (d->domain->ops == domain->domain->ops && domain 1804 drivers/vfio/vfio_iommu_type1.c d->prot == domain->prot) { domain 1805 drivers/vfio/vfio_iommu_type1.c vfio_iommu_detach_group(domain, group); domain 1808 drivers/vfio/vfio_iommu_type1.c iommu_domain_free(domain->domain); domain 1809 drivers/vfio/vfio_iommu_type1.c kfree(domain); domain 1813 drivers/vfio/vfio_iommu_type1.c ret = vfio_iommu_attach_group(domain, group); domain 1819 drivers/vfio/vfio_iommu_type1.c vfio_test_domain_fgsp(domain); domain 1822 drivers/vfio/vfio_iommu_type1.c ret = vfio_iommu_replay(iommu, domain); domain 1827 drivers/vfio/vfio_iommu_type1.c ret = iommu_get_msi_cookie(domain->domain, resv_msi_base); domain 1832 drivers/vfio/vfio_iommu_type1.c list_add(&domain->next, &iommu->domain_list); domain 1842 drivers/vfio/vfio_iommu_type1.c vfio_iommu_detach_group(domain, group); domain 1844 drivers/vfio/vfio_iommu_type1.c iommu_domain_free(domain->domain); domain 1848 drivers/vfio/vfio_iommu_type1.c kfree(domain); domain 1910 drivers/vfio/vfio_iommu_type1.c struct vfio_domain *domain; domain 1919 drivers/vfio/vfio_iommu_type1.c list_for_each_entry(domain, &iommu->domain_list, next) { domain 1920 drivers/vfio/vfio_iommu_type1.c iommu_domain_get_attr(domain->domain, DOMAIN_ATTR_GEOMETRY, domain 1986 drivers/vfio/vfio_iommu_type1.c struct vfio_domain *domain; domain 2018 drivers/vfio/vfio_iommu_type1.c list_for_each_entry(domain, &iommu->domain_list, next) { domain 2019 drivers/vfio/vfio_iommu_type1.c group = find_iommu_group(domain, iommu_group); domain 2023 drivers/vfio/vfio_iommu_type1.c vfio_iommu_detach_group(domain, group); domain 2033 drivers/vfio/vfio_iommu_type1.c if (list_empty(&domain->group_list)) { domain 2040 drivers/vfio/vfio_iommu_type1.c iommu_domain_free(domain->domain); domain 2041 drivers/vfio/vfio_iommu_type1.c list_del(&domain->next); domain 2042 drivers/vfio/vfio_iommu_type1.c kfree(domain); domain 2089 drivers/vfio/vfio_iommu_type1.c static void vfio_release_domain(struct vfio_domain *domain, bool external) domain 2094 drivers/vfio/vfio_iommu_type1.c &domain->group_list, next) { domain 2096 drivers/vfio/vfio_iommu_type1.c vfio_iommu_detach_group(domain, group); domain 2102 drivers/vfio/vfio_iommu_type1.c iommu_domain_free(domain->domain); domain 2108 drivers/vfio/vfio_iommu_type1.c struct vfio_domain *domain, *domain_tmp; domain 2118 drivers/vfio/vfio_iommu_type1.c list_for_each_entry_safe(domain, domain_tmp, domain 2120 drivers/vfio/vfio_iommu_type1.c vfio_release_domain(domain, false); domain 2121 drivers/vfio/vfio_iommu_type1.c list_del(&domain->next); domain 2122 drivers/vfio/vfio_iommu_type1.c kfree(domain); domain 2132 drivers/vfio/vfio_iommu_type1.c struct vfio_domain *domain; domain 2136 drivers/vfio/vfio_iommu_type1.c list_for_each_entry(domain, &iommu->domain_list, next) { domain 2137 drivers/vfio/vfio_iommu_type1.c if (!(domain->prot & IOMMU_CACHE)) { domain 686 drivers/video/fbdev/nvidia/nv_hw.c int domain = pci_domain_nr(par->pci_dev->bus); domain 690 drivers/video/fbdev/nvidia/nv_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 3); domain 698 drivers/video/fbdev/nvidia/nv_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 5); domain 711 drivers/video/fbdev/nvidia/nv_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 1); domain 717 drivers/video/fbdev/nvidia/nv_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 3); domain 725 drivers/video/fbdev/nvidia/nv_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 2); domain 162 drivers/video/fbdev/riva/nv_driver.c int domain = pci_domain_nr(par->pdev->bus); domain 230 drivers/video/fbdev/riva/nv_driver.c dev = pci_get_domain_bus_and_slot(domain, 0, 1); domain 235 drivers/video/fbdev/riva/nv_driver.c dev = pci_get_domain_bus_and_slot(domain, 0, 1); domain 1120 drivers/video/fbdev/riva/riva_hw.c int domain = pci_domain_nr(pdev->bus); domain 1122 drivers/video/fbdev/riva/riva_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 3); domain 1137 drivers/video/fbdev/riva/riva_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 1); domain 2113 drivers/video/fbdev/riva/riva_hw.c int domain = pci_domain_nr(pdev->bus); domain 2126 drivers/video/fbdev/riva/riva_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 1); domain 2131 drivers/video/fbdev/riva/riva_hw.c dev = pci_get_domain_bus_and_slot(domain, 0, 1); domain 309 drivers/watchdog/octeon-wdt-main.c struct irq_domain *domain; domain 312 drivers/watchdog/octeon-wdt-main.c domain = octeon_irq_get_block_domain(node, domain 315 drivers/watchdog/octeon-wdt-main.c irq = irq_find_mapping(domain, hwirq); domain 349 drivers/watchdog/octeon-wdt-main.c struct irq_domain *domain; domain 365 drivers/watchdog/octeon-wdt-main.c domain = octeon_irq_get_block_domain(node, WD_BLOCK_NUMBER); domain 369 drivers/watchdog/octeon-wdt-main.c irq = irq_create_mapping(domain, hwirq); domain 220 drivers/xen/privcmd.c domid_t domain; domain 244 drivers/xen/privcmd.c st->domain, NULL); domain 298 drivers/xen/privcmd.c state.domain = mmapcmd.dom; domain 315 drivers/xen/privcmd.c domid_t domain; domain 352 drivers/xen/privcmd.c st->domain, cur_pages); domain 546 drivers/xen/privcmd.c state.domain = m.dom; domain 255 drivers/xen/pvcalls-back.c if (req->u.socket.domain != AF_INET || domain 313 drivers/xen/pvcalls-front.c req->u.socket.domain = AF_INET; domain 378 drivers/xen/xen-acpi-processor.c acpi_psd[acpi_id].domain); domain 21 drivers/xen/xen-pciback/passthrough.c unsigned int domain, domain 32 drivers/xen/xen-pciback/passthrough.c if (domain == (unsigned int)pci_domain_nr(dev_entry->dev->bus) domain 51 drivers/xen/xen-pciback/passthrough.c unsigned int domain, bus, devfn; domain 64 drivers/xen/xen-pciback/passthrough.c domain = (unsigned int)pci_domain_nr(dev->bus); domain 67 drivers/xen/xen-pciback/passthrough.c err = publish_cb(pdev, domain, bus, devfn, devid); domain 125 drivers/xen/xen-pciback/passthrough.c unsigned int domain, bus; domain 144 drivers/xen/xen-pciback/passthrough.c domain = (unsigned int)pci_domain_nr(dev_entry->dev->bus); domain 148 drivers/xen/xen-pciback/passthrough.c err = publish_root_cb(pdev, domain, bus); domain 179 drivers/xen/xen-pciback/passthrough.c unsigned int *domain, unsigned int *bus, domain 182 drivers/xen/xen-pciback/passthrough.c *domain = pci_domain_nr(pcidev->bus); domain 40 drivers/xen/xen-pciback/pci_stub.c int domain; domain 155 drivers/xen/xen-pciback/pci_stub.c static struct pcistub_device *pcistub_device_find_locked(int domain, int bus, domain 162 drivers/xen/xen-pciback/pci_stub.c && domain == pci_domain_nr(psdev->dev->bus) domain 173 drivers/xen/xen-pciback/pci_stub.c static struct pcistub_device *pcistub_device_find(int domain, int bus, domain 181 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find_locked(domain, bus, slot, func); domain 211 drivers/xen/xen-pciback/pci_stub.c int domain, int bus, domain 220 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find_locked(domain, bus, slot, func); domain 324 drivers/xen/xen-pciback/pci_stub.c if (pci_domain_nr(dev->bus) == pdev_id->domain domain 485 drivers/xen/xen-pciback/pci_stub.c int domain, int bus, unsigned int devfn) domain 494 drivers/xen/xen-pciback/pci_stub.c if (pci_dev_id->domain == domain && pci_dev_id->bus == bus && domain 502 drivers/xen/xen-pciback/pci_stub.c new->domain = domain; domain 710 drivers/xen/xen-pciback/pci_stub.c &aer_op->domain, &aer_op->bus, &aer_op->devfn); domain 720 drivers/xen/xen-pciback/pci_stub.c aer_cmd, aer_op->domain, aer_op->bus, aer_op->devfn); domain 1008 drivers/xen/xen-pciback/pci_stub.c static inline int str_to_slot(const char *buf, int *domain, int *bus, domain 1013 drivers/xen/xen-pciback/pci_stub.c switch (sscanf(buf, " %x:%x:%x.%x %n", domain, bus, slot, func, domain 1017 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:%x:%x.* %n", domain, bus, slot, &parsed); domain 1021 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:%x:*.* %n", domain, bus, &parsed); domain 1028 drivers/xen/xen-pciback/pci_stub.c *domain = 0; domain 1045 drivers/xen/xen-pciback/pci_stub.c static inline int str_to_quirk(const char *buf, int *domain, int *bus, int domain 1050 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:%x:%x.%x-%x:%x:%x %n", domain, bus, slot, func, domain 1056 drivers/xen/xen-pciback/pci_stub.c *domain = 0; domain 1065 drivers/xen/xen-pciback/pci_stub.c static int pcistub_device_id_add(int domain, int bus, int slot, int func) domain 1072 drivers/xen/xen-pciback/pci_stub.c rc = pcistub_device_id_add(domain, bus, slot, func); domain 1078 drivers/xen/xen-pciback/pci_stub.c rc = pcistub_device_id_add(domain, bus, slot, func); domain 1085 drivers/xen/xen-pciback/pci_stub.c !pci_domains_supported ? domain : domain 1087 drivers/xen/xen-pciback/pci_stub.c domain < 0 || domain > 0xffff) domain 1098 drivers/xen/xen-pciback/pci_stub.c domain, bus, slot, func); domain 1100 drivers/xen/xen-pciback/pci_stub.c pcistub_device_id_add_list(pci_dev_id, domain, bus, devfn); domain 1105 drivers/xen/xen-pciback/pci_stub.c static int pcistub_device_id_remove(int domain, int bus, int slot, int func) domain 1114 drivers/xen/xen-pciback/pci_stub.c if (pci_dev_id->domain == domain && pci_dev_id->bus == bus domain 1126 drivers/xen/xen-pciback/pci_stub.c domain, bus, slot, func); domain 1134 drivers/xen/xen-pciback/pci_stub.c static int pcistub_reg_add(int domain, int bus, int slot, int func, domain 1146 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); domain 1179 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; domain 1182 drivers/xen/xen-pciback/pci_stub.c err = str_to_slot(buf, &domain, &bus, &slot, &func); domain 1186 drivers/xen/xen-pciback/pci_stub.c err = pcistub_device_id_add(domain, bus, slot, func); domain 1198 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; domain 1201 drivers/xen/xen-pciback/pci_stub.c err = str_to_slot(buf, &domain, &bus, &slot, &func); domain 1205 drivers/xen/xen-pciback/pci_stub.c err = pcistub_device_id_remove(domain, bus, slot, func); domain 1227 drivers/xen/xen-pciback/pci_stub.c pci_dev_id->domain, pci_dev_id->bus, domain 1271 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; domain 1274 drivers/xen/xen-pciback/pci_stub.c err = str_to_slot(buf, &domain, &bus, &slot, &func); domain 1278 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); domain 1309 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func, reg, size, mask; domain 1312 drivers/xen/xen-pciback/pci_stub.c err = str_to_quirk(buf, &domain, &bus, &slot, &func, ®, &size, domain 1317 drivers/xen/xen-pciback/pci_stub.c err = pcistub_reg_add(domain, bus, slot, func, reg, size, mask); domain 1373 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; domain 1378 drivers/xen/xen-pciback/pci_stub.c err = str_to_slot(buf, &domain, &bus, &slot, &func); domain 1382 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); domain 1454 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; domain 1463 drivers/xen/xen-pciback/pci_stub.c &domain, &bus, &slot, &func, &parsed); domain 1469 drivers/xen/xen-pciback/pci_stub.c &domain, &bus, &slot, &parsed); domain 1475 drivers/xen/xen-pciback/pci_stub.c &domain, &bus, &parsed); domain 1480 drivers/xen/xen-pciback/pci_stub.c domain = 0; domain 1503 drivers/xen/xen-pciback/pci_stub.c err = pcistub_device_id_add(domain, bus, slot, func); domain 64 drivers/xen/xen-pciback/pciback.h int domain, int bus, domain 86 drivers/xen/xen-pciback/pciback.h unsigned int domain, unsigned int bus, domain 89 drivers/xen/xen-pciback/pciback.h unsigned int domain, unsigned int bus); domain 100 drivers/xen/xen-pciback/pciback.h unsigned int *domain, unsigned int *bus, domain 108 drivers/xen/xen-pciback/pciback.h unsigned int domain, unsigned int bus, domain 134 drivers/xen/xen-pciback/pciback.h xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, domain 138 drivers/xen/xen-pciback/pciback.h return xen_pcibk_backend->get(pdev, domain, bus, devfn); domain 150 drivers/xen/xen-pciback/pciback.h unsigned int *domain, domain 155 drivers/xen/xen-pciback/pciback.h return xen_pcibk_backend->find(pcidev, pdev, domain, bus, domain 341 drivers/xen/xen-pciback/pciback_ops.c dev = xen_pcibk_get_pci_dev(pdev, op->domain, op->bus, op->devfn); domain 31 drivers/xen/xen-pciback/vpci.c unsigned int domain, domain 39 drivers/xen/xen-pciback/vpci.c if (domain != 0 || bus != 0) domain 232 drivers/xen/xen-pciback/vpci.c unsigned int *domain, unsigned int *bus, domain 251 drivers/xen/xen-pciback/vpci.c *domain = 0; domain 203 drivers/xen/xen-pciback/xenbus.c unsigned int domain, unsigned int bus, domain 218 drivers/xen/xen-pciback/xenbus.c "%04x:%02x:%02x.%02x", domain, bus, domain 226 drivers/xen/xen-pciback/xenbus.c int domain, int bus, int slot, int func, domain 233 drivers/xen/xen-pciback/xenbus.c domain, bus, slot, func); domain 235 drivers/xen/xen-pciback/xenbus.c dev = pcistub_get_pci_dev_by_slot(pdev, domain, bus, slot, func); domain 242 drivers/xen/xen-pciback/xenbus.c domain, bus, slot, func); domain 273 drivers/xen/xen-pciback/xenbus.c int domain, int bus, int slot, int func) domain 279 drivers/xen/xen-pciback/xenbus.c domain, bus, slot, func); domain 281 drivers/xen/xen-pciback/xenbus.c dev = xen_pcibk_get_pci_dev(pdev, domain, bus, PCI_DEVFN(slot, func)); domain 286 drivers/xen/xen-pciback/xenbus.c domain, bus, slot, func); domain 302 drivers/xen/xen-pciback/xenbus.c unsigned int domain, unsigned int bus) domain 334 drivers/xen/xen-pciback/xenbus.c if (d == domain && b == bus) { domain 347 drivers/xen/xen-pciback/xenbus.c root_num, domain, bus); domain 350 drivers/xen/xen-pciback/xenbus.c "%04x:%02x", domain, bus); domain 365 drivers/xen/xen-pciback/xenbus.c int domain, bus, slot, func; domain 416 drivers/xen/xen-pciback/xenbus.c &domain, &bus, &slot, &func); domain 431 drivers/xen/xen-pciback/xenbus.c err = xen_pcibk_export_device(pdev, domain, bus, slot, domain 470 drivers/xen/xen-pciback/xenbus.c &domain, &bus, &slot, &func); domain 485 drivers/xen/xen-pciback/xenbus.c err = xen_pcibk_remove_device(pdev, domain, bus, slot, domain 561 drivers/xen/xen-pciback/xenbus.c int domain, bus, slot, func; domain 598 drivers/xen/xen-pciback/xenbus.c "%x:%x:%x.%x", &domain, &bus, &slot, &func); domain 612 drivers/xen/xen-pciback/xenbus.c err = xen_pcibk_export_device(pdev, domain, bus, slot, func, i); domain 503 fs/cifs/cifsencrypt.c wchar_t *domain; domain 554 fs/cifs/cifsencrypt.c domain = kmalloc(2 + (len * 2), GFP_KERNEL); domain 555 fs/cifs/cifsencrypt.c if (domain == NULL) { domain 559 fs/cifs/cifsencrypt.c len = cifs_strtoUTF16((__le16 *)domain, ses->domainName, len, domain 563 fs/cifs/cifsencrypt.c (char *)domain, 2 * len); domain 564 fs/cifs/cifsencrypt.c kfree(domain); domain 5591 fs/nfs/nfs4xdr.c memcpy(res->impl_id->domain, dummy_str, dummy); domain 780 fs/nfs/super.c impl_id->name, impl_id->domain, domain 185 fs/ocfs2/dlm/dlmapi.h struct dlm_ctxt * dlm_register_domain(const char *domain, u32 key, domain 702 fs/ocfs2/dlm/dlmcommon.h u8 domain[O2NM_MAX_NAME_LEN]; domain 711 fs/ocfs2/dlm/dlmcommon.h u8 domain[O2NM_MAX_NAME_LEN]; domain 719 fs/ocfs2/dlm/dlmcommon.h u8 domain[O2NM_MAX_NAME_LEN]; domain 246 fs/ocfs2/dlm/dlmdomain.c static struct dlm_ctxt * __dlm_lookup_domain_full(const char *domain, int len) domain 256 fs/ocfs2/dlm/dlmdomain.c memcmp(tmp->name, domain, len)==0) domain 264 fs/ocfs2/dlm/dlmdomain.c static struct dlm_ctxt * __dlm_lookup_domain(const char *domain) domain 268 fs/ocfs2/dlm/dlmdomain.c return __dlm_lookup_domain_full(domain, strlen(domain)); domain 275 fs/ocfs2/dlm/dlmdomain.c static int dlm_wait_on_domain_helper(const char *domain) domain 282 fs/ocfs2/dlm/dlmdomain.c tmp = __dlm_lookup_domain(domain); domain 805 fs/ocfs2/dlm/dlmdomain.c query->domain); domain 823 fs/ocfs2/dlm/dlmdomain.c dlm = __dlm_lookup_domain_full(query->domain, query->name_len); domain 920 fs/ocfs2/dlm/dlmdomain.c assert->domain); domain 923 fs/ocfs2/dlm/dlmdomain.c dlm = __dlm_lookup_domain_full(assert->domain, assert->name_len); domain 1332 fs/ocfs2/dlm/dlmdomain.c cancel->domain); domain 1335 fs/ocfs2/dlm/dlmdomain.c dlm = __dlm_lookup_domain_full(cancel->domain, cancel->name_len); domain 1361 fs/ocfs2/dlm/dlmdomain.c memcpy(cancel_msg.domain, dlm->name, cancel_msg.name_len); domain 1428 fs/ocfs2/dlm/dlmdomain.c memcpy(join_msg.domain, dlm->name, join_msg.name_len); domain 1513 fs/ocfs2/dlm/dlmdomain.c memcpy(assert_msg.domain, dlm->name, assert_msg.name_len); domain 1948 fs/ocfs2/dlm/dlmdomain.c static struct dlm_ctxt *dlm_alloc_ctxt(const char *domain, domain 1962 fs/ocfs2/dlm/dlmdomain.c dlm->name = kstrdup(domain, GFP_KERNEL); domain 2103 fs/ocfs2/dlm/dlmdomain.c struct dlm_ctxt * dlm_register_domain(const char *domain, domain 2111 fs/ocfs2/dlm/dlmdomain.c if (strlen(domain) >= O2NM_MAX_NAME_LEN) { domain 2117 fs/ocfs2/dlm/dlmdomain.c mlog(0, "register called for domain \"%s\"\n", domain); domain 2129 fs/ocfs2/dlm/dlmdomain.c dlm = __dlm_lookup_domain(domain); domain 2137 fs/ocfs2/dlm/dlmdomain.c domain)); domain 2146 fs/ocfs2/dlm/dlmdomain.c "\"%s\"\n", domain); domain 2164 fs/ocfs2/dlm/dlmdomain.c new_ctxt = dlm_alloc_ctxt(domain, key); domain 448 fs/ocfs2/dlmfs/dlmfs.c const struct qstr *domain = &dentry->d_name; domain 452 fs/ocfs2/dlmfs/dlmfs.c mlog(0, "mkdir %.*s\n", domain->len, domain->name); domain 455 fs/ocfs2/dlmfs/dlmfs.c if (domain->len >= GROUP_NAME_MAX) { domain 470 fs/ocfs2/dlmfs/dlmfs.c conn = user_dlm_register(domain); domain 474 fs/ocfs2/dlmfs/dlmfs.c status, domain->len, domain->name); domain 101 include/acpi/processor.h u64 domain; domain 142 include/acpi/processor.h u64 domain; domain 71 include/linux/aer.h void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, domain 42 include/linux/async.h struct async_domain *domain); domain 70 include/linux/async.h struct async_domain *domain) domain 72 include/linux/async.h return async_schedule_node_domain(func, data, NUMA_NO_NODE, domain); domain 110 include/linux/async.h struct async_domain *domain) domain 112 include/linux/async.h return async_schedule_node_domain(func, dev, dev_to_node(dev), domain); domain 115 include/linux/async.h void async_unregister_domain(struct async_domain *domain); domain 117 include/linux/async.h extern void async_synchronize_full_domain(struct async_domain *domain); domain 120 include/linux/async.h struct async_domain *domain); domain 221 include/linux/cs5535.h int domain); domain 17 include/linux/dma-iommu.h int iommu_get_dma_cookie(struct iommu_domain *domain); domain 18 include/linux/dma-iommu.h int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base); domain 19 include/linux/dma-iommu.h void iommu_put_dma_cookie(struct iommu_domain *domain); domain 52 include/linux/dma-iommu.h static inline int iommu_get_dma_cookie(struct iommu_domain *domain) domain 57 include/linux/dma-iommu.h static inline int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base) domain 62 include/linux/dma-iommu.h static inline void iommu_put_dma_cookie(struct iommu_domain *domain) domain 42 include/linux/gpio/driver.h struct irq_domain *domain; domain 575 include/linux/gpio/driver.h int gpiochip_irq_domain_activate(struct irq_domain *domain, domain 577 include/linux/gpio/driver.h void gpiochip_irq_domain_deactivate(struct irq_domain *domain, domain 517 include/linux/intel-iommu.h struct iommu_domain domain; /* generic domain data structure for domain 582 include/linux/intel-iommu.h struct dmar_domain *domain; /* pointer to domain */ domain 656 include/linux/intel-iommu.h struct intel_iommu *domain_get_iommu(struct dmar_domain *domain); domain 72 include/linux/intel_rapl.h struct rapl_domain *domain; domain 256 include/linux/iommu.h int (*attach_dev)(struct iommu_domain *domain, struct device *dev); domain 257 include/linux/iommu.h void (*detach_dev)(struct iommu_domain *domain, struct device *dev); domain 258 include/linux/iommu.h int (*map)(struct iommu_domain *domain, unsigned long iova, domain 260 include/linux/iommu.h size_t (*unmap)(struct iommu_domain *domain, unsigned long iova, domain 262 include/linux/iommu.h void (*flush_iotlb_all)(struct iommu_domain *domain); domain 263 include/linux/iommu.h void (*iotlb_sync_map)(struct iommu_domain *domain); domain 264 include/linux/iommu.h void (*iotlb_sync)(struct iommu_domain *domain, domain 266 include/linux/iommu.h phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova); domain 270 include/linux/iommu.h int (*domain_get_attr)(struct iommu_domain *domain, domain 272 include/linux/iommu.h int (*domain_set_attr)(struct iommu_domain *domain, domain 279 include/linux/iommu.h struct iommu_domain *domain, domain 283 include/linux/iommu.h int (*domain_window_enable)(struct iommu_domain *domain, u32 wnd_nr, domain 285 include/linux/iommu.h void (*domain_window_disable)(struct iommu_domain *domain, u32 wnd_nr); domain 288 include/linux/iommu.h bool (*is_attach_deferred)(struct iommu_domain *domain, struct device *dev); domain 297 include/linux/iommu.h int (*aux_attach_dev)(struct iommu_domain *domain, struct device *dev); domain 298 include/linux/iommu.h void (*aux_detach_dev)(struct iommu_domain *domain, struct device *dev); domain 299 include/linux/iommu.h int (*aux_get_pasid)(struct iommu_domain *domain, struct device *dev); domain 415 include/linux/iommu.h extern void iommu_domain_free(struct iommu_domain *domain); domain 416 include/linux/iommu.h extern int iommu_attach_device(struct iommu_domain *domain, domain 418 include/linux/iommu.h extern void iommu_detach_device(struct iommu_domain *domain, domain 422 include/linux/iommu.h extern int iommu_map(struct iommu_domain *domain, unsigned long iova, domain 424 include/linux/iommu.h extern size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova, domain 426 include/linux/iommu.h extern size_t iommu_unmap_fast(struct iommu_domain *domain, domain 429 include/linux/iommu.h extern size_t iommu_map_sg(struct iommu_domain *domain, unsigned long iova, domain 431 include/linux/iommu.h extern phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova); domain 432 include/linux/iommu.h extern void iommu_set_fault_handler(struct iommu_domain *domain, domain 448 include/linux/iommu.h extern int iommu_attach_group(struct iommu_domain *domain, domain 450 include/linux/iommu.h extern void iommu_detach_group(struct iommu_domain *domain, domain 485 include/linux/iommu.h extern int iommu_domain_get_attr(struct iommu_domain *domain, enum iommu_attr, domain 487 include/linux/iommu.h extern int iommu_domain_set_attr(struct iommu_domain *domain, enum iommu_attr, domain 491 include/linux/iommu.h extern int iommu_domain_window_enable(struct iommu_domain *domain, u32 wnd_nr, domain 494 include/linux/iommu.h extern void iommu_domain_window_disable(struct iommu_domain *domain, u32 wnd_nr); domain 496 include/linux/iommu.h extern int report_iommu_fault(struct iommu_domain *domain, struct device *dev, domain 499 include/linux/iommu.h static inline void iommu_flush_tlb_all(struct iommu_domain *domain) domain 501 include/linux/iommu.h if (domain->ops->flush_iotlb_all) domain 502 include/linux/iommu.h domain->ops->flush_iotlb_all(domain); domain 505 include/linux/iommu.h static inline void iommu_tlb_sync(struct iommu_domain *domain, domain 508 include/linux/iommu.h if (domain->ops->iotlb_sync) domain 509 include/linux/iommu.h domain->ops->iotlb_sync(domain, iotlb_gather); domain 514 include/linux/iommu.h static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, domain 528 include/linux/iommu.h iommu_tlb_sync(domain, gather); domain 598 include/linux/iommu.h int iommu_aux_attach_device(struct iommu_domain *domain, struct device *dev); domain 599 include/linux/iommu.h void iommu_aux_detach_device(struct iommu_domain *domain, struct device *dev); domain 600 include/linux/iommu.h int iommu_aux_get_pasid(struct iommu_domain *domain, struct device *dev); domain 639 include/linux/iommu.h static inline void iommu_domain_free(struct iommu_domain *domain) domain 643 include/linux/iommu.h static inline int iommu_attach_device(struct iommu_domain *domain, domain 649 include/linux/iommu.h static inline void iommu_detach_device(struct iommu_domain *domain, domain 659 include/linux/iommu.h static inline int iommu_map(struct iommu_domain *domain, unsigned long iova, domain 665 include/linux/iommu.h static inline size_t iommu_unmap(struct iommu_domain *domain, domain 671 include/linux/iommu.h static inline size_t iommu_unmap_fast(struct iommu_domain *domain, domain 678 include/linux/iommu.h static inline size_t iommu_map_sg(struct iommu_domain *domain, domain 685 include/linux/iommu.h static inline void iommu_flush_tlb_all(struct iommu_domain *domain) domain 689 include/linux/iommu.h static inline void iommu_tlb_sync(struct iommu_domain *domain, domain 694 include/linux/iommu.h static inline int iommu_domain_window_enable(struct iommu_domain *domain, domain 701 include/linux/iommu.h static inline void iommu_domain_window_disable(struct iommu_domain *domain, domain 706 include/linux/iommu.h static inline phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, dma_addr_t iova) domain 711 include/linux/iommu.h static inline void iommu_set_fault_handler(struct iommu_domain *domain, domain 755 include/linux/iommu.h static inline int iommu_attach_group(struct iommu_domain *domain, domain 761 include/linux/iommu.h static inline void iommu_detach_group(struct iommu_domain *domain, domain 856 include/linux/iommu.h static inline int iommu_domain_get_attr(struct iommu_domain *domain, domain 862 include/linux/iommu.h static inline int iommu_domain_set_attr(struct iommu_domain *domain, domain 892 include/linux/iommu.h static inline void iommu_iotlb_gather_add_page(struct iommu_domain *domain, domain 971 include/linux/iommu.h iommu_aux_attach_device(struct iommu_domain *domain, struct device *dev) domain 977 include/linux/iommu.h iommu_aux_detach_device(struct iommu_domain *domain, struct device *dev) domain 982 include/linux/iommu.h iommu_aux_get_pasid(struct iommu_domain *domain, struct device *dev) domain 41 include/linux/iova.h typedef void (* iova_flush_cb)(struct iova_domain *domain); domain 179 include/linux/irq.h struct irq_domain *domain; domain 1025 include/linux/irq.h struct irq_domain *domain; domain 623 include/linux/irqchip/arm-gic-v3.h struct irq_domain *domain); domain 21 include/linux/irqchip/arm-gic-v4.h struct irq_domain *domain; domain 102 include/linux/irqchip/arm-gic-v4.h int its_init_v4(struct irq_domain *domain, const struct irq_domain_ops *ops); domain 168 include/linux/irqdesc.h int __handle_domain_irq(struct irq_domain *domain, unsigned int hwirq, domain 171 include/linux/irqdesc.h static inline int handle_domain_irq(struct irq_domain *domain, domain 174 include/linux/irqdesc.h return __handle_domain_irq(domain, hwirq, true, regs); domain 178 include/linux/irqdesc.h int handle_domain_nmi(struct irq_domain *domain, unsigned int hwirq, domain 293 include/linux/irqdomain.h extern void irq_domain_update_bus_token(struct irq_domain *domain, domain 377 include/linux/irqdomain.h extern int irq_domain_associate(struct irq_domain *domain, unsigned int irq, domain 379 include/linux/irqdomain.h extern void irq_domain_associate_many(struct irq_domain *domain, domain 382 include/linux/irqdomain.h extern void irq_domain_disassociate(struct irq_domain *domain, domain 400 include/linux/irqdomain.h static inline unsigned int irq_linear_revmap(struct irq_domain *domain, domain 403 include/linux/irqdomain.h return hwirq < domain->revmap_size ? domain->linear_revmap[hwirq] : 0; domain 408 include/linux/irqdomain.h extern int irq_create_strict_mappings(struct irq_domain *domain, domain 437 include/linux/irqdomain.h int irq_reserve_ipi(struct irq_domain *domain, const struct cpumask *dest); domain 441 include/linux/irqdomain.h extern struct irq_data *irq_domain_get_irq_data(struct irq_domain *domain, domain 443 include/linux/irqdomain.h extern void irq_domain_set_info(struct irq_domain *domain, unsigned int virq, domain 465 include/linux/irqdomain.h extern int __irq_domain_alloc_irqs(struct irq_domain *domain, int irq_base, domain 473 include/linux/irqdomain.h static inline int irq_domain_alloc_irqs(struct irq_domain *domain, domain 476 include/linux/irqdomain.h return __irq_domain_alloc_irqs(domain, -1, nr_irqs, node, arg, false, domain 480 include/linux/irqdomain.h extern int irq_domain_alloc_irqs_hierarchy(struct irq_domain *domain, domain 483 include/linux/irqdomain.h extern int irq_domain_set_hwirq_and_chip(struct irq_domain *domain, domain 489 include/linux/irqdomain.h extern void irq_domain_free_irqs_common(struct irq_domain *domain, domain 492 include/linux/irqdomain.h extern void irq_domain_free_irqs_top(struct irq_domain *domain, domain 495 include/linux/irqdomain.h extern int irq_domain_push_irq(struct irq_domain *domain, int virq, void *arg); domain 496 include/linux/irqdomain.h extern int irq_domain_pop_irq(struct irq_domain *domain, int virq); domain 498 include/linux/irqdomain.h extern int irq_domain_alloc_irqs_parent(struct irq_domain *domain, domain 502 include/linux/irqdomain.h extern void irq_domain_free_irqs_parent(struct irq_domain *domain, domain 506 include/linux/irqdomain.h static inline bool irq_domain_is_hierarchy(struct irq_domain *domain) domain 508 include/linux/irqdomain.h return domain->flags & IRQ_DOMAIN_FLAG_HIERARCHY; domain 511 include/linux/irqdomain.h static inline bool irq_domain_is_ipi(struct irq_domain *domain) domain 513 include/linux/irqdomain.h return domain->flags & domain 517 include/linux/irqdomain.h static inline bool irq_domain_is_ipi_per_cpu(struct irq_domain *domain) domain 519 include/linux/irqdomain.h return domain->flags & IRQ_DOMAIN_FLAG_IPI_PER_CPU; domain 522 include/linux/irqdomain.h static inline bool irq_domain_is_ipi_single(struct irq_domain *domain) domain 524 include/linux/irqdomain.h return domain->flags & IRQ_DOMAIN_FLAG_IPI_SINGLE; domain 527 include/linux/irqdomain.h static inline bool irq_domain_is_msi(struct irq_domain *domain) domain 529 include/linux/irqdomain.h return domain->flags & IRQ_DOMAIN_FLAG_MSI; domain 532 include/linux/irqdomain.h static inline bool irq_domain_is_msi_remap(struct irq_domain *domain) domain 534 include/linux/irqdomain.h return domain->flags & IRQ_DOMAIN_FLAG_MSI_REMAP; domain 537 include/linux/irqdomain.h extern bool irq_domain_hierarchical_is_msi_remap(struct irq_domain *domain); domain 540 include/linux/irqdomain.h static inline int irq_domain_alloc_irqs(struct irq_domain *domain, domain 549 include/linux/irqdomain.h static inline bool irq_domain_is_hierarchy(struct irq_domain *domain) domain 554 include/linux/irqdomain.h static inline bool irq_domain_is_ipi(struct irq_domain *domain) domain 559 include/linux/irqdomain.h static inline bool irq_domain_is_ipi_per_cpu(struct irq_domain *domain) domain 564 include/linux/irqdomain.h static inline bool irq_domain_is_ipi_single(struct irq_domain *domain) domain 569 include/linux/irqdomain.h static inline bool irq_domain_is_msi(struct irq_domain *domain) domain 574 include/linux/irqdomain.h static inline bool irq_domain_is_msi_remap(struct irq_domain *domain) domain 580 include/linux/irqdomain.h irq_domain_hierarchical_is_msi_remap(struct irq_domain *domain) domain 353 include/linux/mfd/abx500/ab8500.h struct irq_domain *domain; domain 10 include/linux/mfd/imx25-tsadc.h struct irq_domain *domain; domain 128 include/linux/mfd/stmpe.h struct irq_domain *domain; domain 118 include/linux/mfd/tc3589x.h struct irq_domain *domain; domain 48 include/linux/moxtet.h struct irq_domain *domain; domain 255 include/linux/msi.h int (*msi_init)(struct irq_domain *domain, domain 259 include/linux/msi.h void (*msi_free)(struct irq_domain *domain, domain 262 include/linux/msi.h int (*msi_check)(struct irq_domain *domain, domain 265 include/linux/msi.h int (*msi_prepare)(struct irq_domain *domain, domain 271 include/linux/msi.h int (*handle_error)(struct irq_domain *domain, domain 330 include/linux/msi.h int msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, domain 332 include/linux/msi.h void msi_domain_free_irqs(struct irq_domain *domain, struct device *dev); domain 333 include/linux/msi.h struct msi_domain_info *msi_get_domain_info(struct irq_domain *domain); domain 343 include/linux/msi.h int msi_domain_prepare_irqs(struct irq_domain *domain, struct device *dev, domain 345 include/linux/msi.h int msi_domain_populate_irqs(struct irq_domain *domain, struct device *dev, domain 360 include/linux/msi.h int platform_msi_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 362 include/linux/msi.h void platform_msi_domain_free(struct irq_domain *domain, unsigned int virq, domain 364 include/linux/msi.h void *platform_msi_get_host_data(struct irq_domain *domain); domain 374 include/linux/msi.h int pci_msi_domain_check_cap(struct irq_domain *domain, domain 376 include/linux/msi.h u32 pci_msi_domain_get_msi_rid(struct irq_domain *domain, struct pci_dev *pdev); domain 1305 include/linux/nfs_xdr.h char domain[NFS4_OPAQUE_LIMIT + 1]; domain 19 include/linux/omap-iommu.h int omap_iommu_domain_deactivate(struct iommu_domain *domain); domain 20 include/linux/omap-iommu.h int omap_iommu_domain_activate(struct iommu_domain *domain); domain 25 include/linux/omap-iommu.h static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain) domain 30 include/linux/omap-iommu.h static inline int omap_iommu_domain_activate(struct iommu_domain *domain) domain 708 include/linux/pci.h int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, domain 710 include/linux/pci.h int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn, domain 984 include/linux/pci.h struct pci_bus *pci_find_bus(int domain, int busnr); domain 1057 include/linux/pci.h struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, domain 1733 include/linux/pci.h static inline struct pci_dev *pci_get_domain_bus_and_slot(int domain, domain 72 include/linux/pm_domain.h bool (*power_down_ok)(struct dev_pm_domain *domain); domain 96 include/linux/pm_domain.h struct dev_pm_domain domain; /* PM domain operations */ domain 113 include/linux/pm_domain.h int (*power_off)(struct generic_pm_domain *domain); domain 114 include/linux/pm_domain.h int (*power_on)(struct generic_pm_domain *domain); domain 125 include/linux/pm_domain.h int (*attach_dev)(struct generic_pm_domain *domain, domain 127 include/linux/pm_domain.h void (*detach_dev)(struct generic_pm_domain *domain, domain 150 include/linux/pm_domain.h return container_of(pd, struct generic_pm_domain, domain); domain 487 include/linux/remoteproc.h struct iommu_domain *domain; domain 98 include/linux/scmi_protocol.h int (*limits_set)(const struct scmi_handle *handle, u32 domain, domain 100 include/linux/scmi_protocol.h int (*limits_get)(const struct scmi_handle *handle, u32 domain, domain 102 include/linux/scmi_protocol.h int (*level_set)(const struct scmi_handle *handle, u32 domain, domain 104 include/linux/scmi_protocol.h int (*level_get)(const struct scmi_handle *handle, u32 domain, domain 111 include/linux/scmi_protocol.h int (*freq_set)(const struct scmi_handle *handle, u32 domain, domain 113 include/linux/scmi_protocol.h int (*freq_get)(const struct scmi_handle *handle, u32 domain, domain 115 include/linux/scmi_protocol.h int (*est_power_get)(const struct scmi_handle *handle, u32 domain, domain 130 include/linux/scmi_protocol.h char *(*name_get)(const struct scmi_handle *handle, u32 domain); domain 138 include/linux/scmi_protocol.h int (*state_set)(const struct scmi_handle *handle, u32 domain, domain 140 include/linux/scmi_protocol.h int (*state_get)(const struct scmi_handle *handle, u32 domain, domain 203 include/linux/scmi_protocol.h char *(*name_get)(const struct scmi_handle *handle, u32 domain); domain 204 include/linux/scmi_protocol.h int (*latency_get)(const struct scmi_handle *handle, u32 domain); domain 205 include/linux/scmi_protocol.h int (*reset)(const struct scmi_handle *handle, u32 domain); domain 206 include/linux/scmi_protocol.h int (*assert)(const struct scmi_handle *handle, u32 domain); domain 207 include/linux/scmi_protocol.h int (*deassert)(const struct scmi_handle *handle, u32 domain); domain 174 include/linux/vga_switcheroo.h int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain); domain 195 include/linux/vga_switcheroo.h static inline int vga_switcheroo_init_domain_pm_ops(struct device *dev, struct dev_pm_domain *domain) { return -EINVAL; } domain 155 include/net/cipso_ipv4.h const char *domain) domain 161 include/net/cipso_ipv4.h const char *domain) domain 197 include/net/netlabel.h char *domain; domain 364 include/net/netlabel.h kfree(secattr->domain); domain 403 include/net/netlabel.h int netlbl_cfg_map_del(const char *domain, domain 408 include/net/netlabel.h int netlbl_cfg_unlbl_map_add(const char *domain, domain 430 include/net/netlabel.h const char *domain, domain 438 include/net/netlabel.h const char *domain, domain 505 include/net/netlabel.h static inline int netlbl_cfg_map_del(const char *domain, domain 513 include/net/netlabel.h static inline int netlbl_cfg_unlbl_map_add(const char *domain, domain 551 include/net/netlabel.h const char *domain, domain 569 include/net/netlabel.h const char *domain, domain 2433 include/rdma/ib_verbs.h int domain, struct ib_udata *udata); domain 16 include/trace/events/kyber.h TP_PROTO(struct request_queue *q, const char *domain, const char *type, domain 20 include/trace/events/kyber.h TP_ARGS(q, domain, type, percentile, numerator, denominator, samples), domain 24 include/trace/events/kyber.h __array( char, domain, DOMAIN_LEN ) domain 34 include/trace/events/kyber.h strlcpy(__entry->domain, domain, sizeof(__entry->domain)); domain 43 include/trace/events/kyber.h MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain, domain 50 include/trace/events/kyber.h TP_PROTO(struct request_queue *q, const char *domain, domain 53 include/trace/events/kyber.h TP_ARGS(q, domain, depth), domain 57 include/trace/events/kyber.h __array( char, domain, DOMAIN_LEN ) domain 63 include/trace/events/kyber.h strlcpy(__entry->domain, domain, sizeof(__entry->domain)); domain 68 include/trace/events/kyber.h MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain, domain 74 include/trace/events/kyber.h TP_PROTO(struct request_queue *q, const char *domain), domain 76 include/trace/events/kyber.h TP_ARGS(q, domain), domain 80 include/trace/events/kyber.h __array( char, domain, DOMAIN_LEN ) domain 85 include/trace/events/kyber.h strlcpy(__entry->domain, domain, sizeof(__entry->domain)); domain 89 include/trace/events/kyber.h __entry->domain) domain 403 include/uapi/drm/amdgpu_drm.h __u32 domain; domain 171 include/uapi/drm/etnaviv_drm.h __u8 domain; /* in, pm domain */ domain 258 include/uapi/drm/etnaviv_drm.h __u8 domain; /* in, pm domain index */ domain 51 include/uapi/drm/nouveau_drm.h __u32 domain; domain 68 include/uapi/drm/nouveau_drm.h __u32 domain; domain 889 include/uapi/drm/radeon_drm.h __u32 domain; domain 16 include/uapi/linux/cciss_ioctl.h unsigned short domain; domain 166 include/uapi/linux/tipc.h __u32 domain; domain 71 include/uapi/linux/virtio_iommu.h __le32 domain; domain 79 include/uapi/linux/virtio_iommu.h __le32 domain; domain 95 include/uapi/linux/virtio_iommu.h __le32 domain; domain 105 include/uapi/linux/virtio_iommu.h __le32 domain; domain 77 include/xen/interface/io/pciif.h uint32_t domain; /* PCI Domain/Segment */ domain 101 include/xen/interface/io/pciif.h uint32_t domain; /* PCI Domain/Segment*/ domain 43 include/xen/interface/io/pvcalls.h uint32_t domain; domain 354 include/xen/interface/platform.h uint32_t domain; /* domain number of one dependent group */ domain 407 include/xen/interface/platform.h uint64_t domain; domain 74 kernel/async.c struct async_domain *domain; domain 81 kernel/async.c static async_cookie_t lowest_in_progress(struct async_domain *domain) domain 89 kernel/async.c if (domain) { domain 90 kernel/async.c if (!list_empty(&domain->pending)) domain 91 kernel/async.c first = list_first_entry(&domain->pending, domain 166 kernel/async.c int node, struct async_domain *domain) domain 194 kernel/async.c entry->domain = domain; domain 201 kernel/async.c list_add_tail(&entry->domain_list, &domain->pending); domain 202 kernel/async.c if (domain->registered) domain 257 kernel/async.c void async_unregister_domain(struct async_domain *domain) domain 260 kernel/async.c WARN_ON(!domain->registered || !list_empty(&domain->pending)); domain 261 kernel/async.c domain->registered = 0; domain 273 kernel/async.c void async_synchronize_full_domain(struct async_domain *domain) domain 275 kernel/async.c async_synchronize_cookie_domain(ASYNC_COOKIE_MAX, domain); domain 288 kernel/async.c void async_synchronize_cookie_domain(async_cookie_t cookie, struct async_domain *domain) domain 297 kernel/async.c wait_event(async_done, lowest_in_progress(domain) >= cookie); domain 81 kernel/irq/debugfs.c data->domain ? data->domain->name : ""); domain 84 kernel/irq/debugfs.c if (data->domain && data->domain->ops && data->domain->ops->debug_show) domain 85 kernel/irq/debugfs.c data->domain->ops->debug_show(m, NULL, data, ind + 1); domain 323 kernel/irq/generic-chip.c gc->domain = d; domain 563 kernel/irq/generic-chip.c if (!gc->domain) domain 573 kernel/irq/generic-chip.c virq = irq_find_mapping(gc->domain, gc->irq_base + __ffs(gc->installed)); domain 23 kernel/irq/ipi.c int irq_reserve_ipi(struct irq_domain *domain, domain 30 kernel/irq/ipi.c if (!domain ||!irq_domain_is_ipi(domain)) { domain 46 kernel/irq/ipi.c if (irq_domain_is_ipi_single(domain)) { domain 84 kernel/irq/ipi.c virq = __irq_domain_alloc_irqs(domain, virq, nr_irqs, NUMA_NO_NODE, domain 119 kernel/irq/ipi.c struct irq_domain *domain; domain 125 kernel/irq/ipi.c domain = data->domain; domain 126 kernel/irq/ipi.c if (WARN_ON(domain == NULL)) domain 129 kernel/irq/ipi.c if (!irq_domain_is_ipi(domain)) { domain 141 kernel/irq/ipi.c if (irq_domain_is_ipi_per_cpu(domain)) { domain 179 kernel/irq/ipi.c if (irq_domain_is_ipi_per_cpu(data->domain)) domain 241 kernel/irq/ipi.c if (irq_domain_is_ipi_per_cpu(data->domain) && domain 283 kernel/irq/ipi.c if (irq_domain_is_ipi_per_cpu(data->domain)) { domain 190 kernel/irq/irqdesc.c if (desc->irq_data.domain) domain 659 kernel/irq/irqdesc.c int __handle_domain_irq(struct irq_domain *domain, unsigned int hwirq, domain 670 kernel/irq/irqdesc.c irq = irq_find_mapping(domain, hwirq); domain 700 kernel/irq/irqdesc.c int handle_domain_nmi(struct irq_domain *domain, unsigned int hwirq, domain 712 kernel/irq/irqdesc.c irq = irq_find_mapping(domain, hwirq); domain 28 kernel/irq/irqdomain.c static void irq_domain_check_hierarchy(struct irq_domain *domain); domain 137 kernel/irq/irqdomain.c struct irq_domain *domain; domain 141 kernel/irq/irqdomain.c domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size), domain 143 kernel/irq/irqdomain.c if (!domain) domain 152 kernel/irq/irqdomain.c domain->fwnode = fwnode; domain 153 kernel/irq/irqdomain.c domain->name = kstrdup(fwid->name, GFP_KERNEL); domain 154 kernel/irq/irqdomain.c if (!domain->name) { domain 155 kernel/irq/irqdomain.c kfree(domain); domain 158 kernel/irq/irqdomain.c domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; domain 161 kernel/irq/irqdomain.c domain->fwnode = fwnode; domain 162 kernel/irq/irqdomain.c domain->name = fwid->name; domain 174 kernel/irq/irqdomain.c domain->name = buf.pointer; domain 175 kernel/irq/irqdomain.c domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; domain 178 kernel/irq/irqdomain.c domain->fwnode = fwnode; domain 190 kernel/irq/irqdomain.c kfree(domain); domain 196 kernel/irq/irqdomain.c domain->name = name; domain 197 kernel/irq/irqdomain.c domain->fwnode = fwnode; domain 198 kernel/irq/irqdomain.c domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; domain 201 kernel/irq/irqdomain.c if (!domain->name) { domain 204 kernel/irq/irqdomain.c domain->name = kasprintf(GFP_KERNEL, "unknown-%d", domain 206 kernel/irq/irqdomain.c if (!domain->name) { domain 207 kernel/irq/irqdomain.c kfree(domain); domain 210 kernel/irq/irqdomain.c domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; domain 216 kernel/irq/irqdomain.c INIT_RADIX_TREE(&domain->revmap_tree, GFP_KERNEL); domain 217 kernel/irq/irqdomain.c mutex_init(&domain->revmap_tree_mutex); domain 218 kernel/irq/irqdomain.c domain->ops = ops; domain 219 kernel/irq/irqdomain.c domain->host_data = host_data; domain 220 kernel/irq/irqdomain.c domain->hwirq_max = hwirq_max; domain 221 kernel/irq/irqdomain.c domain->revmap_size = size; domain 222 kernel/irq/irqdomain.c domain->revmap_direct_max_irq = direct_max; domain 223 kernel/irq/irqdomain.c irq_domain_check_hierarchy(domain); domain 226 kernel/irq/irqdomain.c debugfs_add_domain_dir(domain); domain 227 kernel/irq/irqdomain.c list_add(&domain->link, &irq_domain_list); domain 230 kernel/irq/irqdomain.c pr_debug("Added domain %s\n", domain->name); domain 231 kernel/irq/irqdomain.c return domain; domain 243 kernel/irq/irqdomain.c void irq_domain_remove(struct irq_domain *domain) domain 246 kernel/irq/irqdomain.c debugfs_remove_domain_dir(domain); domain 248 kernel/irq/irqdomain.c WARN_ON(!radix_tree_empty(&domain->revmap_tree)); domain 250 kernel/irq/irqdomain.c list_del(&domain->link); domain 255 kernel/irq/irqdomain.c if (unlikely(irq_default_domain == domain)) domain 260 kernel/irq/irqdomain.c pr_debug("Removed domain %s\n", domain->name); domain 262 kernel/irq/irqdomain.c of_node_put(irq_domain_get_of_node(domain)); domain 263 kernel/irq/irqdomain.c if (domain->flags & IRQ_DOMAIN_NAME_ALLOCATED) domain 264 kernel/irq/irqdomain.c kfree(domain->name); domain 265 kernel/irq/irqdomain.c kfree(domain); domain 269 kernel/irq/irqdomain.c void irq_domain_update_bus_token(struct irq_domain *domain, domain 274 kernel/irq/irqdomain.c if (domain->bus_token == bus_token) domain 279 kernel/irq/irqdomain.c domain->bus_token = bus_token; domain 281 kernel/irq/irqdomain.c name = kasprintf(GFP_KERNEL, "%s-%d", domain->name, bus_token); domain 287 kernel/irq/irqdomain.c debugfs_remove_domain_dir(domain); domain 289 kernel/irq/irqdomain.c if (domain->flags & IRQ_DOMAIN_NAME_ALLOCATED) domain 290 kernel/irq/irqdomain.c kfree(domain->name); domain 292 kernel/irq/irqdomain.c domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; domain 294 kernel/irq/irqdomain.c domain->name = name; domain 295 kernel/irq/irqdomain.c debugfs_add_domain_dir(domain); domain 324 kernel/irq/irqdomain.c struct irq_domain *domain; domain 326 kernel/irq/irqdomain.c domain = __irq_domain_add(of_node_to_fwnode(of_node), size, size, 0, ops, host_data); domain 327 kernel/irq/irqdomain.c if (!domain) domain 339 kernel/irq/irqdomain.c irq_domain_associate_many(domain, first_irq, 0, size); domain 342 kernel/irq/irqdomain.c return domain; domain 368 kernel/irq/irqdomain.c struct irq_domain *domain; domain 370 kernel/irq/irqdomain.c domain = __irq_domain_add(of_node_to_fwnode(of_node), first_hwirq + size, domain 372 kernel/irq/irqdomain.c if (domain) domain 373 kernel/irq/irqdomain.c irq_domain_associate_many(domain, first_irq, first_hwirq, size); domain 375 kernel/irq/irqdomain.c return domain; domain 455 kernel/irq/irqdomain.c void irq_set_default_host(struct irq_domain *domain) domain 457 kernel/irq/irqdomain.c pr_debug("Default domain set to @0x%p\n", domain); domain 459 kernel/irq/irqdomain.c irq_default_domain = domain; domain 477 kernel/irq/irqdomain.c static void irq_domain_clear_mapping(struct irq_domain *domain, domain 480 kernel/irq/irqdomain.c if (hwirq < domain->revmap_size) { domain 481 kernel/irq/irqdomain.c domain->linear_revmap[hwirq] = 0; domain 483 kernel/irq/irqdomain.c mutex_lock(&domain->revmap_tree_mutex); domain 484 kernel/irq/irqdomain.c radix_tree_delete(&domain->revmap_tree, hwirq); domain 485 kernel/irq/irqdomain.c mutex_unlock(&domain->revmap_tree_mutex); domain 489 kernel/irq/irqdomain.c static void irq_domain_set_mapping(struct irq_domain *domain, domain 493 kernel/irq/irqdomain.c if (hwirq < domain->revmap_size) { domain 494 kernel/irq/irqdomain.c domain->linear_revmap[hwirq] = irq_data->irq; domain 496 kernel/irq/irqdomain.c mutex_lock(&domain->revmap_tree_mutex); domain 497 kernel/irq/irqdomain.c radix_tree_insert(&domain->revmap_tree, hwirq, irq_data); domain 498 kernel/irq/irqdomain.c mutex_unlock(&domain->revmap_tree_mutex); domain 502 kernel/irq/irqdomain.c void irq_domain_disassociate(struct irq_domain *domain, unsigned int irq) domain 507 kernel/irq/irqdomain.c if (WARN(!irq_data || irq_data->domain != domain, domain 521 kernel/irq/irqdomain.c if (domain->ops->unmap) domain 522 kernel/irq/irqdomain.c domain->ops->unmap(domain, irq); domain 525 kernel/irq/irqdomain.c irq_data->domain = NULL; domain 527 kernel/irq/irqdomain.c domain->mapcount--; domain 530 kernel/irq/irqdomain.c irq_domain_clear_mapping(domain, hwirq); domain 533 kernel/irq/irqdomain.c int irq_domain_associate(struct irq_domain *domain, unsigned int virq, domain 539 kernel/irq/irqdomain.c if (WARN(hwirq >= domain->hwirq_max, domain 540 kernel/irq/irqdomain.c "error: hwirq 0x%x is too large for %s\n", (int)hwirq, domain->name)) domain 544 kernel/irq/irqdomain.c if (WARN(irq_data->domain, "error: virq%i is already associated", virq)) domain 549 kernel/irq/irqdomain.c irq_data->domain = domain; domain 550 kernel/irq/irqdomain.c if (domain->ops->map) { domain 551 kernel/irq/irqdomain.c ret = domain->ops->map(domain, virq, hwirq); domain 560 kernel/irq/irqdomain.c domain->name, hwirq, virq, ret); domain 562 kernel/irq/irqdomain.c irq_data->domain = NULL; domain 569 kernel/irq/irqdomain.c if (!domain->name && irq_data->chip) domain 570 kernel/irq/irqdomain.c domain->name = irq_data->chip->name; domain 573 kernel/irq/irqdomain.c domain->mapcount++; domain 574 kernel/irq/irqdomain.c irq_domain_set_mapping(domain, hwirq, irq_data); domain 583 kernel/irq/irqdomain.c void irq_domain_associate_many(struct irq_domain *domain, unsigned int irq_base, domain 589 kernel/irq/irqdomain.c of_node = irq_domain_get_of_node(domain); domain 594 kernel/irq/irqdomain.c irq_domain_associate(domain, irq_base + i, hwirq_base + i); domain 609 kernel/irq/irqdomain.c unsigned int irq_create_direct_mapping(struct irq_domain *domain) domain 614 kernel/irq/irqdomain.c if (domain == NULL) domain 615 kernel/irq/irqdomain.c domain = irq_default_domain; domain 617 kernel/irq/irqdomain.c of_node = irq_domain_get_of_node(domain); domain 623 kernel/irq/irqdomain.c if (virq >= domain->revmap_direct_max_irq) { domain 625 kernel/irq/irqdomain.c domain->revmap_direct_max_irq); domain 631 kernel/irq/irqdomain.c if (irq_domain_associate(domain, virq, virq)) { domain 650 kernel/irq/irqdomain.c unsigned int irq_create_mapping(struct irq_domain *domain, domain 656 kernel/irq/irqdomain.c pr_debug("irq_create_mapping(0x%p, 0x%lx)\n", domain, hwirq); domain 659 kernel/irq/irqdomain.c if (domain == NULL) domain 660 kernel/irq/irqdomain.c domain = irq_default_domain; domain 661 kernel/irq/irqdomain.c if (domain == NULL) { domain 665 kernel/irq/irqdomain.c pr_debug("-> using domain @%p\n", domain); domain 667 kernel/irq/irqdomain.c of_node = irq_domain_get_of_node(domain); domain 670 kernel/irq/irqdomain.c virq = irq_find_mapping(domain, hwirq); domain 683 kernel/irq/irqdomain.c if (irq_domain_associate(domain, virq, hwirq)) { domain 713 kernel/irq/irqdomain.c int irq_create_strict_mappings(struct irq_domain *domain, unsigned int irq_base, domain 719 kernel/irq/irqdomain.c of_node = irq_domain_get_of_node(domain); domain 725 kernel/irq/irqdomain.c irq_domain_associate_many(domain, irq_base, hwirq_base, count); domain 763 kernel/irq/irqdomain.c struct irq_domain *domain; domain 770 kernel/irq/irqdomain.c domain = irq_find_matching_fwspec(fwspec, DOMAIN_BUS_WIRED); domain 771 kernel/irq/irqdomain.c if (!domain) domain 772 kernel/irq/irqdomain.c domain = irq_find_matching_fwspec(fwspec, DOMAIN_BUS_ANY); domain 774 kernel/irq/irqdomain.c domain = irq_default_domain; domain 777 kernel/irq/irqdomain.c if (!domain) { domain 783 kernel/irq/irqdomain.c if (irq_domain_translate(domain, fwspec, &hwirq, &type)) domain 797 kernel/irq/irqdomain.c virq = irq_find_mapping(domain, hwirq); domain 825 kernel/irq/irqdomain.c if (irq_domain_is_hierarchy(domain)) { domain 826 kernel/irq/irqdomain.c virq = irq_domain_alloc_irqs(domain, 1, NUMA_NO_NODE, fwspec); domain 831 kernel/irq/irqdomain.c virq = irq_create_mapping(domain, hwirq); domain 838 kernel/irq/irqdomain.c if (irq_domain_is_hierarchy(domain)) domain 870 kernel/irq/irqdomain.c struct irq_domain *domain; domain 875 kernel/irq/irqdomain.c domain = irq_data->domain; domain 876 kernel/irq/irqdomain.c if (WARN_ON(domain == NULL)) domain 879 kernel/irq/irqdomain.c if (irq_domain_is_hierarchy(domain)) { domain 882 kernel/irq/irqdomain.c irq_domain_disassociate(domain, virq); domain 893 kernel/irq/irqdomain.c unsigned int irq_find_mapping(struct irq_domain *domain, domain 899 kernel/irq/irqdomain.c if (domain == NULL) domain 900 kernel/irq/irqdomain.c domain = irq_default_domain; domain 901 kernel/irq/irqdomain.c if (domain == NULL) domain 904 kernel/irq/irqdomain.c if (hwirq < domain->revmap_direct_max_irq) { domain 905 kernel/irq/irqdomain.c data = irq_domain_get_irq_data(domain, hwirq); domain 911 kernel/irq/irqdomain.c if (hwirq < domain->revmap_size) domain 912 kernel/irq/irqdomain.c return domain->linear_revmap[hwirq]; domain 915 kernel/irq/irqdomain.c data = radix_tree_lookup(&domain->revmap_tree, hwirq); domain 1056 kernel/irq/irqdomain.c struct irq_domain *domain; domain 1059 kernel/irq/irqdomain.c domain = irq_domain_create_linear(fwnode, size, ops, host_data); domain 1061 kernel/irq/irqdomain.c domain = irq_domain_create_tree(fwnode, ops, host_data); domain 1062 kernel/irq/irqdomain.c if (domain) { domain 1063 kernel/irq/irqdomain.c domain->parent = parent; domain 1064 kernel/irq/irqdomain.c domain->flags |= flags; domain 1067 kernel/irq/irqdomain.c return domain; domain 1076 kernel/irq/irqdomain.c struct irq_domain *domain = data->domain; domain 1078 kernel/irq/irqdomain.c domain->mapcount++; domain 1079 kernel/irq/irqdomain.c irq_domain_set_mapping(domain, data->hwirq, data); domain 1082 kernel/irq/irqdomain.c if (!domain->name && data->chip) domain 1083 kernel/irq/irqdomain.c domain->name = data->chip->name; domain 1099 kernel/irq/irqdomain.c struct irq_domain *domain = data->domain; domain 1102 kernel/irq/irqdomain.c domain->mapcount--; domain 1103 kernel/irq/irqdomain.c irq_domain_clear_mapping(domain, hwirq); domain 1107 kernel/irq/irqdomain.c static struct irq_data *irq_domain_insert_irq_data(struct irq_domain *domain, domain 1118 kernel/irq/irqdomain.c irq_data->domain = domain; domain 1133 kernel/irq/irqdomain.c irq_data->domain = NULL; domain 1143 kernel/irq/irqdomain.c static int irq_domain_alloc_irq_data(struct irq_domain *domain, domain 1153 kernel/irq/irqdomain.c irq_data->domain = domain; domain 1155 kernel/irq/irqdomain.c for (parent = domain->parent; parent; parent = parent->parent) { domain 1172 kernel/irq/irqdomain.c struct irq_data *irq_domain_get_irq_data(struct irq_domain *domain, domain 1179 kernel/irq/irqdomain.c if (irq_data->domain == domain) domain 1194 kernel/irq/irqdomain.c int irq_domain_set_hwirq_and_chip(struct irq_domain *domain, unsigned int virq, domain 1198 kernel/irq/irqdomain.c struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); domain 1222 kernel/irq/irqdomain.c void irq_domain_set_info(struct irq_domain *domain, unsigned int virq, domain 1227 kernel/irq/irqdomain.c irq_domain_set_hwirq_and_chip(domain, virq, hwirq, chip, chip_data); domain 1251 kernel/irq/irqdomain.c void irq_domain_free_irqs_common(struct irq_domain *domain, unsigned int virq, domain 1258 kernel/irq/irqdomain.c irq_data = irq_domain_get_irq_data(domain, virq + i); domain 1262 kernel/irq/irqdomain.c irq_domain_free_irqs_parent(domain, virq, nr_irqs); domain 1272 kernel/irq/irqdomain.c void irq_domain_free_irqs_top(struct irq_domain *domain, unsigned int virq, domain 1281 kernel/irq/irqdomain.c irq_domain_free_irqs_common(domain, virq, nr_irqs); domain 1284 kernel/irq/irqdomain.c static void irq_domain_free_irqs_hierarchy(struct irq_domain *domain, domain 1288 kernel/irq/irqdomain.c if (domain->ops->free) domain 1289 kernel/irq/irqdomain.c domain->ops->free(domain, irq_base, nr_irqs); domain 1292 kernel/irq/irqdomain.c int irq_domain_alloc_irqs_hierarchy(struct irq_domain *domain, domain 1296 kernel/irq/irqdomain.c if (!domain->ops->alloc) { domain 1301 kernel/irq/irqdomain.c return domain->ops->alloc(domain, irq_base, nr_irqs, arg); domain 1326 kernel/irq/irqdomain.c int __irq_domain_alloc_irqs(struct irq_domain *domain, int irq_base, domain 1332 kernel/irq/irqdomain.c if (domain == NULL) { domain 1333 kernel/irq/irqdomain.c domain = irq_default_domain; domain 1334 kernel/irq/irqdomain.c if (WARN(!domain, "domain is NULL; cannot allocate IRQ\n")) domain 1350 kernel/irq/irqdomain.c if (irq_domain_alloc_irq_data(domain, virq, nr_irqs)) { domain 1357 kernel/irq/irqdomain.c ret = irq_domain_alloc_irqs_hierarchy(domain, virq, nr_irqs, arg); domain 1380 kernel/irq/irqdomain.c if (d->hwirq < d->domain->revmap_size) domain 1384 kernel/irq/irqdomain.c mutex_lock(&d->domain->revmap_tree_mutex); domain 1385 kernel/irq/irqdomain.c slot = radix_tree_lookup_slot(&d->domain->revmap_tree, d->hwirq); domain 1387 kernel/irq/irqdomain.c radix_tree_replace_slot(&d->domain->revmap_tree, slot, d); domain 1388 kernel/irq/irqdomain.c mutex_unlock(&d->domain->revmap_tree_mutex); domain 1402 kernel/irq/irqdomain.c int irq_domain_push_irq(struct irq_domain *domain, int virq, void *arg) domain 1424 kernel/irq/irqdomain.c if (domain == NULL) domain 1427 kernel/irq/irqdomain.c if (WARN_ON(!irq_domain_is_hierarchy(domain))) domain 1433 kernel/irq/irqdomain.c if (domain->parent != root_irq_data->domain) domain 1451 kernel/irq/irqdomain.c root_irq_data->domain = domain; domain 1458 kernel/irq/irqdomain.c rv = irq_domain_alloc_irqs_hierarchy(domain, virq, 1, arg); domain 1467 kernel/irq/irqdomain.c irq_domain_set_mapping(domain, root_irq_data->hwirq, root_irq_data); domain 1484 kernel/irq/irqdomain.c int irq_domain_pop_irq(struct irq_domain *domain, int virq) domain 1506 kernel/irq/irqdomain.c if (domain == NULL) domain 1512 kernel/irq/irqdomain.c tmp_irq_data = irq_domain_get_irq_data(domain, virq); domain 1518 kernel/irq/irqdomain.c if (WARN_ON(root_irq_data->domain != domain)) domain 1529 kernel/irq/irqdomain.c irq_domain_clear_mapping(domain, root_irq_data->hwirq); domain 1530 kernel/irq/irqdomain.c irq_domain_free_irqs_hierarchy(domain, virq, 1); domain 1555 kernel/irq/irqdomain.c if (WARN(!data || !data->domain || !data->domain->ops->free, domain 1562 kernel/irq/irqdomain.c irq_domain_free_irqs_hierarchy(data->domain, virq, nr_irqs); domain 1578 kernel/irq/irqdomain.c int irq_domain_alloc_irqs_parent(struct irq_domain *domain, domain 1582 kernel/irq/irqdomain.c if (!domain->parent) domain 1585 kernel/irq/irqdomain.c return irq_domain_alloc_irqs_hierarchy(domain->parent, irq_base, domain 1598 kernel/irq/irqdomain.c void irq_domain_free_irqs_parent(struct irq_domain *domain, domain 1601 kernel/irq/irqdomain.c if (!domain->parent) domain 1604 kernel/irq/irqdomain.c irq_domain_free_irqs_hierarchy(domain->parent, irq_base, nr_irqs); domain 1610 kernel/irq/irqdomain.c if (irq_data && irq_data->domain) { domain 1611 kernel/irq/irqdomain.c struct irq_domain *domain = irq_data->domain; domain 1613 kernel/irq/irqdomain.c if (domain->ops->deactivate) domain 1614 kernel/irq/irqdomain.c domain->ops->deactivate(domain, irq_data); domain 1624 kernel/irq/irqdomain.c if (irqd && irqd->domain) { domain 1625 kernel/irq/irqdomain.c struct irq_domain *domain = irqd->domain; domain 1630 kernel/irq/irqdomain.c if (!ret && domain->ops->activate) { domain 1631 kernel/irq/irqdomain.c ret = domain->ops->activate(domain, irqd, reserve); domain 1676 kernel/irq/irqdomain.c static void irq_domain_check_hierarchy(struct irq_domain *domain) domain 1679 kernel/irq/irqdomain.c if (domain->ops->alloc) domain 1680 kernel/irq/irqdomain.c domain->flags |= IRQ_DOMAIN_FLAG_HIERARCHY; domain 1688 kernel/irq/irqdomain.c bool irq_domain_hierarchical_is_msi_remap(struct irq_domain *domain) domain 1690 kernel/irq/irqdomain.c for (; domain; domain = domain->parent) { domain 1691 kernel/irq/irqdomain.c if (irq_domain_is_msi_remap(domain)) domain 1702 kernel/irq/irqdomain.c struct irq_data *irq_domain_get_irq_data(struct irq_domain *domain, domain 1707 kernel/irq/irqdomain.c return (irq_data && irq_data->domain == domain) ? irq_data : NULL; domain 1722 kernel/irq/irqdomain.c void irq_domain_set_info(struct irq_domain *domain, unsigned int virq, domain 1732 kernel/irq/irqdomain.c static void irq_domain_check_hierarchy(struct irq_domain *domain) domain 79 kernel/irq/msi.c static void msi_check_level(struct irq_domain *domain, struct msi_msg *msg) domain 81 kernel/irq/msi.c struct msi_domain_info *info = domain->host_data; domain 111 kernel/irq/msi.c msi_check_level(irq_data->domain, msg); domain 118 kernel/irq/msi.c static int msi_domain_activate(struct irq_domain *domain, domain 124 kernel/irq/msi.c msi_check_level(irq_data->domain, msg); domain 129 kernel/irq/msi.c static void msi_domain_deactivate(struct irq_domain *domain, domain 138 kernel/irq/msi.c static int msi_domain_alloc(struct irq_domain *domain, unsigned int virq, domain 141 kernel/irq/msi.c struct msi_domain_info *info = domain->host_data; domain 146 kernel/irq/msi.c if (irq_find_mapping(domain, hwirq) > 0) domain 149 kernel/irq/msi.c if (domain->parent) { domain 150 kernel/irq/msi.c ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); domain 156 kernel/irq/msi.c ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); domain 160 kernel/irq/msi.c ops->msi_free(domain, info, virq + i); domain 162 kernel/irq/msi.c irq_domain_free_irqs_top(domain, virq, nr_irqs); domain 170 kernel/irq/msi.c static void msi_domain_free(struct irq_domain *domain, unsigned int virq, domain 173 kernel/irq/msi.c struct msi_domain_info *info = domain->host_data; domain 178 kernel/irq/msi.c info->ops->msi_free(domain, info, virq + i); domain 180 kernel/irq/msi.c irq_domain_free_irqs_top(domain, virq, nr_irqs); domain 197 kernel/irq/msi.c static int msi_domain_ops_prepare(struct irq_domain *domain, struct device *dev, domain 215 kernel/irq/msi.c static int msi_domain_ops_init(struct irq_domain *domain, domain 220 kernel/irq/msi.c irq_domain_set_hwirq_and_chip(domain, virq, hwirq, info->chip, domain 230 kernel/irq/msi.c static int msi_domain_ops_check(struct irq_domain *domain, domain 285 kernel/irq/msi.c struct irq_domain *domain; domain 292 kernel/irq/msi.c domain = irq_domain_create_hierarchy(parent, IRQ_DOMAIN_FLAG_MSI, 0, domain 295 kernel/irq/msi.c if (domain && !domain->name && info->chip) domain 296 kernel/irq/msi.c domain->name = info->chip->name; domain 298 kernel/irq/msi.c return domain; domain 301 kernel/irq/msi.c int msi_domain_prepare_irqs(struct irq_domain *domain, struct device *dev, domain 304 kernel/irq/msi.c struct msi_domain_info *info = domain->host_data; domain 308 kernel/irq/msi.c ret = ops->msi_check(domain, info, dev); domain 310 kernel/irq/msi.c ret = ops->msi_prepare(domain, dev, nvec, arg); domain 315 kernel/irq/msi.c int msi_domain_populate_irqs(struct irq_domain *domain, struct device *dev, domain 318 kernel/irq/msi.c struct msi_domain_info *info = domain->host_data; domain 335 kernel/irq/msi.c ret = irq_domain_alloc_irqs_hierarchy(domain, desc->irq, 1, domain 349 kernel/irq/msi.c irq_domain_free_irqs_common(domain, desc->irq, 1); domain 367 kernel/irq/msi.c static bool msi_check_reservation_mode(struct irq_domain *domain, domain 373 kernel/irq/msi.c if (domain->bus_token != DOMAIN_BUS_PCI_MSI) domain 399 kernel/irq/msi.c int msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, domain 402 kernel/irq/msi.c struct msi_domain_info *info = domain->host_data; domain 410 kernel/irq/msi.c ret = msi_domain_prepare_irqs(domain, dev, nvec, &arg); domain 417 kernel/irq/msi.c virq = __irq_domain_alloc_irqs(domain, -1, desc->nvec_used, domain 423 kernel/irq/msi.c ret = ops->handle_error(domain, desc, ret); domain 438 kernel/irq/msi.c can_reserve = msi_check_reservation_mode(domain, info, dev); domain 455 kernel/irq/msi.c irq_data = irq_domain_get_irq_data(domain, desc->irq); domain 458 kernel/irq/msi.c if (domain->flags & IRQ_DOMAIN_MSI_NOMASK_QUIRK) domain 472 kernel/irq/msi.c irq_data = irq_domain_get_irq_data(domain, desc->irq); domain 485 kernel/irq/msi.c irqd = irq_domain_get_irq_data(domain, desc->irq); domain 489 kernel/irq/msi.c msi_domain_free_irqs(domain, dev); domain 499 kernel/irq/msi.c void msi_domain_free_irqs(struct irq_domain *domain, struct device *dev) domain 523 kernel/irq/msi.c struct msi_domain_info *msi_get_domain_info(struct irq_domain *domain) domain 525 kernel/irq/msi.c return (struct msi_domain_info *)domain->host_data; domain 514 kernel/irq/proc.c if (desc->irq_data.domain) domain 89 net/netlabel/netlabel_domainhash.c kfree(ptr->domain); domain 136 net/netlabel/netlabel_domainhash.c static struct netlbl_dom_map *netlbl_domhsh_search(const char *domain, domain 143 net/netlabel/netlabel_domainhash.c if (domain != NULL) { domain 144 net/netlabel/netlabel_domainhash.c bkt = netlbl_domhsh_hash(domain); domain 149 net/netlabel/netlabel_domainhash.c strcmp(iter->domain, domain) == 0) domain 170 net/netlabel/netlabel_domainhash.c static struct netlbl_dom_map *netlbl_domhsh_search_def(const char *domain, domain 175 net/netlabel/netlabel_domainhash.c entry = netlbl_domhsh_search(domain, family); domain 220 net/netlabel/netlabel_domainhash.c entry->domain ? entry->domain : "(default)"); domain 425 net/netlabel/netlabel_domainhash.c if (entry->domain != NULL) domain 426 net/netlabel/netlabel_domainhash.c entry_old = netlbl_domhsh_search(entry->domain, entry->family); domain 428 net/netlabel/netlabel_domainhash.c entry_old = netlbl_domhsh_search_def(entry->domain, domain 433 net/netlabel/netlabel_domainhash.c if (entry->domain != NULL) { domain 434 net/netlabel/netlabel_domainhash.c u32 bkt = netlbl_domhsh_hash(entry->domain); domain 603 net/netlabel/netlabel_domainhash.c entry->domain ? entry->domain : "(default)", domain 659 net/netlabel/netlabel_domainhash.c int netlbl_domhsh_remove_af4(const char *domain, domain 674 net/netlabel/netlabel_domainhash.c if (domain) domain 675 net/netlabel/netlabel_domainhash.c entry_map = netlbl_domhsh_search(domain, AF_INET); domain 677 net/netlabel/netlabel_domainhash.c entry_map = netlbl_domhsh_search_def(domain, AF_INET); domain 728 net/netlabel/netlabel_domainhash.c int netlbl_domhsh_remove_af6(const char *domain, domain 741 net/netlabel/netlabel_domainhash.c if (domain) domain 742 net/netlabel/netlabel_domainhash.c entry_map = netlbl_domhsh_search(domain, AF_INET6); domain 744 net/netlabel/netlabel_domainhash.c entry_map = netlbl_domhsh_search_def(domain, AF_INET6); domain 793 net/netlabel/netlabel_domainhash.c int netlbl_domhsh_remove(const char *domain, u16 family, domain 802 net/netlabel/netlabel_domainhash.c if (domain) domain 803 net/netlabel/netlabel_domainhash.c entry = netlbl_domhsh_search(domain, AF_INET); domain 805 net/netlabel/netlabel_domainhash.c entry = netlbl_domhsh_search_def(domain, AF_INET); domain 813 net/netlabel/netlabel_domainhash.c if (domain) domain 814 net/netlabel/netlabel_domainhash.c entry = netlbl_domhsh_search(domain, AF_INET6); domain 816 net/netlabel/netlabel_domainhash.c entry = netlbl_domhsh_search_def(domain, AF_INET6); domain 856 net/netlabel/netlabel_domainhash.c struct netlbl_dom_map *netlbl_domhsh_getentry(const char *domain, u16 family) domain 860 net/netlabel/netlabel_domainhash.c return netlbl_domhsh_search_def(domain, family); domain 874 net/netlabel/netlabel_domainhash.c struct netlbl_dommap_def *netlbl_domhsh_getentry_af4(const char *domain, domain 880 net/netlabel/netlabel_domainhash.c dom_iter = netlbl_domhsh_search_def(domain, AF_INET); domain 904 net/netlabel/netlabel_domainhash.c struct netlbl_dommap_def *netlbl_domhsh_getentry_af6(const char *domain, domain 910 net/netlabel/netlabel_domainhash.c dom_iter = netlbl_domhsh_search_def(domain, AF_INET6); domain 59 net/netlabel/netlabel_domainhash.h char *domain; domain 78 net/netlabel/netlabel_domainhash.h int netlbl_domhsh_remove_af4(const char *domain, domain 82 net/netlabel/netlabel_domainhash.h int netlbl_domhsh_remove_af6(const char *domain, domain 86 net/netlabel/netlabel_domainhash.h int netlbl_domhsh_remove(const char *domain, u16 family, domain 89 net/netlabel/netlabel_domainhash.h struct netlbl_dom_map *netlbl_domhsh_getentry(const char *domain, u16 family); domain 90 net/netlabel/netlabel_domainhash.h struct netlbl_dommap_def *netlbl_domhsh_getentry_af4(const char *domain, domain 93 net/netlabel/netlabel_domainhash.h struct netlbl_dommap_def *netlbl_domhsh_getentry_af6(const char *domain, domain 95 net/netlabel/netlabel_domainhash.h int netlbl_domhsh_remove_af6(const char *domain, domain 56 net/netlabel/netlabel_kapi.c int netlbl_cfg_map_del(const char *domain, domain 63 net/netlabel/netlabel_kapi.c return netlbl_domhsh_remove(domain, family, audit_info); domain 67 net/netlabel/netlabel_kapi.c return netlbl_domhsh_remove_af4(domain, addr, mask, domain 71 net/netlabel/netlabel_kapi.c return netlbl_domhsh_remove_af6(domain, addr, mask, domain 95 net/netlabel/netlabel_kapi.c int netlbl_cfg_unlbl_map_add(const char *domain, domain 110 net/netlabel/netlabel_kapi.c if (domain != NULL) { domain 111 net/netlabel/netlabel_kapi.c entry->domain = kstrdup(domain, GFP_ATOMIC); domain 112 net/netlabel/netlabel_kapi.c if (entry->domain == NULL) domain 183 net/netlabel/netlabel_kapi.c kfree(entry->domain); domain 324 net/netlabel/netlabel_kapi.c const char *domain, domain 343 net/netlabel/netlabel_kapi.c if (domain != NULL) { domain 344 net/netlabel/netlabel_kapi.c entry->domain = kstrdup(domain, GFP_ATOMIC); domain 345 net/netlabel/netlabel_kapi.c if (entry->domain == NULL) domain 389 net/netlabel/netlabel_kapi.c kfree(entry->domain); domain 449 net/netlabel/netlabel_kapi.c const char *domain, domain 469 net/netlabel/netlabel_kapi.c if (domain != NULL) { domain 470 net/netlabel/netlabel_kapi.c entry->domain = kstrdup(domain, GFP_ATOMIC); domain 471 net/netlabel/netlabel_kapi.c if (entry->domain == NULL) domain 519 net/netlabel/netlabel_kapi.c kfree(entry->domain); domain 983 net/netlabel/netlabel_kapi.c dom_entry = netlbl_domhsh_getentry(secattr->domain, family); domain 1117 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af4(secattr->domain, domain 1141 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af6(secattr->domain, domain 1192 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af4(secattr->domain, domain 1213 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af6(secattr->domain, domain 1290 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af4(secattr->domain, domain 1313 net/netlabel/netlabel_kapi.c entry = netlbl_domhsh_getentry_af6(secattr->domain, domain 93 net/netlabel/netlabel_mgmt.c entry->domain = kmalloc(tmp_size, GFP_KERNEL); domain 94 net/netlabel/netlabel_mgmt.c if (entry->domain == NULL) { domain 98 net/netlabel/netlabel_mgmt.c nla_strlcpy(entry->domain, domain 263 net/netlabel/netlabel_mgmt.c kfree(entry->domain); domain 291 net/netlabel/netlabel_mgmt.c if (entry->domain != NULL) { domain 293 net/netlabel/netlabel_mgmt.c NLBL_MGMT_A_DOMAIN, entry->domain); domain 454 net/netlabel/netlabel_mgmt.c char *domain; domain 462 net/netlabel/netlabel_mgmt.c domain = nla_data(info->attrs[NLBL_MGMT_A_DOMAIN]); domain 463 net/netlabel/netlabel_mgmt.c return netlbl_domhsh_remove(domain, AF_UNSPEC, &audit_info); domain 40 net/tipc/addr.c bool tipc_in_scope(bool legacy_format, u32 domain, u32 addr) domain 42 net/tipc/addr.c if (!domain || (domain == addr)) domain 46 net/tipc/addr.c if (domain == tipc_cluster_mask(addr)) /* domain <Z.C.0> */ domain 48 net/tipc/addr.c if (domain == (addr & TIPC_ZONE_CLUSTER_MASK)) /* domain <Z.C.0> */ domain 50 net/tipc/addr.c if (domain == (addr & TIPC_ZONE_MASK)) /* domain <Z.0.0> */ domain 85 net/tipc/addr.h bool tipc_in_scope(bool legacy_format, u32 domain, u32 addr); domain 314 net/tipc/bearer.c b->domain = disc_domain; domain 929 net/tipc/bearer.c u32 domain = 0; domain 949 net/tipc/bearer.c domain = nla_get_u32(attrs[TIPC_NLA_BEARER_DOMAIN]); domain 963 net/tipc/bearer.c return tipc_enable_bearer(net, bearer, domain, prio, attrs); domain 163 net/tipc/bearer.h u32 domain; domain 66 net/tipc/discover.c u32 domain; domain 84 net/tipc/discover.c u32 dest_domain = b->domain; domain 242 net/tipc/discover.c if (!tipc_in_scope(legacy, b->domain, src)) domain 299 net/tipc/discover.c if (tipc_node(d->domain) && d->num_nodes) { domain 368 net/tipc/discover.c d->domain = b->domain; domain 406 net/tipc/discover.c d->domain = b->domain; domain 77 net/tipc/monitor.c struct tipc_mon_domain *domain; domain 186 net/tipc/monitor.c struct tipc_mon_domain *dom_aft = peer->domain; domain 218 net/tipc/monitor.c struct tipc_mon_domain *dom = peer->domain; domain 244 net/tipc/monitor.c struct tipc_mon_domain *dom = self->domain; domain 335 net/tipc/monitor.c kfree(peer->domain); domain 346 net/tipc/monitor.c kfree(peer->domain); domain 347 net/tipc/monitor.c peer->domain = NULL; domain 423 net/tipc/monitor.c dom = peer->domain; domain 424 net/tipc/monitor.c peer->domain = NULL; domain 497 net/tipc/monitor.c dom = peer->domain; domain 505 net/tipc/monitor.c peer->domain = dom; domain 630 net/tipc/monitor.c self->domain = dom; domain 657 net/tipc/monitor.c kfree(peer->domain); domain 663 net/tipc/monitor.c kfree(self->domain); domain 705 net/tipc/monitor.c struct tipc_mon_domain *dom = peer->domain; domain 113 net/tipc/name_table.h u32 type, u32 domain); domain 116 net/tipc/name_table.h bool tipc_nametbl_lookup(struct net *net, u32 type, u32 instance, u32 domain, domain 698 net/tipc/socket.c addr->addr.name.domain = 0; domain 1362 net/tipc/socket.c dnode = dest->addr.name.domain; domain 1566 net/tipc/socket.c srcaddr->sock.addr.name.domain = 0; domain 1578 net/tipc/socket.c srcaddr->member.addr.name.domain = 0; domain 35 security/apparmor/domain.c void aa_free_domain_entries(struct aa_domain *domain) domain 38 security/apparmor/domain.c if (domain) { domain 39 security/apparmor/domain.c if (!domain->table) domain 42 security/apparmor/domain.c for (i = 0; i < domain->size; i++) domain 43 security/apparmor/domain.c kzfree(domain->table[i]); domain 44 security/apparmor/domain.c kzfree(domain->table); domain 45 security/apparmor/domain.c domain->table = NULL; domain 35 security/apparmor/include/domain.h void aa_free_domain_entries(struct aa_domain *domain); domain 294 security/selinux/include/security.h u16 domain, void *addr, u32 addrlen, domain 2460 security/selinux/ss/services.c u16 domain, domain 2475 security/selinux/ss/services.c switch (domain) { domain 3670 security/selinux/ss/services.c secattr->domain = kstrdup(sym_name(policydb, SYM_TYPES, ctx->type - 1), domain 3672 security/selinux/ss/services.c if (secattr->domain == NULL) domain 547 security/smack/smack_access.c skp->smk_netlabel.domain = skp->smk_known; domain 2942 security/smack/smackfs.c skp->smk_netlabel.domain = skp->smk_known; domain 253 security/tomoyo/audit.c const char *domainname = r->domain->domainname->name; domain 372 security/tomoyo/audit.c if (!tomoyo_get_audit(r->domain->ns, r->profile, r->type, domain 994 security/tomoyo/common.c struct tomoyo_domain_info *domain = NULL; domain 1010 security/tomoyo/common.c domain = tomoyo_task(p)->domain_info; domain 1014 security/tomoyo/common.c domain = tomoyo_find_domain(data + 7); domain 1016 security/tomoyo/common.c domain = tomoyo_find_domain_by_qid(pid); domain 1019 security/tomoyo/common.c head->w.domain = domain; domain 1025 security/tomoyo/common.c if (domain) domain 1026 security/tomoyo/common.c head->r.domain = &domain->list; domain 1030 security/tomoyo/common.c if (domain && domain->is_deleted) domain 1091 security/tomoyo/common.c struct tomoyo_domain_info *domain; domain 1099 security/tomoyo/common.c list_for_each_entry_rcu(domain, &tomoyo_domain_list, list, domain 1102 security/tomoyo/common.c if (domain == &tomoyo_kernel_domain) domain 1104 security/tomoyo/common.c if (domain->is_deleted || domain 1105 security/tomoyo/common.c tomoyo_pathcmp(domain->domainname, &name)) domain 1107 security/tomoyo/common.c domain->is_deleted = true; domain 1176 security/tomoyo/common.c struct tomoyo_domain_info *domain = head->w.domain; domain 1184 security/tomoyo/common.c domain = NULL; domain 1188 security/tomoyo/common.c domain = tomoyo_find_domain(data); domain 1190 security/tomoyo/common.c domain = tomoyo_assign_domain(data, false); domain 1191 security/tomoyo/common.c head->w.domain = domain; domain 1194 security/tomoyo/common.c if (!domain) domain 1196 security/tomoyo/common.c ns = domain->ns; domain 1201 security/tomoyo/common.c domain->profile = (u8) idx; domain 1207 security/tomoyo/common.c set_bit(idx, domain->group); domain 1209 security/tomoyo/common.c clear_bit(idx, domain->group); domain 1217 security/tomoyo/common.c domain->flags[idx] = !is_delete; domain 1220 security/tomoyo/common.c return tomoyo_write_domain2(ns, &domain->acl_info_list, data, domain 1622 security/tomoyo/common.c list_for_each_cookie(head->r.domain, &tomoyo_domain_list) { domain 1623 security/tomoyo/common.c struct tomoyo_domain_info *domain = domain 1624 security/tomoyo/common.c list_entry(head->r.domain, typeof(*domain), list); domain 1629 security/tomoyo/common.c if (domain->is_deleted && domain 1633 security/tomoyo/common.c tomoyo_set_string(head, domain->domainname->name); domain 1636 security/tomoyo/common.c domain->profile); domain 1638 security/tomoyo/common.c if (domain->flags[i]) domain 1646 security/tomoyo/common.c if (!test_bit(i, domain->group)) domain 1657 security/tomoyo/common.c if (!tomoyo_read_domain2(head, &domain->acl_info_list)) domain 1702 security/tomoyo/common.c struct tomoyo_domain_info *domain = NULL; domain 1722 security/tomoyo/common.c domain = tomoyo_task(p)->domain_info; domain 1724 security/tomoyo/common.c if (!domain) domain 1726 security/tomoyo/common.c tomoyo_io_printf(head, "%u %u ", pid, domain->profile); domain 1727 security/tomoyo/common.c tomoyo_set_string(head, domain->domainname->name); domain 1953 security/tomoyo/common.c struct tomoyo_domain_info *domain; domain 1999 security/tomoyo/common.c static void tomoyo_add_entry(struct tomoyo_domain_info *domain, char *header) domain 2042 security/tomoyo/common.c if (!tomoyo_write_domain2(domain->ns, &domain->acl_info_list, buffer, domain 2103 security/tomoyo/common.c tomoyo_add_entry(r->domain, entry.query); domain 2107 security/tomoyo/common.c entry.domain = r->domain; domain 2164 security/tomoyo/common.c struct tomoyo_domain_info *domain = NULL; domain 2170 security/tomoyo/common.c domain = ptr->domain; domain 2174 security/tomoyo/common.c return domain; domain 2703 security/tomoyo/common.c head->w.domain = NULL; domain 2775 security/tomoyo/common.c struct tomoyo_domain_info *domain; domain 2780 security/tomoyo/common.c list_for_each_entry_rcu(domain, &tomoyo_domain_list, list, domain 2782 security/tomoyo/common.c const u8 profile = domain->profile; domain 2783 security/tomoyo/common.c struct tomoyo_policy_namespace *ns = domain->ns; domain 2795 security/tomoyo/common.c profile, domain->domainname->name); domain 431 security/tomoyo/common.h struct tomoyo_domain_info *domain; domain 803 security/tomoyo/common.h struct list_head *domain; domain 824 security/tomoyo/common.h struct tomoyo_domain_info *domain; domain 970 security/tomoyo/common.h int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, domain 980 security/tomoyo/common.h struct tomoyo_domain_info *domain, domain 1041 security/tomoyo/common.h unsigned int tomoyo_check_flags(const struct tomoyo_domain_info *domain, domain 165 security/tomoyo/domain.c const struct tomoyo_domain_info *domain = r->domain; domain 167 security/tomoyo/domain.c const struct list_head *list = &domain->acl_info_list; domain 184 security/tomoyo/domain.c if (!test_bit(i, domain->group)) domain 186 security/tomoyo/domain.c list = &domain->ns->acl_group[i++]; domain 566 security/tomoyo/domain.c const struct tomoyo_domain_info *domain = tomoyo_domain(); domain 568 security/tomoyo/domain.c e.profile = domain->profile; domain 569 security/tomoyo/domain.c memcpy(e.group, domain->group, sizeof(e.group)); domain 630 security/tomoyo/domain.c ee->r.profile = r->domain->profile; domain 631 security/tomoyo/domain.c ee->r.mode = tomoyo_get_mode(r->domain->ns, ee->r.profile, domain 706 security/tomoyo/domain.c struct tomoyo_domain_info *domain = NULL; domain 827 security/tomoyo/domain.c domain = old_domain; domain 838 security/tomoyo/domain.c domain = old_domain; domain 848 security/tomoyo/domain.c if (!domain) domain 849 security/tomoyo/domain.c domain = tomoyo_assign_domain(ee->tmp, true); domain 850 security/tomoyo/domain.c if (domain) domain 868 security/tomoyo/domain.c if (!domain) domain 869 security/tomoyo/domain.c domain = old_domain; domain 875 security/tomoyo/domain.c s->domain_info = domain; domain 876 security/tomoyo/domain.c atomic_inc(&domain->users); domain 880 security/tomoyo/domain.c ee->r.domain = domain; domain 579 security/tomoyo/file.c r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type); domain 611 security/tomoyo/file.c r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type); domain 753 security/tomoyo/file.c int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, domain 769 security/tomoyo/file.c tomoyo_init_request_info(&r, domain, TOMOYO_MAC_FILE_OPEN) domain 50 security/tomoyo/gc.c if (head->r.domain == element || head->r.group == element || domain 51 security/tomoyo/gc.c head->r.acl == element || &head->w.domain->list == element) domain 253 security/tomoyo/gc.c struct tomoyo_domain_info *domain = domain 254 security/tomoyo/gc.c container_of(element, typeof(*domain), list); domain 263 security/tomoyo/gc.c list_for_each_entry_safe(acl, tmp, &domain->acl_info_list, list) { domain 267 security/tomoyo/gc.c tomoyo_put_name(domain->domainname); domain 532 security/tomoyo/gc.c struct tomoyo_domain_info *domain; domain 535 security/tomoyo/gc.c list_for_each_entry_safe(domain, tmp, &tomoyo_domain_list, domain 537 security/tomoyo/gc.c tomoyo_collect_acl(&domain->acl_info_list); domain 538 security/tomoyo/gc.c if (!domain->is_deleted || atomic_read(&domain->users)) domain 540 security/tomoyo/gc.c tomoyo_try_to_gc(TOMOYO_ID_DOMAIN, &domain->list); domain 103 security/tomoyo/securityfs_if.c const char *domain = tomoyo_domain()->domainname->name; domain 104 security/tomoyo/securityfs_if.c loff_t len = strlen(domain); domain 112 security/tomoyo/securityfs_if.c if (copy_to_user(buf, domain + pos, len)) domain 237 security/tomoyo/securityfs_if.c struct tomoyo_domain_info *domain; domain 242 security/tomoyo/securityfs_if.c domain = tomoyo_domain(); domain 244 security/tomoyo/securityfs_if.c if (domain != &tomoyo_kernel_domain) domain 592 security/tomoyo/util.c struct tomoyo_domain_info *domain; domain 597 security/tomoyo/util.c list_for_each_entry_rcu(domain, &tomoyo_domain_list, list, domain 599 security/tomoyo/util.c if (!domain->is_deleted && domain 600 security/tomoyo/util.c !tomoyo_pathcmp(&name, domain->domainname)) domain 601 security/tomoyo/util.c return domain; domain 998 security/tomoyo/util.c struct tomoyo_domain_info *domain, const u8 index) domain 1003 security/tomoyo/util.c if (!domain) domain 1004 security/tomoyo/util.c domain = tomoyo_domain(); domain 1005 security/tomoyo/util.c r->domain = domain; domain 1006 security/tomoyo/util.c profile = domain->profile; domain 1009 security/tomoyo/util.c r->mode = tomoyo_get_mode(domain->ns, profile, index); domain 1025 security/tomoyo/util.c struct tomoyo_domain_info *domain = r->domain; domain 1030 security/tomoyo/util.c if (!domain) domain 1032 security/tomoyo/util.c list_for_each_entry_rcu(ptr, &domain->acl_info_list, list, domain 1074 security/tomoyo/util.c if (count < tomoyo_profile(domain->ns, domain->profile)-> domain 1077 security/tomoyo/util.c if (!domain->flags[TOMOYO_DIF_QUOTA_WARNED]) { domain 1078 security/tomoyo/util.c domain->flags[TOMOYO_DIF_QUOTA_WARNED] = true; domain 1083 security/tomoyo/util.c domain->domainname->name); domain 119 sound/firewire/bebob/bebob.h struct amdtp_domain domain; domain 449 sound/firewire/bebob/bebob_stream.c err = amdtp_domain_add_stream(&bebob->domain, stream, domain 525 sound/firewire/bebob/bebob_stream.c err = amdtp_domain_init(&bebob->domain); domain 574 sound/firewire/bebob/bebob_stream.c amdtp_domain_stop(&bebob->domain); domain 626 sound/firewire/bebob/bebob_stream.c amdtp_domain_stop(&bebob->domain); domain 651 sound/firewire/bebob/bebob_stream.c err = amdtp_domain_start(&bebob->domain); domain 679 sound/firewire/bebob/bebob_stream.c amdtp_domain_stop(&bebob->domain); domain 687 sound/firewire/bebob/bebob_stream.c amdtp_domain_stop(&bebob->domain); domain 701 sound/firewire/bebob/bebob_stream.c amdtp_domain_destroy(&bebob->domain); domain 296 sound/firewire/dice/dice-stream.c amdtp_domain_stop(&dice->domain); domain 377 sound/firewire/dice/dice-stream.c err = amdtp_domain_add_stream(&dice->domain, stream, domain 411 sound/firewire/dice/dice-stream.c amdtp_domain_stop(&dice->domain); domain 458 sound/firewire/dice/dice-stream.c err = amdtp_domain_start(&dice->domain); domain 477 sound/firewire/dice/dice-stream.c amdtp_domain_stop(&dice->domain); domain 493 sound/firewire/dice/dice-stream.c amdtp_domain_stop(&dice->domain); domain 577 sound/firewire/dice/dice-stream.c err = amdtp_domain_init(&dice->domain); domain 597 sound/firewire/dice/dice-stream.c amdtp_domain_destroy(&dice->domain); domain 615 sound/firewire/dice/dice-stream.c amdtp_domain_stop(&dice->domain); domain 116 sound/firewire/dice/dice.h struct amdtp_domain domain; domain 265 sound/firewire/digi00x/digi00x-stream.c err = amdtp_domain_init(&dg00x->domain); domain 280 sound/firewire/digi00x/digi00x-stream.c amdtp_domain_destroy(&dg00x->domain); domain 298 sound/firewire/digi00x/digi00x-stream.c amdtp_domain_stop(&dg00x->domain); domain 333 sound/firewire/digi00x/digi00x-stream.c amdtp_domain_stop(&dg00x->domain); domain 358 sound/firewire/digi00x/digi00x-stream.c err = amdtp_domain_add_stream(&dg00x->domain, &dg00x->rx_stream, domain 363 sound/firewire/digi00x/digi00x-stream.c err = amdtp_domain_add_stream(&dg00x->domain, &dg00x->tx_stream, domain 368 sound/firewire/digi00x/digi00x-stream.c err = amdtp_domain_start(&dg00x->domain); domain 383 sound/firewire/digi00x/digi00x-stream.c amdtp_domain_stop(&dg00x->domain); domain 392 sound/firewire/digi00x/digi00x-stream.c amdtp_domain_stop(&dg00x->domain); domain 63 sound/firewire/digi00x/digi00x.h struct amdtp_domain domain; domain 88 sound/firewire/fireface/ff-stream.c err = amdtp_domain_init(&ff->domain); domain 103 sound/firewire/fireface/ff-stream.c amdtp_domain_destroy(&ff->domain); domain 123 sound/firewire/fireface/ff-stream.c amdtp_domain_stop(&ff->domain); domain 167 sound/firewire/fireface/ff-stream.c amdtp_domain_stop(&ff->domain); domain 182 sound/firewire/fireface/ff-stream.c err = amdtp_domain_add_stream(&ff->domain, &ff->rx_stream, domain 187 sound/firewire/fireface/ff-stream.c err = amdtp_domain_add_stream(&ff->domain, &ff->tx_stream, domain 192 sound/firewire/fireface/ff-stream.c err = amdtp_domain_start(&ff->domain); domain 211 sound/firewire/fireface/ff-stream.c amdtp_domain_stop(&ff->domain); domain 220 sound/firewire/fireface/ff-stream.c amdtp_domain_stop(&ff->domain); domain 230 sound/firewire/fireface/ff-stream.c amdtp_domain_stop(&ff->domain); domain 95 sound/firewire/fireface/ff.h struct amdtp_domain domain; domain 111 sound/firewire/fireworks/fireworks.h struct amdtp_domain domain; domain 81 sound/firewire/fireworks/fireworks_stream.c err = amdtp_domain_add_stream(&efw->domain, stream, domain 141 sound/firewire/fireworks/fireworks_stream.c err = amdtp_domain_init(&efw->domain); domain 202 sound/firewire/fireworks/fireworks_stream.c amdtp_domain_stop(&efw->domain); domain 247 sound/firewire/fireworks/fireworks_stream.c amdtp_domain_stop(&efw->domain); domain 265 sound/firewire/fireworks/fireworks_stream.c err = amdtp_domain_start(&efw->domain); domain 281 sound/firewire/fireworks/fireworks_stream.c amdtp_domain_stop(&efw->domain); domain 292 sound/firewire/fireworks/fireworks_stream.c amdtp_domain_stop(&efw->domain); domain 304 sound/firewire/fireworks/fireworks_stream.c amdtp_domain_stop(&efw->domain); domain 315 sound/firewire/fireworks/fireworks_stream.c amdtp_domain_destroy(&efw->domain); domain 148 sound/firewire/motu/motu-stream.c amdtp_domain_stop(&motu->domain); domain 215 sound/firewire/motu/motu-stream.c amdtp_domain_stop(&motu->domain); domain 243 sound/firewire/motu/motu-stream.c err = amdtp_domain_add_stream(&motu->domain, &motu->tx_stream, domain 248 sound/firewire/motu/motu-stream.c err = amdtp_domain_add_stream(&motu->domain, &motu->rx_stream, domain 253 sound/firewire/motu/motu-stream.c err = amdtp_domain_start(&motu->domain); domain 276 sound/firewire/motu/motu-stream.c amdtp_domain_stop(&motu->domain); domain 284 sound/firewire/motu/motu-stream.c amdtp_domain_stop(&motu->domain); domain 341 sound/firewire/motu/motu-stream.c err = amdtp_domain_init(&motu->domain); domain 354 sound/firewire/motu/motu-stream.c amdtp_domain_destroy(&motu->domain); domain 73 sound/firewire/motu/motu.h struct amdtp_domain domain; domain 117 sound/firewire/oxfw/oxfw-stream.c err = amdtp_domain_add_stream(&oxfw->domain, stream, domain 277 sound/firewire/oxfw/oxfw-stream.c amdtp_domain_stop(&oxfw->domain); domain 322 sound/firewire/oxfw/oxfw-stream.c amdtp_domain_stop(&oxfw->domain); domain 347 sound/firewire/oxfw/oxfw-stream.c err = amdtp_domain_start(&oxfw->domain); domain 369 sound/firewire/oxfw/oxfw-stream.c amdtp_domain_stop(&oxfw->domain); domain 381 sound/firewire/oxfw/oxfw-stream.c amdtp_domain_stop(&oxfw->domain); domain 422 sound/firewire/oxfw/oxfw-stream.c err = amdtp_domain_init(&oxfw->domain); domain 436 sound/firewire/oxfw/oxfw-stream.c amdtp_domain_destroy(&oxfw->domain); domain 446 sound/firewire/oxfw/oxfw-stream.c amdtp_domain_stop(&oxfw->domain); domain 67 sound/firewire/oxfw/oxfw.h struct amdtp_domain domain; domain 358 sound/firewire/tascam/tascam-stream.c err = amdtp_domain_init(&tscm->domain); domain 370 sound/firewire/tascam/tascam-stream.c amdtp_domain_stop(&tscm->domain); domain 380 sound/firewire/tascam/tascam-stream.c amdtp_domain_destroy(&tscm->domain); domain 396 sound/firewire/tascam/tascam-stream.c amdtp_domain_stop(&tscm->domain); domain 431 sound/firewire/tascam/tascam-stream.c amdtp_domain_stop(&tscm->domain); domain 456 sound/firewire/tascam/tascam-stream.c err = amdtp_domain_add_stream(&tscm->domain, &tscm->rx_stream, domain 461 sound/firewire/tascam/tascam-stream.c err = amdtp_domain_add_stream(&tscm->domain, &tscm->tx_stream, domain 466 sound/firewire/tascam/tascam-stream.c err = amdtp_domain_start(&tscm->domain); domain 481 sound/firewire/tascam/tascam-stream.c amdtp_domain_stop(&tscm->domain); domain 490 sound/firewire/tascam/tascam-stream.c amdtp_domain_stop(&tscm->domain); domain 101 sound/firewire/tascam/tascam.h struct amdtp_domain domain; domain 1763 sound/pci/emu10k1/emu10k1_main.c struct iommu_domain *domain; domain 1770 sound/pci/emu10k1/emu10k1_main.c domain = iommu_get_domain_for_dev(emu->card->dev); domain 1771 sound/pci/emu10k1/emu10k1_main.c if (domain && domain->type == IOMMU_DOMAIN_IDENTITY) domain 4656 sound/soc/codecs/rt5677.c return irq_create_mapping(rt5677->domain, irq); domain 5112 sound/soc/codecs/rt5677.c virq = irq_find_mapping(rt5677->domain, i); domain 5247 sound/soc/codecs/rt5677.c rt5677->domain = irq_domain_add_linear(i2c->dev.of_node, domain 5249 sound/soc/codecs/rt5677.c if (!rt5677->domain) { domain 1853 sound/soc/codecs/rt5677.h struct irq_domain *domain; domain 145 sound/soc/intel/skylake/skl-debug.c mconfig->domain, domain 1001 sound/soc/intel/skylake/skl-messages.c msg.domain = mconfig->domain; domain 810 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_DOMAIN(msg->domain); domain 76 sound/soc/intel/skylake/skl-sst-ipc.h u8 domain; domain 2477 sound/soc/intel/skylake/skl-topology.c mconfig->domain = domain 375 sound/soc/intel/skylake/skl-topology.h u8 domain; domain 22 tools/perf/trace/beauty/socket.c int domain = syscall_arg__val(arg, 0); domain 24 tools/perf/trace/beauty/socket.c if (domain == AF_INET || domain == AF_INET6) domain 115 tools/power/cpupower/utils/helpers/helpers.h extern struct pci_dev *pci_acc_init(struct pci_access **pacc, int domain, domain 26 tools/power/cpupower/utils/helpers/pci.c struct pci_dev *pci_acc_init(struct pci_access **pacc, int domain, int bus, domain 37 tools/power/cpupower/utils/helpers/pci.c filter_nb_link.domain = domain; domain 33 tools/testing/selftests/bpf/test_sock.c int domain; domain 355 tools/testing/selftests/bpf/test_sock.c static int bind_sock(int domain, int type, const char *ip, unsigned short port) domain 364 tools/testing/selftests/bpf/test_sock.c sockfd = socket(domain, type, 0); domain 370 tools/testing/selftests/bpf/test_sock.c if (domain == AF_INET) { domain 373 tools/testing/selftests/bpf/test_sock.c addr4->sin_family = domain; domain 375 tools/testing/selftests/bpf/test_sock.c if (inet_pton(domain, ip, (void *)&addr4->sin_addr) != 1) domain 377 tools/testing/selftests/bpf/test_sock.c } else if (domain == AF_INET6) { domain 380 tools/testing/selftests/bpf/test_sock.c addr6->sin6_family = domain; domain 382 tools/testing/selftests/bpf/test_sock.c if (inet_pton(domain, ip, (void *)&addr6->sin6_addr) != 1) domain 420 tools/testing/selftests/bpf/test_sock.c if (bind_sock(test->domain, test->type, test->ip, test->port) == -1) { domain 67 tools/testing/selftests/bpf/test_sock_addr.c int domain; domain 603 tools/testing/selftests/bpf/test_sock_addr.c static int mk_sockaddr(int domain, const char *ip, unsigned short port, domain 609 tools/testing/selftests/bpf/test_sock_addr.c if (domain != AF_INET && domain != AF_INET6) { domain 616 tools/testing/selftests/bpf/test_sock_addr.c if (domain == AF_INET) { domain 620 tools/testing/selftests/bpf/test_sock_addr.c addr4->sin_family = domain; domain 622 tools/testing/selftests/bpf/test_sock_addr.c if (inet_pton(domain, ip, (void *)&addr4->sin_addr) != 1) { domain 626 tools/testing/selftests/bpf/test_sock_addr.c } else if (domain == AF_INET6) { domain 630 tools/testing/selftests/bpf/test_sock_addr.c addr6->sin6_family = domain; domain 632 tools/testing/selftests/bpf/test_sock_addr.c if (inet_pton(domain, ip, (void *)&addr6->sin6_addr) != 1) { domain 1182 tools/testing/selftests/bpf/test_sock_addr.c int domain; domain 1185 tools/testing/selftests/bpf/test_sock_addr.c domain = addr->ss_family; domain 1187 tools/testing/selftests/bpf/test_sock_addr.c if (domain != AF_INET && domain != AF_INET6) { domain 1192 tools/testing/selftests/bpf/test_sock_addr.c fd = socket(domain, type, 0); domain 1211 tools/testing/selftests/bpf/test_sock_addr.c int init_pktinfo(int domain, struct cmsghdr *cmsg) domain 1216 tools/testing/selftests/bpf/test_sock_addr.c if (domain == AF_INET) { domain 1222 tools/testing/selftests/bpf/test_sock_addr.c if (inet_pton(domain, SRC4_IP, domain 1225 tools/testing/selftests/bpf/test_sock_addr.c } else if (domain == AF_INET6) { domain 1231 tools/testing/selftests/bpf/test_sock_addr.c if (inet_pton(domain, SRC6_IP, domain 1256 tools/testing/selftests/bpf/test_sock_addr.c int domain; domain 1259 tools/testing/selftests/bpf/test_sock_addr.c domain = addr->ss_family; domain 1261 tools/testing/selftests/bpf/test_sock_addr.c if (domain != AF_INET && domain != AF_INET6) { domain 1266 tools/testing/selftests/bpf/test_sock_addr.c fd = socket(domain, type, 0); domain 1283 tools/testing/selftests/bpf/test_sock_addr.c if (domain == AF_INET) { domain 1286 tools/testing/selftests/bpf/test_sock_addr.c } else if (domain == AF_INET6) { domain 1290 tools/testing/selftests/bpf/test_sock_addr.c if (init_pktinfo(domain, CMSG_FIRSTHDR(&hdr))) { domain 1357 tools/testing/selftests/bpf/test_sock_addr.c if (mk_sockaddr(test->domain, test->expected_ip, test->expected_port, domain 1361 tools/testing/selftests/bpf/test_sock_addr.c if (mk_sockaddr(test->domain, test->requested_ip, test->requested_port, domain 1366 tools/testing/selftests/bpf/test_sock_addr.c mk_sockaddr(test->domain, test->expected_src_ip, 0, domain 184 tools/testing/selftests/net/msg_zerocopy.c static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) domain 197 tools/testing/selftests/net/msg_zerocopy.c if (domain == PF_RDS) { domain 219 tools/testing/selftests/net/msg_zerocopy.c if (do_zerocopy && domain == PF_RDS) { domain 295 tools/testing/selftests/net/msg_zerocopy.c static void setup_sockaddr(int domain, const char *str_addr, domain 301 tools/testing/selftests/net/msg_zerocopy.c switch (domain) { domain 323 tools/testing/selftests/net/msg_zerocopy.c static int do_setup_tx(int domain, int type, int protocol) domain 327 tools/testing/selftests/net/msg_zerocopy.c fd = socket(domain, type, protocol); domain 335 tools/testing/selftests/net/msg_zerocopy.c if (domain != PF_PACKET && domain != PF_RDS) domain 339 tools/testing/selftests/net/msg_zerocopy.c if (domain == PF_RDS) { domain 393 tools/testing/selftests/net/msg_zerocopy.c static bool do_recv_completion(int fd, int domain) domain 402 tools/testing/selftests/net/msg_zerocopy.c if (domain == PF_RDS) domain 461 tools/testing/selftests/net/msg_zerocopy.c static void do_recv_completions(int fd, int domain) domain 463 tools/testing/selftests/net/msg_zerocopy.c while (do_recv_completion(fd, domain)) {} domain 467 tools/testing/selftests/net/msg_zerocopy.c static void do_recv_remaining_completions(int fd, int domain) domain 473 tools/testing/selftests/net/msg_zerocopy.c if (do_poll(fd, domain == PF_RDS ? POLLIN : POLLERR)) domain 474 tools/testing/selftests/net/msg_zerocopy.c do_recv_completions(fd, domain); domain 482 tools/testing/selftests/net/msg_zerocopy.c static void do_tx(int domain, int type, int protocol) domain 495 tools/testing/selftests/net/msg_zerocopy.c fd = do_setup_tx(domain, type, protocol); domain 497 tools/testing/selftests/net/msg_zerocopy.c if (domain == PF_PACKET) { domain 524 tools/testing/selftests/net/msg_zerocopy.c if (domain == PF_PACKET || protocol == IPPROTO_RAW) { domain 534 tools/testing/selftests/net/msg_zerocopy.c if (domain == PF_RDS) { domain 551 tools/testing/selftests/net/msg_zerocopy.c do_sendmsg(fd, &msg, cfg_zerocopy, domain); domain 555 tools/testing/selftests/net/msg_zerocopy.c do_recv_completions(fd, domain); domain 561 tools/testing/selftests/net/msg_zerocopy.c do_recv_remaining_completions(fd, domain); domain 571 tools/testing/selftests/net/msg_zerocopy.c static int do_setup_rx(int domain, int type, int protocol) domain 578 tools/testing/selftests/net/msg_zerocopy.c if (domain == PF_PACKET) domain 584 tools/testing/selftests/net/msg_zerocopy.c fd = socket(domain, type, protocol); domain 652 tools/testing/selftests/net/msg_zerocopy.c static void do_rx(int domain, int type, int protocol) domain 658 tools/testing/selftests/net/msg_zerocopy.c fd = do_setup_rx(domain, type, protocol); domain 677 tools/testing/selftests/net/msg_zerocopy.c static void do_test(int domain, int type, int protocol) domain 681 tools/testing/selftests/net/msg_zerocopy.c if (cfg_cork && (domain == PF_PACKET || type != SOCK_DGRAM)) domain 690 tools/testing/selftests/net/msg_zerocopy.c do_rx(domain, type, protocol); domain 692 tools/testing/selftests/net/msg_zerocopy.c do_tx(domain, type, protocol); domain 11 tools/testing/selftests/net/socket.c int domain; domain 48 tools/testing/selftests/net/socket.c fd = socket(s->domain, s->type, s->protocol); domain 63 tools/testing/selftests/net/socket.c s->domain, s->type, s->protocol, domain 76 tools/testing/selftests/net/socket.c s->domain, s->type, s->protocol, domain 243 tools/testing/selftests/net/tcp_mmap.c static void setup_sockaddr(int domain, const char *str_addr, domain 249 tools/testing/selftests/net/tcp_mmap.c switch (domain) { domain 61 tools/testing/selftests/net/udpgso_bench_rx.c static void setup_sockaddr(int domain, const char *str_addr, void *sockaddr) domain 66 tools/testing/selftests/net/udpgso_bench_rx.c switch (domain) { domain 115 tools/testing/selftests/net/udpgso_bench_tx.c static void setup_sockaddr(int domain, const char *str_addr, void *sockaddr) domain 120 tools/testing/selftests/net/udpgso_bench_tx.c switch (domain) {