/linux-6.1.9/drivers/vdpa/vdpa_user/ |
D | iova_domain.c | 20 static int vduse_iotlb_add_range(struct vduse_iova_domain *domain, in vduse_iotlb_add_range() argument 35 ret = vhost_iotlb_add_range_ctx(domain->iotlb, start, last, in vduse_iotlb_add_range() 45 static void vduse_iotlb_del_range(struct vduse_iova_domain *domain, in vduse_iotlb_del_range() argument 51 while ((map = vhost_iotlb_itree_first(domain->iotlb, start, last))) { in vduse_iotlb_del_range() 55 vhost_iotlb_map_free(domain->iotlb, map); in vduse_iotlb_del_range() 59 int vduse_domain_set_map(struct vduse_iova_domain *domain, in vduse_domain_set_map() argument 67 spin_lock(&domain->iotlb_lock); in vduse_domain_set_map() 68 vduse_iotlb_del_range(domain, start, last); in vduse_domain_set_map() 73 ret = vduse_iotlb_add_range(domain, map->start, map->last, in vduse_domain_set_map() 80 spin_unlock(&domain->iotlb_lock); in vduse_domain_set_map() [all …]
|
/linux-6.1.9/kernel/irq/ |
D | irqdomain.c | 28 static void irq_domain_check_hierarchy(struct irq_domain *domain); 145 struct irq_domain *domain; in __irq_domain_add() local 154 domain = kzalloc_node(struct_size(domain, revmap, size), in __irq_domain_add() 156 if (!domain) in __irq_domain_add() 165 domain->fwnode = fwnode; in __irq_domain_add() 166 domain->name = kstrdup(fwid->name, GFP_KERNEL); in __irq_domain_add() 167 if (!domain->name) { in __irq_domain_add() 168 kfree(domain); in __irq_domain_add() 171 domain->flags |= IRQ_DOMAIN_NAME_ALLOCATED; in __irq_domain_add() 174 domain->fwnode = fwnode; in __irq_domain_add() [all …]
|
D | msi.c | 469 static void msi_check_level(struct irq_domain *domain, struct msi_msg *msg) in msi_check_level() argument 471 struct msi_domain_info *info = domain->host_data; in msi_check_level() 503 msi_check_level(irq_data->domain, msg); in msi_domain_set_affinity() 510 static int msi_domain_activate(struct irq_domain *domain, in msi_domain_activate() argument 516 msi_check_level(irq_data->domain, msg); in msi_domain_activate() 521 static void msi_domain_deactivate(struct irq_domain *domain, in msi_domain_deactivate() argument 530 static int msi_domain_alloc(struct irq_domain *domain, unsigned int virq, in msi_domain_alloc() argument 533 struct msi_domain_info *info = domain->host_data; in msi_domain_alloc() 538 if (irq_find_mapping(domain, hwirq) > 0) in msi_domain_alloc() 541 if (domain->parent) { in msi_domain_alloc() [all …]
|
/linux-6.1.9/drivers/scsi/elx/libefc/ |
D | efc_domain.c | 17 struct efc_domain *domain = NULL; in efc_domain_cb() local 22 domain = data; in efc_domain_cb() 37 domain = efc->domain; in efc_domain_cb() 38 if (!domain) { in efc_domain_cb() 39 domain = efc_domain_alloc(efc, fcf_wwn); in efc_domain_cb() 40 if (!domain) { in efc_domain_cb() 45 efc_sm_transition(&domain->drvsm, __efc_domain_init, in efc_domain_cb() 48 efc_domain_post_event(domain, EFC_EVT_DOMAIN_FOUND, drec); in efc_domain_cb() 53 domain_trace(domain, "EFC_HW_DOMAIN_LOST:\n"); in efc_domain_cb() 55 efc_domain_post_event(domain, EFC_EVT_DOMAIN_LOST, NULL); in efc_domain_cb() [all …]
|
D | efc_cmds.c | 132 nport->indicator, nport->domain->indicator); in efc_nport_alloc_init_vpi() 207 struct efc_domain *domain, u8 *wwpn) in efc_cmd_nport_alloc() argument 227 if (domain) { in efc_cmd_nport_alloc() 278 nport->domain->indicator, false); in efc_cmd_nport_attach() 317 efc_domain_get_mbox_status(struct efc_domain *domain, u8 *mqe, int status) in efc_domain_get_mbox_status() argument 319 struct efc *efc = domain->efc; in efc_domain_get_mbox_status() 325 domain->indicator, status, in efc_domain_get_mbox_status() 334 efc_domain_free_resources(struct efc_domain *domain, int evt, void *data) in efc_domain_free_resources() argument 336 struct efc *efc = domain->efc; in efc_domain_free_resources() 339 if (domain->dma.virt) { in efc_domain_free_resources() [all …]
|
/linux-6.1.9/drivers/soc/imx/ |
D | imx93-pd.c | 37 struct imx93_power_domain *domain = to_imx93_pd(genpd); in imx93_pd_on() local 38 void __iomem *addr = domain->addr; in imx93_pd_on() 42 ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks); in imx93_pd_on() 44 dev_err(domain->dev, "failed to enable clocks for domain: %s\n", genpd->name); in imx93_pd_on() 55 dev_err(domain->dev, "pd_on timeout: name: %s, stat: %x\n", genpd->name, val); in imx93_pd_on() 64 struct imx93_power_domain *domain = to_imx93_pd(genpd); in imx93_pd_off() local 65 void __iomem *addr = domain->addr; in imx93_pd_off() 77 dev_err(domain->dev, "pd_off timeout: name: %s, stat: %x\n", genpd->name, val); in imx93_pd_off() 81 clk_bulk_disable_unprepare(domain->num_clks, domain->clks); in imx93_pd_off() 88 struct imx93_power_domain *domain = platform_get_drvdata(pdev); in imx93_pd_remove() local [all …]
|
D | gpcv2.c | 318 struct imx_pgc_domain *domain = to_imx_pgc_domain(genpd); in imx_pgc_power_up() local 322 ret = pm_runtime_get_sync(domain->dev); in imx_pgc_power_up() 324 pm_runtime_put_noidle(domain->dev); in imx_pgc_power_up() 328 if (!IS_ERR(domain->regulator)) { in imx_pgc_power_up() 329 ret = regulator_enable(domain->regulator); in imx_pgc_power_up() 331 dev_err(domain->dev, in imx_pgc_power_up() 338 reset_control_assert(domain->reset); in imx_pgc_power_up() 341 ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks); in imx_pgc_power_up() 343 dev_err(domain->dev, "failed to enable reset clocks\n"); in imx_pgc_power_up() 350 if (domain->bits.pxx) { in imx_pgc_power_up() [all …]
|
D | gpc.c | 130 static int imx_pgc_get_clocks(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_get_clocks() argument 143 domain->clk[i] = clk; in imx_pgc_get_clocks() 145 domain->num_clks = i; in imx_pgc_get_clocks() 151 clk_put(domain->clk[i]); in imx_pgc_get_clocks() 156 static void imx_pgc_put_clocks(struct imx_pm_domain *domain) in imx_pgc_put_clocks() argument 160 for (i = domain->num_clks - 1; i >= 0; i--) in imx_pgc_put_clocks() 161 clk_put(domain->clk[i]); in imx_pgc_put_clocks() 164 static int imx_pgc_parse_dt(struct device *dev, struct imx_pm_domain *domain) in imx_pgc_parse_dt() argument 167 domain->supply = devm_regulator_get_optional(dev, "power"); in imx_pgc_parse_dt() 168 if (IS_ERR(domain->supply)) { in imx_pgc_parse_dt() [all …]
|
D | imx8mp-blk-ctrl.c | 34 void (*power_off) (struct imx8mp_blk_ctrl *bc, struct imx8mp_blk_ctrl_domain *domain); 35 void (*power_on) (struct imx8mp_blk_ctrl *bc, struct imx8mp_blk_ctrl_domain *domain); 64 void (*power_off) (struct imx8mp_blk_ctrl *bc, struct imx8mp_blk_ctrl_domain *domain); 65 void (*power_on) (struct imx8mp_blk_ctrl *bc, struct imx8mp_blk_ctrl_domain *domain); 77 struct imx8mp_blk_ctrl_domain *domain) in imx8mp_hsio_blk_ctrl_power_on() argument 79 switch (domain->id) { in imx8mp_hsio_blk_ctrl_power_on() 96 struct imx8mp_blk_ctrl_domain *domain) in imx8mp_hsio_blk_ctrl_power_off() argument 98 switch (domain->id) { in imx8mp_hsio_blk_ctrl_power_off() 206 struct imx8mp_blk_ctrl_domain *domain) in imx8mp_hdmi_blk_ctrl_power_on() argument 208 switch (domain->id) { in imx8mp_hdmi_blk_ctrl_power_on() [all …]
|
/linux-6.1.9/drivers/iommu/ |
D | ipmmu-vmsa.c | 212 static u32 ipmmu_ctx_read_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_read_root() argument 215 return ipmmu_ctx_read(domain->mmu->root, domain->context_id, reg); in ipmmu_ctx_read_root() 218 static void ipmmu_ctx_write_root(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_root() argument 221 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_root() 224 static void ipmmu_ctx_write_all(struct ipmmu_vmsa_domain *domain, in ipmmu_ctx_write_all() argument 227 if (domain->mmu != domain->mmu->root) in ipmmu_ctx_write_all() 228 ipmmu_ctx_write(domain->mmu, domain->context_id, reg, data); in ipmmu_ctx_write_all() 230 ipmmu_ctx_write(domain->mmu->root, domain->context_id, reg, data); in ipmmu_ctx_write_all() 255 static void ipmmu_tlb_sync(struct ipmmu_vmsa_domain *domain) in ipmmu_tlb_sync() argument 259 while (ipmmu_ctx_read_root(domain, IMCTR) & IMCTR_FLUSH) { in ipmmu_tlb_sync() [all …]
|
D | exynos-iommu.c | 230 struct iommu_domain *domain; /* domain this device is attached */ member 246 struct iommu_domain domain; /* generic domain data structure */ member 281 struct exynos_iommu_domain *domain; /* domain we belong to */ member 331 return container_of(dom, struct exynos_iommu_domain, domain); in to_exynos_domain() 506 if (data->domain) in exynos_sysmmu_irq() 507 ret = report_iommu_fault(&data->domain->domain, in exynos_sysmmu_irq() 764 if (data->domain) { in exynos_sysmmu_suspend() 782 if (data->domain) { in exynos_sysmmu_resume() 823 struct exynos_iommu_domain *domain; in exynos_iommu_domain_alloc() local 833 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in exynos_iommu_domain_alloc() [all …]
|
/linux-6.1.9/arch/arm/boot/dts/ |
D | keystone-k2hk-clocks.dtsi | 59 reg-names = "control", "domain"; 60 domain-id = <0>; 69 reg-names = "control", "domain"; 70 domain-id = <4>; 79 reg-names = "control", "domain"; 80 domain-id = <5>; 89 reg-names = "control", "domain"; 90 domain-id = <9>; 99 reg-names = "control", "domain"; 100 domain-id = <10>; [all …]
|
D | keystone-k2l-clocks.dtsi | 49 reg-names = "control", "domain"; 51 domain-id = <0>; 60 reg-names = "control", "domain"; 61 domain-id = <4>; 70 reg-names = "control", "domain"; 71 domain-id = <9>; 80 reg-names = "control", "domain"; 81 domain-id = <10>; 90 reg-names = "control", "domain"; 91 domain-id = <11>; [all …]
|
D | keystone-clocks.dtsi | 166 reg-names = "control", "domain"; 167 domain-id = <0>; 177 reg-names = "control", "domain"; 178 domain-id = <0>; 187 reg-names = "control", "domain"; 188 domain-id = <0>; 198 reg-names = "control", "domain"; 199 domain-id = <1>; 208 reg-names = "control", "domain"; 209 domain-id = <1>; [all …]
|
/linux-6.1.9/drivers/dca/ |
D | dca-core.c | 44 struct dca_domain *domain; in dca_allocate_domain() local 46 domain = kzalloc(sizeof(*domain), GFP_NOWAIT); in dca_allocate_domain() 47 if (!domain) in dca_allocate_domain() 50 INIT_LIST_HEAD(&domain->dca_providers); in dca_allocate_domain() 51 domain->pci_rc = rc; in dca_allocate_domain() 53 return domain; in dca_allocate_domain() 56 static void dca_free_domain(struct dca_domain *domain) in dca_free_domain() argument 58 list_del(&domain->node); in dca_free_domain() 59 kfree(domain); in dca_free_domain() 81 struct dca_domain *domain; in unregister_dca_providers() local [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/power/ |
D | mediatek,power-controller.yaml | 17 IP cores belonging to a power domain should contain a 'power-domains' 18 property that is a phandle for SCPSYS node representing the domain. 34 '#power-domain-cells': 44 "^power-domain@[0-9a-f]+$": 45 $ref: "#/$defs/power-domain-node" 47 "^power-domain@[0-9a-f]+$": 48 $ref: "#/$defs/power-domain-node" 50 "^power-domain@[0-9a-f]+$": 51 $ref: "#/$defs/power-domain-node" 53 "^power-domain@[0-9a-f]+$": [all …]
|
D | power-domain.yaml | 4 $id: http://devicetree.org/schemas/power/power-domain.yaml# 19 This device tree binding can be used to bind PM domain consumer devices with 20 their PM domains provided by PM domain providers. A PM domain provider can be 23 phandle arguments (so called PM domain specifiers) of length specified by the 24 \#power-domain-cells property in the PM domain provider node. 28 pattern: "^(power-controller|power-domain)([@-].*)?$" 30 domain-idle-states: 36 power-domain provider. The idle state definitions are compatible with the 37 domain-idle-state bindings, specified in ./domain-idle-state.yaml. 39 Note that, the domain-idle-state property reflects the idle states of this [all …]
|
/linux-6.1.9/include/trace/events/ |
D | kyber.h | 16 TP_PROTO(dev_t dev, const char *domain, const char *type, 20 TP_ARGS(dev, domain, type, percentile, numerator, denominator, samples), 24 __array( char, domain, DOMAIN_LEN ) 34 strlcpy(__entry->domain, domain, sizeof(__entry->domain)); 43 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain, 50 TP_PROTO(dev_t dev, const char *domain, unsigned int depth), 52 TP_ARGS(dev, domain, depth), 56 __array( char, domain, DOMAIN_LEN ) 62 strlcpy(__entry->domain, domain, sizeof(__entry->domain)); 67 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->domain, [all …]
|
/linux-6.1.9/include/linux/ |
D | irqdomain.h | 310 extern void irq_domain_update_bus_token(struct irq_domain *domain, 401 extern int irq_domain_associate(struct irq_domain *domain, unsigned int irq, 403 extern void irq_domain_associate_many(struct irq_domain *domain, 419 extern struct irq_desc *__irq_resolve_mapping(struct irq_domain *domain, 423 static inline struct irq_desc *irq_resolve_mapping(struct irq_domain *domain, in irq_resolve_mapping() argument 426 return __irq_resolve_mapping(domain, hwirq, NULL); in irq_resolve_mapping() 434 static inline unsigned int irq_find_mapping(struct irq_domain *domain, in irq_find_mapping() argument 439 if (__irq_resolve_mapping(domain, hwirq, &irq)) in irq_find_mapping() 445 static inline unsigned int irq_linear_revmap(struct irq_domain *domain, in irq_linear_revmap() argument 448 return irq_find_mapping(domain, hwirq); in irq_linear_revmap() [all …]
|
D | iommu.h | 100 static inline bool iommu_is_dma_domain(struct iommu_domain *domain) in iommu_is_dma_domain() argument 102 return domain->type & __IOMMU_DOMAIN_DMA_API; in iommu_is_dma_domain() 288 int (*attach_dev)(struct iommu_domain *domain, struct device *dev); 289 void (*detach_dev)(struct iommu_domain *domain, struct device *dev); 291 int (*map)(struct iommu_domain *domain, unsigned long iova, 293 int (*map_pages)(struct iommu_domain *domain, unsigned long iova, 296 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova, 298 size_t (*unmap_pages)(struct iommu_domain *domain, unsigned long iova, 302 void (*flush_iotlb_all)(struct iommu_domain *domain); 303 void (*iotlb_sync_map)(struct iommu_domain *domain, unsigned long iova, [all …]
|
/linux-6.1.9/drivers/soc/dove/ |
D | pmu.c | 143 static int pmu_domain_power_off(struct generic_pm_domain *domain) in pmu_domain_power_off() argument 145 struct pmu_domain *pmu_dom = to_pmu_domain(domain); in pmu_domain_power_off() 177 static int pmu_domain_power_on(struct generic_pm_domain *domain) in pmu_domain_power_on() argument 179 struct pmu_domain *pmu_dom = to_pmu_domain(domain); in pmu_domain_power_on() 211 static void __pmu_domain_register(struct pmu_domain *domain, in __pmu_domain_register() argument 214 unsigned int val = readl_relaxed(domain->pmu->pmu_base + PMU_PWR); in __pmu_domain_register() 216 domain->base.power_off = pmu_domain_power_off; in __pmu_domain_register() 217 domain->base.power_on = pmu_domain_power_on; in __pmu_domain_register() 219 pm_genpd_init(&domain->base, NULL, !(val & domain->pwr_mask)); in __pmu_domain_register() 222 of_genpd_add_provider_simple(np, &domain->base); in __pmu_domain_register() [all …]
|
/linux-6.1.9/drivers/irqchip/ |
D | irq-atmel-aic5.c | 88 struct irq_domain *domain = d->domain; in aic5_mask() local 89 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_mask() 105 struct irq_domain *domain = d->domain; in aic5_unmask() local 106 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_unmask() 122 struct irq_domain *domain = d->domain; in aic5_retrigger() local 123 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_retrigger() 136 struct irq_domain *domain = d->domain; in aic5_set_type() local 137 struct irq_chip_generic *bgc = irq_get_domain_generic_chip(domain, 0); in aic5_set_type() 157 struct irq_domain *domain = d->domain; in aic5_suspend() local 158 struct irq_domain_chip_generic *dgc = domain->gc; in aic5_suspend() [all …]
|
/linux-6.1.9/arch/arm64/boot/dts/apple/ |
D | t8103-pmgr.dtsi | 13 #power-domain-cells = <0>; 22 #power-domain-cells = <0>; 31 #power-domain-cells = <0>; 40 #power-domain-cells = <0>; 48 #power-domain-cells = <0>; 56 #power-domain-cells = <0>; 64 #power-domain-cells = <0>; 72 #power-domain-cells = <0>; 81 #power-domain-cells = <0>; 90 #power-domain-cells = <0>; [all …]
|
/linux-6.1.9/drivers/firmware/arm_scmi/ |
D | perf.c | 76 __le32 domain; member 81 __le32 domain; member 92 __le32 domain; member 97 __le32 domain; member 191 u32 domain, struct perf_dom_info *dom_info, in scmi_perf_domain_attributes_get() argument 200 sizeof(domain), sizeof(*attr), &t); in scmi_perf_domain_attributes_get() 204 put_unaligned_le32(domain, t->tx.buf); in scmi_perf_domain_attributes_get() 239 ph->hops->extended_name_get(ph, PERF_DOMAIN_NAME_GET, domain, in scmi_perf_domain_attributes_get() 253 u32 domain; member 264 msg->domain = cpu_to_le32(p->domain); in iter_perf_levels_prepare_message() [all …]
|
/linux-6.1.9/drivers/soc/xilinx/ |
D | zynqmp_pm_domains.c | 73 static int zynqmp_gpd_power_on(struct generic_pm_domain *domain) in zynqmp_gpd_power_on() argument 75 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_power_on() 83 dev_err(&domain->dev, in zynqmp_gpd_power_on() 89 dev_dbg(&domain->dev, "set requirement to 0x%x for PM node id %d\n", in zynqmp_gpd_power_on() 104 static int zynqmp_gpd_power_off(struct generic_pm_domain *domain) in zynqmp_gpd_power_off() argument 106 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_power_off() 114 dev_dbg(&domain->dev, "PM node id %d is already released\n", in zynqmp_gpd_power_off() 119 list_for_each_entry_safe(pdd, tmp, &domain->dev_list, list_node) { in zynqmp_gpd_power_off() 124 domain->name); in zynqmp_gpd_power_off() 133 dev_err(&domain->dev, in zynqmp_gpd_power_off() [all …]
|