Home
last modified time | relevance | path

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

1234

/linux/drivers/gpu/drm/nouveau/nvkm/engine/pm/
A Dbase.c52 if (dom) { in nvkm_perfdom_count_perfsig()
69 return dom; in nvkm_perfdom_find()
225 dom->func->init(pm, dom, dom->ctr[i]); in nvkm_perfdom_init()
233 dom->func->next(pm, dom); in nvkm_perfdom_init()
256 dom->func->next(pm, dom); in nvkm_perfdom_sample()
279 dom->func->read(pm, dom, dom->ctr[i]); in nvkm_perfdom_read()
337 if (!dom) in nvkm_perfctr_new()
416 if (!(dom = kzalloc(sizeof(*dom), GFP_KERNEL))) in nvkm_perfdom_new_()
507 if (dom == NULL || si >= (int)dom->signal_nr) in nvkm_perfmon_mthd_query_signal()
788 snprintf(dom->name, sizeof(dom->name), in nvkm_perfdom_new()
[all …]
A 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()
157 dom->clk = nvkm_rd32(device, dom->addr + 0x070); in gf100_perfctr_read()
164 nvkm_wr32(device, dom->addr + 0x06c, dom->signal_nr - 0x40 + 0x27); in gf100_perfctr_next()
[all …]
A 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 …]
/linux/drivers/iommu/
A Dsprd-iommu.c142 dom = kzalloc(sizeof(*dom), GFP_KERNEL); in sprd_iommu_domain_alloc()
143 if (!dom) in sprd_iommu_domain_alloc()
151 return &dom->domain; in sprd_iommu_domain_alloc()
158 kfree(dom); in sprd_iommu_domain_free()
240 if (dom->sdev) { in sprd_iommu_attach_device()
245 dom->pgt_va = dma_alloc_coherent(sdev->dev, pgt_size, &dom->pgt_pa, GFP_KERNEL); in sprd_iommu_attach_device()
246 if (!dom->pgt_va) in sprd_iommu_attach_device()
249 dom->sdev = sdev; in sprd_iommu_attach_device()
270 dma_free_coherent(sdev->dev, pgt_size, dom->pgt_va, dom->pgt_pa); in sprd_iommu_detach_device()
272 dom->sdev = NULL; in sprd_iommu_detach_device()
[all …]
A Dmtk_iommu_v1.c224 spin_lock_init(&dom->pgtlock); in mtk_iommu_domain_finalise()
227 &dom->pgt_pa, GFP_KERNEL); in mtk_iommu_domain_finalise()
228 if (!dom->pgt_va) in mtk_iommu_domain_finalise()
233 dom->data = data; in mtk_iommu_domain_finalise()
240 struct mtk_iommu_domain *dom; in mtk_iommu_domain_alloc() local
245 dom = kzalloc(sizeof(*dom), GFP_KERNEL); in mtk_iommu_domain_alloc()
246 if (!dom) in mtk_iommu_domain_alloc()
249 return &dom->domain; in mtk_iommu_domain_alloc()
255 struct mtk_iommu_data *data = dom->data; in mtk_iommu_domain_free()
258 dom->pgt_va, dom->pgt_pa); in mtk_iommu_domain_free()
[all …]
A Dmtk_iommu.c412 dom->cfg.oas = 35; in mtk_iommu_domain_finalise()
414 dom->iop = alloc_io_pgtable_ops(ARM_V7S, &dom->cfg, data); in mtk_iommu_domain_finalise()
415 if (!dom->iop) { in mtk_iommu_domain_finalise()
421 dom->domain.pgsize_bitmap = dom->cfg.pgsize_bitmap; in mtk_iommu_domain_finalise()
439 dom = kzalloc(sizeof(*dom), GFP_KERNEL); in mtk_iommu_domain_alloc()
440 if (!dom) in mtk_iommu_domain_alloc()
463 if (!dom->data) { in mtk_iommu_attach_device()
466 dom->data = data; in mtk_iommu_attach_device()
508 return dom->iop->map(dom->iop, iova, paddr, size, prot, gfp); in mtk_iommu_map()
518 return dom->iop->unmap(dom->iop, iova, size, gather); in mtk_iommu_unmap()
[all …]
/linux/drivers/soc/amlogic/
A Dmeson-ee-pwrc.c405 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()
421 if (dom->num_clks) { in meson_ee_pwrc_init_domain()
433 dom->base.name = dom->desc.name; in meson_ee_pwrc_init_domain()
448 if (dom->num_clks && dom->desc.is_powered_off && !dom->desc.is_powered_off(dom)) { in meson_ee_pwrc_init_domain()
449 ret = clk_bulk_prepare_enable(dom->num_clks, dom->clks); in meson_ee_pwrc_init_domain()
460 dom->desc.is_powered_off(dom) : true)); in meson_ee_pwrc_init_domain()
519 memcpy(&dom->desc, &match->domains[i], sizeof(dom->desc)); in meson_ee_pwrc_probe()
[all …]
A Dmeson-secure-pwrc.c165 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe() local
170 dom->pwrc = pwrc; in meson_secure_pwrc_probe()
171 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
172 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe()
173 dom->base.flags = match->domains[i].flags; in meson_secure_pwrc_probe()
174 dom->base.power_on = meson_secure_pwrc_on; in meson_secure_pwrc_probe()
175 dom->base.power_off = meson_secure_pwrc_off; in meson_secure_pwrc_probe()
177 pm_genpd_init(&dom->base, NULL, match->domains[i].is_off(dom)); in meson_secure_pwrc_probe()
179 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
/linux/net/tipc/
A Dmonitor.c285 dom->len = dom_rec_len(dom, member_cnt); in mon_update_local_domain()
465 kfree(dom); in tipc_mon_peer_down()
537 if (dom) in tipc_mon_rcv()
538 memcpy(&dom_bef, dom, dom->len); in tipc_mon_rcv()
541 if (!dom || (dom->len < new_dlen)) { in tipc_mon_rcv()
542 kfree(dom); in tipc_mon_rcv()
545 if (!dom) in tipc_mon_rcv()
657 dom = kzalloc(sizeof(*dom), GFP_ATOMIC); in tipc_mon_create()
661 kfree(dom); in tipc_mon_create()
772 if (dom) { in __tipc_nl_add_monitor_peer()
[all …]
/linux/drivers/firmware/arm_scmi/
A Dperf.c385 if (dom->fc_info && dom->fc_info->limit_set_addr) { in scmi_perf_limits_set()
427 if (dom->fc_info && dom->fc_info->limit_get_addr) { in scmi_perf_limits_get()
464 if (dom->fc_info && dom->fc_info->level_set_addr) { in scmi_perf_level_set()
501 if (dom->fc_info && dom->fc_info->level_get_addr) { in scmi_perf_level_get()
646 struct perf_dom_info *dom; in scmi_dvfs_device_opps_add() local
655 for (opp = dom->opp, idx = 0; idx < dom->opp_count; idx++, opp++) { in scmi_dvfs_device_opps_add()
676 struct perf_dom_info *dom; in scmi_dvfs_transition_latency_get() local
685 return dom->opp[dom->opp_count - 1].trans_latency_us * 1000; in scmi_dvfs_transition_latency_get()
723 if (!dom) in scmi_dvfs_est_power_get()
726 for (opp = dom->opp, idx = 0; idx < dom->opp_count; idx++, opp++) { in scmi_dvfs_est_power_get()
[all …]
A Dreset.c134 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
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()
317 struct reset_dom_info *dom = pinfo->dom_info + domain; in scmi_reset_protocol_init() local
[all …]
/linux/drivers/gpu/drm/etnaviv/
A Detnaviv_perfmon.c503 const struct etnaviv_pm_domain *dom; in etnaviv_pm_query_dom() local
508 dom = pm_domain(gpu, domain->iter); in etnaviv_pm_query_dom()
509 if (!dom) in etnaviv_pm_query_dom()
527 const struct etnaviv_pm_domain *dom; in etnaviv_pm_query_sig() local
534 if (!dom) in etnaviv_pm_query_sig()
540 sig = &dom->signal[signal->iter]; in etnaviv_pm_query_sig()
561 dom = meta->domains + r->domain; in etnaviv_pm_req_validate()
563 if (r->signal >= dom->nr_signals) in etnaviv_pm_req_validate()
578 dom = meta->domains + pmr->domain; in etnaviv_perfmon_process()
579 sig = &dom->signal[pmr->signal]; in etnaviv_perfmon_process()
[all …]
/linux/drivers/soc/bcm/
A Draspberrypi-power.c83 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()
124 dom->old_interface = true; in rpi_init_old_power_domain()
[all …]
A Dbcm2835-power.c495 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()
512 dom->domain = pd_xlate_index; in bcm2835_init_power_domain()
513 dom->power = power; in bcm2835_init_power_domain()
516 pm_genpd_init(&dom->base, NULL, true); in bcm2835_init_power_domain()
674 if (dom->name) in bcm2835_power_probe()
[all …]
/linux/arch/arm/include/asm/
A Ddomain.h55 #define domain_mask(dom) ((3) << (2 * (dom))) argument
56 #define domain_val(dom,type) ((type) << (2 * (dom))) argument
116 #define modify_domain(dom,type) \ argument
119 domain &= ~domain_mask(dom); \
120 domain = domain | domain_val(dom, type); \
125 static inline void modify_domain(unsigned dom, unsigned type) { } in modify_domain() argument
/linux/security/landlock/
A Dfs.c313 const struct landlock_ruleset *const dom = in current_check_access_path() local
316 if (!dom) in current_check_access_path()
551 const struct landlock_ruleset *const dom = in hook_path_link() local
554 if (!dom) in hook_path_link()
562 return check_access_path(dom, new_dir, in hook_path_link()
579 const struct landlock_ruleset *const dom = in hook_path_rename() local
582 if (!dom) in hook_path_rename()
606 const struct landlock_ruleset *const dom = in hook_path_mknod() local
609 if (!dom) in hook_path_mknod()
654 const struct landlock_ruleset *const dom = in hook_file_open() local
[all …]
/linux/arch/x86/kernel/cpu/resctrl/
A Dctrlmondata.c201 char *dom = NULL, *id; in parse_line() local
214 dom = strsep(&line, ";"); in parse_line()
215 id = strsep(&dom, "="); in parse_line()
216 if (!dom || kstrtoul(id, 10, &dom_id)) { in parse_line()
220 dom = strim(dom); in parse_line()
223 data.buf = dom; in parse_line()
266 struct rdt_domain *dom = &hw_dom->d_resctrl; in apply_config() local
356 struct rdt_domain *dom; in rdtgroup_schemata_write() local
387 memset(dom->staged_config, 0, sizeof(dom->staged_config)); in rdtgroup_schemata_write()
444 struct rdt_domain *dom; in show_doms() local
[all …]
/linux/drivers/regulator/
A Dscmi-regulator.c260 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()
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()
288 rinfo->sregv[dom]->of_node = np; in process_scmi_regulator_of_node()
[all …]
/linux/mm/
A Dpage-writeback.c125 struct wb_domain *dom; member
165 return dtc->dom; in mdtc_valid()
170 return dtc->dom; in dtc_dom()
580 mod_timer(&dom->period_timer, dom->period_time); in wb_domain_writeout_add()
618 struct wb_domain *dom = from_timer(dom, t, period_timer); in writeout_period() local
623 dom->period_time = wp_next_time(dom->period_time + in writeout_period()
625 mod_timer(&dom->period_timer, dom->period_time); in writeout_period()
631 dom->period_time = 0; in writeout_period()
637 memset(dom, 0, sizeof(*dom)); in wb_domain_init()
1161 spin_lock(&dom->lock); in domain_update_dirty_limit()
[all …]
/linux/include/uapi/xen/
A Dprivcmd.h58 domid_t dom; /* target domain */ member
64 domid_t dom; /* target domain */ member
75 domid_t dom; /* target domain */ member
87 domid_t dom; member
93 domid_t dom; member
/linux/drivers/s390/crypto/
A Dap_bus.c1395 int card, dom; in ap_select_domain() local
1407 for (dom = 0; dom <= ap_max_domain_id; dom++) { in ap_select_domain()
1424 if (dom <= ap_max_domain_id) { in ap_select_domain()
1425 ap_domain_index = dom; in ap_select_domain()
1532 int rc, dom, depth, type, ml; in ap_scan_domains() local
1540 for (dom = 0; dom <= ap_max_domain_id; dom++) { in ap_scan_domains()
1541 qid = AP_MKQID(ac->id, dom); in ap_scan_domains()
1607 __func__, ac->id, dom); in ap_scan_domains()
1680 for (dom = 0; dom <= ap_max_domain_id; dom++) in ap_scan_adapter()
1682 qid = AP_MKQID(ap, dom); in ap_scan_adapter()
[all …]
/linux/drivers/iommu/amd/
A Damd_iommu.h53 extern void amd_iommu_domain_direct_map(struct iommu_domain *dom);
54 extern int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids);
55 extern int amd_iommu_flush_page(struct iommu_domain *dom, u32 pasid,
61 extern int amd_iommu_flush_tlb(struct iommu_domain *dom, u32 pasid);
62 extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, u32 pasid,
64 extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, u32 pasid);
/linux/include/xen/interface/
A Devent_channel.h29 domid_t dom, remote_dom; member
130 domid_t dom; member
143 domid_t dom; member
146 domid_t dom; member
190 domid_t dom; member
A Dgrant_table.h250 domid_t dom; member
292 domid_t dom; member
307 domid_t dom; member
383 domid_t dom; member
443 domid_t dom; member
457 domid_t dom; member
/linux/net/sunrpc/
A Dsvcauth.c153 struct auth_domain *dom = container_of(kref, struct auth_domain, ref); in auth_domain_release() local
155 hlist_del_rcu(&dom->hash); in auth_domain_release()
156 dom->flavour->domain_release(dom); in auth_domain_release()
160 void auth_domain_put(struct auth_domain *dom) in auth_domain_put() argument
162 kref_put_lock(&dom->ref, auth_domain_release, &auth_domain_lock); in auth_domain_put()

Completed in 61 milliseconds

1234