Home
last modified time | relevance | path

Searched refs:dom (Results 1 – 25 of 42) sorted by relevance

12

/drivers/gpu/drm/nouveau/nvkm/engine/pm/
Dbase.c38 struct nvkm_perfdom *dom; in nvkm_pm_count_perfdom() local
41 list_for_each_entry(dom, &pm->domains, head) in nvkm_pm_count_perfdom()
47 nvkm_perfdom_count_perfsig(struct nvkm_perfdom *dom) in nvkm_perfdom_count_perfsig() argument
52 if (dom) { in nvkm_perfdom_count_perfsig()
53 for (i = 0; i < dom->signal_nr; i++) { in nvkm_perfdom_count_perfsig()
54 if (dom->signal[i].name) in nvkm_perfdom_count_perfsig()
64 struct nvkm_perfdom *dom; in nvkm_perfdom_find() local
67 list_for_each_entry(dom, &pm->domains, head) { in nvkm_perfdom_find()
69 return dom; in nvkm_perfdom_find()
77 struct nvkm_perfdom *dom = *pdom; in nvkm_perfsig_find() local
[all …]
Dgf100.c128 gf100_perfctr_init(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in gf100_perfctr_init() argument
139 nvkm_wr32(device, dom->addr + 0x09c, 0x00040002 | (dom->mode << 3)); in gf100_perfctr_init()
140 nvkm_wr32(device, dom->addr + 0x100, 0x00000000); in gf100_perfctr_init()
141 nvkm_wr32(device, dom->addr + 0x040 + (ctr->slot * 0x08), src); in gf100_perfctr_init()
142 nvkm_wr32(device, dom->addr + 0x044 + (ctr->slot * 0x08), log); in gf100_perfctr_init()
146 gf100_perfctr_read(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in gf100_perfctr_read() argument
152 case 0: ctr->ctr = nvkm_rd32(device, dom->addr + 0x08c); break; in gf100_perfctr_read()
153 case 1: ctr->ctr = nvkm_rd32(device, dom->addr + 0x088); break; in gf100_perfctr_read()
154 case 2: ctr->ctr = nvkm_rd32(device, dom->addr + 0x080); break; in gf100_perfctr_read()
155 case 3: ctr->ctr = nvkm_rd32(device, dom->addr + 0x090); break; in gf100_perfctr_read()
[all …]
Dnv40.c27 nv40_perfctr_init(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in nv40_perfctr_init() argument
38 nvkm_wr32(device, 0x00a7c0 + dom->addr, 0x00000001 | (dom->mode << 4)); in nv40_perfctr_init()
39 nvkm_wr32(device, 0x00a400 + dom->addr + (ctr->slot * 0x40), src); in nv40_perfctr_init()
40 nvkm_wr32(device, 0x00a420 + dom->addr + (ctr->slot * 0x40), log); in nv40_perfctr_init()
44 nv40_perfctr_read(struct nvkm_pm *pm, struct nvkm_perfdom *dom, in nv40_perfctr_read() argument
50 case 0: ctr->ctr = nvkm_rd32(device, 0x00a700 + dom->addr); break; in nv40_perfctr_read()
51 case 1: ctr->ctr = nvkm_rd32(device, 0x00a6c0 + dom->addr); break; in nv40_perfctr_read()
52 case 2: ctr->ctr = nvkm_rd32(device, 0x00a680 + dom->addr); break; in nv40_perfctr_read()
53 case 3: ctr->ctr = nvkm_rd32(device, 0x00a740 + dom->addr); break; in nv40_perfctr_read()
55 dom->clk = nvkm_rd32(device, 0x00a600 + dom->addr); in nv40_perfctr_read()
[all …]
/drivers/iommu/
Dmtk_iommu.c107 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument
109 return container_of(dom, struct mtk_iommu_domain, domain); in to_mtk_domain()
160 struct mtk_iommu_domain *dom = data->m4u_dom; in mtk_iommu_isr() local
176 if (report_iommu_fault(&dom->domain, data->dev, fault_iova, in mtk_iommu_isr()
220 struct mtk_iommu_domain *dom = data->m4u_dom; in mtk_iommu_domain_finalise() local
222 spin_lock_init(&dom->pgtlock); in mtk_iommu_domain_finalise()
224 dom->cfg = (struct io_pgtable_cfg) { in mtk_iommu_domain_finalise()
236 dom->cfg.quirks |= IO_PGTABLE_QUIRK_ARM_MTK_4GB; in mtk_iommu_domain_finalise()
238 dom->iop = alloc_io_pgtable_ops(ARM_V7S, &dom->cfg, data); in mtk_iommu_domain_finalise()
239 if (!dom->iop) { in mtk_iommu_domain_finalise()
[all …]
Dmtk_iommu_v1.c105 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument
107 return container_of(dom, struct mtk_iommu_domain, domain); in to_mtk_domain()
169 struct mtk_iommu_domain *dom = data->m4u_dom; in mtk_iommu_isr() local
187 if (report_iommu_fault(&dom->domain, data->dev, fault_iova, in mtk_iommu_isr()
229 struct mtk_iommu_domain *dom = data->m4u_dom; in mtk_iommu_domain_finalise() local
231 spin_lock_init(&dom->pgtlock); in mtk_iommu_domain_finalise()
233 dom->pgt_va = dma_zalloc_coherent(data->dev, in mtk_iommu_domain_finalise()
235 &dom->pgt_pa, GFP_KERNEL); in mtk_iommu_domain_finalise()
236 if (!dom->pgt_va) in mtk_iommu_domain_finalise()
239 writel(dom->pgt_pa, data->base + REG_MMU_PT_BASE_ADDR); in mtk_iommu_domain_finalise()
[all …]
Damd_iommu_proto.h49 extern void amd_iommu_domain_direct_map(struct iommu_domain *dom);
50 extern int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids);
51 extern int amd_iommu_flush_page(struct iommu_domain *dom, int pasid,
53 extern int amd_iommu_flush_tlb(struct iommu_domain *dom, int pasid);
54 extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, int pasid,
56 extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, int pasid);
Damd_iommu.c230 static struct protection_domain *to_pdomain(struct iommu_domain *dom) in to_pdomain() argument
232 return container_of(dom, struct protection_domain, domain); in to_pdomain()
1451 static int iommu_map_page(struct protection_domain *dom, in iommu_map_page() argument
1468 pte = alloc_pte(dom, bus_addr, page_size, NULL, gfp); in iommu_map_page()
1491 update_domain(dom); in iommu_map_page()
1496 static unsigned long iommu_unmap_page(struct protection_domain *dom, in iommu_unmap_page() argument
1510 pte = fetch_pte(dom, bus_addr, &unmap_size); in iommu_unmap_page()
1734 static void dma_ops_domain_free(struct dma_ops_domain *dom) in dma_ops_domain_free() argument
1736 if (!dom) in dma_ops_domain_free()
1739 del_domain_from_list(&dom->domain); in dma_ops_domain_free()
[all …]
Ds390-iommu.c35 static struct s390_domain *to_s390_domain(struct iommu_domain *dom) in to_s390_domain() argument
37 return container_of(dom, struct s390_domain, domain); in to_s390_domain()
Drockchip-iommu.c97 static inline void rk_table_flush(struct rk_iommu_domain *dom, dma_addr_t dma, in rk_table_flush() argument
102 dma_sync_single_for_device(&dom->pdev->dev, dma, size, DMA_TO_DEVICE); in rk_table_flush()
105 static struct rk_iommu_domain *to_rk_domain(struct iommu_domain *dom) in to_rk_domain() argument
107 return container_of(dom, struct rk_iommu_domain, domain); in to_rk_domain()
Dtegra-gart.c76 static struct gart_domain *to_gart_domain(struct iommu_domain *dom) in to_gart_domain() argument
78 return container_of(dom, struct gart_domain, domain); in to_gart_domain()
Dipmmu-vmsa.c59 static struct ipmmu_vmsa_domain *to_vmsa_domain(struct iommu_domain *dom) in to_vmsa_domain() argument
61 return container_of(dom, struct ipmmu_vmsa_domain, io_domain); in to_vmsa_domain()
/drivers/irqchip/
Dirq-tango.c59 static void tangox_dispatch_irqs(struct irq_domain *dom, unsigned int status, in tangox_dispatch_irqs() argument
67 virq = irq_find_mapping(dom, base + hwirq); in tangox_dispatch_irqs()
76 struct irq_domain *dom = irq_desc_get_handler_data(desc); in tangox_irq_handler() local
78 struct tangox_irq_chip *chip = dom->host_data; in tangox_irq_handler()
86 tangox_dispatch_irqs(dom, status_lo, 0); in tangox_irq_handler()
87 tangox_dispatch_irqs(dom, status_hi, 32); in tangox_irq_handler()
165 static void __init tangox_irq_domain_init(struct irq_domain *dom) in tangox_irq_domain_init() argument
171 gc = irq_get_domain_generic_chip(dom, i * 32); in tangox_irq_domain_init()
180 struct irq_domain *dom; in tangox_irq_init() local
197 dom = irq_domain_add_linear(node, 64, &irq_generic_chip_ops, chip); in tangox_irq_init()
[all …]
Dirq-aspeed-vic.c64 struct irq_domain *dom; member
113 handle_domain_irq(vic->dom, irq, regs); in avic_handle_irq()
224 vic->dom = irq_domain_add_simple(node, NUM_IRQS, 0, in avic_of_init()
/drivers/soc/bcm/
Draspberrypi-power.c86 struct rpi_power_domain *dom = &rpi_domains->domains[xlate_index]; in rpi_common_init_power_domain() local
88 dom->fw = rpi_domains->fw; in rpi_common_init_power_domain()
90 dom->base.name = name; in rpi_common_init_power_domain()
91 dom->base.power_on = rpi_domain_on; in rpi_common_init_power_domain()
92 dom->base.power_off = rpi_domain_off; in rpi_common_init_power_domain()
102 pm_genpd_init(&dom->base, NULL, true); in rpi_common_init_power_domain()
104 rpi_domains->xlate.domains[xlate_index] = &dom->base; in rpi_common_init_power_domain()
110 struct rpi_power_domain *dom = &rpi_domains->domains[xlate_index]; in rpi_init_power_domain() local
116 dom->domain = xlate_index + 1; in rpi_init_power_domain()
125 struct rpi_power_domain *dom = &rpi_domains->domains[xlate_index]; in rpi_init_old_power_domain() local
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgt215.c272 int idx, u32 pll, int dom) in calc_clk() argument
274 int ret = gt215_pll_info(&clk->base, idx, pll, cstate->domain[dom], in calc_clk()
275 &clk->eng[dom]); in calc_clk()
360 prog_pll(struct gt215_clk *clk, int idx, u32 pll, int dom) in prog_pll() argument
362 struct gt215_clk_info *info = &clk->eng[dom]; in prog_pll()
404 prog_clk(struct gt215_clk *clk, int idx, int dom) in prog_clk() argument
406 struct gt215_clk_info *info = &clk->eng[dom]; in prog_clk()
440 prog_core(struct gt215_clk *clk, int dom) in prog_core() argument
442 struct gt215_clk_info *info = &clk->eng[dom]; in prog_core()
449 prog_pll(clk, 0x00, 0x004200, dom); in prog_core()
Dgf100.c274 calc_clk(struct gf100_clk *clk, struct nvkm_cstate *cstate, int idx, int dom) in calc_clk() argument
277 u32 freq = cstate->domain[dom]; in calc_clk()
Dgk104.c288 struct nvkm_cstate *cstate, int idx, int dom) in calc_clk() argument
291 u32 freq = cstate->domain[dom]; in calc_clk()
/drivers/input/rmi4/
Drmi_f01.c53 char dom[11]; /* YYYY/MM/DD + '\0' */ member
171 snprintf(props->dom, sizeof(props->dom), "20%02d/%02d/%02d", in rmi_f01_read_properties()
/drivers/xen/xenbus/
Dxenbus_dev_backend.c52 arg.dom = DOMID_SELF; in xenbus_alloc()
/drivers/pci/
Dmsi.c1571 struct irq_domain *dom; in pci_msi_get_device_domain() local
1575 dom = of_msi_map_get_device_domain(&pdev->dev, rid); in pci_msi_get_device_domain()
1576 if (!dom) in pci_msi_get_device_domain()
1577 dom = iort_get_device_domain(&pdev->dev, rid); in pci_msi_get_device_domain()
1578 return dom; in pci_msi_get_device_domain()
/drivers/soc/dove/
Dpmu.c127 #define to_pmu_domain(dom) container_of(dom, struct pmu_domain, base) argument
/drivers/nvme/host/
Dlightnvm.c217 __le32 dom; member
334 nvm_id->dom = le32_to_cpu(nvme_nvm_id->dom); in nvme_nvm_identity()
/drivers/xen/
Dprivcmd.c272 state.domain = mmapcmd.dom; in privcmd_ioctl_mmap()
514 state.domain = m.dom; in privcmd_ioctl_mmap_batch()
Dgrant-table.c610 query.dom = DOMID_SELF; in __max_nr_grant_frames()
847 foreign->domid = map_ops[i].dom; in gnttab_map_refs()
996 setup.dom = DOMID_SELF; in gnttab_map()
/drivers/lightnvm/
Dsysfs.c24 return scnprintf(page, PAGE_SIZE, "%u\n", id->dom); in nvm_dev_attr_show()

12