/linux-6.6.21/drivers/net/ethernet/smsc/ |
D | smsc9420.c | 86 static inline u32 smsc9420_reg_read(struct smsc9420_pdata *pd, u32 offset) in smsc9420_reg_read() argument 88 return ioread32(pd->ioaddr + offset); in smsc9420_reg_read() 92 smsc9420_reg_write(struct smsc9420_pdata *pd, u32 offset, u32 value) in smsc9420_reg_write() argument 94 iowrite32(value, pd->ioaddr + offset); in smsc9420_reg_write() 97 static inline void smsc9420_pci_flush_write(struct smsc9420_pdata *pd) in smsc9420_pci_flush_write() argument 100 smsc9420_reg_read(pd, ID_REV); in smsc9420_pci_flush_write() 105 struct smsc9420_pdata *pd = bus->priv; in smsc9420_mii_read() local 110 spin_lock_irqsave(&pd->phy_lock, flags); in smsc9420_mii_read() 113 if ((smsc9420_reg_read(pd, MII_ACCESS) & MII_ACCESS_MII_BUSY_)) { in smsc9420_mii_read() 114 netif_warn(pd, drv, pd->dev, "MII is busy???\n"); in smsc9420_mii_read() [all …]
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-sh_mobile.c | 144 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 …]
|
D | i2c-simtec.c | 36 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.6.21/drivers/media/pci/dt3155/ |
D | dt3155.c | 128 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() 142 struct dt3155_priv *pd = vb2_get_drv_priv(vb->vb2_queue); in dt3155_buf_prepare() local 144 vb2_set_plane_payload(vb, 0, pd->width * pd->height); in dt3155_buf_prepare() 150 struct dt3155_priv *pd = vb2_get_drv_priv(q); in dt3155_start_streaming() local 151 struct vb2_buffer *vb = &pd->curr_buf->vb2_buf; in dt3155_start_streaming() 154 pd->sequence = 0; in dt3155_start_streaming() 156 iowrite32(dma_addr, pd->regs + EVEN_DMA_START); in dt3155_start_streaming() 157 iowrite32(dma_addr + pd->width, pd->regs + ODD_DMA_START); in dt3155_start_streaming() 158 iowrite32(pd->width, pd->regs + EVEN_DMA_STRIDE); in dt3155_start_streaming() [all …]
|
/linux-6.6.21/drivers/block/ |
D | pktcdvd.c | 98 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.6.21/drivers/pmdomain/mediatek/ |
D | mtk-pm-domains.c | 62 static bool scpsys_domain_is_on(struct scpsys_domain *pd) in scpsys_domain_is_on() argument 64 struct scpsys *scpsys = pd->scpsys; in scpsys_domain_is_on() 67 regmap_read(scpsys->base, pd->data->pwr_sta_offs, &status); in scpsys_domain_is_on() 68 status &= pd->data->sta_mask; in scpsys_domain_is_on() 70 regmap_read(scpsys->base, pd->data->pwr_sta2nd_offs, &status2); in scpsys_domain_is_on() 71 status2 &= pd->data->sta_mask; in scpsys_domain_is_on() 77 static int scpsys_sram_enable(struct scpsys_domain *pd) in scpsys_sram_enable() argument 79 u32 pdn_ack = pd->data->sram_pdn_ack_bits; in scpsys_sram_enable() 80 struct scpsys *scpsys = pd->scpsys; in scpsys_sram_enable() 84 regmap_clear_bits(scpsys->base, pd->data->ctl_offs, pd->data->sram_pdn_bits); in scpsys_sram_enable() [all …]
|
/linux-6.6.21/drivers/clk/sifive/ |
D | sifive-prci.c | 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() 127 static void __prci_wrpll_read_cfg0(struct __prci_data *pd, in __prci_wrpll_read_cfg0() argument 130 __prci_wrpll_unpack(&pwd->c, __prci_readl(pd, pwd->cfg0_offs)); in __prci_wrpll_read_cfg0() 147 static void __prci_wrpll_write_cfg0(struct __prci_data *pd, in __prci_wrpll_write_cfg0() argument 151 __prci_writel(__prci_wrpll_pack(c), pwd->cfg0_offs, pd); in __prci_wrpll_write_cfg0() 163 static void __prci_wrpll_write_cfg1(struct __prci_data *pd, in __prci_wrpll_write_cfg1() argument 167 __prci_writel(enable, pwd->cfg1_offs, pd); in __prci_wrpll_write_cfg1() [all …]
|
/linux-6.6.21/drivers/gpu/drm/gma500/ |
D | mmu.c | 120 void psb_mmu_set_pd_context(struct psb_mmu_pd *pd, int hw_context) in psb_mmu_set_pd_context() argument 122 struct drm_device *dev = pd->driver->dev; in psb_mmu_set_pd_context() 127 down_write(&pd->driver->sem); in psb_mmu_set_pd_context() 128 PSB_WSGX32(page_to_pfn(pd->p) << PAGE_SHIFT, offset); in psb_mmu_set_pd_context() 130 psb_mmu_flush_pd_locked(pd->driver, 1); in psb_mmu_set_pd_context() 131 pd->hw_context = hw_context; in psb_mmu_set_pd_context() 132 up_write(&pd->driver->sem); in psb_mmu_set_pd_context() 160 struct psb_mmu_pd *pd = kmalloc(sizeof(*pd), GFP_KERNEL); in psb_mmu_alloc_pd() local 164 if (!pd) in psb_mmu_alloc_pd() 167 pd->p = alloc_page(GFP_DMA32); in psb_mmu_alloc_pd() [all …]
|
/linux-6.6.21/net/l2tp/ |
D | l2tp_debugfs.c | 43 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_dec_refcount(pd->tunnel); in l2tp_dfs_next_tunnel() 49 pd->tunnel = l2tp_tunnel_get_nth(pd->net, pd->tunnel_idx); in l2tp_dfs_next_tunnel() 50 pd->tunnel_idx++; 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_dec_refcount(pd->session); in l2tp_dfs_next_session() 59 pd->session = l2tp_session_get_nth(pd->tunnel, pd->session_idx); in l2tp_dfs_next_session() 60 pd->session_idx++; in l2tp_dfs_next_session() [all …]
|
/linux-6.6.21/drivers/pmdomain/samsung/ |
D | exynos-pm-domains.c | 32 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() 110 struct exynos_pm_domain *pd; in exynos_pd_probe() local 114 pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); in exynos_pd_probe() 115 if (!pd) in exynos_pd_probe() 118 pd->pd.name = exynos_get_domain_name(np); in exynos_pd_probe() [all …]
|
/linux-6.6.21/drivers/pmdomain/qcom/ |
D | rpmpd.c | 17 #define domain_to_rpmpd(domain) container_of(domain, struct rpmpd, pd) 49 struct generic_pm_domain pd; member 74 .pd = { .name = "cx", }, 82 .pd = { .name = "cx_ao", }, 92 .pd = { .name = "cx", }, 100 .pd = { .name = "cx_ao", }, 110 .pd = { .name = "cx", }, 118 .pd = { .name = "cx_ao", }, 128 .pd = { .name = "cx", }, 136 .pd = { .name = "cx_ao", }, [all …]
|
D | rpmhpd.c | 19 #define domain_to_rpmhpd(domain) container_of(domain, struct rpmhpd, pd) 46 struct generic_pm_domain pd; member 74 .pd = { .name = "cx", }, 80 .pd = { .name = "cx_ao", }, 88 .pd = { .name = "cx", }, 90 .parent = &mx.pd, 95 .pd = { .name = "cx_ao", }, 98 .parent = &mx_ao.pd, 103 .pd = { .name = "ebi", }, 108 .pd = { .name = "gfx", }, [all …]
|
/linux-6.6.21/drivers/pmdomain/ti/ |
D | ti_sci_pm_domains.c | 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() 79 return ti_sci->ops.dev_ops.get_device(ti_sci, pd->idx); in ti_sci_pd_power_on() [all …]
|
/linux-6.6.21/drivers/pmdomain/xilinx/ |
D | zynqmp-pm-domains.c | 75 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.6.21/arch/arm/mach-s3c/ |
D | platformdata.c | 15 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 …]
|
D | devs.c | 73 void __init s3c_fb_set_platdata(struct s3c_fb_platdata *pd) in s3c_fb_set_platdata() argument 75 s3c_set_platdata(pd, sizeof(struct s3c_fb_platdata), in s3c_fb_set_platdata() 106 void s3c_sdhci0_set_platdata(struct s3c_sdhci_platdata *pd) in s3c_sdhci0_set_platdata() argument 108 s3c_sdhci_set_platdata(pd, &s3c_hsmmc0_def_platdata); in s3c_sdhci0_set_platdata() 136 void s3c_sdhci1_set_platdata(struct s3c_sdhci_platdata *pd) in s3c_sdhci1_set_platdata() argument 138 s3c_sdhci_set_platdata(pd, &s3c_hsmmc1_def_platdata); in s3c_sdhci1_set_platdata() 168 void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd) in s3c_sdhci2_set_platdata() argument 170 s3c_sdhci_set_platdata(pd, &s3c_hsmmc2_def_platdata); in s3c_sdhci2_set_platdata() 198 void s3c_sdhci3_set_platdata(struct s3c_sdhci_platdata *pd) in s3c_sdhci3_set_platdata() argument 200 s3c_sdhci_set_platdata(pd, &s3c_hsmmc3_def_platdata); in s3c_sdhci3_set_platdata() [all …]
|
/linux-6.6.21/arch/powerpc/platforms/ps3/ |
D | interrupt.c | 97 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.6.21/drivers/pmdomain/rockchip/ |
D | pm-domains.c | 196 struct rockchip_pm_domain *pd; in rockchip_pmu_block() local 226 pd = to_rockchip_pd(genpd); in rockchip_pmu_block() 227 ret = clk_bulk_enable(pd->num_clks, pd->clks); in rockchip_pmu_block() 243 pd = to_rockchip_pd(genpd); in rockchip_pmu_block() 244 clk_bulk_disable(pd->num_clks, pd->clks); in rockchip_pmu_block() 259 struct rockchip_pm_domain *pd; in rockchip_pmu_unblock() local 267 pd = to_rockchip_pd(genpd); in rockchip_pmu_unblock() 268 clk_bulk_disable(pd->num_clks, pd->clks); in rockchip_pmu_unblock() 282 static bool rockchip_pmu_domain_is_idle(struct rockchip_pm_domain *pd) in rockchip_pmu_domain_is_idle() argument 284 struct rockchip_pmu *pmu = pd->pmu; in rockchip_pmu_domain_is_idle() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_ppgtt.c | 37 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.6.21/drivers/pmdomain/amlogic/ |
D | meson-gx-pwrc-vpu.c | 49 struct meson_gx_pwrc_vpu *pd = genpd_to_pd(genpd); in meson_gx_pwrc_vpu_power_off() local 52 regmap_update_bits(pd->regmap_ao, AO_RTI_GEN_PWR_SLEEP0, in meson_gx_pwrc_vpu_power_off() 58 regmap_update_bits(pd->regmap_hhi, HHI_VPU_MEM_PD_REG0, in meson_gx_pwrc_vpu_power_off() 63 regmap_update_bits(pd->regmap_hhi, HHI_VPU_MEM_PD_REG1, in meson_gx_pwrc_vpu_power_off() 68 regmap_update_bits(pd->regmap_hhi, HHI_MEM_PD_REG0, in meson_gx_pwrc_vpu_power_off() 74 regmap_update_bits(pd->regmap_ao, AO_RTI_GEN_PWR_SLEEP0, in meson_gx_pwrc_vpu_power_off() 79 clk_disable_unprepare(pd->vpu_clk); in meson_gx_pwrc_vpu_power_off() 80 clk_disable_unprepare(pd->vapb_clk); in meson_gx_pwrc_vpu_power_off() 87 struct meson_gx_pwrc_vpu *pd = genpd_to_pd(genpd); in meson_g12a_pwrc_vpu_power_off() local 90 regmap_update_bits(pd->regmap_ao, AO_RTI_GEN_PWR_SLEEP0, in meson_g12a_pwrc_vpu_power_off() [all …]
|
/linux-6.6.21/drivers/media/tuners/ |
D | tda18271-maps.c | 13 u8 pd; /* post div */ member 25 { .lomax = 32000, .pd = 0x5f, .d = 0xf0 }, 26 { .lomax = 35000, .pd = 0x5e, .d = 0xe0 }, 27 { .lomax = 37000, .pd = 0x5d, .d = 0xd0 }, 28 { .lomax = 41000, .pd = 0x5c, .d = 0xc0 }, 29 { .lomax = 44000, .pd = 0x5b, .d = 0xb0 }, 30 { .lomax = 49000, .pd = 0x5a, .d = 0xa0 }, 31 { .lomax = 54000, .pd = 0x59, .d = 0x90 }, 32 { .lomax = 61000, .pd = 0x58, .d = 0x80 }, 33 { .lomax = 65000, .pd = 0x4f, .d = 0x78 }, [all …]
|
/linux-6.6.21/drivers/pmdomain/renesas/ |
D | rmobile-sysc.c | 136 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 …]
|
/linux-6.6.21/kernel/ |
D | padata.c | 47 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.6.21/drivers/dma/ |
D | pch_dma.c | 132 #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) 179 struct pch_dma *pd = to_pd(chan->device); in pdc_enable_irq() local 188 val = dma_readl(pd, CTL2); in pdc_enable_irq() 195 dma_writel(pd, CTL2, val); in pdc_enable_irq() 204 struct pch_dma *pd = to_pd(chan->device); in pdc_set_dir() local 210 val = dma_readl(pd, CTL0); in pdc_set_dir() 225 dma_writel(pd, CTL0, val); in pdc_set_dir() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/usnic/ |
D | usnic_uiom.c | 191 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 …]
|