Lines Matching refs:nodeoffset

31 	int nodeoffset;  in fdt_pcie_get_nodeoffset()  local
36 nodeoffset = fdt_node_offset_by_compat_reg(blob, "fsl,ls-pcie", in fdt_pcie_get_nodeoffset()
38 if (nodeoffset < 0) { in fdt_pcie_get_nodeoffset()
48 nodeoffset = in fdt_pcie_get_nodeoffset()
54 return nodeoffset; in fdt_pcie_get_nodeoffset()
105 int nodeoffset; in fdt_pcie_set_msi_map_entry_ls() local
111 nodeoffset = fdt_node_offset_by_compat_reg(blob, "fsl,ls-pcie", in fdt_pcie_set_msi_map_entry_ls()
113 if (nodeoffset < 0) { in fdt_pcie_set_msi_map_entry_ls()
123 nodeoffset = fdt_node_offset_by_compat_reg(blob, in fdt_pcie_set_msi_map_entry_ls()
126 if (nodeoffset < 0) in fdt_pcie_set_msi_map_entry_ls()
131 prop = (u32 *)fdt_getprop(blob, nodeoffset, "msi-parent", 0); in fdt_pcie_set_msi_map_entry_ls()
140 fdt_appendprop_u32(blob, nodeoffset, "msi-map", devid); in fdt_pcie_set_msi_map_entry_ls()
141 fdt_appendprop_u32(blob, nodeoffset, "msi-map", phandle); in fdt_pcie_set_msi_map_entry_ls()
142 fdt_appendprop_u32(blob, nodeoffset, "msi-map", streamid); in fdt_pcie_set_msi_map_entry_ls()
143 fdt_appendprop_u32(blob, nodeoffset, "msi-map", 1); in fdt_pcie_set_msi_map_entry_ls()
160 int nodeoffset; in fdt_pcie_set_iommu_map_entry_ls() local
164 nodeoffset = fdt_pcie_get_nodeoffset(blob, pcie_rc); in fdt_pcie_set_iommu_map_entry_ls()
165 if (nodeoffset < 0) in fdt_pcie_set_iommu_map_entry_ls()
169 prop = fdt_getprop_w(blob, nodeoffset, "iommu-map", &lenp); in fdt_pcie_set_iommu_map_entry_ls()
183 fdt_setprop_inplace(blob, nodeoffset, "iommu-map", in fdt_pcie_set_iommu_map_entry_ls()
186 fdt_appendprop(blob, nodeoffset, "iommu-map", iommu_map, 16); in fdt_pcie_set_iommu_map_entry_ls()
232 int nodeoffset, in get_extra_iommu_ents() argument
246 s = fdt_getprop(blob, nodeoffset, "pci-iommu-extra", NULL); in get_extra_iommu_ents()
505 int i, cnt, nodeoffset; in fdt_fixup_pcie_ls() local
533 nodeoffset = fdt_pcie_get_nodeoffset(blob, pcie_rc); in fdt_fixup_pcie_ls()
534 if (nodeoffset < 0) { in fdt_fixup_pcie_ls()
539 entries = get_extra_iommu_ents(blob, nodeoffset, in fdt_fixup_pcie_ls()