/Linux-v5.10/drivers/spi/ |
D | spi-dw-core.c | 59 static int dw_spi_debugfs_init(struct dw_spi *dws) in dw_spi_debugfs_init() argument 63 snprintf(name, 32, "dw_spi%d", dws->master->bus_num); in dw_spi_debugfs_init() 64 dws->debugfs = debugfs_create_dir(name, NULL); in dw_spi_debugfs_init() 65 if (!dws->debugfs) in dw_spi_debugfs_init() 68 dws->regset.regs = dw_spi_dbgfs_regs; in dw_spi_debugfs_init() 69 dws->regset.nregs = ARRAY_SIZE(dw_spi_dbgfs_regs); in dw_spi_debugfs_init() 70 dws->regset.base = dws->regs; in dw_spi_debugfs_init() 71 debugfs_create_regset32("registers", 0400, dws->debugfs, &dws->regset); in dw_spi_debugfs_init() 76 static void dw_spi_debugfs_remove(struct dw_spi *dws) in dw_spi_debugfs_remove() argument 78 debugfs_remove_recursive(dws->debugfs); in dw_spi_debugfs_remove() [all …]
|
D | spi-dw-dma.c | 36 static void dw_spi_dma_maxburst_init(struct dw_spi *dws) in dw_spi_dma_maxburst_init() argument 42 def_burst = dws->fifo_len / 2; in dw_spi_dma_maxburst_init() 44 ret = dma_get_slave_caps(dws->rxchan, &caps); in dw_spi_dma_maxburst_init() 50 dws->rxburst = min(max_burst, def_burst); in dw_spi_dma_maxburst_init() 51 dw_writel(dws, DW_SPI_DMARDLR, dws->rxburst - 1); in dw_spi_dma_maxburst_init() 53 ret = dma_get_slave_caps(dws->txchan, &caps); in dw_spi_dma_maxburst_init() 70 dws->txburst = min(max_burst, def_burst); in dw_spi_dma_maxburst_init() 71 dw_writel(dws, DW_SPI_DMATDLR, dws->txburst); in dw_spi_dma_maxburst_init() 74 static void dw_spi_dma_sg_burst_init(struct dw_spi *dws) in dw_spi_dma_sg_burst_init() argument 78 dma_get_slave_caps(dws->txchan, &tx); in dw_spi_dma_sg_burst_init() [all …]
|
D | spi-dw.h | 135 int (*dma_init)(struct device *dev, struct dw_spi *dws); 136 void (*dma_exit)(struct dw_spi *dws); 137 int (*dma_setup)(struct dw_spi *dws, struct spi_transfer *xfer); 140 int (*dma_transfer)(struct dw_spi *dws, struct spi_transfer *xfer); 141 void (*dma_stop)(struct dw_spi *dws); 169 irqreturn_t (*transfer_handler)(struct dw_spi *dws); 194 static inline u32 dw_readl(struct dw_spi *dws, u32 offset) in dw_readl() argument 196 return __raw_readl(dws->regs + offset); in dw_readl() 199 static inline void dw_writel(struct dw_spi *dws, u32 offset, u32 val) in dw_writel() argument 201 __raw_writel(val, dws->regs + offset); in dw_writel() [all …]
|
D | spi-dw-bt1.c | 33 struct dw_spi dws; member 43 container_of(spi_controller_get_devdata(_ctlr), struct dw_spi_bt1, dws) 55 !dwsbt1->dws.mem_ops.supports_op(desc->mem, &desc->info.op_tmpl)) in dw_spi_bt1_dirmap_create() 111 struct dw_spi *dws = &dwsbt1->dws; in dw_spi_bt1_dirmap_read() local 134 spi_enable_chip(dws, 0); in dw_spi_bt1_dirmap_read() 136 dw_spi_update_config(dws, mem->spi, &cfg); in dw_spi_bt1_dirmap_read() 138 spi_umask_intr(dws, SPI_INT_RXFI); in dw_spi_bt1_dirmap_read() 140 spi_enable_chip(dws, 1); in dw_spi_bt1_dirmap_read() 158 ret = dw_spi_check_status(dws, true); in dw_spi_bt1_dirmap_read() 168 struct dw_spi *dws = &dwsbt1->dws; in dw_spi_bt1_std_init() local [all …]
|
D | spi-dw-pci.c | 34 static int spi_mid_init(struct dw_spi *dws) in spi_mid_init() argument 44 clk_cdiv = readl(clk_reg + dws->bus_num * sizeof(u32)); in spi_mid_init() 47 dws->max_freq = MRST_SPI_CLK_BASE / (clk_cdiv + 1); in spi_mid_init() 51 dw_spi_dma_setup_mfld(dws); in spi_mid_init() 56 static int spi_generic_init(struct dw_spi *dws) in spi_generic_init() argument 58 dw_spi_dma_setup_generic(dws); in spi_generic_init() 84 struct dw_spi *dws; in spi_pci_probe() local 93 dws = devm_kzalloc(&pdev->dev, sizeof(*dws), GFP_KERNEL); in spi_pci_probe() 94 if (!dws) in spi_pci_probe() 98 dws->paddr = pci_resource_start(pdev, pci_bar); in spi_pci_probe() [all …]
|
D | spi-dw-mmio.c | 29 struct dw_spi dws; member 65 struct dw_spi *dws = spi_master_get_devdata(spi->master); in dw_spi_mscc_set_cs() local 66 struct dw_spi_mmio *dwsmmio = container_of(dws, struct dw_spi_mmio, dws); in dw_spi_mscc_set_cs() 110 dwsmmio->dws.set_cs = dw_spi_mscc_set_cs; in dw_spi_mscc_init() 138 struct dw_spi *dws = spi_master_get_devdata(spi->master); in dw_spi_sparx5_set_cs() local 139 struct dw_spi_mmio *dwsmmio = container_of(dws, struct dw_spi_mmio, dws); in dw_spi_sparx5_set_cs() 185 dwsmmio->dws.set_cs = dw_spi_sparx5_set_cs; in dw_spi_mscc_sparx5_init() 194 dwsmmio->dws.caps = DW_SPI_CAP_CS_OVERRIDE; in dw_spi_alpine_init() 202 dw_spi_dma_setup_generic(&dwsmmio->dws); in dw_spi_dw_apb_init() 210 dwsmmio->dws.caps = DW_SPI_CAP_DWC_SSI; in dw_spi_dwc_ssi_init() [all …]
|
D | spi-pxa2xx-pci.c | 65 struct dw_dma_slave *dws = param; in lpss_dma_filter() local 67 if (dws->dma_dev != chan->device->dev) in lpss_dma_filter() 70 chan->private = dws; in lpss_dma_filter()
|
/Linux-v5.10/drivers/dma/dw/ |
D | dw.c | 19 bool hs_polarity = dwc->dws.hs_polarity; in dw_dma_initialize_chan() 21 cfghi |= DWC_CFGH_DST_PER(dwc->dws.dst_id); in dw_dma_initialize_chan() 22 cfghi |= DWC_CFGH_SRC_PER(dwc->dws.src_id); in dw_dma_initialize_chan() 72 u8 p_master = dwc->dws.p_master; in dw_dma_prepare_ctllo() 73 u8 m_master = dwc->dws.m_master; in dw_dma_prepare_ctllo()
|
D | idma32.c | 21 cfghi |= IDMA32C_CFGH_DST_PER(dwc->dws.dst_id & 0xf); in idma32_initialize_chan() 22 cfghi |= IDMA32C_CFGH_SRC_PER(dwc->dws.src_id & 0xf); in idma32_initialize_chan() 25 cfghi |= IDMA32C_CFGH_DST_PER_EXT(dwc->dws.dst_id >> 4 & 0x3); in idma32_initialize_chan() 26 cfghi |= IDMA32C_CFGH_SRC_PER_EXT(dwc->dws.src_id >> 4 & 0x3); in idma32_initialize_chan()
|
D | core.c | 177 u8 lms = DWC_LLP_LMS(dwc->dws.m_master); in dwc_dostart() 550 u8 m_master = dwc->dws.m_master; in dwc_prep_dma_memcpy() 627 u8 m_master = dwc->dws.m_master; in dwc_prep_slave_sg() 770 struct dw_dma_slave *dws = param; in dw_dma_filter() local 772 if (dws->dma_dev != chan->device->dev) in dw_dma_filter() 776 if (dws->channels && !(dws->channels & dwc->mask)) in dw_dma_filter() 780 memcpy(&dwc->dws, dws, sizeof(struct dw_dma_slave)); in dw_dma_filter() 1032 memset(&dwc->dws, 0, sizeof(struct dw_dma_slave)); in dwc_free_chan_resources()
|
D | regs.h | 291 struct dw_dma_slave dws; member
|
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_rlc.c | 87 int amdgpu_gfx_rlc_init_sr(struct amdgpu_device *adev, u32 dws) in amdgpu_gfx_rlc_init_sr() argument 95 r = amdgpu_bo_create_reserved(adev, dws * 4, PAGE_SIZE, in amdgpu_gfx_rlc_init_sr() 127 u32 dws; in amdgpu_gfx_rlc_init_csb() local 131 adev->gfx.rlc.clear_state_size = dws = adev->gfx.rlc.funcs->get_csb_size(adev); in amdgpu_gfx_rlc_init_csb() 132 r = amdgpu_bo_create_kernel(adev, dws * 4, PAGE_SIZE, in amdgpu_gfx_rlc_init_csb()
|
D | amdgpu_rlc.h | 197 int amdgpu_gfx_rlc_init_sr(struct amdgpu_device *adev, u32 dws);
|
D | gfx_v6_0.c | 2374 u32 dws; in gfx_v6_0_rlc_init() local 2385 dws = adev->gfx.rlc.reg_list_size; in gfx_v6_0_rlc_init() 2390 r = amdgpu_gfx_rlc_init_sr(adev, dws); in gfx_v6_0_rlc_init() 2398 dws = adev->gfx.rlc.clear_state_size + (256 / 4); in gfx_v6_0_rlc_init() 2400 r = amdgpu_bo_create_reserved(adev, dws * 4, PAGE_SIZE, in gfx_v6_0_rlc_init()
|
D | gfx_v7_0.c | 3295 u32 dws; in gfx_v7_0_rlc_init() local 3316 dws = adev->gfx.rlc.reg_list_size; in gfx_v7_0_rlc_init() 3317 dws += (5 * 16) + 48 + 48 + 64; in gfx_v7_0_rlc_init() 3323 r = amdgpu_gfx_rlc_init_sr(adev, dws); in gfx_v7_0_rlc_init()
|
/Linux-v5.10/drivers/tty/serial/8250/ |
D | 8250_lpss.c | 240 struct dw_dma_slave *dws = param; in lpss8250_dma_filter() local 242 if (dws->dma_dev != chan->device->dev) in lpss8250_dma_filter() 245 chan->private = dws; in lpss8250_dma_filter()
|
/Linux-v5.10/sound/aoa/soundbus/i2sbus/ |
D | pcm.c | 329 int dws = 0; /* data word sizes reg */ in i2sbus_pcm_prepare() local 467 dws = (2 << I2S_DWS_NUM_CHANNELS_IN_SHIFT) | in i2sbus_pcm_prepare() 471 dws = (2 << I2S_DWS_NUM_CHANNELS_IN_SHIFT) | in i2sbus_pcm_prepare() 478 && in_le32(&i2sdev->intfregs->data_word_sizes) == dws) in i2sbus_pcm_prepare() 506 out_le32(&i2sdev->intfregs->data_word_sizes, dws); in i2sbus_pcm_prepare()
|
/Linux-v5.10/drivers/ata/ |
D | sata_dwc_460ex.c | 205 struct dw_dma_slave *dws = &sata_dwc_dma_dws; in sata_dwc_dma_filter() local 207 if (dws->dma_dev != chan->device->dev) in sata_dwc_dma_filter() 210 chan->private = dws; in sata_dwc_dma_filter() 217 struct dw_dma_slave *dws = &sata_dwc_dma_dws; in sata_dwc_dma_get_channel_old() local 220 dws->dma_dev = hsdev->dev; in sata_dwc_dma_get_channel_old()
|
/Linux-v5.10/drivers/gpu/drm/radeon/ |
D | evergreen.c | 4157 u32 dws, data, i, j, k, reg_num; in sumo_rlc_init() local 4164 dws = rdev->rlc.reg_list_size; in sumo_rlc_init() 4166 dws += (5 * 16) + 48 + 48 + 64; in sumo_rlc_init() 4173 r = radeon_bo_create(rdev, dws * 4, PAGE_SIZE, true, in sumo_rlc_init() 4215 for (i = 0; i < dws; i++) { in sumo_rlc_init() 4218 if (i < dws) in sumo_rlc_init() 4233 rdev->rlc.clear_state_size = dws = cik_get_csb_size(rdev); in sumo_rlc_init() 4236 dws = rdev->rlc.clear_state_size + (256 / 4); in sumo_rlc_init() 4239 dws = 0; in sumo_rlc_init() 4243 dws += cs_data[i].section[j].reg_count; in sumo_rlc_init() [all …]
|