Home
last modified time | relevance | path

Searched refs:dws (Results 1 – 20 of 20) sorted by relevance

/linux-6.3-rc2/drivers/spi/
A Dspi-dw-core.c71 dws->regset.base = dws->regs; in dw_spi_debugfs_init()
127 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in dw_spi_tx_max()
152 dws->tx += dws->n_bytes; in dw_writer()
174 dws->rx += dws->n_bytes; in dw_reader()
268 return dws->transfer_handler(dws); in dw_spi_irq()
433 dws->rx_len = dws->tx_len; in dw_spi_transfer_one()
475 dws->dma_ops->dma_stop(dws); in dw_spi_handle_err()
550 if (dws->tx != dws->buf) in dw_spi_free_mem_buf()
967 dws->dma_ops->dma_exit(dws); in dw_spi_add_host()
984 dws->dma_ops->dma_exit(dws); in dw_spi_remove_host()
[all …]
A Dspi-dw-dma.c52 dw_writel(dws, DW_SPI_DMARDLR, dws->rxburst - 1); in dw_spi_dma_maxburst_init()
72 dw_writel(dws, DW_SPI_DMATDLR, dws->txburst); in dw_spi_dma_maxburst_init()
113 if (!dws->rxchan) in dw_spi_dma_init_mfld()
119 if (!dws->txchan) in dw_spi_dma_init_mfld()
122 dws->master->dma_rx = dws->rxchan; in dw_spi_dma_init_mfld()
123 dws->master->dma_tx = dws->txchan; in dw_spi_dma_init_mfld()
137 dws->rxchan = NULL; in dw_spi_dma_init_mfld()
161 dws->master->dma_rx = dws->rxchan; in dw_spi_dma_init_generic()
162 dws->master->dma_tx = dws->txchan; in dw_spi_dma_init_generic()
181 if (dws->txchan) { in dw_spi_dma_exit()
[all …]
A Dspi-dw.h143 void (*dma_exit)(struct dw_spi *dws);
216 switch (dws->reg_io_width) { in dw_read_io_reg()
227 switch (dws->reg_io_width) { in dw_write_io_reg()
245 dw_writel(dws, DW_SPI_BAUDR, div); in dw_spi_set_clk()
273 dw_spi_enable_chip(dws, 0); in dw_spi_reset_chip()
274 dw_spi_mask_intr(dws, 0xff); in dw_spi_reset_chip()
275 dw_readl(dws, DW_SPI_ICR); in dw_spi_reset_chip()
276 dw_writel(dws, DW_SPI_SER, 0); in dw_spi_reset_chip()
277 dw_spi_enable_chip(dws, 1); in dw_spi_reset_chip()
282 dw_spi_enable_chip(dws, 0); in dw_spi_shutdown_chip()
[all …]
A Dspi-dw-bt1.c33 struct dw_spi dws; member
111 struct dw_spi *dws = &dwsbt1->dws; in dw_spi_bt1_dirmap_read() local
168 struct dw_spi *dws = &dwsbt1->dws; in dw_spi_bt1_std_init() local
171 if (dws->irq < 0) in dw_spi_bt1_std_init()
172 return dws->irq; in dw_spi_bt1_std_init()
174 dws->num_cs = 4; in dw_spi_bt1_std_init()
194 struct dw_spi *dws = &dwsbt1->dws; in dw_spi_bt1_sys_init() local
234 dws->num_cs = 1; in dw_spi_bt1_sys_init()
257 struct dw_spi *dws; in dw_spi_bt1_probe() local
264 dws = &dwsbt1->dws; in dw_spi_bt1_probe()
[all …]
A Dspi-dw-pci.c51 dw_spi_dma_setup_mfld(dws); in dw_spi_pci_mid_init()
58 dw_spi_dma_setup_generic(dws); in dw_spi_pci_generic_init()
85 struct dw_spi *dws; in dw_spi_pci_probe() local
93 dws = devm_kzalloc(&pdev->dev, sizeof(*dws), GFP_KERNEL); in dw_spi_pci_probe()
94 if (!dws) in dw_spi_pci_probe()
117 dws->num_cs = desc->num_cs; in dw_spi_pci_probe()
118 dws->bus_num = desc->bus_num; in dw_spi_pci_probe()
122 ret = desc->setup(dws); in dw_spi_pci_probe()
136 pci_set_drvdata(pdev, dws); in dw_spi_pci_probe()
160 dw_spi_remove_host(dws); in dw_spi_pci_remove()
[all …]
A Dspi-dw-mmio.c29 struct dw_spi dws; member
66 struct dw_spi_mmio *dwsmmio = container_of(dws, struct dw_spi_mmio, dws); in dw_spi_mscc_set_cs()
139 struct dw_spi_mmio *dwsmmio = container_of(dws, struct dw_spi_mmio, dws); in dw_spi_sparx5_set_cs()
235 dwsmmio->dws.fifo_len = 31; in dw_spi_canaan_k210_init()
246 struct dw_spi *dws; in dw_spi_mmio_probe() local
255 dws = &dwsmmio->dws; in dw_spi_mmio_probe()
259 if (IS_ERR(dws->regs)) in dw_spi_mmio_probe()
262 dws->paddr = mem->start; in dw_spi_mmio_probe()
265 if (dws->irq < 0) in dw_spi_mmio_probe()
293 dws->bus_num = pdev->id; in dw_spi_mmio_probe()
[all …]
A Dspi-pxa2xx-pci.c76 struct dw_dma_slave *dws = param; in lpss_dma_filter() local
78 if (dws->dma_dev != chan->device->dev) in lpss_dma_filter()
81 chan->private = dws; in lpss_dma_filter()
/linux-6.3-rc2/drivers/dma/dw/
A Ddw.c19 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()
A Didma32.c115 src_id = dwc->dws.src_id; in idma32_initialize_chan_xbar()
118 dst_id = dwc->dws.dst_id; in idma32_initialize_chan_xbar()
150 cfghi |= IDMA32C_CFGH_DST_PER(dwc->dws.dst_id & 0xf); in idma32_initialize_chan_generic()
151 cfghi |= IDMA32C_CFGH_SRC_PER(dwc->dws.src_id & 0xf); in idma32_initialize_chan_generic()
154 cfghi |= IDMA32C_CFGH_DST_PER_EXT(dwc->dws.dst_id >> 4 & 0x3); in idma32_initialize_chan_generic()
155 cfghi |= IDMA32C_CFGH_SRC_PER_EXT(dwc->dws.src_id >> 4 & 0x3); in idma32_initialize_chan_generic()
A Dcore.c174 u8 lms = DWC_LLP_LMS(dwc->dws.m_master); in dwc_dostart()
547 u8 m_master = dwc->dws.m_master; in dwc_prep_dma_memcpy()
624 u8 m_master = dwc->dws.m_master; in dwc_prep_slave_sg()
767 struct dw_dma_slave *dws = param; in dw_dma_filter() local
769 if (dws->dma_dev != chan->device->dev) in dw_dma_filter()
773 if (dws->channels && !(dws->channels & dwc->mask)) in dw_dma_filter()
777 memcpy(&dwc->dws, dws, sizeof(struct dw_dma_slave)); in dw_dma_filter()
1028 memset(&dwc->dws, 0, sizeof(struct dw_dma_slave)); in dwc_free_chan_resources()
A Dregs.h291 struct dw_dma_slave dws; member
/linux-6.3-rc2/drivers/tty/serial/8250/
A D8250_lpss.c267 struct dw_dma_slave *dws = param; in lpss8250_dma_filter() local
269 if (dws->dma_dev != chan->device->dev) in lpss8250_dma_filter()
272 chan->private = dws; in lpss8250_dma_filter()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_rlc.c87 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()
128 u32 dws; in amdgpu_gfx_rlc_init_csb() local
132 adev->gfx.rlc.clear_state_size = dws = adev->gfx.rlc.funcs->get_csb_size(adev); in amdgpu_gfx_rlc_init_csb()
133 r = amdgpu_bo_create_kernel(adev, dws * 4, PAGE_SIZE, in amdgpu_gfx_rlc_init_csb()
A Damdgpu_rlc.h265 int amdgpu_gfx_rlc_init_sr(struct amdgpu_device *adev, u32 dws);
A Dgfx_v6_0.c2337 u32 dws; in gfx_v6_0_rlc_init() local
2348 dws = adev->gfx.rlc.reg_list_size; in gfx_v6_0_rlc_init()
2353 r = amdgpu_gfx_rlc_init_sr(adev, dws); in gfx_v6_0_rlc_init()
2361 dws = adev->gfx.rlc.clear_state_size + (256 / 4); in gfx_v6_0_rlc_init()
2363 r = amdgpu_bo_create_reserved(adev, dws * 4, PAGE_SIZE, in gfx_v6_0_rlc_init()
A Dgfx_v7_0.c3231 u32 dws; in gfx_v7_0_rlc_init() local
3252 dws = adev->gfx.rlc.reg_list_size; in gfx_v7_0_rlc_init()
3253 dws += (5 * 16) + 48 + 48 + 64; in gfx_v7_0_rlc_init()
3259 r = amdgpu_gfx_rlc_init_sr(adev, dws); in gfx_v7_0_rlc_init()
/linux-6.3-rc2/sound/aoa/soundbus/i2sbus/
A Dpcm.c329 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-6.3-rc2/drivers/ata/
A Dsata_dwc_460ex.c195 struct dw_dma_slave *dws = &sata_dwc_dma_dws; in sata_dwc_dma_filter() local
197 if (dws->dma_dev != chan->device->dev) in sata_dwc_dma_filter()
200 chan->private = dws; in sata_dwc_dma_filter()
207 struct dw_dma_slave *dws = &sata_dwc_dma_dws; in sata_dwc_dma_get_channel_old() local
211 dws->dma_dev = dev; in sata_dwc_dma_get_channel_old()
/linux-6.3-rc2/drivers/char/xillybus/
A Dxillyusb.c942 int dws = xb->len >> 2; in process_bulk_in() local
953 if ((dws << 2) != xb->len) { in process_bulk_in()
960 bytes = min(xdev->in_bytes_left, dws << 2); in process_bulk_in()
966 while (dws) { in process_bulk_in()
968 dws--; in process_bulk_in()
991 bytes = min(count + 1, dws << 2); in process_bulk_in()
1018 dws -= dwconsume; in process_bulk_in()
/linux-6.3-rc2/drivers/gpu/drm/radeon/
A Devergreen.c4159 u32 dws, data, i, j, k, reg_num; in sumo_rlc_init() local
4166 dws = rdev->rlc.reg_list_size; in sumo_rlc_init()
4168 dws += (5 * 16) + 48 + 48 + 64; in sumo_rlc_init()
4175 r = radeon_bo_create(rdev, dws * 4, PAGE_SIZE, true, in sumo_rlc_init()
4217 for (i = 0; i < dws; i++) { in sumo_rlc_init()
4220 if (i < dws) in sumo_rlc_init()
4238 dws = rdev->rlc.clear_state_size + (256 / 4); in sumo_rlc_init()
4241 dws = 0; in sumo_rlc_init()
4245 dws += cs_data[i].section[j].reg_count; in sumo_rlc_init()
4249 dws += reg_list_blk_index; in sumo_rlc_init()
[all …]

Completed in 68 milliseconds