Lines Matching refs:val
208 if (!data_is_one_string(prop->val)) in check_is_string()
228 str = prop->val.val; in check_is_string_list()
229 rem = prop->val.len; in check_is_string_list()
255 if (prop->val.len != sizeof(cell_t)) in check_is_cell()
346 if (prop && !prop->val.len) in check_unit_address_vs_reg()
451 struct marker *m = prop->val.markers; in check_duplicate_label_node()
474 if (prop->val.len != sizeof(cell_t)) { in check_phandle_prop()
476 prop->val.len, prop->name); in check_phandle_prop()
480 m = prop->val.markers; in check_phandle_prop()
559 if ((prop->val.len != node->basenamelen+1) in check_name_properties()
560 || (memcmp(prop->val.val, node->name, node->basenamelen) != 0)) { in check_name_properties()
562 " of base node name)", prop->val.val); in check_name_properties()
568 data_free(prop->val); in check_name_properties()
586 struct marker *m = prop->val.markers; in fixup_phandle_references()
591 assert(m->offset + sizeof(cell_t) <= prop->val.len); in fixup_phandle_references()
599 *((fdt32_t *)(prop->val.val + m->offset)) = in fixup_phandle_references()
605 *((fdt32_t *)(prop->val.val + m->offset)) = cpu_to_fdt32(phandle); in fixup_phandle_references()
621 struct marker *m = prop->val.markers; in fixup_path_references()
626 assert(m->offset <= prop->val.len); in fixup_path_references()
636 prop->val = data_insert_at_marker(prop->val, m, path, in fixup_path_references()
699 if (!prop->val.val || !get_node_by_path(dti->dt, prop->val.val)) { in check_alias_paths()
701 prop->val.val); in check_alias_paths()
749 if (prop->val.len == 0) in check_reg_format()
756 if (!entrylen || (prop->val.len % entrylen) != 0) in check_reg_format()
759 prop->val.len, addr_cells, size_cells); in check_reg_format()
786 if (prop->val.len == 0) { in check_ranges_format()
797 } else if ((prop->val.len % entrylen) != 0) { in check_ranges_format()
800 "#size-cells == %d)", ranges, prop->val.len, in check_ranges_format()
817 if (!prop || !streq(prop->val.val, "pci")) in check_pci_bridge()
839 if (prop->val.len != (sizeof(cell_t) * 2)) { in check_pci_bridge()
843 cells = (cell_t *)prop->val.val; in check_pci_bridge()
865 cells = (cell_t *)prop->val.val; in check_pci_device_bus_num()
872 cells = (cell_t *)prop->val.val; in check_pci_device_bus_num()
897 cells = (cell_t *)prop->val.val; in check_pci_device_reg()
938 for (str = prop->val.val, end = str + prop->val.len; str < end; in node_is_compatible()
968 cells = (cell_t *)prop->val.val; in check_simple_bus_reg()
971 if (prop && prop->val.len) in check_simple_bus_reg()
973 cells = ((cell_t *)prop->val.val) + node_addr_cells(node); in check_simple_bus_reg()
1040 cells = (cell_t *)prop->val.val; in check_i2c_bus_reg()
1055 for (len = prop->val.len; len > 0; len -= 4) { in check_i2c_bus_reg()
1131 cells = (cell_t *)prop->val.val; in check_spi_bus_reg()
1224 char *str = prop->val.val; in node_is_disabled()
1372 if (prop->val.len % sizeof(cell_t)) { in check_property_phandle_args()
1375 prop->val.len, sizeof(cell_t)); in check_property_phandle_args()
1379 for (cell = 0; cell < prop->val.len / sizeof(cell_t); cell += cellsize + 1) { in check_property_phandle_args()
1399 if (prop->val.markers) { in check_property_phandle_args()
1400 struct marker *m = prop->val.markers; in check_property_phandle_args()
1432 if (prop->val.len < ((cell + cellsize + 1) * sizeof(cell_t))) { in check_property_phandle_args()
1435 prop->val.len, cellsize); in check_property_phandle_args()
1593 if (irq_prop->val.len % sizeof(cell_t)) in check_interrupts_property()
1595 irq_prop->val.len, sizeof(cell_t)); in check_interrupts_property()
1642 if (irq_prop->val.len % (irq_cells * sizeof(cell_t))) { in check_interrupts_property()
1645 irq_prop->val.len, (int)(irq_cells * sizeof(cell_t))); in check_interrupts_property()
1717 if (!(prop->val.val && prop->val.len == sizeof(cell_t))) { in check_graph_reg()