Lines Matching full:blob
46 int fdt_set_iommu_prop(void *blob, int off, int smmu_ph, u32 *ids, int num_ids) in fdt_set_iommu_prop() argument
60 ret = fdt_setprop(blob, off, "iommus", in fdt_set_iommu_prop()
70 int fdt_fixup_icid_tbl(void *blob, int smmu_ph, in fdt_fixup_icid_tbl() argument
79 off = fdt_node_offset_by_compat_reg(blob, in fdt_fixup_icid_tbl()
83 err = fdt_set_iommu_prop(blob, off, smmu_ph, in fdt_fixup_icid_tbl()
110 void fdt_fixup_fman_port_icid_by_compat(void *blob, int smmu_ph, in fdt_fixup_fman_port_icid_by_compat() argument
116 noff = fdt_node_offset_by_compatible(blob, -1, compat); in fdt_fixup_fman_port_icid_by_compat()
118 prop = fdt_getprop(blob, noff, "cell-index", &len); in fdt_fixup_fman_port_icid_by_compat()
136 fdt_set_iommu_prop(blob, noff, smmu_ph, (u32 *)&icid, 1); in fdt_fixup_fman_port_icid_by_compat()
138 noff = fdt_node_offset_by_compatible(blob, noff, compat); in fdt_fixup_fman_port_icid_by_compat()
142 void fdt_fixup_fman_icids(void *blob, int smmu_ph) in fdt_fixup_fman_icids() argument
152 fdt_fixup_fman_port_icid_by_compat(blob, smmu_ph, compats[i]); in fdt_fixup_fman_icids()
156 int fdt_get_smmu_phandle(void *blob) in fdt_get_smmu_phandle() argument
160 noff = fdt_node_offset_by_compatible(blob, -1, "arm,mmu-500"); in fdt_get_smmu_phandle()
167 smmu_ph = fdt_get_phandle(blob, noff); in fdt_get_smmu_phandle()
169 smmu_ph = fdt_create_phandle(blob, noff); in fdt_get_smmu_phandle()
179 void fdt_fixup_icid(void *blob) in fdt_fixup_icid() argument
183 smmu_ph = fdt_get_smmu_phandle(blob); in fdt_fixup_icid()
187 fdt_fixup_icid_tbl(blob, smmu_ph, icid_tbl, icid_tbl_sz); in fdt_fixup_icid()
190 fdt_fixup_fman_icids(blob, smmu_ph); in fdt_fixup_icid()