Home
last modified time | relevance | path

Searched refs:dma_window (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/iommu/
Dof_iommu.c47 const __be32 *dma_window, *end; in of_get_dma_window() local
61 dma_window = of_get_property(dn, propname, &bytes); in of_get_dma_window()
62 if (!dma_window) in of_get_dma_window()
64 end = dma_window + bytes / sizeof(*dma_window); in of_get_dma_window()
66 while (dma_window < end) { in of_get_dma_window()
72 *busno = be32_to_cpup(dma_window++); in of_get_dma_window()
81 *addr = of_read_number(dma_window, cells); in of_get_dma_window()
82 dma_window += cells; in of_get_dma_window()
88 *size = of_read_number(dma_window, cells); in of_get_dma_window()
89 dma_window += cells; in of_get_dma_window()
Dfsl_pamu_domain.h24 struct dma_window { struct
54 struct dma_window *win_arr;
Dfsl_pamu_domain.c72 struct dma_window *win_ptr = &dma_domain->win_arr[0]; in get_phys_addr()
101 struct dma_window *sub_win_ptr = &dma_domain->win_arr[0]; in map_subwins()
132 struct dma_window *wnd = &dma_domain->win_arr[0]; in map_win()
163 struct dma_window *wnd = &dma_domain->win_arr[wnd_nr]; in update_liodn()
540 struct dma_window *wnd; in fsl_pamu_window_enable()
/Linux-v4.19/arch/powerpc/kernel/
Dprom_parse.c11 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-v4.19/arch/powerpc/platforms/pseries/
Diommu.c554 const __be32 *dma_window) in iommu_table_setparms_lpar() argument
558 of_parse_dma_window(dn, dma_window, &tbl->it_index, &offset, &size); in iommu_table_setparms_lpar()
699 const __be32 *dma_window = NULL; in pci_dma_bus_setup_pSeriesLP() local
708 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_bus_setup_pSeriesLP()
709 if (dma_window != NULL) in pci_dma_bus_setup_pSeriesLP()
713 if (dma_window == NULL) { in pci_dma_bus_setup_pSeriesLP()
727 ppci->table_group, dma_window); in pci_dma_bus_setup_pSeriesLP()
1148 const __be32 *dma_window = NULL; in pci_dma_dev_setup_pSeriesLP() local
1164 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_dev_setup_pSeriesLP()
1165 if (dma_window) in pci_dma_dev_setup_pSeriesLP()
[all …]
Dvio.c1185 const __be32 *dma_window; in vio_build_iommu_table() local
1189 dma_window = of_get_property(dev->dev.of_node, in vio_build_iommu_table()
1191 if (!dma_window) in vio_build_iommu_table()
1198 of_parse_dma_window(dev->dev.of_node, dma_window, in vio_build_iommu_table()
/Linux-v4.19/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.h55 struct dma_window { struct
66 struct dma_window window[NUM_DMA_WINDOWS]; argument
Dibmvscsi_tgt.c2603 const __be32 *dma_window; in read_dma_window() local
2610 dma_window = (const __be32 *)vio_get_attribute(vdev, in read_dma_window()
2613 if (!dma_window) { in read_dma_window()
2618 vscsi->dds.window[LOCAL].liobn = be32_to_cpu(*dma_window); in read_dma_window()
2619 dma_window++; in read_dma_window()
2625 dma_window++; in read_dma_window()
2627 dma_window += be32_to_cpu(*prop); in read_dma_window()
2634 dma_window++; in read_dma_window()
2636 dma_window += be32_to_cpu(*prop); in read_dma_window()
2640 vscsi->dds.window[REMOTE].liobn = be32_to_cpu(*dma_window); in read_dma_window()
/Linux-v4.19/drivers/misc/
Dibmvmc.c2188 const __be32 *dma_window; in read_dma_window() local
2195 dma_window = in read_dma_window()
2198 if (!dma_window) { in read_dma_window()
2203 adapter->liobn = be32_to_cpu(*dma_window); in read_dma_window()
2204 dma_window++; in read_dma_window()
2210 dma_window++; in read_dma_window()
2212 dma_window += be32_to_cpu(*prop); in read_dma_window()
2219 dma_window++; in read_dma_window()
2221 dma_window += be32_to_cpu(*prop); in read_dma_window()
2225 adapter->riobn = be32_to_cpu(*dma_window); in read_dma_window()
/Linux-v4.19/arch/powerpc/include/asm/
Dprom.h75 void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window,
/Linux-v4.19/arch/powerpc/platforms/4xx/
Dpci.c324 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()
1917 struct resource dma_window; in ppc4xx_pciex_port_setup_hose() local
2011 if (ppc4xx_parse_dma_ranges(hose, mbase, &dma_window) != 0) in ppc4xx_pciex_port_setup_hose()
2018 ppc4xx_configure_pciex_PIMs(port, hose, mbase, &dma_window); in ppc4xx_pciex_port_setup_hose()
/Linux-v4.19/arch/powerpc/platforms/cell/
Diommu.c700 const __be32 *dma_window; in cell_iommu_get_window() local
704 dma_window = of_get_property(np, "ibm,dma-window", NULL); in cell_iommu_get_window()
705 if (dma_window == NULL) { in cell_iommu_get_window()
711 of_parse_dma_window(np, dma_window, &index, base, size); in cell_iommu_get_window()