/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
D | base.c | 38 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 …]
|
D | gf100.c | 128 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 …]
|
D | nv40.c | 27 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/soc/amlogic/ |
D | meson-ee-pwrc.c | 401 struct meson_ee_pwrc_domain *dom) in meson_ee_pwrc_init_domain() argument 405 dom->pwrc = pwrc; in meson_ee_pwrc_init_domain() 406 dom->num_rstc = dom->desc.reset_names_count; in meson_ee_pwrc_init_domain() 407 dom->num_clks = dom->desc.clk_names_count; in meson_ee_pwrc_init_domain() 409 if (dom->num_rstc) { in meson_ee_pwrc_init_domain() 412 if (count != dom->num_rstc) in meson_ee_pwrc_init_domain() 414 count, dom->desc.name); in meson_ee_pwrc_init_domain() 416 dom->rstc = devm_reset_control_array_get(&pdev->dev, false, in meson_ee_pwrc_init_domain() 418 if (IS_ERR(dom->rstc)) in meson_ee_pwrc_init_domain() 419 return PTR_ERR(dom->rstc); in meson_ee_pwrc_init_domain() [all …]
|
D | meson-secure-pwrc.c | 167 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe() local 172 dom->pwrc = pwrc; in meson_secure_pwrc_probe() 173 dom->index = match->domains[i].index; in meson_secure_pwrc_probe() 174 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe() 175 dom->base.flags = match->domains[i].flags; in meson_secure_pwrc_probe() 176 dom->base.power_on = meson_secure_pwrc_on; in meson_secure_pwrc_probe() 177 dom->base.power_off = meson_secure_pwrc_off; in meson_secure_pwrc_probe() 179 pm_genpd_init(&dom->base, NULL, match->domains[i].is_off(dom)); in meson_secure_pwrc_probe() 181 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
|
/drivers/iommu/ |
D | mtk_iommu_v1.c | 99 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument 101 return container_of(dom, struct mtk_iommu_domain, domain); in to_mtk_domain() 163 struct mtk_iommu_domain *dom = data->m4u_dom; in mtk_iommu_isr() local 181 if (report_iommu_fault(&dom->domain, data->dev, fault_iova, in mtk_iommu_isr() 223 struct mtk_iommu_domain *dom = data->m4u_dom; in mtk_iommu_domain_finalise() local 225 spin_lock_init(&dom->pgtlock); in mtk_iommu_domain_finalise() 227 dom->pgt_va = dma_alloc_coherent(data->dev, M2701_IOMMU_PGT_SIZE, in mtk_iommu_domain_finalise() 228 &dom->pgt_pa, GFP_KERNEL); in mtk_iommu_domain_finalise() 229 if (!dom->pgt_va) in mtk_iommu_domain_finalise() 232 writel(dom->pgt_pa, data->base + REG_MMU_PT_BASE_ADDR); in mtk_iommu_domain_finalise() [all …]
|
D | mtk_iommu.c | 207 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument 209 return container_of(dom, struct mtk_iommu_domain, domain); in to_mtk_domain() 273 struct mtk_iommu_domain *dom = data->m4u_dom; in mtk_iommu_isr() local 309 if (report_iommu_fault(&dom->domain, data->dev, fault_iova, in mtk_iommu_isr() 387 static int mtk_iommu_domain_finalise(struct mtk_iommu_domain *dom, in mtk_iommu_domain_finalise() argument 395 dom->iop = data->m4u_dom->iop; in mtk_iommu_domain_finalise() 396 dom->cfg = data->m4u_dom->cfg; in mtk_iommu_domain_finalise() 397 dom->domain.pgsize_bitmap = data->m4u_dom->cfg.pgsize_bitmap; in mtk_iommu_domain_finalise() 401 dom->cfg = (struct io_pgtable_cfg) { in mtk_iommu_domain_finalise() 411 dom->cfg.oas = data->enable_4GB ? 33 : 32; in mtk_iommu_domain_finalise() [all …]
|
/drivers/firmware/arm_scmi/ |
D | perf.c | 383 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_perf_limits_set() local 385 if (dom->fc_info && dom->fc_info->limit_set_addr) { in scmi_perf_limits_set() 386 iowrite32(max_perf, dom->fc_info->limit_set_addr); in scmi_perf_limits_set() 387 iowrite32(min_perf, dom->fc_info->limit_set_addr + 4); in scmi_perf_limits_set() 388 scmi_perf_fc_ring_db(dom->fc_info->limit_set_db); in scmi_perf_limits_set() 425 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_perf_limits_get() local 427 if (dom->fc_info && dom->fc_info->limit_get_addr) { in scmi_perf_limits_get() 428 *max_perf = ioread32(dom->fc_info->limit_get_addr); in scmi_perf_limits_get() 429 *min_perf = ioread32(dom->fc_info->limit_get_addr + 4); in scmi_perf_limits_get() 462 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_perf_level_set() local [all …]
|
D | reset.c | 134 struct reset_dom_info *dom = pi->dom_info + domain; in scmi_reset_name_get() local 136 return dom->name; in scmi_reset_name_get() 143 struct reset_dom_info *dom = pi->dom_info + domain; in scmi_reset_latency_get() local 145 return dom->latency_us; in scmi_reset_latency_get() 153 struct scmi_msg_reset_domain_reset *dom; in scmi_domain_reset() local 160 ret = ph->xops->xfer_get_init(ph, RESET, sizeof(*dom), 0, &t); in scmi_domain_reset() 164 dom = t->tx.buf; in scmi_domain_reset() 165 dom->domain_id = cpu_to_le32(domain); in scmi_domain_reset() 166 dom->flags = cpu_to_le32(flags); in scmi_domain_reset() 167 dom->reset_state = cpu_to_le32(state); in scmi_domain_reset() [all …]
|
D | voltage.c | 115 int ret, dom; in scmi_voltage_descriptors_get() local 133 for (dom = 0; dom < vinfo->num_domains; dom++) { in scmi_voltage_descriptors_get() 140 put_unaligned_le32(dom, td->tx.buf); in scmi_voltage_descriptors_get() 146 v = vinfo->domains + dom; in scmi_voltage_descriptors_get() 147 v->id = dom; in scmi_voltage_descriptors_get()
|
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_perfmon.c | 471 const struct etnaviv_pm_domain *dom; in etnaviv_pm_query_dom() local 476 dom = pm_domain(gpu, domain->iter); in etnaviv_pm_query_dom() 477 if (!dom) in etnaviv_pm_query_dom() 481 domain->nr_signals = dom->nr_signals; in etnaviv_pm_query_dom() 482 strncpy(domain->name, dom->name, sizeof(domain->name)); in etnaviv_pm_query_dom() 495 const struct etnaviv_pm_domain *dom; in etnaviv_pm_query_sig() local 501 dom = pm_domain(gpu, signal->domain); in etnaviv_pm_query_sig() 502 if (!dom) in etnaviv_pm_query_sig() 505 if (signal->iter >= dom->nr_signals) in etnaviv_pm_query_sig() 508 sig = &dom->signal[signal->iter]; in etnaviv_pm_query_sig() [all …]
|
/drivers/irqchip/ |
D | irq-tango.c | 55 static void tangox_dispatch_irqs(struct irq_domain *dom, unsigned int status, in tangox_dispatch_irqs() argument 63 virq = irq_find_mapping(dom, base + hwirq); in tangox_dispatch_irqs() 72 struct irq_domain *dom = irq_desc_get_handler_data(desc); in tangox_irq_handler() local 74 struct tangox_irq_chip *chip = dom->host_data; in tangox_irq_handler() 82 tangox_dispatch_irqs(dom, status_lo, 0); in tangox_irq_handler() 83 tangox_dispatch_irqs(dom, status_hi, 32); in tangox_irq_handler() 161 static void __init tangox_irq_domain_init(struct irq_domain *dom) in tangox_irq_domain_init() argument 167 gc = irq_get_domain_generic_chip(dom, i * 32); in tangox_irq_domain_init() 176 struct irq_domain *dom; in tangox_irq_init() local 193 dom = irq_domain_add_linear(node, 64, &irq_generic_chip_ops, chip); in tangox_irq_init() [all …]
|
D | irq-sni-exiu.c | 163 static int exiu_domain_alloc(struct irq_domain *dom, unsigned int virq, in exiu_domain_alloc() argument 168 struct exiu_irq_data *info = dom->host_data; in exiu_domain_alloc() 172 if (is_of_node(dom->parent->fwnode)) { in exiu_domain_alloc() 184 irq_domain_set_hwirq_and_chip(dom, virq, hwirq, &exiu_irq_chip, info); in exiu_domain_alloc() 186 parent_fwspec.fwnode = dom->parent->fwnode; in exiu_domain_alloc() 187 return irq_domain_alloc_irqs_parent(dom, virq, nr_irqs, &parent_fwspec); in exiu_domain_alloc()
|
D | irq-aspeed-vic.c | 54 struct irq_domain *dom; member 103 handle_domain_irq(vic->dom, irq, regs); in avic_handle_irq() 214 vic->dom = irq_domain_add_simple(node, NUM_IRQS, 0, in avic_of_init()
|
/drivers/soc/bcm/ |
D | raspberrypi-power.c | 83 struct rpi_power_domain *dom = &rpi_domains->domains[xlate_index]; in rpi_common_init_power_domain() local 85 dom->fw = rpi_domains->fw; in rpi_common_init_power_domain() 87 dom->base.name = name; in rpi_common_init_power_domain() 88 dom->base.power_on = rpi_domain_on; in rpi_common_init_power_domain() 89 dom->base.power_off = rpi_domain_off; in rpi_common_init_power_domain() 99 pm_genpd_init(&dom->base, NULL, true); in rpi_common_init_power_domain() 101 rpi_domains->xlate.domains[xlate_index] = &dom->base; in rpi_common_init_power_domain() 107 struct rpi_power_domain *dom = &rpi_domains->domains[xlate_index]; in rpi_init_power_domain() local 113 dom->domain = xlate_index + 1; in rpi_init_power_domain() 122 struct rpi_power_domain *dom = &rpi_domains->domains[xlate_index]; in rpi_init_old_power_domain() local [all …]
|
D | bcm2835-power.c | 493 struct bcm2835_power_domain *dom = &power->domains[pd_xlate_index]; in bcm2835_init_power_domain() local 495 dom->clk = devm_clk_get(dev->parent, name); in bcm2835_init_power_domain() 496 if (IS_ERR(dom->clk)) { in bcm2835_init_power_domain() 497 int ret = PTR_ERR(dom->clk); in bcm2835_init_power_domain() 505 dom->clk = NULL; in bcm2835_init_power_domain() 508 dom->base.name = name; in bcm2835_init_power_domain() 509 dom->base.power_on = bcm2835_power_pd_power_on; in bcm2835_init_power_domain() 510 dom->base.power_off = bcm2835_power_pd_power_off; in bcm2835_init_power_domain() 512 dom->domain = pd_xlate_index; in bcm2835_init_power_domain() 513 dom->power = power; in bcm2835_init_power_domain() [all …]
|
/drivers/regulator/ |
D | scmi-regulator.c | 260 u32 dom, ret; in process_scmi_regulator_of_node() local 262 ret = of_property_read_u32(np, "reg", &dom); in process_scmi_regulator_of_node() 266 if (dom >= rinfo->num_doms) in process_scmi_regulator_of_node() 269 if (rinfo->sregv[dom]) { in process_scmi_regulator_of_node() 272 dom, np->full_name); in process_scmi_regulator_of_node() 276 rinfo->sregv[dom] = devm_kzalloc(&sdev->dev, in process_scmi_regulator_of_node() 279 if (!rinfo->sregv[dom]) in process_scmi_regulator_of_node() 282 rinfo->sregv[dom]->id = dom; in process_scmi_regulator_of_node() 283 rinfo->sregv[dom]->sdev = sdev; in process_scmi_regulator_of_node() 284 rinfo->sregv[dom]->ph = ph; in process_scmi_regulator_of_node() [all …]
|
/drivers/s390/crypto/ |
D | ap_bus.c | 1183 int card, dom; in ap_select_domain() local 1195 for (dom = 0; dom <= ap_max_domain_id; dom++) { in ap_select_domain() 1196 if (!ap_test_config_usage_domain(dom) || in ap_select_domain() 1197 !test_bit_inv(dom, ap_perms.aqm)) in ap_select_domain() 1203 status = ap_test_queue(AP_MKQID(card, dom), in ap_select_domain() 1212 if (dom <= ap_max_domain_id) { in ap_select_domain() 1213 ap_domain_index = dom; in ap_select_domain() 1318 int rc, dom, depth, type; in ap_scan_domains() local 1326 for (dom = 0; dom <= ap_max_domain_id; dom++) { in ap_scan_domains() 1327 qid = AP_MKQID(ac->id, dom); in ap_scan_domains() [all …]
|
D | pkey_api.c | 197 u16 card, dom; in pkey_clr2ep11key() local 209 dom = apqns[i] & 0xFFFF; in pkey_clr2ep11key() 210 rc = ep11_clr2keyblob(card, dom, clrkeylen * 8, in pkey_clr2ep11key() 229 u16 card, dom; in pkey_ep11key2pkey() local 242 dom = apqns[i] & 0xFFFF; in pkey_ep11key2pkey() 244 rc = ep11_kblob2protkey(card, dom, key, kb->head.len, in pkey_ep11key2pkey() 545 int i, card, dom, rc; in pkey_genseckey2() local 577 dom = apqns[i].domain; in pkey_genseckey2() 579 rc = ep11_genaeskey(card, dom, ksize, kflags, in pkey_genseckey2() 582 rc = cca_genseckey(card, dom, ksize, keybuf); in pkey_genseckey2() [all …]
|
D | zcrypt_ccamisc.c | 1094 int cca_clr2cipherkey(u16 card, u16 dom, u32 keybitsize, u32 keygenflags, in cca_clr2cipherkey() argument 1129 rc = _ip_cprb_helper(card, dom, "AES ", "FIRST ", "MIN3PART", in cca_clr2cipherkey() 1137 rc = _ip_cprb_helper(card, dom, "AES ", "ADD-PART", NULL, in cca_clr2cipherkey() 1145 rc = _ip_cprb_helper(card, dom, "AES ", "ADD-PART", NULL, in cca_clr2cipherkey() 1153 rc = _ip_cprb_helper(card, dom, "AES ", "COMPLETE", NULL, in cca_clr2cipherkey() 1739 int cca_get_info(u16 card, u16 dom, struct cca_info *ci, int verify) in cca_get_info() argument 1743 rc = cca_info_cache_fetch(card, dom, ci); in cca_get_info() 1745 rc = fetch_cca_info(card, dom, ci); in cca_get_info() 1747 cca_info_cache_update(card, dom, ci); in cca_get_info() 1762 u16 card, dom; in findcard() local [all …]
|
/drivers/iommu/amd/ |
D | amd_iommu.h | 56 extern void amd_iommu_domain_direct_map(struct iommu_domain *dom); 57 extern int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids); 58 extern int amd_iommu_flush_page(struct iommu_domain *dom, u32 pasid, 60 extern int amd_iommu_flush_tlb(struct iommu_domain *dom, u32 pasid); 61 extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, u32 pasid, 63 extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, u32 pasid);
|
D | iommu.c | 150 static struct protection_domain *to_pdomain(struct iommu_domain *dom) in to_pdomain() argument 152 return container_of(dom, struct protection_domain, domain); in to_pdomain() 1730 static int iommu_map_page(struct protection_domain *dom, in iommu_map_page() argument 1750 pte = alloc_pte(dom, bus_addr, page_size, NULL, gfp, &updated); in iommu_map_page() 1782 spin_lock_irqsave(&dom->lock, flags); in iommu_map_page() 1788 domain_flush_tlb_pde(dom); in iommu_map_page() 1789 domain_flush_complete(dom); in iommu_map_page() 1790 spin_unlock_irqrestore(&dom->lock, flags); in iommu_map_page() 1799 static unsigned long iommu_unmap_page(struct protection_domain *dom, in iommu_unmap_page() argument 1813 pte = fetch_pte(dom, bus_addr, &unmap_size); in iommu_unmap_page() [all …]
|
/drivers/pci/controller/ |
D | pcie-tango.c | 22 struct irq_domain *dom; member 38 virq = irq_find_mapping(pcie->dom, base + idx); in tango_msi_isr() 135 static int tango_irq_domain_alloc(struct irq_domain *dom, unsigned int virq, in tango_irq_domain_alloc() argument 138 struct tango_pcie *pcie = dom->host_data; in tango_irq_domain_alloc() 150 irq_domain_set_info(dom, virq, pos, &tango_chip, in tango_irq_domain_alloc() 156 static void tango_irq_domain_free(struct irq_domain *dom, unsigned int virq, in tango_irq_domain_free() argument 160 struct irq_data *d = irq_domain_get_irq_data(dom, virq); in tango_irq_domain_free() 292 pcie->dom = irq_dom; in tango_pcie_probe()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | gt215.c | 275 int idx, u32 pll, int dom) in calc_clk() argument 277 int ret = gt215_pll_info(&clk->base, idx, pll, cstate->domain[dom], in calc_clk() 278 &clk->eng[dom]); in calc_clk() 363 prog_pll(struct gt215_clk *clk, int idx, u32 pll, int dom) in prog_pll() argument 365 struct gt215_clk_info *info = &clk->eng[dom]; in prog_pll() 407 prog_clk(struct gt215_clk *clk, int idx, int dom) in prog_clk() argument 409 struct gt215_clk_info *info = &clk->eng[dom]; in prog_clk() 443 prog_core(struct gt215_clk *clk, int dom) in prog_core() argument 445 struct gt215_clk_info *info = &clk->eng[dom]; in prog_core() 452 prog_pll(clk, 0x00, 0x004200, dom); in prog_core()
|
/drivers/xen/ |
D | privcmd.c | 268 if (data->domid != DOMID_INVALID && data->domid != mmapcmd.dom) in privcmd_ioctl_mmap() 295 state.domain = mmapcmd.dom; in privcmd_ioctl_mmap() 475 if (data->domid != DOMID_INVALID && data->domid != m.dom) in privcmd_ioctl_mmap_batch() 543 state.domain = m.dom; in privcmd_ioctl_mmap_batch() 634 if (data->domid != DOMID_INVALID && data->domid != kdata.dom) in privcmd_ioctl_dm_op() 692 rc = HYPERVISOR_dm_op(kdata.dom, kdata.num, xbufs); in privcmd_ioctl_dm_op() 707 domid_t dom; in privcmd_ioctl_restrict() local 709 if (copy_from_user(&dom, udata, sizeof(dom))) in privcmd_ioctl_restrict() 714 data->domid = dom; in privcmd_ioctl_restrict() 715 else if (data->domid != dom) in privcmd_ioctl_restrict() [all …]
|