Lines Matching refs:cell
199 const u32 *cell; in fdtdec_get_pci_addr() local
211 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_pci_addr()
212 if (!cell) in fdtdec_get_pci_addr()
221 (ulong)fdt32_to_cpu(cell[0]), in fdtdec_get_pci_addr()
222 (ulong)fdt32_to_cpu(cell[1]), in fdtdec_get_pci_addr()
223 (ulong)fdt32_to_cpu(cell[2])); in fdtdec_get_pci_addr()
224 if ((fdt32_to_cpu(*cell) & type) == type) { in fdtdec_get_pci_addr()
225 addr->phys_hi = fdt32_to_cpu(cell[0]); in fdtdec_get_pci_addr()
226 addr->phys_mid = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
227 addr->phys_lo = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
230 cell += (FDT_PCI_ADDR_CELLS + in fdtdec_get_pci_addr()
320 const char *cell; in fdtdec_get_is_enabled() local
329 cell = fdt_getprop(blob, node, "status", NULL); in fdtdec_get_is_enabled()
330 if (cell) in fdtdec_get_is_enabled()
331 return 0 == strcmp(cell, "okay"); in fdtdec_get_is_enabled()
641 const void *cell; in get_prop_check_min_len() local
645 cell = fdt_getprop(blob, node, prop_name, &len); in get_prop_check_min_len()
646 if (!cell) in get_prop_check_min_len()
652 return cell; in get_prop_check_min_len()
658 const u32 *cell; in fdtdec_get_int_array() local
662 cell = get_prop_check_min_len(blob, node, prop_name, in fdtdec_get_int_array()
666 array[i] = fdt32_to_cpu(cell[i]); in fdtdec_get_int_array()
674 const u32 *cell; in fdtdec_get_int_array_count() local
679 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_int_array_count()
680 if (!cell) in fdtdec_get_int_array_count()
686 array[i] = fdt32_to_cpu(cell[i]); in fdtdec_get_int_array_count()
694 const u32 *cell; in fdtdec_locate_array() local
697 cell = get_prop_check_min_len(blob, node, prop_name, in fdtdec_locate_array()
699 return err ? NULL : cell; in fdtdec_locate_array()
704 const s32 *cell; in fdtdec_get_bool() local
708 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_bool()
709 return cell != NULL; in fdtdec_get_bool()
850 const u8 *cell; in fdtdec_get_byte_array() local
853 cell = get_prop_check_min_len(blob, node, prop_name, count, &err); in fdtdec_get_byte_array()
855 memcpy(array, cell, count); in fdtdec_get_byte_array()
862 const u8 *cell; in fdtdec_locate_byte_array() local
865 cell = get_prop_check_min_len(blob, node, prop_name, count, &err); in fdtdec_locate_byte_array()
868 return cell; in fdtdec_locate_byte_array()
918 const fdt_addr_t *cell; in fdtdec_decode_region() local
923 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_decode_region()
924 if (!cell || (len < sizeof(fdt_addr_t) * 2)) { in fdtdec_decode_region()
925 debug("cell=%p, len=%d\n", cell, len); in fdtdec_decode_region()
929 *basep = fdt_addr_to_cpu(*cell); in fdtdec_decode_region()
930 *sizep = fdt_size_to_cpu(cell[1]); in fdtdec_decode_region()