xbar 66 drivers/dma/ti/dma-crossbar.c struct ti_am335x_xbar_data *xbar = dev_get_drvdata(dev); xbar 72 drivers/dma/ti/dma-crossbar.c ti_am335x_xbar_write(xbar->iomem, map->dma_line, 0); xbar 80 drivers/dma/ti/dma-crossbar.c struct ti_am335x_xbar_data *xbar = platform_get_drvdata(pdev); xbar 86 drivers/dma/ti/dma-crossbar.c if (dma_spec->args[2] >= xbar->xbar_events) { xbar 92 drivers/dma/ti/dma-crossbar.c if (dma_spec->args[0] >= xbar->dma_requests) { xbar 120 drivers/dma/ti/dma-crossbar.c ti_am335x_xbar_write(xbar->iomem, map->dma_line, map->mux_val); xbar 135 drivers/dma/ti/dma-crossbar.c struct ti_am335x_xbar_data *xbar; xbar 143 drivers/dma/ti/dma-crossbar.c xbar = devm_kzalloc(&pdev->dev, sizeof(*xbar), GFP_KERNEL); xbar 144 drivers/dma/ti/dma-crossbar.c if (!xbar) xbar 161 drivers/dma/ti/dma-crossbar.c &xbar->dma_requests)) { xbar 165 drivers/dma/ti/dma-crossbar.c xbar->dma_requests = TI_AM335X_XBAR_LINES; xbar 169 drivers/dma/ti/dma-crossbar.c if (of_property_read_u32(node, "dma-requests", &xbar->xbar_events)) { xbar 173 drivers/dma/ti/dma-crossbar.c xbar->xbar_events = TI_AM335X_XBAR_LINES; xbar 181 drivers/dma/ti/dma-crossbar.c xbar->iomem = iomem; xbar 183 drivers/dma/ti/dma-crossbar.c xbar->dmarouter.dev = &pdev->dev; xbar 184 drivers/dma/ti/dma-crossbar.c xbar->dmarouter.route_free = ti_am335x_xbar_free; xbar 186 drivers/dma/ti/dma-crossbar.c platform_set_drvdata(pdev, xbar); xbar 189 drivers/dma/ti/dma-crossbar.c for (i = 0; i < xbar->dma_requests; i++) xbar 190 drivers/dma/ti/dma-crossbar.c ti_am335x_xbar_write(xbar->iomem, i, 0); xbar 193 drivers/dma/ti/dma-crossbar.c &xbar->dmarouter); xbar 220 drivers/dma/ti/dma-crossbar.c static inline void ti_dra7_xbar_write(void __iomem *iomem, int xbar, u16 val) xbar 222 drivers/dma/ti/dma-crossbar.c writew_relaxed(val, iomem + (xbar * 2)); xbar 227 drivers/dma/ti/dma-crossbar.c struct ti_dra7_xbar_data *xbar = dev_get_drvdata(dev); xbar 233 drivers/dma/ti/dma-crossbar.c ti_dra7_xbar_write(xbar->iomem, map->xbar_out, xbar->safe_val); xbar 234 drivers/dma/ti/dma-crossbar.c mutex_lock(&xbar->mutex); xbar 235 drivers/dma/ti/dma-crossbar.c clear_bit(map->xbar_out, xbar->dma_inuse); xbar 236 drivers/dma/ti/dma-crossbar.c mutex_unlock(&xbar->mutex); xbar 244 drivers/dma/ti/dma-crossbar.c struct ti_dra7_xbar_data *xbar = platform_get_drvdata(pdev); xbar 247 drivers/dma/ti/dma-crossbar.c if (dma_spec->args[0] >= xbar->xbar_requests) { xbar 266 drivers/dma/ti/dma-crossbar.c mutex_lock(&xbar->mutex); xbar 267 drivers/dma/ti/dma-crossbar.c map->xbar_out = find_first_zero_bit(xbar->dma_inuse, xbar 268 drivers/dma/ti/dma-crossbar.c xbar->dma_requests); xbar 269 drivers/dma/ti/dma-crossbar.c if (map->xbar_out == xbar->dma_requests) { xbar 270 drivers/dma/ti/dma-crossbar.c mutex_unlock(&xbar->mutex); xbar 275 drivers/dma/ti/dma-crossbar.c set_bit(map->xbar_out, xbar->dma_inuse); xbar 276 drivers/dma/ti/dma-crossbar.c mutex_unlock(&xbar->mutex); xbar 280 drivers/dma/ti/dma-crossbar.c dma_spec->args[0] = map->xbar_out + xbar->dma_offset; xbar 285 drivers/dma/ti/dma-crossbar.c ti_dra7_xbar_write(xbar->iomem, map->xbar_out, map->xbar_in); xbar 324 drivers/dma/ti/dma-crossbar.c struct ti_dra7_xbar_data *xbar; xbar 335 drivers/dma/ti/dma-crossbar.c xbar = devm_kzalloc(&pdev->dev, sizeof(*xbar), GFP_KERNEL); xbar 336 drivers/dma/ti/dma-crossbar.c if (!xbar) xbar 353 drivers/dma/ti/dma-crossbar.c &xbar->dma_requests)) { xbar 357 drivers/dma/ti/dma-crossbar.c xbar->dma_requests = TI_DRA7_XBAR_OUTPUTS; xbar 361 drivers/dma/ti/dma-crossbar.c xbar->dma_inuse = devm_kcalloc(&pdev->dev, xbar 362 drivers/dma/ti/dma-crossbar.c BITS_TO_LONGS(xbar->dma_requests), xbar 364 drivers/dma/ti/dma-crossbar.c if (!xbar->dma_inuse) xbar 367 drivers/dma/ti/dma-crossbar.c if (of_property_read_u32(node, "dma-requests", &xbar->xbar_requests)) { xbar 371 drivers/dma/ti/dma-crossbar.c xbar->xbar_requests = TI_DRA7_XBAR_INPUTS; xbar 375 drivers/dma/ti/dma-crossbar.c xbar->safe_val = (u16)safe_val; xbar 401 drivers/dma/ti/dma-crossbar.c xbar->dma_inuse); xbar 411 drivers/dma/ti/dma-crossbar.c xbar->iomem = iomem; xbar 413 drivers/dma/ti/dma-crossbar.c xbar->dmarouter.dev = &pdev->dev; xbar 414 drivers/dma/ti/dma-crossbar.c xbar->dmarouter.route_free = ti_dra7_xbar_free; xbar 415 drivers/dma/ti/dma-crossbar.c xbar->dma_offset = *(u32 *)match->data; xbar 417 drivers/dma/ti/dma-crossbar.c mutex_init(&xbar->mutex); xbar 418 drivers/dma/ti/dma-crossbar.c platform_set_drvdata(pdev, xbar); xbar 421 drivers/dma/ti/dma-crossbar.c for (i = 0; i < xbar->dma_requests; i++) { xbar 422 drivers/dma/ti/dma-crossbar.c if (!test_bit(i, xbar->dma_inuse)) xbar 423 drivers/dma/ti/dma-crossbar.c ti_dra7_xbar_write(xbar->iomem, i, xbar->safe_val); xbar 427 drivers/dma/ti/dma-crossbar.c &xbar->dmarouter); xbar 430 drivers/dma/ti/dma-crossbar.c for (i = 0; i < xbar->dma_requests; i++) { xbar 431 drivers/dma/ti/dma-crossbar.c if (!test_bit(i, xbar->dma_inuse)) xbar 432 drivers/dma/ti/dma-crossbar.c ti_dra7_xbar_write(xbar->iomem, i, i); xbar 2058 drivers/dma/ti/edma.c void __iomem *xbar; xbar 2072 drivers/dma/ti/edma.c xbar = devm_ioremap(dev, res.start, resource_size(&res)); xbar 2073 drivers/dma/ti/edma.c if (!xbar) xbar 2089 drivers/dma/ti/edma.c mux = readl(xbar + offset); xbar 2092 drivers/dma/ti/edma.c writel(mux, (xbar + offset)); xbar 89 drivers/media/dvb-frontends/mxl5xx.c u8 xbar[3]; xbar 1880 drivers/media/dvb-frontends/mxl5xx.c state->xbar[0] = 4; xbar 1881 drivers/media/dvb-frontends/mxl5xx.c state->xbar[1] = demod; xbar 1882 drivers/media/dvb-frontends/mxl5xx.c state->xbar[2] = 8; xbar 273 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c int xbar; xbar 279 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c xbar = NFP_PCIE_CPP_BAR_PCIETOCPPEXPANSIONBAR(base, slot); xbar 280 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c writel(newcfg, nfp->iomem.csr + xbar); xbar 282 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c readl(nfp->iomem.csr + xbar); xbar 284 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c xbar = NFP_PCIE_CFG_BAR_PCIETOCPPEXPANSIONBAR(base, slot); xbar 285 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c pci_write_config_dword(nfp->pdev, xbar, newcfg); xbar 1893 drivers/pci/controller/pci-tegra.c u32 *xbar) xbar 1902 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_401; xbar 1907 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_211; xbar 1912 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_111; xbar 1919 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_211; xbar 1927 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_X4_X1; xbar 1932 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_X2_X1; xbar 1939 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_420; xbar 1944 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_222; xbar 1949 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_411; xbar 1956 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_SINGLE; xbar 1961 drivers/pci/controller/pci-tegra.c *xbar = AFI_PCIE_CONFIG_SM2TMS0_XBAR_CONFIG_DUAL;