Home
last modified time | relevance | path

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

12

/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dsethostname.c64 size_t namelen in sethostname() argument
90 pName = malloc ( namelen + 1 ); in sethostname()
99 memcpy ( pName, name, namelen ); in sethostname()
100 pName[ namelen ] = 0; in sethostname()
Dgethostname.c61 size_t namelen in gethostname() argument
87 strncpy (name, pHost, namelen); in gethostname()
88 name[namelen-1] = 0; in gethostname()
Dbind.c45 IN socklen_t namelen in bind() argument
58 namelen, in bind()
Dres_debug.c322 int namelen in p_fqnname() argument
327 if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0) in p_fqnname()
331 if (newlen + 1 >= namelen) /* Lack space for final dot */ in p_fqnname()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
Dfdt_ro.c133 const char *name, int namelen) in fdt_subnode_offset_namelen() argument
143 && _fdt_nodename_eq(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen()
263 int namelen, int *lenp) in fdt_get_property_namelen() argument
276 name, namelen)) in fdt_get_property_namelen()
294 const char *name, int namelen, int *lenp) in fdt_getprop_namelen() argument
298 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen()
342 const char *name, int namelen) in fdt_get_alias_namelen() argument
350 return fdt_getprop_namelen(fdt, aliasoffset, name, namelen, NULL); in fdt_get_alias_namelen()
361 int offset, depth, namelen; in fdt_get_path() local
380 name = fdt_get_name(fdt, offset, &namelen); in fdt_get_path()
[all …]
Dfdt_sw.c141 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()
Dfdt_rw.c338 const char *name, int namelen) in fdt_add_subnode_namelen() argument
349 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); in fdt_add_subnode_namelen()
363 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; in fdt_add_subnode_namelen()
370 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen()
371 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen()
/device/linaro/bootloader/arm-trusted-firmware/lib/libfdt/
Dfdt_ro.c159 const char *name, int namelen) in fdt_subnode_offset_namelen() argument
169 && _fdt_nodename_eq(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen()
183 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument
185 const char *end = path + namelen; in fdt_path_offset_namelen()
295 int namelen, int *lenp) in fdt_get_property_namelen() argument
307 name, namelen)) in fdt_get_property_namelen()
325 const char *name, int namelen, int *lenp) in fdt_getprop_namelen() argument
329 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen()
373 const char *name, int namelen) in fdt_get_alias_namelen() argument
381 return fdt_getprop_namelen(fdt, aliasoffset, name, namelen, NULL); in fdt_get_alias_namelen()
[all …]
Dfdt_wip.c59 const char *name, int namelen, in fdt_setprop_inplace_namelen_partial() argument
66 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial()
Dfdt_sw.c173 int namelen = strlen(name) + 1; in fdt_begin_node() local
177 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); in fdt_begin_node()
182 memcpy(nh->name, name, namelen); in fdt_begin_node()
Dfdt_rw.c333 const char *name, int namelen) in fdt_add_subnode_namelen() argument
344 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); in fdt_add_subnode_namelen()
358 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; in fdt_add_subnode_namelen()
365 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen()
366 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen()
/device/linaro/bootloader/arm-trusted-firmware/include/lib/libfdt/
Dlibfdt.h352 const char *name, int namelen);
388 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen);
550 int namelen, int *lenp);
636 const char *name, int namelen, int *lenp);
638 const char *name, int namelen, in fdt_getprop_namelen_w() argument
642 namelen, lenp); in fdt_getprop_namelen_w()
705 const char *name, int namelen);
1104 const char *name, int namelen,
1702 const char *name, int namelen);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dunicodedata.c980 _cmpname(PyObject *self, int code, const char* name, int namelen) in _cmpname() argument
987 for (i = 0; i < namelen; i++) { in _cmpname()
991 return buffer[namelen] == '\0'; in _cmpname()
1015 _getcode(PyObject* self, const char* name, int namelen, Py_UCS4* code) in _getcode() argument
1031 if (L != -1 && V != -1 && T != -1 && pos-name == namelen) { in _getcode()
1044 namelen -= 22; in _getcode()
1045 if (namelen != 4 && namelen != 5) in _getcode()
1047 while (namelen--) { in _getcode()
1067 h = (unsigned int) _gethash(name, namelen, code_magic); in _getcode()
1072 if (_cmpname(self, v, name, namelen)) { in _getcode()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dunicodedata.c973 _cmpname(PyObject *self, int code, const char* name, int namelen) in _cmpname() argument
980 for (i = 0; i < namelen; i++) { in _cmpname()
984 return buffer[namelen] == '\0'; in _cmpname()
1008 _getcode(PyObject* self, const char* name, int namelen, Py_UCS4* code) in _getcode() argument
1024 if (L != -1 && V != -1 && T != -1 && pos-name == namelen) { in _getcode()
1037 namelen -= 22; in _getcode()
1038 if (namelen != 4 && namelen != 5) in _getcode()
1040 while (namelen--) { in _getcode()
1060 h = (unsigned int) _gethash(name, namelen, code_magic); in _getcode()
1065 if (_cmpname(self, v, name, namelen)) { in _getcode()
[all …]
/device/generic/goldfish/include/
Dqemud.h48 int namelen = strlen(name); in qemud_channel_open() local
68 if (!WriteFully(fd, name, namelen)) { in qemud_channel_open()
/device/google/cuttlefish_common/common/libs/fs/
Dshared_fd.cpp183 size_t namelen; in MakeAddress() local
186 namelen = strlen(name); in MakeAddress()
187 CHECK_LE(namelen, sizeof(dest->sun_path) - 1) in MakeAddress()
190 memcpy(dest->sun_path + 1, name, namelen); in MakeAddress()
195 namelen = strlen(name); in MakeAddress()
196 CHECK_LE(namelen, sizeof(dest->sun_path)) in MakeAddress()
200 *len = namelen + offsetof(struct sockaddr_un, sun_path) + 1; in MakeAddress()
/device/linaro/bootloader/edk2/EmbeddedPkg/Include/
Dlibfdt.h294 const char *name, int namelen);
450 int namelen, int *lenp);
535 const char *name, int namelen, int *lenp);
596 const char *name, int namelen);
1452 const char *name, int namelen);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Ducnhash.h26 int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Ducnhash.h26 int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code);
/device/generic/goldfish/vibrator/
Dqemu.c97 int fd, ret, namelen = strlen(name); in qemu_channel_open_qemud() local
109 if (qemu_fd_write(fd, name, namelen) != namelen) { in qemu_channel_open_qemud()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/
Dimport.c1205 size_t len, namelen; in find_module() local
1328 namelen = strlen(name); in find_module()
1347 if (len + 2 + namelen + MAXSUFFIXSIZE >= buflen) { in find_module()
1394 len += namelen; in find_module()
1401 case_ok(buf, len, namelen, name)) { /* case matches */ in find_module()
1422 case_ok(buf, len, namelen, name)) { in find_module()
1446 saved_namelen = namelen; in find_module()
1468 namelen = 8; in find_module()
1469 len -= strlen(subname) - namelen; in find_module()
1482 if (case_ok(buf, len, namelen, name)) in find_module()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dimport.c1205 size_t len, namelen; in find_module() local
1328 namelen = strlen(name); in find_module()
1347 if (len + 2 + namelen + MAXSUFFIXSIZE >= buflen) { in find_module()
1394 len += namelen; in find_module()
1401 case_ok(buf, len, namelen, name)) { /* case matches */ in find_module()
1422 case_ok(buf, len, namelen, name)) { in find_module()
1446 saved_namelen = namelen; in find_module()
1468 namelen = 8; in find_module()
1469 len -= strlen(subname) - namelen; in find_module()
1482 if (case_ok(buf, len, namelen, name)) in find_module()
[all …]
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dsysctl.h131 u_int namelen; member
488 int kernel_sysctl(struct proc *p, int *name, u_int namelen, void *old,
492 int userland_sysctl(struct proc *p, int *name, u_int namelen, void *old,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dimport.c1300 size_t len, namelen; in find_module() local
1430 namelen = strlen(name); in find_module()
1449 if (len + 2 + namelen + MAXSUFFIXSIZE >= buflen) { in find_module()
1497 len += namelen; in find_module()
1502 case_ok(buf, len, namelen, name)) { /* case matches */ in find_module()
1526 saved_namelen = namelen; in find_module()
1548 namelen = 8; in find_module()
1549 len -= strlen(subname) - namelen; in find_module()
1562 if (case_ok(buf, len, namelen, name)) in find_module()
1573 namelen = saved_namelen; in find_module()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
Dfileio.c240 Py_ssize_t namelen; in fileio_init() local
241 if (PyObject_AsCharBuffer(nameobj, &name, &namelen) < 0) in fileio_init()

12