Home
last modified time | relevance | path

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

/drivers/spi/
Dspi-dw.c50 struct dw_spi *dws = file->private_data; in dw_spi_show_regs() local
60 "%s registers:\n", dev_name(&dws->master->dev)); in dw_spi_show_regs()
64 "CTRL0: \t\t0x%08x\n", dw_readl(dws, DW_SPI_CTRL0)); in dw_spi_show_regs()
66 "CTRL1: \t\t0x%08x\n", dw_readl(dws, DW_SPI_CTRL1)); in dw_spi_show_regs()
68 "SSIENR: \t0x%08x\n", dw_readl(dws, DW_SPI_SSIENR)); in dw_spi_show_regs()
70 "SER: \t\t0x%08x\n", dw_readl(dws, DW_SPI_SER)); in dw_spi_show_regs()
72 "BAUDR: \t\t0x%08x\n", dw_readl(dws, DW_SPI_BAUDR)); in dw_spi_show_regs()
74 "TXFTLR: \t0x%08x\n", dw_readl(dws, DW_SPI_TXFLTR)); in dw_spi_show_regs()
76 "RXFTLR: \t0x%08x\n", dw_readl(dws, DW_SPI_RXFLTR)); in dw_spi_show_regs()
78 "TXFLR: \t\t0x%08x\n", dw_readl(dws, DW_SPI_TXFLR)); in dw_spi_show_regs()
[all …]
Dspi-dw-mid.c46 static int mid_spi_dma_init(struct dw_spi *dws) in mid_spi_dma_init() argument
49 struct dw_dma_slave *tx = dws->dma_tx; in mid_spi_dma_init()
50 struct dw_dma_slave *rx = dws->dma_rx; in mid_spi_dma_init()
66 dws->rxchan = dma_request_channel(mask, mid_spi_dma_chan_filter, rx); in mid_spi_dma_init()
67 if (!dws->rxchan) in mid_spi_dma_init()
69 dws->master->dma_rx = dws->rxchan; in mid_spi_dma_init()
73 dws->txchan = dma_request_channel(mask, mid_spi_dma_chan_filter, tx); in mid_spi_dma_init()
74 if (!dws->txchan) in mid_spi_dma_init()
76 dws->master->dma_tx = dws->txchan; in mid_spi_dma_init()
78 dws->dma_inited = 1; in mid_spi_dma_init()
[all …]
Dspi-dw.h92 int (*dma_init)(struct dw_spi *dws);
93 void (*dma_exit)(struct dw_spi *dws);
94 int (*dma_setup)(struct dw_spi *dws, struct spi_transfer *xfer);
97 int (*dma_transfer)(struct dw_spi *dws, struct spi_transfer *xfer);
98 void (*dma_stop)(struct dw_spi *dws);
126 irqreturn_t (*transfer_handler)(struct dw_spi *dws);
145 static inline u32 dw_readl(struct dw_spi *dws, u32 offset) in dw_readl() argument
147 return __raw_readl(dws->regs + offset); in dw_readl()
150 static inline u16 dw_readw(struct dw_spi *dws, u32 offset) in dw_readw() argument
152 return __raw_readw(dws->regs + offset); in dw_readw()
[all …]
Dspi-dw-pci.c46 struct dw_spi *dws; in spi_pci_probe() local
55 dws = devm_kzalloc(&pdev->dev, sizeof(*dws), GFP_KERNEL); in spi_pci_probe()
56 if (!dws) in spi_pci_probe()
60 dws->paddr = pci_resource_start(pdev, pci_bar); in spi_pci_probe()
66 dws->regs = pcim_iomap_table(pdev)[pci_bar]; in spi_pci_probe()
67 dws->irq = pdev->irq; in spi_pci_probe()
74 dws->num_cs = desc->num_cs; in spi_pci_probe()
75 dws->bus_num = desc->bus_num; in spi_pci_probe()
78 ret = desc->setup(dws); in spi_pci_probe()
86 ret = dw_spi_add_host(&pdev->dev, dws); in spi_pci_probe()
[all …]
Dspi-dw-mmio.c29 struct dw_spi dws; member
36 struct dw_spi *dws; in dw_spi_mmio_probe() local
46 dws = &dwsmmio->dws; in dw_spi_mmio_probe()
55 dws->regs = devm_ioremap_resource(&pdev->dev, mem); in dw_spi_mmio_probe()
56 if (IS_ERR(dws->regs)) { in dw_spi_mmio_probe()
58 return PTR_ERR(dws->regs); in dw_spi_mmio_probe()
61 dws->irq = platform_get_irq(pdev, 0); in dw_spi_mmio_probe()
62 if (dws->irq < 0) { in dw_spi_mmio_probe()
64 return dws->irq; /* -ENXIO */ in dw_spi_mmio_probe()
74 dws->bus_num = pdev->id; in dw_spi_mmio_probe()
[all …]
Dspi-pxa2xx-pci.c47 struct dw_dma_slave *dws = param; in lpss_dma_filter() local
49 if (dws->dma_dev != chan->device->dev) in lpss_dma_filter()
52 chan->private = dws; in lpss_dma_filter()
/drivers/ata/
Dsata_dwc_460ex.c162 struct dw_dma_slave *dws; member
789 struct dw_dma_slave *dws = hsdevp->dws; in sata_dwc_dma_filter() local
791 if (dws->dma_dev != chan->device->dev) in sata_dwc_dma_filter()
794 chan->private = dws; in sata_dwc_dma_filter()
856 hsdevp->dws = &sata_dwc_dma_dws; in sata_dwc_port_start()
857 hsdevp->dws->dma_dev = hsdev->dev; in sata_dwc_port_start()
/drivers/dma/dw/
Dcore.c925 struct dw_dma_slave *dws = param; in dw_dma_filter() local
927 if (dws->dma_dev != chan->device->dev) in dw_dma_filter()
932 dwc->src_id = dws->src_id; in dw_dma_filter()
933 dwc->dst_id = dws->dst_id; in dw_dma_filter()
935 dwc->src_master = dws->src_master; in dw_dma_filter()
936 dwc->dst_master = dws->dst_master; in dw_dma_filter()
/drivers/gpu/drm/radeon/
Devergreen.c4240 u32 dws, data, i, j, k, reg_num; in sumo_rlc_init() local
4247 dws = rdev->rlc.reg_list_size; in sumo_rlc_init()
4249 dws += (5 * 16) + 48 + 48 + 64; in sumo_rlc_init()
4256 r = radeon_bo_create(rdev, dws * 4, PAGE_SIZE, true, in sumo_rlc_init()
4298 for (i = 0; i < dws; i++) { in sumo_rlc_init()
4301 if (i < dws) in sumo_rlc_init()
4316 rdev->rlc.clear_state_size = dws = cik_get_csb_size(rdev); in sumo_rlc_init()
4319 dws = rdev->rlc.clear_state_size + (256 / 4); in sumo_rlc_init()
4322 dws = 0; in sumo_rlc_init()
4326 dws += cs_data[i].section[j].reg_count; in sumo_rlc_init()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Dgfx_v7_0.c3722 u32 dws, i; in gfx_v7_0_rlc_init() local
3742 dws = adev->gfx.rlc.reg_list_size; in gfx_v7_0_rlc_init()
3743 dws += (5 * 16) + 48 + 48 + 64; in gfx_v7_0_rlc_init()
3750 r = amdgpu_bo_create(adev, dws * 4, PAGE_SIZE, true, in gfx_v7_0_rlc_init()
3791 adev->gfx.rlc.clear_state_size = dws = gfx_v7_0_get_csb_size(adev); in gfx_v7_0_rlc_init()
3794 r = amdgpu_bo_create(adev, dws * 4, PAGE_SIZE, true, in gfx_v7_0_rlc_init()
/drivers/tty/serial/8250/
D8250_pci.c1435 struct dw_dma_slave *dws = param; in byt_dma_filter() local
1437 if (dws->dma_dev != chan->device->dev) in byt_dma_filter()
1440 chan->private = dws; in byt_dma_filter()