Lines Matching refs:cell

193 	const u32 *cell;  in fdtdec_get_pci_addr()  local
205 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_pci_addr()
206 if (!cell) in fdtdec_get_pci_addr()
215 (ulong)fdt32_to_cpu(cell[0]), in fdtdec_get_pci_addr()
216 (ulong)fdt32_to_cpu(cell[1]), in fdtdec_get_pci_addr()
217 (ulong)fdt32_to_cpu(cell[2])); in fdtdec_get_pci_addr()
218 if ((fdt32_to_cpu(*cell) & type) == type) { in fdtdec_get_pci_addr()
219 addr->phys_hi = fdt32_to_cpu(cell[0]); in fdtdec_get_pci_addr()
220 addr->phys_mid = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
221 addr->phys_lo = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
224 cell += (FDT_PCI_ADDR_CELLS + in fdtdec_get_pci_addr()
314 const char *cell; in fdtdec_get_is_enabled() local
323 cell = fdt_getprop(blob, node, "status", NULL); in fdtdec_get_is_enabled()
324 if (cell) in fdtdec_get_is_enabled()
325 return 0 == strcmp(cell, "okay"); in fdtdec_get_is_enabled()
635 const void *cell; in get_prop_check_min_len() local
639 cell = fdt_getprop(blob, node, prop_name, &len); in get_prop_check_min_len()
640 if (!cell) in get_prop_check_min_len()
646 return cell; in get_prop_check_min_len()
652 const u32 *cell; in fdtdec_get_int_array() local
656 cell = get_prop_check_min_len(blob, node, prop_name, in fdtdec_get_int_array()
660 array[i] = fdt32_to_cpu(cell[i]); in fdtdec_get_int_array()
668 const u32 *cell; in fdtdec_get_int_array_count() local
673 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_int_array_count()
674 if (!cell) in fdtdec_get_int_array_count()
680 array[i] = fdt32_to_cpu(cell[i]); in fdtdec_get_int_array_count()
688 const u32 *cell; in fdtdec_locate_array() local
691 cell = get_prop_check_min_len(blob, node, prop_name, in fdtdec_locate_array()
693 return err ? NULL : cell; in fdtdec_locate_array()
698 const s32 *cell; in fdtdec_get_bool() local
702 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_bool()
703 return cell != NULL; in fdtdec_get_bool()
844 const u8 *cell; in fdtdec_get_byte_array() local
847 cell = get_prop_check_min_len(blob, node, prop_name, count, &err); in fdtdec_get_byte_array()
849 memcpy(array, cell, count); in fdtdec_get_byte_array()
856 const u8 *cell; in fdtdec_locate_byte_array() local
859 cell = get_prop_check_min_len(blob, node, prop_name, count, &err); in fdtdec_locate_byte_array()
862 return cell; in fdtdec_locate_byte_array()
912 const fdt_addr_t *cell; in fdtdec_decode_region() local
917 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_decode_region()
918 if (!cell || (len < sizeof(fdt_addr_t) * 2)) { in fdtdec_decode_region()
919 debug("cell=%p, len=%d\n", cell, len); in fdtdec_decode_region()
923 *basep = fdt_addr_to_cpu(*cell); in fdtdec_decode_region()
924 *sizep = fdt_size_to_cpu(cell[1]); in fdtdec_decode_region()