Home
last modified time | relevance | path

Searched refs:dom (Results 1 – 25 of 78) 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.pgsize_bitmap = SPRD_IOMMU_PAGE_SIZE; in sprd_iommu_domain_alloc_paging()
148 dom->domain.geometry.aperture_start = 0; in sprd_iommu_domain_alloc_paging()
149 dom->domain.geometry.aperture_end = SZ_256M - 1; in sprd_iommu_domain_alloc_paging()
[all …]
H A Dmtk_iommu_v1.c143 static struct mtk_iommu_v1_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument
145 return container_of(dom, struct mtk_iommu_v1_domain, domain); in to_mtk_domain()
207 struct mtk_iommu_v1_domain *dom = data->m4u_dom; in mtk_iommu_v1_isr() local
225 if (report_iommu_fault(&dom->domain, data->dev, fault_iova, in mtk_iommu_v1_isr()
267 struct mtk_iommu_v1_domain *dom = data->m4u_dom; in mtk_iommu_v1_domain_finalise() local
269 spin_lock_init(&dom->pgtlock); in mtk_iommu_v1_domain_finalise()
271 dom->pgt_va = dma_alloc_coherent(data->dev, M2701_IOMMU_PGT_SIZE, in mtk_iommu_v1_domain_finalise()
272 &dom->pgt_pa, GFP_KERNEL); in mtk_iommu_v1_domain_finalise()
273 if (!dom->pgt_va) in mtk_iommu_v1_domain_finalise()
276 writel(dom->pgt_pa, data->base + REG_MMU_PT_BASE_ADDR); in mtk_iommu_v1_domain_finalise()
[all …]
H A Dmtk_iommu.c385 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain() argument
387 return container_of(dom, struct mtk_iommu_domain, domain); in to_mtk_domain()
474 struct mtk_iommu_domain *dom = bank->m4u_dom; in mtk_iommu_isr() local
522 if (!dom || report_iommu_fault(&dom->domain, bank->parent_dev, fault_iova, in mtk_iommu_isr()
654 static int mtk_iommu_domain_finalise(struct mtk_iommu_domain *dom, in mtk_iommu_domain_finalise() argument
663 dom->iop = share_dom->iop; in mtk_iommu_domain_finalise()
664 dom->cfg = share_dom->cfg; in mtk_iommu_domain_finalise()
665 dom->domain.pgsize_bitmap = share_dom->domain.pgsize_bitmap; in mtk_iommu_domain_finalise()
669 dom->cfg = (struct io_pgtable_cfg) { in mtk_iommu_domain_finalise()
673 .pgsize_bitmap = dom->domain.pgsize_bitmap, 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()
/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 …]
/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 = hook_unix_stream_connect() local
232 const struct landlock_ruleset *const dom = hook_unix_may_send() local
261 const struct landlock_ruleset *dom; hook_task_kill() local
288 const struct landlock_ruleset *dom; hook_file_send_sigiotask() local
H A Dcred.c40 struct landlock_ruleset *const dom = landlock_cred(cred)->domain; in hook_cred_free()
42 if (dom)
43 landlock_put_ruleset_deferred(dom);
37 struct landlock_ruleset *const dom = landlock_cred(cred)->domain; hook_cred_free() local
/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 …]
/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()
H A Ddns_resolve.h18 int dns_resolve_name(const char *dom, const char *name,
21 static inline int dns_resolve_unc(const char *dom, const char *unc, in dns_resolve_unc() argument
34 return dns_resolve_name(dom, name, namelen, ip_addr); in dns_resolve_unc()
/linux/mm/
H A Dpage-writeback.c134 .dom = &global_wb_domain, \
137 #define GDTC_INIT_NO_WB .dom = &global_wb_domain
140 .dom = mem_cgroup_wb_domain(__wb), \
146 return dtc->dom; in mdtc_valid()
151 return dtc->dom; in dtc_dom()
558 static void wb_domain_writeout_add(struct wb_domain *dom, in wb_domain_writeout_add() argument
562 __fprop_add_percpu_max(&dom->completions, completions, in wb_domain_writeout_add()
565 if (unlikely(!dom->period_time)) { in wb_domain_writeout_add()
572 dom->period_time = wp_next_time(jiffies); in wb_domain_writeout_add()
573 mod_timer(&dom->period_timer, dom->period_time); in wb_domain_writeout_add()
[all …]
/linux/include/linux/
H A Dwriteback.h169 static inline void wb_domain_size_changed(struct wb_domain *dom) in wb_domain_size_changed() argument
171 spin_lock(&dom->lock); in wb_domain_size_changed()
172 dom->dirty_limit_tstamp = jiffies; in wb_domain_size_changed()
173 dom->dirty_limit = 0; in wb_domain_size_changed()
174 spin_unlock(&dom->lock); in wb_domain_size_changed()
310 struct wb_domain *dom; member
335 int wb_domain_init(struct wb_domain *dom, gfp_t gfp);
337 void wb_domain_exit(struct wb_domain *dom);
/linux/fs/nfs_common/
H A Dnfslocalio.c41 nfs_uuid->dom = NULL; in nfs_uuid_init()
106 struct auth_domain *dom, struct module *mod) in nfs_uuid_is_local() argument
134 kref_get(&dom->ref); in nfs_uuid_is_local()
135 nfs_uuid->dom = dom; in nfs_uuid_is_local()
163 if (nfs_uuid->dom) { in nfs_uuid_put()
164 auth_domain_put(nfs_uuid->dom); in nfs_uuid_put()
165 nfs_uuid->dom = NULL; in nfs_uuid_put()
292 localio = nfs_to->nfsd_open_local_fh(net, uuid->dom, rpc_clnt, cred, in nfs_open_local_fh()
/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/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
/linux/net/sunrpc/
H A Dsvcauth.c224 struct auth_domain *dom = container_of(kref, struct auth_domain, ref); in auth_domain_release() local
226 hlist_del_rcu(&dom->hash); in auth_domain_release()
227 dom->flavour->domain_release(dom); in auth_domain_release()
231 void auth_domain_put(struct auth_domain *dom) in auth_domain_put() argument
233 kref_put_lock(&dom->ref, auth_domain_release, &auth_domain_lock); in auth_domain_put()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgt215.c275 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()
/linux/arch/x86/include/asm/
H A Dtopology.h130 static inline unsigned int topology_get_domain_size(enum x86_topology_domains dom) in topology_get_domain_size() argument
132 return x86_topo_system.dom_size[dom]; in topology_get_domain_size()
135 static inline unsigned int topology_get_domain_shift(enum x86_topology_domains dom) in topology_get_domain_shift() argument
137 return dom == TOPO_SMT_DOMAIN ? 0 : x86_topo_system.dom_shifts[dom - 1]; in topology_get_domain_shift()

1234