Home
last modified time | relevance | path

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

12345

/linux-6.12.1/drivers/firmware/arm_scmi/
Dperf.c377 process_response_opp(struct device *dev, struct perf_dom_info *dom, in process_response_opp() argument
388 ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL); in process_response_opp()
391 opp->perf, dom->info.name, ret); in process_response_opp()
399 process_response_opp_v4(struct device *dev, struct perf_dom_info *dom, in process_response_opp_v4() argument
410 ret = xa_insert(&dom->opps_by_lvl, opp->perf, opp, GFP_KERNEL); in process_response_opp_v4()
413 opp->perf, dom->info.name, ret); in process_response_opp_v4()
419 if (dom->level_indexing_mode) { in process_response_opp_v4()
422 ret = xa_insert(&dom->opps_by_idx, opp->level_index, opp, in process_response_opp_v4()
427 opp->level_index, dom->info.name, ret); in process_response_opp_v4()
430 xa_erase(&dom->opps_by_lvl, opp->perf); in process_response_opp_v4()
[all …]
Dreset.c161 struct reset_dom_info *dom = pi->dom_info + domain; in scmi_reset_name_get() local
163 return dom->name; in scmi_reset_name_get()
170 struct reset_dom_info *dom = pi->dom_info + domain; in scmi_reset_latency_get() local
172 return dom->latency_us; in scmi_reset_latency_get()
180 struct scmi_msg_reset_domain_reset *dom; in scmi_domain_reset() local
191 ret = ph->xops->xfer_get_init(ph, RESET, sizeof(*dom), 0, &t); in scmi_domain_reset()
195 dom = t->tx.buf; in scmi_domain_reset()
196 dom->domain_id = cpu_to_le32(domain); in scmi_domain_reset()
197 dom->flags = cpu_to_le32(flags); in scmi_domain_reset()
198 dom->reset_state = cpu_to_le32(state); in scmi_domain_reset()
[all …]
/linux-6.12.1/drivers/iommu/
Dsprd-iommu.c66 struct sprd_iommu_domain *dom; member
86 static struct sprd_iommu_domain *to_sprd_domain(struct iommu_domain *dom) in to_sprd_domain() argument
88 return container_of(dom, struct sprd_iommu_domain, domain); in to_sprd_domain()
138 struct sprd_iommu_domain *dom; in sprd_iommu_domain_alloc_paging() local
140 dom = kzalloc(sizeof(*dom), GFP_KERNEL); in sprd_iommu_domain_alloc_paging()
141 if (!dom) in sprd_iommu_domain_alloc_paging()
144 spin_lock_init(&dom->pgtlock); in sprd_iommu_domain_alloc_paging()
146 dom->domain.geometry.aperture_start = 0; in sprd_iommu_domain_alloc_paging()
147 dom->domain.geometry.aperture_end = SZ_256M - 1; in sprd_iommu_domain_alloc_paging()
148 dom->domain.geometry.force_aperture = true; in sprd_iommu_domain_alloc_paging()
[all …]
Dmtk_iommu_v1.c133 static struct mtk_iommu_v1_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument
135 return container_of(dom, struct mtk_iommu_v1_domain, domain); in to_mtk_domain()
197 struct mtk_iommu_v1_domain *dom = data->m4u_dom; in mtk_iommu_v1_isr() local
215 if (report_iommu_fault(&dom->domain, data->dev, fault_iova, in mtk_iommu_v1_isr()
257 struct mtk_iommu_v1_domain *dom = data->m4u_dom; in mtk_iommu_v1_domain_finalise() local
259 spin_lock_init(&dom->pgtlock); in mtk_iommu_v1_domain_finalise()
261 dom->pgt_va = dma_alloc_coherent(data->dev, M2701_IOMMU_PGT_SIZE, in mtk_iommu_v1_domain_finalise()
262 &dom->pgt_pa, GFP_KERNEL); in mtk_iommu_v1_domain_finalise()
263 if (!dom->pgt_va) in mtk_iommu_v1_domain_finalise()
266 writel(dom->pgt_pa, data->base + REG_MMU_PT_BASE_ADDR); in mtk_iommu_v1_domain_finalise()
[all …]
Dmtk_iommu.c370 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument
372 return container_of(dom, struct mtk_iommu_domain, domain); in to_mtk_domain()
459 struct mtk_iommu_domain *dom = bank->m4u_dom; in mtk_iommu_isr() local
507 if (!dom || report_iommu_fault(&dom->domain, bank->parent_dev, fault_iova, in mtk_iommu_isr()
639 static int mtk_iommu_domain_finalise(struct mtk_iommu_domain *dom, in mtk_iommu_domain_finalise() argument
648 dom->iop = share_dom->iop; in mtk_iommu_domain_finalise()
649 dom->cfg = share_dom->cfg; in mtk_iommu_domain_finalise()
650 dom->domain.pgsize_bitmap = share_dom->cfg.pgsize_bitmap; in mtk_iommu_domain_finalise()
654 dom->cfg = (struct io_pgtable_cfg) { in mtk_iommu_domain_finalise()
664 dom->cfg.quirks |= IO_PGTABLE_QUIRK_ARM_MTK_TTBR_EXT; in mtk_iommu_domain_finalise()
[all …]
/linux-6.12.1/arch/x86/kernel/cpu/
Dtopology_common.c18 void topology_set_dom(struct topo_scan *tscan, enum x86_topology_domains dom, in topology_set_dom() argument
21 topology_update_dom(tscan, dom, shift, ncpus); in topology_set_dom()
24 for (dom++; dom < TOPO_MAX_DOMAIN; dom++) { in topology_set_dom()
25 tscan->dom_shifts[dom] = tscan->dom_shifts[dom - 1]; in topology_set_dom()
26 tscan->dom_ncpus[dom] = tscan->dom_ncpus[dom - 1]; in topology_set_dom()
168 unsigned int dom, cpu = smp_processor_id(); in cpu_parse_topology() local
185 for (dom = TOPO_SMT_DOMAIN; dom < TOPO_MAX_DOMAIN; dom++) { in cpu_parse_topology()
186 if (tscan.dom_shifts[dom] == x86_topo_system.dom_shifts[dom]) in cpu_parse_topology()
188 pr_err(FW_BUG "CPU%d: Topology domain %u shift %u != %u\n", cpu, dom, in cpu_parse_topology()
189 tscan.dom_shifts[dom], x86_topo_system.dom_shifts[dom]); in cpu_parse_topology()
[all …]
Dtopology.h20 void topology_set_dom(struct topo_scan *tscan, enum x86_topology_domains dom,
26 static inline u32 topo_shift_apicid(u32 apicid, enum x86_topology_domains dom) in topo_shift_apicid() argument
28 if (dom == TOPO_SMT_DOMAIN) in topo_shift_apicid()
30 return apicid >> x86_topo_system.dom_shifts[dom - 1]; in topo_shift_apicid()
33 static inline u32 topo_relative_domain_id(u32 apicid, enum x86_topology_domains dom) in topo_relative_domain_id() argument
35 if (dom != TOPO_SMT_DOMAIN) in topo_relative_domain_id()
36 apicid >>= x86_topo_system.dom_shifts[dom - 1]; in topo_relative_domain_id()
37 return apicid & (x86_topo_system.dom_size[dom] - 1); in topo_relative_domain_id()
40 static inline u32 topo_domain_mask(enum x86_topology_domains dom) in topo_domain_mask() argument
42 return (1U << x86_topo_system.dom_shifts[dom]) - 1; in topo_domain_mask()
[all …]
Ddebugfs.c61 unsigned int dom, nthreads = 1; in dom_debug_show() local
63 for (dom = 0; dom < TOPO_MAX_DOMAIN; dom++) { in dom_debug_show()
64 nthreads *= x86_topo_system.dom_size[dom]; in dom_debug_show()
66 domain_names[dom], x86_topo_system.dom_shifts[dom], in dom_debug_show()
67 x86_topo_system.dom_size[dom], nthreads); in dom_debug_show()
Dtopology_ext.c48 unsigned int dom, maxtype; in topo_subleaf() local
87 dom = *last_dom + 1; in topo_subleaf()
89 dom = map[sl.type]; in topo_subleaf()
90 *last_dom = dom; in topo_subleaf()
93 if (!dom) { in topo_subleaf()
100 topology_set_dom(tscan, dom, sl.x2apic_shift, sl.num_processors); in topo_subleaf()
/linux-6.12.1/drivers/pmdomain/amlogic/
Dmeson-ee-pwrc.c433 struct meson_ee_pwrc_domain *dom) in meson_ee_pwrc_init_domain() argument
437 dom->pwrc = pwrc; in meson_ee_pwrc_init_domain()
438 dom->num_rstc = dom->desc.reset_names_count; in meson_ee_pwrc_init_domain()
439 dom->num_clks = dom->desc.clk_names_count; in meson_ee_pwrc_init_domain()
441 if (dom->num_rstc) { in meson_ee_pwrc_init_domain()
444 if (count != dom->num_rstc) in meson_ee_pwrc_init_domain()
446 count, dom->desc.name); in meson_ee_pwrc_init_domain()
448 dom->rstc = devm_reset_control_array_get_exclusive(&pdev->dev); in meson_ee_pwrc_init_domain()
449 if (IS_ERR(dom->rstc)) in meson_ee_pwrc_init_domain()
450 return PTR_ERR(dom->rstc); in meson_ee_pwrc_init_domain()
[all …]
Dmeson-secure-pwrc.c312 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe() local
317 dom->pwrc = pwrc; in meson_secure_pwrc_probe()
318 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
319 dom->parent = match->domains[i].parent; in meson_secure_pwrc_probe()
320 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe()
321 dom->base.flags = match->domains[i].flags; in meson_secure_pwrc_probe()
322 dom->base.power_on = meson_secure_pwrc_on; in meson_secure_pwrc_probe()
323 dom->base.power_off = meson_secure_pwrc_off; in meson_secure_pwrc_probe()
325 if (match->domains[i].is_off(dom) && (dom->base.flags & GENPD_FLAG_ALWAYS_ON)) in meson_secure_pwrc_probe()
326 meson_secure_pwrc_on(&dom->base); in meson_secure_pwrc_probe()
[all …]
/linux-6.12.1/security/landlock/
Dtask.c215 const struct landlock_ruleset *const dom = in hook_unix_stream_connect() local
220 if (!dom) in hook_unix_stream_connect()
223 if (is_abstract_socket(other) && sock_is_scoped(other, dom)) in hook_unix_stream_connect()
232 const struct landlock_ruleset *const dom = in hook_unix_may_send() local
236 if (!dom) in hook_unix_may_send()
246 if (is_abstract_socket(other->sk) && sock_is_scoped(other->sk, dom)) in hook_unix_may_send()
261 const struct landlock_ruleset *dom; in hook_task_kill() local
265 dom = landlock_cred(cred)->domain; in hook_task_kill()
267 dom = landlock_get_current_domain(); in hook_task_kill()
269 dom = landlock_get_applicable_domain(dom, signal_scope); in hook_task_kill()
[all …]
Dnet.c57 const struct landlock_ruleset *const dom = in current_check_access_socket() local
61 if (!dom) in current_check_access_socket()
63 if (WARN_ON_ONCE(dom->num_layers < 1)) in current_check_access_socket()
149 rule = landlock_find_rule(dom, id); in current_check_access_socket()
151 dom, access_request, &layer_masks, LANDLOCK_KEY_NET_PORT); in current_check_access_socket()
/linux-6.12.1/net/tipc/
Dmonitor.c139 static int dom_rec_len(struct tipc_mon_domain *dom, u16 mcnt) in dom_rec_len() argument
248 struct tipc_mon_domain *dom = peer->domain; in mon_apply_domain() local
253 if (!dom || !peer->is_up) in mon_apply_domain()
259 for (i = 0; i < dom->member_cnt; i++) { in mon_apply_domain()
260 addr = dom->members[i]; in mon_apply_domain()
274 struct tipc_mon_domain *dom = self->domain; in mon_update_local_domain() local
276 u64 prev_up_map = dom->up_map; in mon_update_local_domain()
285 dom->len = dom_rec_len(dom, member_cnt); in mon_update_local_domain()
286 diff = dom->member_cnt != member_cnt; in mon_update_local_domain()
287 dom->member_cnt = member_cnt; in mon_update_local_domain()
[all …]
/linux-6.12.1/drivers/pmdomain/bcm/
Draspberrypi-power.c89 struct rpi_power_domain *dom = &rpi_domains->domains[xlate_index]; in rpi_common_init_power_domain() local
91 dom->fw = rpi_domains->fw; in rpi_common_init_power_domain()
93 dom->base.name = name; in rpi_common_init_power_domain()
94 dom->base.flags = GENPD_FLAG_ACTIVE_WAKEUP; in rpi_common_init_power_domain()
95 dom->base.power_on = rpi_domain_on; in rpi_common_init_power_domain()
96 dom->base.power_off = rpi_domain_off; in rpi_common_init_power_domain()
106 pm_genpd_init(&dom->base, NULL, true); in rpi_common_init_power_domain()
108 rpi_domains->xlate.domains[xlate_index] = &dom->base; in rpi_common_init_power_domain()
114 struct rpi_power_domain *dom = &rpi_domains->domains[xlate_index]; in rpi_init_power_domain() local
120 dom->domain = xlate_index + 1; in rpi_init_power_domain()
[all …]
Dbcm2835-power.c507 struct bcm2835_power_domain *dom = &power->domains[pd_xlate_index]; in bcm2835_init_power_domain() local
509 dom->clk = devm_clk_get(dev->parent, name); in bcm2835_init_power_domain()
510 if (IS_ERR(dom->clk)) { in bcm2835_init_power_domain()
511 int ret = PTR_ERR(dom->clk); in bcm2835_init_power_domain()
519 dom->clk = NULL; in bcm2835_init_power_domain()
522 dom->base.name = name; in bcm2835_init_power_domain()
523 dom->base.power_on = bcm2835_power_pd_power_on; in bcm2835_init_power_domain()
524 dom->base.power_off = bcm2835_power_pd_power_off; in bcm2835_init_power_domain()
526 dom->domain = pd_xlate_index; in bcm2835_init_power_domain()
527 dom->power = power; in bcm2835_init_power_domain()
[all …]
/linux-6.12.1/drivers/gpu/drm/etnaviv/
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()
513 domain->nr_signals = dom->nr_signals; in etnaviv_pm_query_dom()
514 strscpy_pad(domain->name, dom->name, sizeof(domain->name)); in etnaviv_pm_query_dom()
527 const struct etnaviv_pm_domain *dom; in etnaviv_pm_query_sig() local
533 dom = pm_domain(gpu, signal->domain); in etnaviv_pm_query_sig()
534 if (!dom) in etnaviv_pm_query_sig()
537 if (signal->iter >= dom->nr_signals) in etnaviv_pm_query_sig()
540 sig = &dom->signal[signal->iter]; in etnaviv_pm_query_sig()
[all …]
/linux-6.12.1/fs/nfs_common/
Dnfslocalio.c26 nfs_uuid->dom = NULL; in nfs_uuid_init()
72 struct net *net, struct auth_domain *dom, in nfs_uuid_is_local() argument
80 kref_get(&dom->ref); in nfs_uuid_is_local()
81 nfs_uuid->dom = dom; in nfs_uuid_is_local()
103 if (nfs_uuid->dom) { in nfs_uuid_put_locked()
104 auth_domain_put(nfs_uuid->dom); in nfs_uuid_put_locked()
105 nfs_uuid->dom = NULL; in nfs_uuid_put_locked()
156 localio = nfs_to->nfsd_open_local_fh(net, uuid->dom, rpc_clnt, in nfs_open_local_fh()
/linux-6.12.1/include/uapi/xen/
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
109 domid_t dom; member
125 domid_t dom; member
/linux-6.12.1/drivers/regulator/
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()
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 …]
/linux-6.12.1/mm/
Dpage-writeback.c126 struct wb_domain *dom; member
156 .dom = &global_wb_domain, \
159 #define GDTC_INIT_NO_WB .dom = &global_wb_domain
162 .dom = mem_cgroup_wb_domain(__wb), \
168 return dtc->dom; in mdtc_valid()
173 return dtc->dom; in dtc_dom()
580 static void wb_domain_writeout_add(struct wb_domain *dom, in wb_domain_writeout_add() argument
584 __fprop_add_percpu_max(&dom->completions, completions, in wb_domain_writeout_add()
587 if (unlikely(!dom->period_time)) { in wb_domain_writeout_add()
594 dom->period_time = wp_next_time(jiffies); in wb_domain_writeout_add()
[all …]
/linux-6.12.1/include/xen/interface/
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
Dgrant_table.h286 domid_t dom; member
326 domid_t dom; member
340 domid_t dom; member
414 domid_t dom; member
470 domid_t dom; member
483 domid_t dom; member
/linux-6.12.1/arch/x86/kernel/cpu/resctrl/
Dctrlmondata.c217 char *dom = NULL, *id; in parse_line() local
232 dom = strsep(&line, ";"); in parse_line()
233 id = strsep(&dom, "="); in parse_line()
234 if (!dom || kstrtoul(id, 10, &dom_id)) { in parse_line()
238 dom = strim(dom); in parse_line()
241 data.buf = dom; in parse_line()
294 msr_param.dom = d; in resctrl_arch_update_one()
331 msr_param.dom = d; in resctrl_arch_update_domains()
450 struct rdt_ctrl_domain *dom; in show_doms() local
458 list_for_each_entry(dom, &r->ctrl_domains, hdr.list) { in show_doms()
[all …]
/linux-6.12.1/drivers/xen/
Dprivcmd.c281 if (data->domid != DOMID_INVALID && data->domid != mmapcmd.dom) in privcmd_ioctl_mmap()
308 state.domain = mmapcmd.dom; in privcmd_ioctl_mmap()
488 if (data->domid != DOMID_INVALID && data->domid != m.dom) in privcmd_ioctl_mmap_batch()
556 state.domain = m.dom; in privcmd_ioctl_mmap_batch()
647 if (data->domid != DOMID_INVALID && data->domid != kdata.dom) in privcmd_ioctl_dm_op()
705 rc = HYPERVISOR_dm_op(kdata.dom, kdata.num, xbufs); in privcmd_ioctl_dm_op()
720 domid_t dom; in privcmd_ioctl_restrict() local
722 if (copy_from_user(&dom, udata, sizeof(dom))) in privcmd_ioctl_restrict()
727 data->domid = dom; in privcmd_ioctl_restrict()
728 else if (data->domid != dom) in privcmd_ioctl_restrict()
[all …]

12345