Searched refs:namelen (Results 1 – 5 of 5) sorted by relevance
/scripts/dtc/libfdt/ |
D | fdt_ro.c | 101 const char *name, int namelen) in fdt_subnode_offset_namelen() argument 113 && _fdt_nodename_eq(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen() 271 int offset, depth, namelen; in fdt_get_path() local 292 name = fdt_get_name(fdt, offset, &namelen); in fdt_get_path() 294 return namelen; in fdt_get_path() 295 if ((p + namelen + 1) <= buflen) { in fdt_get_path() 296 memcpy(buf + p, name, namelen); in fdt_get_path() 297 p += namelen; in fdt_get_path()
|
D | fdt_sw.c | 141 int namelen = strlen(name) + 1; in fdt_begin_node() local 145 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); in fdt_begin_node() 150 memcpy(nh->name, name, namelen); in fdt_begin_node()
|
D | fdt_rw.c | 308 const char *name, int namelen) in fdt_add_subnode_namelen() argument 319 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); in fdt_add_subnode_namelen() 333 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; in fdt_add_subnode_namelen() 340 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen() 341 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen()
|
D | libfdt.h | 272 const char *name, int namelen); 1014 const char *name, int namelen);
|
/scripts/mod/ |
D | file2alias.c | 1058 static bool sym_is(const char *name, unsigned namelen, const char *symbol) in sym_is() argument 1060 if (namelen != strlen(symbol)) in sym_is() 1063 return memcmp(name, symbol, namelen) == 0; in sym_is() 1097 unsigned int namelen; in handle_moddevtable() local 1112 namelen = strlen(name); in handle_moddevtable() 1113 if (namelen < strlen("_device_table")) in handle_moddevtable() 1115 if (strcmp(name + namelen - strlen("_device_table"), "_device_table")) in handle_moddevtable() 1117 namelen -= strlen("_device_table"); in handle_moddevtable() 1130 if (sym_is(name, namelen, "usb")) in handle_moddevtable() 1132 else if (sym_is(name, namelen, "pnp")) in handle_moddevtable() [all …]
|