| /Linux-v5.4/arch/powerpc/kernel/ |
| D | prom_parse.c | 11 void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window, in of_parse_dma_window() argument 19 *busno = of_read_number(dma_window, 1); in of_parse_dma_window() 20 dma_window++; in of_parse_dma_window() 27 *phys = of_read_number(dma_window, cells); in of_parse_dma_window() 29 dma_window += cells; in of_parse_dma_window() 33 *size = of_read_number(dma_window, cells); in of_parse_dma_window()
|
| /Linux-v5.4/drivers/iommu/ |
| D | of_iommu.c | 36 const __be32 *dma_window, *end; in of_get_dma_window() local 50 dma_window = of_get_property(dn, propname, &bytes); in of_get_dma_window() 51 if (!dma_window) in of_get_dma_window() 53 end = dma_window + bytes / sizeof(*dma_window); in of_get_dma_window() 55 while (dma_window < end) { in of_get_dma_window() 61 *busno = be32_to_cpup(dma_window++); in of_get_dma_window() 70 *addr = of_read_number(dma_window, cells); in of_get_dma_window() 71 dma_window += cells; in of_get_dma_window() 77 *size = of_read_number(dma_window, cells); in of_get_dma_window() 78 dma_window += cells; in of_get_dma_window()
|
| D | fsl_pamu_domain.h | 12 struct dma_window { struct 42 struct dma_window *win_arr;
|
| D | fsl_pamu_domain.c | 60 struct dma_window *win_ptr = &dma_domain->win_arr[0]; in get_phys_addr() 89 struct dma_window *sub_win_ptr = &dma_domain->win_arr[0]; in map_subwins() 120 struct dma_window *wnd = &dma_domain->win_arr[0]; in map_win() 151 struct dma_window *wnd = &dma_domain->win_arr[wnd_nr]; in update_liodn() 528 struct dma_window *wnd; in fsl_pamu_window_enable()
|
| /Linux-v5.4/arch/powerpc/platforms/pseries/ |
| D | iommu.c | 520 const __be32 *dma_window) in iommu_table_setparms_lpar() argument 524 of_parse_dma_window(dn, dma_window, &tbl->it_index, &offset, &size); in iommu_table_setparms_lpar() 665 const __be32 *dma_window = NULL; in pci_dma_bus_setup_pSeriesLP() local 674 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_bus_setup_pSeriesLP() 675 if (dma_window != NULL) in pci_dma_bus_setup_pSeriesLP() 679 if (dma_window == NULL) { in pci_dma_bus_setup_pSeriesLP() 693 ppci->table_group, dma_window); in pci_dma_bus_setup_pSeriesLP() 1138 const __be32 *dma_window = NULL; in pci_dma_dev_setup_pSeriesLP() local 1154 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_dev_setup_pSeriesLP() 1155 if (dma_window) in pci_dma_dev_setup_pSeriesLP() [all …]
|
| D | vio.c | 1166 const __be32 *dma_window; in vio_build_iommu_table() local 1170 dma_window = of_get_property(dev->dev.of_node, in vio_build_iommu_table() 1172 if (!dma_window) in vio_build_iommu_table() 1179 of_parse_dma_window(dev->dev.of_node, dma_window, in vio_build_iommu_table()
|
| /Linux-v5.4/drivers/scsi/ibmvscsi_tgt/ |
| D | ibmvscsi_tgt.h | 46 struct dma_window { struct 57 struct dma_window window[NUM_DMA_WINDOWS]; argument
|
| D | ibmvscsi_tgt.c | 2596 const __be32 *dma_window; in read_dma_window() local 2603 dma_window = (const __be32 *)vio_get_attribute(vdev, in read_dma_window() 2606 if (!dma_window) { in read_dma_window() 2611 vscsi->dds.window[LOCAL].liobn = be32_to_cpu(*dma_window); in read_dma_window() 2612 dma_window++; in read_dma_window() 2618 dma_window++; in read_dma_window() 2620 dma_window += be32_to_cpu(*prop); in read_dma_window() 2627 dma_window++; in read_dma_window() 2629 dma_window += be32_to_cpu(*prop); in read_dma_window() 2633 vscsi->dds.window[REMOTE].liobn = be32_to_cpu(*dma_window); in read_dma_window()
|
| /Linux-v5.4/drivers/misc/ |
| D | ibmvmc.c | 2191 const __be32 *dma_window; in read_dma_window() local 2198 dma_window = in read_dma_window() 2201 if (!dma_window) { in read_dma_window() 2206 adapter->liobn = be32_to_cpu(*dma_window); in read_dma_window() 2207 dma_window++; in read_dma_window() 2213 dma_window++; in read_dma_window() 2215 dma_window += be32_to_cpu(*prop); in read_dma_window() 2222 dma_window++; in read_dma_window() 2224 dma_window += be32_to_cpu(*prop); in read_dma_window() 2228 adapter->riobn = be32_to_cpu(*dma_window); in read_dma_window()
|
| /Linux-v5.4/arch/powerpc/include/asm/ |
| D | prom.h | 71 void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window,
|
| /Linux-v5.4/arch/powerpc/platforms/4xx/ |
| D | pci.c | 324 struct resource dma_window; in ppc4xx_probe_pci_bridge() local 385 if (ppc4xx_parse_dma_ranges(hose, reg, &dma_window) != 0) in ppc4xx_probe_pci_bridge() 392 ppc4xx_configure_pci_PTMs(hose, reg, &dma_window); in ppc4xx_probe_pci_bridge() 528 struct resource dma_window; in ppc4xx_probe_pcix_bridge() local 597 if (ppc4xx_parse_dma_ranges(hose, reg, &dma_window) != 0) in ppc4xx_probe_pcix_bridge() 604 ppc4xx_configure_pcix_PIMs(hose, reg, &dma_window, big_pim, msi); in ppc4xx_probe_pcix_bridge() 1916 struct resource dma_window; in ppc4xx_pciex_port_setup_hose() local 2010 if (ppc4xx_parse_dma_ranges(hose, mbase, &dma_window) != 0) in ppc4xx_pciex_port_setup_hose() 2017 ppc4xx_configure_pciex_PIMs(port, hose, mbase, &dma_window); in ppc4xx_pciex_port_setup_hose()
|
| /Linux-v5.4/arch/powerpc/platforms/cell/ |
| D | iommu.c | 602 const __be32 *dma_window; in cell_iommu_get_window() local 606 dma_window = of_get_property(np, "ibm,dma-window", NULL); in cell_iommu_get_window() 607 if (dma_window == NULL) { in cell_iommu_get_window() 613 of_parse_dma_window(np, dma_window, &index, base, size); in cell_iommu_get_window()
|