Home
last modified time | relevance | path

Searched refs:domain (Results 1 – 25 of 266) sorted by relevance

1234567891011

/linux-3.4.99/kernel/irq/
Dirqdomain.c44 struct irq_domain *domain; in irq_domain_alloc() local
46 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in irq_domain_alloc()
47 if (WARN_ON(!domain)) in irq_domain_alloc()
51 domain->revmap_type = revmap_type; in irq_domain_alloc()
52 domain->ops = ops; in irq_domain_alloc()
53 domain->host_data = host_data; in irq_domain_alloc()
54 domain->of_node = of_node_get(of_node); in irq_domain_alloc()
56 return domain; in irq_domain_alloc()
59 static void irq_domain_add(struct irq_domain *domain) in irq_domain_add() argument
62 list_add(&domain->link, &irq_domain_list); in irq_domain_add()
[all …]
/linux-3.4.99/drivers/iommu/
Diommu.c129 void iommu_set_fault_handler(struct iommu_domain *domain, in iommu_set_fault_handler() argument
132 BUG_ON(!domain); in iommu_set_fault_handler()
134 domain->handler = handler; in iommu_set_fault_handler()
140 struct iommu_domain *domain; in iommu_domain_alloc() local
146 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in iommu_domain_alloc()
147 if (!domain) in iommu_domain_alloc()
150 domain->ops = bus->iommu_ops; in iommu_domain_alloc()
152 ret = domain->ops->domain_init(domain); in iommu_domain_alloc()
156 return domain; in iommu_domain_alloc()
159 kfree(domain); in iommu_domain_alloc()
[all …]
Damd_iommu.c95 static void update_domain(struct protection_domain *domain);
1030 static void __domain_flush_pages(struct protection_domain *domain, in __domain_flush_pages() argument
1037 build_inv_iommu_pages(&cmd, address, size, domain->id, pde); in __domain_flush_pages()
1040 if (!domain->dev_iommu[i]) in __domain_flush_pages()
1050 list_for_each_entry(dev_data, &domain->dev_list, list) { in __domain_flush_pages()
1061 static void domain_flush_pages(struct protection_domain *domain, in domain_flush_pages() argument
1064 __domain_flush_pages(domain, address, size, 0); in domain_flush_pages()
1068 static void domain_flush_tlb(struct protection_domain *domain) in domain_flush_tlb() argument
1070 __domain_flush_pages(domain, 0, CMD_INV_IOMMU_ALL_PAGES_ADDRESS, 0); in domain_flush_tlb()
1074 static void domain_flush_tlb_pde(struct protection_domain *domain) in domain_flush_tlb_pde() argument
[all …]
Dintel-iommu.c400 struct dmar_domain *domain; /* pointer to domain */ member
411 struct dmar_domain *domain[HIGH_WATER_MARK]; member
425 static void domain_remove_dev_info(struct dmar_domain *domain);
572 static struct intel_iommu *domain_get_iommu(struct dmar_domain *domain) in domain_get_iommu() argument
577 BUG_ON(domain->flags & DOMAIN_FLAG_VIRTUAL_MACHINE); in domain_get_iommu()
578 BUG_ON(domain->flags & DOMAIN_FLAG_STATIC_IDENTITY); in domain_get_iommu()
580 iommu_id = find_first_bit(domain->iommu_bmp, g_num_of_iommus); in domain_get_iommu()
587 static void domain_update_iommu_coherency(struct dmar_domain *domain) in domain_update_iommu_coherency() argument
591 i = find_first_bit(domain->iommu_bmp, g_num_of_iommus); in domain_update_iommu_coherency()
593 domain->iommu_coherency = i < g_num_of_iommus ? 1 : 0; in domain_update_iommu_coherency()
[all …]
Dtegra-gart.c154 static int gart_iommu_attach_dev(struct iommu_domain *domain, in gart_iommu_attach_dev() argument
164 domain->priv = gart; in gart_iommu_attach_dev()
191 static void gart_iommu_detach_dev(struct iommu_domain *domain, in gart_iommu_detach_dev() argument
194 struct gart_device *gart = domain->priv; in gart_iommu_detach_dev()
212 static int gart_iommu_domain_init(struct iommu_domain *domain) in gart_iommu_domain_init() argument
217 static void gart_iommu_domain_destroy(struct iommu_domain *domain) in gart_iommu_domain_destroy() argument
219 struct gart_device *gart = domain->priv; in gart_iommu_domain_destroy()
229 gart_iommu_detach_dev(domain, c->dev); in gart_iommu_domain_destroy()
232 domain->priv = NULL; in gart_iommu_domain_destroy()
235 static int gart_iommu_map(struct iommu_domain *domain, unsigned long iova, in gart_iommu_map() argument
[all …]
Dmsm_iommu.c81 static int __flush_iotlb(struct iommu_domain *domain) in __flush_iotlb() argument
83 struct msm_priv *priv = domain->priv; in __flush_iotlb()
213 static int msm_iommu_domain_init(struct iommu_domain *domain) in msm_iommu_domain_init() argument
228 domain->priv = priv; in msm_iommu_domain_init()
236 static void msm_iommu_domain_destroy(struct iommu_domain *domain) in msm_iommu_domain_destroy() argument
244 priv = domain->priv; in msm_iommu_domain_destroy()
245 domain->priv = NULL; in msm_iommu_domain_destroy()
263 static int msm_iommu_attach_dev(struct iommu_domain *domain, struct device *dev) in msm_iommu_attach_dev() argument
275 priv = domain->priv; in msm_iommu_attach_dev()
311 ret = __flush_iotlb(domain); in msm_iommu_attach_dev()
[all …]
/linux-3.4.99/include/linux/
Diommu.h65 int (*domain_init)(struct iommu_domain *domain);
66 void (*domain_destroy)(struct iommu_domain *domain);
67 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
68 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
69 int (*map)(struct iommu_domain *domain, unsigned long iova,
71 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
73 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain,
75 int (*domain_has_cap)(struct iommu_domain *domain,
84 extern void iommu_domain_free(struct iommu_domain *domain);
85 extern int iommu_attach_device(struct iommu_domain *domain,
[all …]
/linux-3.4.99/drivers/dca/
Ddca-core.c60 struct dca_domain *domain; in dca_allocate_domain() local
62 domain = kzalloc(sizeof(*domain), GFP_NOWAIT); in dca_allocate_domain()
63 if (!domain) in dca_allocate_domain()
66 INIT_LIST_HEAD(&domain->dca_providers); in dca_allocate_domain()
67 domain->pci_rc = rc; in dca_allocate_domain()
69 return domain; in dca_allocate_domain()
72 static void dca_free_domain(struct dca_domain *domain) in dca_free_domain() argument
74 list_del(&domain->node); in dca_free_domain()
75 kfree(domain); in dca_free_domain()
97 struct dca_domain *domain; in unregister_dca_providers() local
[all …]
/linux-3.4.99/arch/ia64/kernel/
Dirq_ia64.c80 .domain = CPU_MASK_NONE
114 static inline int find_unassigned_vector(cpumask_t domain) in find_unassigned_vector() argument
119 cpumask_and(&mask, &domain, cpu_online_mask); in find_unassigned_vector()
125 cpus_and(mask, domain, vector_table[vector]); in find_unassigned_vector()
133 static int __bind_irq_vector(int irq, int vector, cpumask_t domain) in __bind_irq_vector() argument
142 cpumask_and(&mask, &domain, cpu_online_mask); in __bind_irq_vector()
145 if ((cfg->vector == vector) && cpus_equal(cfg->domain, domain)) in __bind_irq_vector()
152 cfg->domain = domain; in __bind_irq_vector()
154 cpus_or(vector_table[vector], vector_table[vector], domain); in __bind_irq_vector()
158 int bind_irq_vector(int irq, int vector, cpumask_t domain) in bind_irq_vector() argument
[all …]
/linux-3.4.99/net/tipc/
Daddr.c75 int tipc_in_scope(u32 domain, u32 addr) in tipc_in_scope() argument
77 if (!domain || (domain == addr)) in tipc_in_scope()
79 if (domain == tipc_cluster_mask(addr)) /* domain <Z.C.0> */ in tipc_in_scope()
81 if (domain == tipc_zone_mask(addr)) /* domain <Z.0.0> */ in tipc_in_scope()
90 int tipc_addr_scope(u32 domain) in tipc_addr_scope() argument
92 if (likely(!domain)) in tipc_addr_scope()
94 if (tipc_node(domain)) in tipc_addr_scope()
96 if (tipc_cluster(domain)) in tipc_addr_scope()
/linux-3.4.99/Documentation/scheduler/
Dsched-stats.txt9 per-domain. Note that domains (and their associated information) will only
12 In version 14 of schedstat, there is at least one level of domain
14 domain. Domains have no particular names in this implementation, but
16 cpus on the machine, while domain0 is the most tightly focused domain,
18 are no architectures which need more than three domain levels. The first
19 field in the domain stats is a bit map indicating which cpus are affected
20 by that domain.
59 One of these is produced per domain for each cpu described. (Note that if
63 domain<N> <cpumask> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3…
65 The first field is a bit mask indicating what cpus this domain operates over.
[all …]
Dsched-domains.txt1 Each CPU has a "base" scheduling domain (struct sched_domain). The domain
3 MUST be NULL terminated, and domain structures should be per-CPU as they are
6 Each scheduling domain spans a number of CPUs (stored in the ->span field).
7 A domain's span MUST be a superset of it child's span (this restriction could
8 be relaxed if the need arises), and a base domain for CPU i MUST span at least
9 i. The top domain for each CPU will generally span all CPUs in the system
12 explicitly set. A sched domain's span means "balance process load among these
15 Each scheduling domain must have one or more CPU groups (struct sched_group)
18 domain's span. The intersection of cpumasks from any two of these groups
20 contain the CPU to which the domain belongs. Groups may be shared among
[all …]
/linux-3.4.99/net/netlabel/
Dnetlabel_domainhash.c101 kfree(ptr->domain); in netlbl_domhsh_free_entry()
141 static struct netlbl_dom_map *netlbl_domhsh_search(const char *domain) in netlbl_domhsh_search() argument
147 if (domain != NULL) { in netlbl_domhsh_search()
148 bkt = netlbl_domhsh_hash(domain); in netlbl_domhsh_search()
151 if (iter->valid && strcmp(iter->domain, domain) == 0) in netlbl_domhsh_search()
171 static struct netlbl_dom_map *netlbl_domhsh_search_def(const char *domain) in netlbl_domhsh_search_def() argument
175 entry = netlbl_domhsh_search(domain); in netlbl_domhsh_search_def()
212 entry->domain ? entry->domain : "(default)"); in netlbl_domhsh_audit_add()
389 if (entry->domain != NULL) in netlbl_domhsh_add()
390 entry_old = netlbl_domhsh_search(entry->domain); in netlbl_domhsh_add()
[all …]
Dnetlabel_domainhash.h71 char *domain; member
93 int netlbl_domhsh_remove_af4(const char *domain,
97 int netlbl_domhsh_remove(const char *domain, struct netlbl_audit *audit_info);
99 struct netlbl_dom_map *netlbl_domhsh_getentry(const char *domain);
100 struct netlbl_domaddr4_map *netlbl_domhsh_getentry_af4(const char *domain,
108 struct netlbl_domaddr6_map *netlbl_domhsh_getentry_af6(const char *domain,
/linux-3.4.99/arch/arm/mach-davinci/
Dpsc.c52 void davinci_psc_config(unsigned int domain, unsigned int ctlr, in davinci_psc_config() argument
82 pdstat = __raw_readl(psc_base + PDSTAT + 4 * domain); in davinci_psc_config()
84 pdctl = __raw_readl(psc_base + PDCTL + 4 * domain); in davinci_psc_config()
86 __raw_writel(pdctl, psc_base + PDCTL + 4 * domain); in davinci_psc_config()
88 ptcmd = 1 << domain; in davinci_psc_config()
93 } while ((((epcpr >> domain) & 1) == 0)); in davinci_psc_config()
95 pdctl = __raw_readl(psc_base + PDCTL + 4 * domain); in davinci_psc_config()
97 __raw_writel(pdctl, psc_base + PDCTL + 4 * domain); in davinci_psc_config()
99 ptcmd = 1 << domain; in davinci_psc_config()
105 } while (!(((ptstat >> domain) & 1) == 0)); in davinci_psc_config()
/linux-3.4.99/drivers/base/
Dmap.c32 int kobj_map(struct kobj_map *domain, dev_t dev, unsigned long range, in kobj_map() argument
57 mutex_lock(domain->lock); in kobj_map()
59 struct probe **s = &domain->probes[index % 255]; in kobj_map()
65 mutex_unlock(domain->lock); in kobj_map()
69 void kobj_unmap(struct kobj_map *domain, dev_t dev, unsigned long range) in kobj_unmap() argument
79 mutex_lock(domain->lock); in kobj_unmap()
82 for (s = &domain->probes[index % 255]; *s; s = &(*s)->next) { in kobj_unmap()
92 mutex_unlock(domain->lock); in kobj_unmap()
96 struct kobject *kobj_lookup(struct kobj_map *domain, dev_t dev, int *index) in kobj_lookup() argument
103 mutex_lock(domain->lock); in kobj_lookup()
[all …]
/linux-3.4.99/virt/kvm/
Diommu.c69 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_iommu_map_pages() local
73 if (!domain) in kvm_iommu_map_pages()
88 if (iommu_iova_to_phys(domain, gfn_to_gpa(gfn))) { in kvm_iommu_map_pages()
119 r = iommu_map(domain, gfn_to_gpa(gfn), pfn_to_hpa(pfn), in kvm_iommu_map_pages()
162 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_assign_device() local
166 if (!domain) in kvm_assign_device()
173 r = iommu_attach_device(domain, &pdev->dev); in kvm_assign_device()
214 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_deassign_device() local
218 if (!domain) in kvm_deassign_device()
225 iommu_detach_device(domain, &pdev->dev); in kvm_deassign_device()
[all …]
/linux-3.4.99/drivers/xen/xen-pciback/
Dpassthrough.c20 unsigned int domain, in __xen_pcibk_get_pci_dev() argument
31 if (domain == (unsigned int)pci_domain_nr(dev_entry->dev->bus) in __xen_pcibk_get_pci_dev()
50 unsigned int domain, bus, devfn; in __xen_pcibk_add_pci_dev() local
63 domain = (unsigned int)pci_domain_nr(dev->bus); in __xen_pcibk_add_pci_dev()
66 err = publish_cb(pdev, domain, bus, devfn, devid); in __xen_pcibk_add_pci_dev()
119 unsigned int domain, bus; in __xen_pcibk_publish_pci_roots() local
138 domain = (unsigned int)pci_domain_nr(dev_entry->dev->bus); in __xen_pcibk_publish_pci_roots()
142 err = publish_root_cb(pdev, domain, bus); in __xen_pcibk_publish_pci_roots()
170 unsigned int *domain, unsigned int *bus, in __xen_pcibk_get_pcifront_dev() argument
173 *domain = pci_domain_nr(pcidev->bus); in __xen_pcibk_get_pcifront_dev()
Dpciback.h63 int domain, int bus,
85 unsigned int domain, unsigned int bus,
88 unsigned int domain, unsigned int bus);
99 unsigned int *domain, unsigned int *bus,
106 unsigned int domain, unsigned int bus,
132 xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, in xen_pcibk_get_pci_dev() argument
136 return xen_pcibk_backend->get(pdev, domain, bus, devfn); in xen_pcibk_get_pci_dev()
148 unsigned int *domain, in xen_pcibk_get_pcifront_dev() argument
153 return xen_pcibk_backend->find(pcidev, pdev, domain, bus, in xen_pcibk_get_pcifront_dev()
Dpci_stub.c34 int domain; member
133 static struct pcistub_device *pcistub_device_find(int domain, int bus, in pcistub_device_find() argument
143 && domain == pci_domain_nr(psdev->dev->bus) in pcistub_device_find()
181 int domain, int bus, in pcistub_get_pci_dev_by_slot() argument
192 && domain == pci_domain_nr(psdev->dev->bus) in pcistub_get_pci_dev_by_slot()
280 if (pci_domain_nr(dev->bus) == pdev_id->domain in pcistub_match_one()
598 &aer_op->domain, &aer_op->bus, &aer_op->devfn); in common_process()
608 aer_cmd, aer_op->domain, aer_op->bus, aer_op->devfn); in common_process()
896 static inline int str_to_slot(const char *buf, int *domain, int *bus, in str_to_slot() argument
901 err = sscanf(buf, " %x:%x:%x.%x", domain, bus, slot, func); in str_to_slot()
[all …]
Dxenbus.c196 unsigned int domain, unsigned int bus, in xen_pcibk_publish_pci_dev() argument
211 "%04x:%02x:%02x.%02x", domain, bus, in xen_pcibk_publish_pci_dev()
219 int domain, int bus, int slot, int func, in xen_pcibk_export_device() argument
226 domain, bus, slot, func); in xen_pcibk_export_device()
228 dev = pcistub_get_pci_dev_by_slot(pdev, domain, bus, slot, func); in xen_pcibk_export_device()
235 domain, bus, slot, func); in xen_pcibk_export_device()
266 int domain, int bus, int slot, int func) in xen_pcibk_remove_device() argument
272 domain, bus, slot, func); in xen_pcibk_remove_device()
274 dev = xen_pcibk_get_pci_dev(pdev, domain, bus, PCI_DEVFN(slot, func)); in xen_pcibk_remove_device()
279 domain, bus, slot, func); in xen_pcibk_remove_device()
[all …]
/linux-3.4.99/drivers/pci/pcie/aer/
Daer_inject.c44 u16 domain; member
49 u16 domain; member
77 static void aer_error_init(struct aer_error *err, u16 domain, in aer_error_init() argument
82 err->domain = domain; in aer_error_init()
89 static struct aer_error *__find_aer_error(u16 domain, unsigned int bus, in __find_aer_error() argument
95 if (domain == err->domain && in __find_aer_error()
106 int domain = pci_domain_nr(dev->bus); in __find_aer_error_by_dev() local
107 if (domain < 0) in __find_aer_error_by_dev()
109 return __find_aer_error((u16)domain, dev->bus->number, dev->devfn); in __find_aer_error_by_dev()
191 int domain; in pci_read_aer() local
[all …]
/linux-3.4.99/drivers/pci/
Dxen-pcifront.c53 int domain; member
64 unsigned int domain, unsigned int bus, in pcifront_init_sd() argument
67 sd->domain = domain; in pcifront_init_sd()
181 .domain = pci_domain_nr(bus), in pcifront_bus_read()
219 .domain = pci_domain_nr(bus), in pcifront_bus_write()
252 .domain = pci_domain_nr(dev->bus), in pci_frontend_enable_msix()
306 .domain = pci_domain_nr(dev->bus), in pci_frontend_disable_msix()
325 .domain = pci_domain_nr(dev->bus), in pci_frontend_enable_msi()
354 .domain = pci_domain_nr(dev->bus), in pci_frontend_disable_msi()
415 unsigned int domain, unsigned int bus, in pcifront_scan_bus() argument
[all …]
/linux-3.4.99/Documentation/networking/
Dregulatory.txt16 to the kernel one regulatory domain to be used as the central
17 core regulatory domain all wireless devices should adhere to.
22 Userspace gets a regulatory domain in the kernel by having
27 is CRDA - central regulatory domain agent. Its documented here:
32 it needs a new regulatory domain. A udev rule can be put in place
33 to trigger crda to send the respective regulatory domain for a
54 # set regulatory domain to "Costa Rica"
57 This will request the kernel to set the regulatory domain to
59 to provide a regulatory domain for the alpha2 specified by the user
65 regulatory domain is required. More on this to be added
[all …]
/linux-3.4.99/security/tomoyo/
Dutil.c599 struct tomoyo_domain_info *domain; in tomoyo_find_domain() local
604 list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) { in tomoyo_find_domain()
605 if (!domain->is_deleted && in tomoyo_find_domain()
606 !tomoyo_pathcmp(&name, domain->domainname)) in tomoyo_find_domain()
607 return domain; in tomoyo_find_domain()
1005 struct tomoyo_domain_info *domain, const u8 index) in tomoyo_init_request_info() argument
1009 if (!domain) in tomoyo_init_request_info()
1010 domain = tomoyo_domain(); in tomoyo_init_request_info()
1011 r->domain = domain; in tomoyo_init_request_info()
1012 profile = domain->profile; in tomoyo_init_request_info()
[all …]

1234567891011