| /linux/drivers/iommu/ |
| H A D | sprd-iommu.c | 66 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_obj(*dom); 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 D | mtk_iommu_v1.c | 143 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 D | mtk_iommu.c | 385 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 D | topology.h | 20 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 D | topology_ext.c | 48 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 D | meson-ee-pwrc.c | 433 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 D | monitor.c | 139 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/drivers/pmdomain/bcm/ |
| H A D | raspberrypi-power.c | 89 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 D | privcmd.h | 58 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 D | dns_resolve.c | 59 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/mm/ |
| H A D | page-writeback.c | 126 .dom = &global_wb_domain, \ 129 #define GDTC_INIT_NO_WB .dom = &global_wb_domain 132 .dom = mem_cgroup_wb_domain(__wb), \ 138 return dtc->dom; 143 return dtc->dom; 550 static void wb_domain_writeout_add(struct wb_domain *dom, in wp_next_time() 554 __fprop_add_percpu_max(&dom->completions, completions, in wp_next_time() 557 if (unlikely(!dom->period_time)) { 564 dom->period_time = wp_next_time(jiffies); in wb_domain_writeout_add() 565 mod_timer(&dom in wb_domain_writeout_add() 558 wb_domain_writeout_add(struct wb_domain * dom,struct fprop_local_percpu * completions,unsigned int max_prop_frac,long nr) wb_domain_writeout_add() argument 611 struct wb_domain *dom = timer_container_of(dom, t, period_timer); writeout_period() local 628 wb_domain_init(struct wb_domain * dom,gfp_t gfp) wb_domain_init() argument 642 wb_domain_exit(struct wb_domain * dom) wb_domain_exit() argument 827 hard_dirty_limit(struct wb_domain * dom,unsigned long thresh) hard_dirty_limit() argument 903 struct wb_domain *dom = dtc_dom(dtc); __wb_calc_thresh() local 1286 struct wb_domain *dom = dtc_dom(dtc); update_dirty_limit() local 1316 struct wb_domain *dom = dtc_dom(dtc); domain_update_dirty_limit() local 2247 struct wb_domain *dom = &global_wb_domain; writeback_set_ratelimit() local [all...] |
| /linux/include/linux/ |
| H A D | writeback.h | 159 * @dom: wb_domain of interest 162 * @dom has changed. It resets @dom's dirty limit parameters to prevent 169 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 332 int wb_domain_init(struct wb_domain *dom, gfp_ [all...] |
| /linux/fs/nfs_common/ |
| H A D | nfslocalio.c | 41 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 D | privcmd.c | 281 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/drivers/iommu/amd/ |
| H A D | nested.c | 16 static inline struct nested_domain *to_ndomain(struct iommu_domain *dom) in to_ndomain() argument 18 return container_of(dom, struct nested_domain, domain); in to_ndomain() 186 static void set_dte_nested(struct amd_iommu *iommu, struct iommu_domain *dom, in set_dte_nested() argument 190 struct nested_domain *ndom = to_ndomain(dom); in set_dte_nested() 232 static int nested_attach_device(struct iommu_domain *dom, struct device *dev, in nested_attach_device() argument 249 set_dte_nested(iommu, dom, dev_data, &new); in nested_attach_device() 258 static void nested_domain_free(struct iommu_domain *dom) in nested_domain_free() argument 261 struct nested_domain *ndom = to_ndomain(dom); in nested_domain_free()
|
| /linux/include/xen/interface/ |
| H A D | event_channel.h | 29 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 D | grant_table.h | 286 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 D | domain.h | 55 #define domain_mask(dom) ((3) << (2 * (dom))) argument 56 #define domain_val(dom,type) ((type) << (2 * (dom))) argument
|
| /linux/net/sunrpc/ |
| H A D | svcauth.c | 224 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()
|
| H A D | svcauth_unix.c | 45 struct auth_domain *dom = container_of(head, struct auth_domain, rcu_head); in svcauth_unix_domain_release_rcu() local 46 struct unix_domain *ud = container_of(dom, struct unix_domain, h); in svcauth_unix_domain_release_rcu() 48 kfree(dom->name); in svcauth_unix_domain_release_rcu() 52 static void svcauth_unix_domain_release(struct auth_domain *dom) in svcauth_unix_domain_release() argument 54 call_rcu(&dom->rcu_head, svcauth_unix_domain_release_rcu); in svcauth_unix_domain_release() 196 struct auth_domain *dom; in ip_map_parse() local 238 dom = unix_domain_find(buf); in ip_map_parse() 239 if (dom == NULL) in ip_map_parse() 242 dom = NULL; in ip_map_parse() 248 container_of(dom, struct unix_domain, h), in ip_map_parse() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A 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()
|
| /linux/security/landlock/ |
| H A D | cred.c | 40 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
|
| H A D | audit.c | 204 const struct landlock_ruleset dom = { in test_get_denied_layer() local 217 KUNIT_EXPECT_EQ(test, 0, get_denied_layer(&dom, &access, &masks)); in test_get_denied_layer() 221 KUNIT_EXPECT_EQ(test, 1, get_denied_layer(&dom, &access, &masks)); in test_get_denied_layer() 225 KUNIT_EXPECT_EQ(test, 1, get_denied_layer(&dom, &access, &masks)); in test_get_denied_layer() 229 KUNIT_EXPECT_EQ(test, 1, get_denied_layer(&dom, &access, &masks)); in test_get_denied_layer() 235 KUNIT_EXPECT_EQ(test, 1, get_denied_layer(&dom, &access, &masks)); in test_get_denied_layer() 239 KUNIT_EXPECT_EQ(test, 4, get_denied_layer(&dom, &access, &masks)); in test_get_denied_layer()
|
| /linux/arch/x86/include/asm/ |
| H A D | topology.h | 130 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()
|
| /linux/drivers/irqchip/ |
| H A 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()
|