Home
last modified time | relevance | path

Searched full:pd (Results 1 – 25 of 1256) sorted by relevance

12345678910>>...51

/linux-6.12.1/drivers/net/ethernet/smsc/
Dsmsc9420.c87 static inline u32 smsc9420_reg_read(struct smsc9420_pdata *pd, u32 offset) in smsc9420_reg_read() argument
89 return ioread32(pd->ioaddr + offset); in smsc9420_reg_read()
93 smsc9420_reg_write(struct smsc9420_pdata *pd, u32 offset, u32 value) in smsc9420_reg_write() argument
95 iowrite32(value, pd->ioaddr + offset); in smsc9420_reg_write()
98 static inline void smsc9420_pci_flush_write(struct smsc9420_pdata *pd) in smsc9420_pci_flush_write() argument
101 smsc9420_reg_read(pd, ID_REV); in smsc9420_pci_flush_write()
106 struct smsc9420_pdata *pd = bus->priv; in smsc9420_mii_read() local
111 spin_lock_irqsave(&pd->phy_lock, flags); in smsc9420_mii_read()
114 if ((smsc9420_reg_read(pd, MII_ACCESS) & MII_ACCESS_MII_BUSY_)) { in smsc9420_mii_read()
115 netif_warn(pd, drv, pd->dev, "MII is busy???\n"); in smsc9420_mii_read()
[all …]
/linux-6.12.1/drivers/i2c/busses/
Di2c-sh_mobile.c144 int (*setup)(struct sh_mobile_i2c_data *pd);
185 static void iic_wr(struct sh_mobile_i2c_data *pd, int offs, unsigned char data) in iic_wr() argument
188 data |= pd->icic; in iic_wr()
190 iowrite8(data, pd->reg + offs); in iic_wr()
193 static unsigned char iic_rd(struct sh_mobile_i2c_data *pd, int offs) in iic_rd() argument
195 return ioread8(pd->reg + offs); in iic_rd()
198 static void iic_set_clr(struct sh_mobile_i2c_data *pd, int offs, in iic_set_clr() argument
201 iic_wr(pd, offs, (iic_rd(pd, offs) | set) & ~clr); in iic_set_clr()
238 static int sh_mobile_i2c_check_timing(struct sh_mobile_i2c_data *pd) in sh_mobile_i2c_check_timing() argument
240 u16 max_val = pd->flags & IIC_FLAG_HAS_ICIC67 ? 0x1ff : 0xff; in sh_mobile_i2c_check_timing()
[all …]
Di2c-simtec.c36 struct simtec_i2c_data *pd = pw; in simtec_i2c_setsda() local
37 writeb(CMD_SET_SDA | (state ? STATE_SDA : 0), pd->reg); in simtec_i2c_setsda()
42 struct simtec_i2c_data *pd = pw; in simtec_i2c_setscl() local
43 writeb(CMD_SET_SCL | (state ? STATE_SCL : 0), pd->reg); in simtec_i2c_setscl()
48 struct simtec_i2c_data *pd = pw; in simtec_i2c_getsda() local
49 return readb(pd->reg) & STATE_SDA ? 1 : 0; in simtec_i2c_getsda()
54 struct simtec_i2c_data *pd = pw; in simtec_i2c_getscl() local
55 return readb(pd->reg) & STATE_SCL ? 1 : 0; in simtec_i2c_getscl()
62 struct simtec_i2c_data *pd; in simtec_i2c_probe() local
67 pd = kzalloc(sizeof(struct simtec_i2c_data), GFP_KERNEL); in simtec_i2c_probe()
[all …]
/linux-6.12.1/drivers/pmdomain/mediatek/
Dmtk-pm-domains.c64 static bool scpsys_domain_is_on(struct scpsys_domain *pd) in scpsys_domain_is_on() argument
66 struct scpsys *scpsys = pd->scpsys; in scpsys_domain_is_on()
69 regmap_read(scpsys->base, pd->data->pwr_sta_offs, &status); in scpsys_domain_is_on()
70 status &= pd->data->sta_mask; in scpsys_domain_is_on()
72 regmap_read(scpsys->base, pd->data->pwr_sta2nd_offs, &status2); in scpsys_domain_is_on()
73 status2 &= pd->data->sta_mask; in scpsys_domain_is_on()
79 static int scpsys_sram_enable(struct scpsys_domain *pd) in scpsys_sram_enable() argument
81 u32 pdn_ack = pd->data->sram_pdn_ack_bits; in scpsys_sram_enable()
82 struct scpsys *scpsys = pd->scpsys; in scpsys_sram_enable()
86 regmap_clear_bits(scpsys->base, pd->data->ctl_offs, pd->data->sram_pdn_bits); in scpsys_sram_enable()
[all …]
/linux-6.12.1/drivers/media/pci/dt3155/
Ddt3155.c128 struct dt3155_priv *pd = vb2_get_drv_priv(vq); in dt3155_queue_setup() local
129 unsigned size = pd->width * pd->height; in dt3155_queue_setup()
140 struct dt3155_priv *pd = vb2_get_drv_priv(vb->vb2_queue); in dt3155_buf_prepare() local
142 vb2_set_plane_payload(vb, 0, pd->width * pd->height); in dt3155_buf_prepare()
148 struct dt3155_priv *pd = vb2_get_drv_priv(q); in dt3155_start_streaming() local
149 struct vb2_buffer *vb = &pd->curr_buf->vb2_buf; in dt3155_start_streaming()
152 pd->sequence = 0; in dt3155_start_streaming()
154 iowrite32(dma_addr, pd->regs + EVEN_DMA_START); in dt3155_start_streaming()
155 iowrite32(dma_addr + pd->width, pd->regs + ODD_DMA_START); in dt3155_start_streaming()
156 iowrite32(pd->width, pd->regs + EVEN_DMA_STRIDE); in dt3155_start_streaming()
[all …]
/linux-6.12.1/drivers/block/
Dpktcdvd.c98 static sector_t get_zone(sector_t sector, struct pktcdvd_device *pd) in get_zone() argument
100 return (sector + pd->offset) & ~(sector_t)(pd->settings.size - 1); in get_zone()
122 struct pktcdvd_device *pd = dev_get_drvdata(dev); in packets_started_show() local
124 return sysfs_emit(buf, "%lu\n", pd->stats.pkt_started); in packets_started_show()
131 struct pktcdvd_device *pd = dev_get_drvdata(dev); in packets_finished_show() local
133 return sysfs_emit(buf, "%lu\n", pd->stats.pkt_ended); in packets_finished_show()
140 struct pktcdvd_device *pd = dev_get_drvdata(dev); in kb_written_show() local
142 return sysfs_emit(buf, "%lu\n", pd->stats.secs_w >> 1); in kb_written_show()
149 struct pktcdvd_device *pd = dev_get_drvdata(dev); in kb_read_show() local
151 return sysfs_emit(buf, "%lu\n", pd->stats.secs_r >> 1); in kb_read_show()
[all …]
/linux-6.12.1/drivers/clk/sifive/
Dsifive-prci.c21 * @pd: PRCI context
25 * address of the PRCI register target described by @pd, and return
30 * Return: the contents of the register described by @pd and @offs.
32 static u32 __prci_readl(struct __prci_data *pd, u32 offs) in __prci_readl() argument
34 return readl_relaxed(pd->va + offs); in __prci_readl()
37 static void __prci_writel(u32 v, u32 offs, struct __prci_data *pd) in __prci_writel() argument
39 writel_relaxed(v, pd->va + offs); in __prci_writel()
117 * @pd: PRCI context
121 * the PRCI identified by @pd, and store it into the local configuration
125 * @pd and @pwd from changing during execution.
[all …]
/linux-6.12.1/drivers/gpu/drm/gma500/
Dmmu.c121 void psb_mmu_set_pd_context(struct psb_mmu_pd *pd, int hw_context) in psb_mmu_set_pd_context() argument
123 struct drm_device *dev = pd->driver->dev; in psb_mmu_set_pd_context()
128 down_write(&pd->driver->sem); in psb_mmu_set_pd_context()
129 PSB_WSGX32(page_to_pfn(pd->p) << PAGE_SHIFT, offset); in psb_mmu_set_pd_context()
131 psb_mmu_flush_pd_locked(pd->driver, 1); in psb_mmu_set_pd_context()
132 pd->hw_context = hw_context; in psb_mmu_set_pd_context()
133 up_write(&pd->driver->sem); in psb_mmu_set_pd_context()
161 struct psb_mmu_pd *pd = kmalloc(sizeof(*pd), GFP_KERNEL); in psb_mmu_alloc_pd() local
165 if (!pd) in psb_mmu_alloc_pd()
168 pd->p = alloc_page(GFP_DMA32); in psb_mmu_alloc_pd()
[all …]
/linux-6.12.1/net/l2tp/
Dl2tp_debugfs.c43 static void l2tp_dfs_next_tunnel(struct l2tp_dfs_seq_data *pd) in l2tp_dfs_next_tunnel() argument
46 if (pd->tunnel) in l2tp_dfs_next_tunnel()
47 l2tp_tunnel_put(pd->tunnel); in l2tp_dfs_next_tunnel()
49 pd->tunnel = l2tp_tunnel_get_next(pd->net, &pd->tkey); in l2tp_dfs_next_tunnel()
50 pd->tkey++; in l2tp_dfs_next_tunnel()
53 static void l2tp_dfs_next_session(struct l2tp_dfs_seq_data *pd) in l2tp_dfs_next_session() argument
56 if (pd->session) in l2tp_dfs_next_session()
57 l2tp_session_put(pd->session); in l2tp_dfs_next_session()
59 pd->session = l2tp_session_get_next(pd->net, pd->tunnel->sock, in l2tp_dfs_next_session()
60 pd->tunnel->version, in l2tp_dfs_next_session()
[all …]
/linux-6.12.1/arch/arm64/boot/dts/freescale/
Dimx8qm-ss-audio.dtsi37 power-domains = <&pd IMX_SC_R_ASRC_0>;
67 power-domains = <&pd IMX_SC_R_ASRC_1>;
91 power-domains = <&pd IMX_SC_R_SAI_4>;
108 power-domains = <&pd IMX_SC_R_SAI_5>;
120 power-domains = <&pd IMX_SC_R_SAI_4>;
132 power-domains = <&pd IMX_SC_R_SAI_5>;
147 power-domains = <&pd IMX_SC_R_ESAI_1>;
163 power-domains = <&pd IMX_SC_R_SAI_6>;
179 power-domains = <&pd IMX_SC_R_SAI_7>;
191 power-domains = <&pd IMX_SC_R_ESAI_1>;
[all …]
Dimx8dxl-ss-adma.dtsi22 power-domains = <&pd IMX_SC_R_AUDIO_CLK_0>,
23 <&pd IMX_SC_R_AUDIO_CLK_1>,
24 <&pd IMX_SC_R_MCLK_OUT_0>,
25 <&pd IMX_SC_R_MCLK_OUT_1>,
26 <&pd IMX_SC_R_AUDIO_PLL_0>,
27 <&pd IMX_SC_R_AUDIO_PLL_1>,
28 <&pd IMX_SC_R_ASRC_0>,
29 <&pd IMX_SC_R_SAI_0>,
30 <&pd IMX_SC_R_SAI_1>,
31 <&pd IMX_SC_R_SAI_2>,
[all …]
Dimx8qm-ss-dma.dtsi17 power-domains = <&pd IMX_SC_R_UART_4>;
30 power-domains = <&pd IMX_SC_R_I2C_4>;
43 power-domains = <&pd IMX_SC_R_I2C_4>;
56 power-domains = <&pd IMX_SC_R_CAN_1>;
69 power-domains = <&pd IMX_SC_R_CAN_2>;
100 power-domains = <&pd IMX_SC_R_DMA_0_CH0>,
101 <&pd IMX_SC_R_DMA_0_CH1>,
102 <&pd IMX_SC_R_DMA_0_CH2>,
103 <&pd IMX_SC_R_DMA_0_CH3>,
104 <&pd IMX_SC_R_DMA_0_CH4>,
[all …]
Dimx8-ss-audio.dtsi163 power-domains = <&pd IMX_SC_R_ASRC_0>;
178 power-domains = <&pd IMX_SC_R_ESAI_0>;
202 power-domains = <&pd IMX_SC_R_SPDIF_0>;
218 power-domains = <&pd IMX_SC_R_SAI_0>;
234 power-domains = <&pd IMX_SC_R_SAI_1>;
250 power-domains = <&pd IMX_SC_R_SAI_2>;
266 power-domains = <&pd IMX_SC_R_SAI_3>;
300 power-domains = <&pd IMX_SC_R_DMA_0_CH0>,
301 <&pd IMX_SC_R_DMA_0_CH1>,
302 <&pd IMX_SC_R_DMA_0_CH2>,
[all …]
/linux-6.12.1/drivers/pmdomain/samsung/
Dexynos-pm-domains.c32 struct generic_pm_domain pd; member
38 struct exynos_pm_domain *pd; in exynos_pd_power() local
43 pd = container_of(domain, struct exynos_pm_domain, pd); in exynos_pd_power()
44 base = pd->base; in exynos_pd_power()
46 pwr = power_on ? pd->local_pwr_cfg : 0; in exynos_pd_power()
52 while ((readl_relaxed(base + 0x4) & pd->local_pwr_cfg) != pwr) { in exynos_pd_power()
86 .compatible = "samsung,exynos4210-pd",
89 .compatible = "samsung,exynos5433-pd",
110 struct exynos_pm_domain *pd; in exynos_pd_probe() local
114 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in exynos_pd_probe()
[all …]
/linux-6.12.1/drivers/pmdomain/qcom/
Drpmpd.c18 #define domain_to_rpmpd(domain) container_of(domain, struct rpmpd, pd)
52 struct generic_pm_domain pd; member
76 .pd = { .name = "cx", },
84 .pd = { .name = "cx_ao", },
94 .pd = { .name = "cx", },
102 .pd = { .name = "cx_ao", },
112 .pd = { .name = "cx", },
120 .pd = { .name = "cx_ao", },
130 .pd = { .name = "cx", },
138 .pd = { .name = "cx_ao", },
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/gt/
Dintel_ppgtt.c37 struct i915_page_directory *pd; in __alloc_pd() local
39 pd = kzalloc(sizeof(*pd), I915_GFP_ALLOW_FAIL); in __alloc_pd()
40 if (unlikely(!pd)) in __alloc_pd()
43 pd->entry = kcalloc(count, sizeof(*pd->entry), I915_GFP_ALLOW_FAIL); in __alloc_pd()
44 if (unlikely(!pd->entry)) { in __alloc_pd()
45 kfree(pd); in __alloc_pd()
49 spin_lock_init(&pd->lock); in __alloc_pd()
50 return pd; in __alloc_pd()
55 struct i915_page_directory *pd; in alloc_pd() local
57 pd = __alloc_pd(I915_PDES); in alloc_pd()
[all …]
/linux-6.12.1/drivers/pmdomain/ti/
Dti_sci_pm_domains.c40 * @pd: generic_pm_domain for use with the genpd framework
47 struct generic_pm_domain pd; member
52 #define genpd_to_ti_sci_pd(gpd) container_of(gpd, struct ti_sci_pm_domain, pd)
60 struct ti_sci_pm_domain *pd = genpd_to_ti_sci_pd(domain); in ti_sci_pd_power_off() local
61 const struct ti_sci_handle *ti_sci = pd->parent->ti_sci; in ti_sci_pd_power_off()
63 return ti_sci->ops.dev_ops.put_device(ti_sci, pd->idx); in ti_sci_pd_power_off()
72 struct ti_sci_pm_domain *pd = genpd_to_ti_sci_pd(domain); in ti_sci_pd_power_on() local
73 const struct ti_sci_handle *ti_sci = pd->parent->ti_sci; in ti_sci_pd_power_on()
75 if (pd->exclusive) in ti_sci_pd_power_on()
77 pd->idx); in ti_sci_pd_power_on()
[all …]
/linux-6.12.1/drivers/dma/
Dpch_dma.c132 #define dma_readl(pd, name) \ argument
133 readl((pd)->membase + PCH_DMA_##name)
134 #define dma_writel(pd, name, val) \ argument
135 writel((val), (pd)->membase + PCH_DMA_##name)
174 struct pch_dma *pd = to_pd(chan->device); in pdc_enable_irq() local
183 val = dma_readl(pd, CTL2); in pdc_enable_irq()
190 dma_writel(pd, CTL2, val); in pdc_enable_irq()
199 struct pch_dma *pd = to_pd(chan->device); in pdc_set_dir() local
205 val = dma_readl(pd, CTL0); in pdc_set_dir()
220 dma_writel(pd, CTL0, val); in pdc_set_dir()
[all …]
/linux-6.12.1/arch/arm/mach-s3c/
Dplatformdata.c15 void __init *s3c_set_platdata(void *pd, size_t pdsize, in s3c_set_platdata() argument
20 if (!pd) { in s3c_set_platdata()
26 npd = kmemdup(pd, pdsize, GFP_KERNEL); in s3c_set_platdata()
34 void s3c_sdhci_set_platdata(struct s3c_sdhci_platdata *pd, in s3c_sdhci_set_platdata() argument
37 set->cd_type = pd->cd_type; in s3c_sdhci_set_platdata()
38 set->ext_cd_init = pd->ext_cd_init; in s3c_sdhci_set_platdata()
39 set->ext_cd_cleanup = pd->ext_cd_cleanup; in s3c_sdhci_set_platdata()
40 set->ext_cd_gpio = pd->ext_cd_gpio; in s3c_sdhci_set_platdata()
41 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; in s3c_sdhci_set_platdata()
43 if (pd->max_width) in s3c_sdhci_set_platdata()
[all …]
/linux-6.12.1/kernel/
Dpadata.c47 static void padata_free_pd(struct parallel_data *pd);
50 static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index) in padata_index_to_cpu() argument
54 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu()
56 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu); in padata_index_to_cpu()
61 static int padata_cpu_hash(struct parallel_data *pd, unsigned int seq_nr) in padata_cpu_hash() argument
67 int cpu_index = seq_nr % cpumask_weight(pd->cpumask.pcpu); in padata_cpu_hash()
69 return padata_index_to_cpu(pd, cpu_index); in padata_cpu_hash()
180 struct parallel_data *pd; in padata_do_parallel() local
185 pd = rcu_dereference_bh(ps->pd); in padata_do_parallel()
191 if (!cpumask_test_cpu(*cb_cpu, pd->cpumask.cbcpu)) { in padata_do_parallel()
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_lmtt.c100 struct xe_lmtt_pt *pd; in lmtt_init_pd() local
102 lmtt_assert(lmtt, !lmtt->pd); in lmtt_init_pd()
105 pd = lmtt_pt_alloc(lmtt, lmtt->ops->lmtt_root_pd_level()); in lmtt_init_pd()
106 if (IS_ERR(pd)) in lmtt_init_pd()
107 return PTR_ERR(pd); in lmtt_init_pd()
109 lmtt->pd = pd; in lmtt_init_pd()
115 struct xe_lmtt_pt *pd = lmtt->pd; in lmtt_fini_pd() local
116 unsigned int num_entries = lmtt->ops->lmtt_pte_num(pd->level); in lmtt_fini_pd()
121 lmtt_assert(lmtt, !pd->entries[n]); in lmtt_fini_pd()
123 lmtt->pd = NULL; in lmtt_fini_pd()
[all …]
/linux-6.12.1/drivers/pmdomain/xilinx/
Dzynqmp-pm-domains.c75 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_power_on() local
78 ret = zynqmp_pm_set_requirement(pd->node_id, in zynqmp_gpd_power_on()
85 ZYNQMP_PM_CAPABILITY_ACCESS, pd->node_id, ret); in zynqmp_gpd_power_on()
90 ZYNQMP_PM_CAPABILITY_ACCESS, pd->node_id); in zynqmp_gpd_power_on()
106 struct zynqmp_pm_domain *pd = to_zynqmp_pm_domain(domain); in zynqmp_gpd_power_off() local
113 if (!pd->requested) { in zynqmp_gpd_power_off()
115 pd->node_id); in zynqmp_gpd_power_off()
130 ret = zynqmp_pm_set_requirement(pd->node_id, capabilities, 0, in zynqmp_gpd_power_off()
135 capabilities, pd->node_id, ret); in zynqmp_gpd_power_off()
140 capabilities, pd->node_id); in zynqmp_gpd_power_off()
[all …]
/linux-6.12.1/drivers/infiniband/hw/usnic/
Dusnic_uiom.c191 struct usnic_uiom_pd *pd) in usnic_uiom_unmap_sorted_intervals() argument
202 iommu_unmap(pd->domain, va, PAGE_SIZE); in usnic_uiom_unmap_sorted_intervals()
209 static void __usnic_uiom_reg_release(struct usnic_uiom_pd *pd, in __usnic_uiom_reg_release() argument
223 spin_lock(&pd->lock); in __usnic_uiom_reg_release()
224 usnic_uiom_remove_interval(&pd->root, vpn_start, in __usnic_uiom_reg_release()
226 usnic_uiom_unmap_sorted_intervals(&rm_intervals, pd); in __usnic_uiom_reg_release()
236 spin_unlock(&pd->lock); in __usnic_uiom_reg_release()
250 struct usnic_uiom_pd *pd = uiomr->pd; in usnic_uiom_map_sorted_intervals() local
279 err = iommu_map(pd->domain, va_start, pa_start, in usnic_uiom_map_sorted_intervals()
296 err = iommu_map(pd->domain, va_start, pa_start, in usnic_uiom_map_sorted_intervals()
[all …]
/linux-6.12.1/arch/powerpc/platforms/ps3/
Dinterrupt.c97 struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_mask() local
101 pd->thread_id, d->irq); in ps3_chip_mask()
104 clear_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_mask()
105 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_mask()
118 struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_unmask() local
122 pd->thread_id, d->irq); in ps3_chip_unmask()
125 set_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_unmask()
126 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_unmask()
139 const struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_eoi() local
143 if (!test_bit(63 - d->irq, &pd->ipi_mask)) in ps3_chip_eoi()
[all …]
/linux-6.12.1/drivers/pmdomain/renesas/
Drmobile-sysc.c136 struct device_node *pd; member
153 struct device_node *pd; in add_special_pd() local
155 pd = of_parse_phandle(np, "power-domains", 0); in add_special_pd()
156 if (!pd) in add_special_pd()
160 if (pd == special_pds[i].pd && type == special_pds[i].type) { in add_special_pd()
161 of_node_put(pd); in add_special_pd()
167 of_node_put(pd); in add_special_pd()
171 pr_debug("Special PM domain %pOFn type %d for %pOF\n", pd, type, np); in add_special_pd()
173 special_pds[num_special_pds].pd = pd; in add_special_pd()
201 of_node_put(special_pds[i].pd); in put_special_pds()
[all …]

12345678910>>...51