Searched refs:dws (Results 1 – 7 of 7) sorted by relevance
/drivers/spi/ |
D | spi-dw.c | 70 struct dw_spi *dws; in spi_show_regs() local 75 dws = file->private_data; in spi_show_regs() 86 "CTRL0: \t\t0x%08x\n", dw_readl(dws, DW_SPI_CTRL0)); in spi_show_regs() 88 "CTRL1: \t\t0x%08x\n", dw_readl(dws, DW_SPI_CTRL1)); in spi_show_regs() 90 "SSIENR: \t0x%08x\n", dw_readl(dws, DW_SPI_SSIENR)); in spi_show_regs() 92 "SER: \t\t0x%08x\n", dw_readl(dws, DW_SPI_SER)); in spi_show_regs() 94 "BAUDR: \t\t0x%08x\n", dw_readl(dws, DW_SPI_BAUDR)); in spi_show_regs() 96 "TXFTLR: \t0x%08x\n", dw_readl(dws, DW_SPI_TXFLTR)); in spi_show_regs() 98 "RXFTLR: \t0x%08x\n", dw_readl(dws, DW_SPI_RXFLTR)); in spi_show_regs() 100 "TXFLR: \t\t0x%08x\n", dw_readl(dws, DW_SPI_TXFLR)); in spi_show_regs() [all …]
|
D | spi-dw-mid.c | 40 struct dw_spi *dws = param; in mid_spi_dma_chan_filter() local 42 return dws->dmac && (&dws->dmac->dev == chan->device->dev); in mid_spi_dma_chan_filter() 45 static int mid_spi_dma_init(struct dw_spi *dws) in mid_spi_dma_init() argument 47 struct mid_dma *dw_dma = dws->dma_priv; in mid_spi_dma_init() 55 dws->dmac = pci_get_device(PCI_VENDOR_ID_INTEL, 0x0813, NULL); in mid_spi_dma_init() 56 if (!dws->dmac) in mid_spi_dma_init() 57 dws->dmac = pci_get_device(PCI_VENDOR_ID_INTEL, 0x0827, NULL); in mid_spi_dma_init() 63 dws->rxchan = dma_request_channel(mask, mid_spi_dma_chan_filter, dws); in mid_spi_dma_init() 64 if (!dws->rxchan) in mid_spi_dma_init() 69 dws->rxchan->private = rxs; in mid_spi_dma_init() [all …]
|
D | spi-dw.h | 87 int (*dma_init)(struct dw_spi *dws); 88 void (*dma_exit)(struct dw_spi *dws); 89 int (*dma_transfer)(struct dw_spi *dws, int cs_change); 139 irqreturn_t (*transfer_handler)(struct dw_spi *dws); 162 static inline u32 dw_readl(struct dw_spi *dws, u32 offset) in dw_readl() argument 164 return __raw_readl(dws->regs + offset); in dw_readl() 167 static inline void dw_writel(struct dw_spi *dws, u32 offset, u32 val) in dw_writel() argument 169 __raw_writel(val, dws->regs + offset); in dw_writel() 172 static inline u16 dw_readw(struct dw_spi *dws, u32 offset) in dw_readw() argument 174 return __raw_readw(dws->regs + offset); in dw_readw() [all …]
|
D | spi-dw-mmio.c | 25 struct dw_spi dws; member 32 struct dw_spi *dws; in dw_spi_mmio_probe() local 42 dws = &dwsmmio->dws; in dw_spi_mmio_probe() 60 dws->regs = ioremap_nocache(mem->start, resource_size(mem)); in dw_spi_mmio_probe() 61 if (!dws->regs) { in dw_spi_mmio_probe() 67 dws->irq = platform_get_irq(pdev, 0); in dw_spi_mmio_probe() 68 if (dws->irq < 0) { in dw_spi_mmio_probe() 70 ret = dws->irq; /* -ENXIO */ in dw_spi_mmio_probe() 81 dws->parent_dev = &pdev->dev; in dw_spi_mmio_probe() 82 dws->bus_num = 0; in dw_spi_mmio_probe() [all …]
|
D | spi-dw-pci.c | 32 struct dw_spi dws; member 39 struct dw_spi *dws; in spi_pci_probe() local 57 dws = &dwpci->dws; in spi_pci_probe() 60 dws->paddr = pci_resource_start(pdev, pci_bar); in spi_pci_probe() 61 dws->iolen = pci_resource_len(pdev, pci_bar); in spi_pci_probe() 67 dws->regs = ioremap_nocache((unsigned long)dws->paddr, in spi_pci_probe() 69 if (!dws->regs) { in spi_pci_probe() 74 dws->parent_dev = &pdev->dev; in spi_pci_probe() 75 dws->bus_num = 0; in spi_pci_probe() 76 dws->num_cs = 4; in spi_pci_probe() [all …]
|
/drivers/dma/ |
D | dw_dmac.c | 163 struct dw_dma_slave *dws = dwc->chan.private; in dwc_initialize() local 170 if (dws) { in dwc_initialize() 175 BUG_ON(!dws->dma_dev || dws->dma_dev != dw->dma.dev); in dwc_initialize() 177 cfghi = dws->cfg_hi; in dwc_initialize() 178 cfglo |= dws->cfg_lo & ~DWC_CFGL_CH_PRIOR_MASK; in dwc_initialize() 710 struct dw_dma_slave *dws = chan->private; in dwc_prep_slave_sg() local 724 if (unlikely(!dws || !sg_len)) in dwc_prep_slave_sg()
|
/drivers/gpu/drm/radeon/ |
D | atombios_dp.c | 69 u8 dws = num_bytes & ~3; in radeon_atom_copy_swap() local 72 memcpy(dst, dst_tmp, dws); in radeon_atom_copy_swap() 75 dst[dws+i] = dst_tmp[dws+i]; in radeon_atom_copy_swap()
|