/openbmc/linux/fs/erofs/ |
H A D | dir.c | 11 unsigned int nameoff, unsigned int maxsize) in erofs_fill_dentries() argument 22 nameoff = le16_to_cpu(de->nameoff); in erofs_fill_dentries() 23 de_name = (char *)dentry_blk + nameoff; in erofs_fill_dentries() 29 de_namelen = le16_to_cpu(de[1].nameoff) - nameoff; in erofs_fill_dentries() 32 if (nameoff + de_namelen > maxsize || in erofs_fill_dentries() 64 unsigned int nameoff, maxsize; in erofs_readdir() local 74 nameoff = le16_to_cpu(de->nameoff); in erofs_readdir() 75 if (nameoff < sizeof(struct erofs_dirent) || nameoff >= bsz) { in erofs_readdir() 77 nameoff, EROFS_I(dir)->nid); in erofs_readdir() 90 if (ofs >= nameoff) in erofs_readdir() [all …]
|
H A D | namei.c | 61 const int nameoff = nameoff_from_disk(de[mid].nameoff, in find_target_dirent() local 65 .name = data + nameoff, in find_target_dirent() 68 data + nameoff_from_disk(de[mid + 1].nameoff, in find_target_dirent() 105 const int nameoff = nameoff_from_disk(de->nameoff, bsz); in erofs_find_target_block() local 106 const int ndirents = nameoff / sizeof(*de); in erofs_find_target_block() 123 dname.name = (u8 *)de + nameoff; in erofs_find_target_block() 128 nameoff_from_disk(de[1].nameoff, bsz); in erofs_find_target_block()
|
H A D | erofs_fs.h | 278 __le16 nameoff; /* start offset of file name */ member
|
/openbmc/u-boot/scripts/dtc/libfdt/ |
H A D | fdt_sw.c | 226 int nameoff; in fdt_property_placeholder() local 230 nameoff = fdt_find_add_string_(fdt, name); in fdt_property_placeholder() 231 if (nameoff == 0) in fdt_property_placeholder() 239 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property_placeholder() 285 int nameoff; in fdt_finish() local 287 nameoff = fdt32_to_cpu(prop->nameoff); in fdt_finish() 288 nameoff += fdt_size_dt_strings(fdt); in fdt_finish() 289 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_finish()
|
H A D | fdt.h | 89 fdt32_t nameoff; member
|
H A D | fdt_ro.c | 343 if (fdt_string_eq_(fdt, fdt32_to_cpu(prop->nameoff), in fdt_get_property_namelen_() 410 *namep = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in fdt_getprop_by_offset()
|
H A D | fdt_rw.c | 244 (*prop)->nameoff = cpu_to_fdt32(namestroff); in fdt_add_property_()
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | fdt_sw.c | 296 int nameoff; in fdt_property_placeholder() local 304 nameoff = fdt_add_string_(fdt, name); in fdt_property_placeholder() 306 nameoff = fdt_find_add_string_(fdt, name, &allocated); in fdt_property_placeholder() 308 if (nameoff == 0) in fdt_property_placeholder() 319 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property_placeholder() 365 int nameoff; in fdt_finish() local 367 nameoff = fdt32_to_cpu(prop->nameoff); in fdt_finish() 368 nameoff += fdt_size_dt_strings(fdt); in fdt_finish() 369 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_finish()
|
H A D | fdt.h | 44 fdt32_t nameoff; member
|
H A D | fdt_ro.c | 411 if (fdt_string_eq_(fdt, fdt32_ld_(&prop->nameoff), in fdt_get_property_namelen_() 482 name = fdt_get_string(fdt, fdt32_ld_(&prop->nameoff), in fdt_getprop_by_offset() 491 *namep = fdt_string(fdt, fdt32_ld_(&prop->nameoff)); in fdt_getprop_by_offset()
|
H A D | fdt_rw.c | 230 (*prop)->nameoff = cpu_to_fdt32(namestroff); in fdt_add_property_()
|
/openbmc/u-boot/tools/libfdt/ |
H A D | fdt_rw.c | 27 str = fdt_string(old, fdt32_to_cpu(old_prop->nameoff)); in fdt_remove_unused_strings() 31 new_prop->nameoff = cpu_to_fdt32(ret); in fdt_remove_unused_strings()
|
/openbmc/linux/fs/udf/ |
H A D | directory.c | 71 u32 off, len, nameoff; in udf_copy_fi() local 108 nameoff = off + sizeof(struct fileIdentDesc) + in udf_copy_fi() 111 iter->name = iter->bh[0]->b_data + nameoff; in udf_copy_fi() 112 } else if (nameoff >= blksize) { in udf_copy_fi() 113 iter->name = iter->bh[1]->b_data + (nameoff - blksize); in udf_copy_fi() 116 len = blksize - nameoff; in udf_copy_fi() 117 memcpy(iter->name, iter->bh[0]->b_data + nameoff, len); in udf_copy_fi()
|
/openbmc/linux/kernel/ |
H A D | kallsyms.c | 619 unsigned int nameoff; /* If iterating in core kernel symbols. */ member 694 unsigned off = iter->nameoff; in get_ksymbol_core() 703 return off - iter->nameoff; in get_ksymbol_core() 709 iter->nameoff = get_symbol_offset(new_pos); in reset_iter() 753 iter->nameoff += get_ksymbol_core(iter); in update_iter()
|
/openbmc/u-boot/lib/libfdt/ |
H A D | fdt_region.c | 65 str = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in fdt_find_regions() 257 name = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in fdt_add_alias_regions() 499 str = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in fdt_next_region()
|
H A D | fdt_ro.c | 285 if (_fdt_string_eq(fdt, fdt32_to_cpu(prop->nameoff), in fdt_get_property_namelen() 324 *namep = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in fdt_getprop_by_offset()
|
/openbmc/u-boot/lib/efi_selftest/ |
H A D | efi_selftest_fdt.c | 79 const char *label = &strings[f2h(prop->nameoff)]; in get_property()
|
/openbmc/linux/scripts/dtc/ |
H A D | fdtget.c | 120 name = fdt_string(blob, fdt32_to_cpu(data->nameoff)); in list_properties()
|
H A D | flattree.c | 257 int nameoff; in flatten_tree() local 262 nameoff = stringtable_insert(strbuf, prop->name); in flatten_tree() 266 emit->cell(etarget, nameoff); in flatten_tree()
|
/openbmc/u-boot/scripts/dtc/ |
H A D | flattree.c | 271 int nameoff; in flatten_tree() local 276 nameoff = stringtable_insert(strbuf, prop->name); in flatten_tree() 280 emit->cell(etarget, nameoff); in flatten_tree()
|
/openbmc/u-boot/tools/ |
H A D | fdtgrep.c | 344 name = fdt_string(blob, fdt32_to_cpu(prop->nameoff)); in display_fdt_by_regions() 622 str = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in h_include()
|
/openbmc/linux/arch/mips/cavium-octeon/ |
H A D | octeon-platform.c | 529 phy_handle_name = phy_prop->nameoff; in octeon_fdt_set_phy() 533 alt_prop->nameoff = phy_handle_name; in octeon_fdt_set_phy()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_drc.c | 372 dt_name = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in prop_get_fdt() 1258 name = fdt_string(drc->fdt, fdt32_to_cpu(prop->nameoff)); in rtas_ibm_configure_connector()
|
/openbmc/u-boot/cmd/ |
H A D | fdt.c | 1068 fdt32_to_cpu(fdt_prop->nameoff)); in fdt_print()
|
/openbmc/u-boot/lib/ |
H A D | fdtdec.c | 430 path = fdt_string(blob, fdt32_to_cpu(prop->nameoff)); in fdtdec_add_aliases_for_id()
|