Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 9 of 9) sorted by relevance

/scripts/dtc/libfdt/
Dfdt_ro.c226 const char *name, int namelen) in fdt_subnode_offset_namelen() argument
236 && fdt_nodename_eq_(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen()
250 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument
252 const char *end = path + namelen; in fdt_path_offset_namelen()
397 int namelen, in fdt_get_property_namelen_() argument
412 name, namelen)) { in fdt_get_property_namelen_()
428 int namelen, int *lenp) in fdt_get_property_namelen() argument
438 return fdt_get_property_namelen_(fdt, offset, name, namelen, lenp, in fdt_get_property_namelen()
452 const char *name, int namelen, int *lenp) in fdt_getprop_namelen() argument
457 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen()
[all …]
Dlibfdt.h472 const char *name, int namelen);
512 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen);
682 int namelen, int *lenp);
774 const char *name, int namelen, int *lenp);
776 const char *name, int namelen, in fdt_getprop_namelen_w() argument
780 namelen, lenp); in fdt_getprop_namelen_w()
848 const char *name, int namelen);
1251 const char *name, int namelen,
2029 const char *name, int namelen);
Dfdt_wip.c14 const char *name, int namelen, in fdt_setprop_inplace_namelen_partial() argument
21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial()
Dfdt_sw.c222 int namelen; in fdt_begin_node() local
226 namelen = strlen(name) + 1; in fdt_begin_node()
227 nh = fdt_grab_space_(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); in fdt_begin_node()
232 memcpy(nh->name, name, namelen); in fdt_begin_node()
Dfdt_rw.c334 const char *name, int namelen) in fdt_add_subnode_namelen() argument
345 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); in fdt_add_subnode_namelen()
362 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; in fdt_add_subnode_namelen()
369 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen()
370 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen()
Dfdt_overlay.c653 int len = 0, namelen; in get_path_len() local
659 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len()
661 return namelen; in get_path_len()
664 if (namelen == 0) in get_path_len()
670 len += namelen + 1; in get_path_len()
/scripts/dtc/
Dfdtput.c39 static void report_error(const char *name, int namelen, int err) in report_error() argument
41 if (namelen == -1) in report_error()
42 namelen = strlen(name); in report_error()
43 fprintf(stderr, "Error at '%1.*s': %s\n", namelen, name, in report_error()
/scripts/mod/
Dfile2alias.c1456 static bool sym_is(const char *name, unsigned namelen, const char *symbol) in sym_is() argument
1458 if (namelen != strlen(symbol)) in sym_is()
1461 return memcmp(name, symbol, namelen) == 0; in sym_is()
1545 unsigned int namelen; in handle_moddevtable() local
1559 namelen = strlen(name); in handle_moddevtable()
1560 if (namelen < strlen("_device_table")) in handle_moddevtable()
1562 if (strcmp(name + namelen - strlen("_device_table"), "_device_table")) in handle_moddevtable()
1567 namelen = identifier - name; in handle_moddevtable()
1578 if (sym_is(name, namelen, "usb")) in handle_moddevtable()
1580 else if (sym_is(name, namelen, "of")) in handle_moddevtable()
[all …]
Dmodpost.c180 static struct module *new_module(const char *name, size_t namelen) in new_module() argument
184 mod = NOFAIL(malloc(sizeof(*mod) + namelen + 1)); in new_module()
192 memcpy(mod->name, name, namelen); in new_module()
193 mod->name[namelen] = '\0'; in new_module()
1680 size_t namelen; in extract_crcs_for_object() local
1690 namelen = p - name; in extract_crcs_for_object()
1700 name[namelen] = '\0'; in extract_crcs_for_object()