Home
last modified time | relevance | path

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

1234

/linux/drivers/firmware/arm_scmi/
H A 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 …]
H A 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/drivers/iommu/
H A 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 …]
H A Dmtk_iommu_v1.c134 static struct mtk_iommu_v1_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument
136 return container_of(dom, struct mtk_iommu_v1_domain, domain); in to_mtk_domain()
198 struct mtk_iommu_v1_domain *dom = data->m4u_dom; in mtk_iommu_v1_isr() local
216 if (report_iommu_fault(&dom->domain, data->dev, fault_iova, in mtk_iommu_v1_isr()
258 struct mtk_iommu_v1_domain *dom = data->m4u_dom; in mtk_iommu_v1_domain_finalise() local
260 spin_lock_init(&dom->pgtlock); in mtk_iommu_v1_domain_finalise()
262 dom->pgt_va = dma_alloc_coherent(data->dev, M2701_IOMMU_PGT_SIZE, in mtk_iommu_v1_domain_finalise()
263 &dom->pgt_pa, GFP_KERNEL); in mtk_iommu_v1_domain_finalise()
264 if (!dom->pgt_va) in mtk_iommu_v1_domain_finalise()
267 writel(dom->pgt_pa, data->base + REG_MMU_PT_BASE_ADDR); in mtk_iommu_v1_domain_finalise()
[all …]
H A Dmtk_iommu.c371 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument
373 return container_of(dom, struct mtk_iommu_domain, domain); in to_mtk_domain()
460 struct mtk_iommu_domain *dom = bank->m4u_dom; in mtk_iommu_isr() local
508 if (!dom || report_iommu_fault(&dom->domain, bank->parent_dev, fault_iova, in mtk_iommu_isr()
640 static int mtk_iommu_domain_finalise(struct mtk_iommu_domain *dom, in mtk_iommu_domain_finalise() argument
649 dom->iop = share_dom->iop; in mtk_iommu_domain_finalise()
650 dom->cfg = share_dom->cfg; in mtk_iommu_domain_finalise()
651 dom->domain.pgsize_bitmap = share_dom->cfg.pgsize_bitmap; in mtk_iommu_domain_finalise()
655 dom->cfg = (struct io_pgtable_cfg) { in mtk_iommu_domain_finalise()
665 dom->cfg.quirks |= IO_PGTABLE_QUIRK_ARM_MTK_TTBR_EXT; in mtk_iommu_domain_finalise()
[all …]
/linux/arch/x86/kernel/cpu/
H A 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 …]
H A 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()
H A Dtopology.c91 static inline u32 topo_apicid(u32 apicid, enum x86_topology_domains dom) in topo_apicid() argument
93 if (dom == TOPO_SMT_DOMAIN) in topo_apicid()
95 return apicid & (UINT_MAX << x86_topo_system.dom_shifts[dom - 1]); in topo_apicid()
223 int cpu, dom; in topo_register_apic() local
264 for (dom = TOPO_SMT_DOMAIN; dom < TOPO_MAX_DOMAIN; dom++) in topo_register_apic()
265 set_bit(topo_apicid(apic_id, dom), apic_maps[dom].map); in topo_register_apic()
/linux/drivers/pmdomain/amlogic/
H A 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 …]
H A 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/net/tipc/
H A 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/security/landlock/
H A 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 …]
H A 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()
148 rule = landlock_find_rule(dom, id); in current_check_access_socket()
150 dom, access_request, &layer_masks, LANDLOCK_KEY_NET_PORT); in current_check_access_socket()
/linux/drivers/pmdomain/bcm/
H A 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 …]
H A 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/include/uapi/xen/
H 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
109 domid_t dom; member
125 domid_t dom; member
/linux/fs/smb/client/
H A Ddns_resolve.c59 int dns_resolve_name(const char *dom, const char *name, in dns_resolve_name() argument
66 cifs_dbg(FYI, "%s: dom=%s name=%.*s\n", __func__, dom, (int)namelen, name); in dns_resolve_name()
83 if (dom && *dom && cifs_netbios_name(name, namelen)) { in dns_resolve_name()
84 len = strnlen(dom, CIFS_MAX_DOMAINNAME_LEN) + namelen + 2; in dns_resolve_name()
89 scnprintf(s, len, "%.*s.%s", (int)namelen, name, dom); in dns_resolve_name()
/linux/drivers/regulator/
H 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()
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/mm/
H A 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/drivers/xen/
H A 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 …]
/linux/include/xen/interface/
H 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
H A 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/include/linux/
H A Dwriteback.h180 static inline void wb_domain_size_changed(struct wb_domain *dom) in wb_domain_size_changed() argument
182 spin_lock(&dom->lock); in wb_domain_size_changed()
183 dom->dirty_limit_tstamp = jiffies; in wb_domain_size_changed()
184 dom->dirty_limit = 0; in wb_domain_size_changed()
185 spin_unlock(&dom->lock); in wb_domain_size_changed()
320 int wb_domain_init(struct wb_domain *dom, gfp_t gfp);
322 void wb_domain_exit(struct wb_domain *dom);
/linux/drivers/s390/crypto/
H A Dap_bus.c1648 int card, dom; in ap_select_domain() local
1660 for (dom = 0; dom <= ap_max_domain_id; dom++) { in ap_select_domain()
1661 if (!ap_test_config_usage_domain(dom) || in ap_select_domain()
1662 !test_bit_inv(dom, ap_perms.aqm)) in ap_select_domain()
1668 status = ap_test_queue(AP_MKQID(card, dom), in ap_select_domain()
1677 if (dom <= ap_max_domain_id) { in ap_select_domain()
1678 ap_domain_index = dom; in ap_select_domain()
1828 int rc, dom; in ap_scan_domains() local
1836 for (dom = 0; dom <= ap_max_domain_id; dom++) { in ap_scan_domains()
1837 qid = AP_MKQID(ac->id, dom); in ap_scan_domains()
[all …]
/linux/arch/arm/include/asm/
H A Ddomain.h55 #define domain_mask(dom) ((3) << (2 * (dom))) argument
56 #define domain_val(dom,type) ((type) << (2 * (dom))) argument

1234