Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 52) sorted by relevance

123

/device/linaro/bootloader/arm-trusted-firmware/lib/utils/
Dmem_region.c36 assert(tbl->nbytes > 0); in clear_mem_regions()
37 assert(!check_uptr_overflow(tbl->base, tbl->nbytes-1)); in clear_mem_regions()
38 zero_normalmem((void *) (tbl->base), tbl->nbytes); in clear_mem_regions()
56 uintptr_t addr, size_t nbytes) in mem_region_in_array_chk() argument
62 assert(nbytes > 0); in mem_region_in_array_chk()
63 assert(!check_uptr_overflow(addr, nbytes-1)); in mem_region_in_array_chk()
66 region_end = addr + (nbytes - 1); in mem_region_in_array_chk()
68 assert(tbl->nbytes > 0); in mem_region_in_array_chk()
69 assert(!check_uptr_overflow(tbl->base, tbl->nbytes-1)); in mem_region_in_array_chk()
71 end = start + (tbl->nbytes - 1); in mem_region_in_array_chk()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dobmalloc.c536 size_t nbytes; in new_arena() local
548 nbytes = numarenas * sizeof(*arenas); in new_arena()
549 arenaobj = (struct arena_object *)realloc(arenas, nbytes); in new_arena()
747 PyObject_Malloc(size_t nbytes) in PyObject_Malloc() argument
767 if (nbytes > PY_SSIZE_T_MAX) in PyObject_Malloc()
773 if ((nbytes - 1) < SMALL_REQUEST_THRESHOLD) { in PyObject_Malloc()
778 size = (uint)(nbytes - 1) >> ALIGNMENT_SHIFT; in PyObject_Malloc()
941 if (nbytes == 0) in PyObject_Malloc()
942 nbytes = 1; in PyObject_Malloc()
943 return (void *)malloc(nbytes); in PyObject_Malloc()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dobmalloc.c571 size_t nbytes; in new_arena() local
583 nbytes = numarenas * sizeof(*arenas); in new_arena()
584 arenaobj = (struct arena_object *)realloc(arenas, nbytes); in new_arena()
790 PyObject_Malloc(size_t nbytes) in PyObject_Malloc() argument
810 if (nbytes > PY_SSIZE_T_MAX) in PyObject_Malloc()
816 if ((nbytes - 1) < SMALL_REQUEST_THRESHOLD) { in PyObject_Malloc()
821 size = (uint)(nbytes - 1) >> ALIGNMENT_SHIFT; in PyObject_Malloc()
984 if (nbytes == 0) in PyObject_Malloc()
985 nbytes = 1; in PyObject_Malloc()
986 return (void *)malloc(nbytes); in PyObject_Malloc()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dmd5module.c63 Py_ssize_t nbytes; in md5_update() local
65 nbytes = INT_MAX; in md5_update()
67 nbytes = n; in md5_update()
69 Py_SAFE_DOWNCAST(nbytes, Py_ssize_t, unsigned int)); in md5_update()
70 buf += nbytes; in md5_update()
71 n -= nbytes; in md5_update()
292 Py_ssize_t nbytes; in MD5_new() local
294 nbytes = INT_MAX; in MD5_new()
296 nbytes = n; in MD5_new()
298 Py_SAFE_DOWNCAST(nbytes, Py_ssize_t, unsigned int)); in MD5_new()
[all …]
Dshamodule.c441 Py_ssize_t nbytes; in SHA_update() local
443 nbytes = INT_MAX; in SHA_update()
445 nbytes = n; in SHA_update()
447 Py_SAFE_DOWNCAST(nbytes, Py_ssize_t, unsigned int)); in SHA_update()
448 buf += nbytes; in SHA_update()
449 n -= nbytes; in SHA_update()
576 Py_ssize_t nbytes; in SHA_new() local
578 nbytes = INT_MAX; in SHA_new()
580 nbytes = n; in SHA_new()
582 Py_SAFE_DOWNCAST(nbytes, Py_ssize_t, unsigned int)); in SHA_new()
[all …]
Dmd5.c324 md5_append(md5_state_t *pms, const md5_byte_t *data, unsigned int nbytes) in md5_append() argument
327 unsigned int left = nbytes; in md5_append()
329 md5_word_t nbits = (md5_word_t)(nbytes << 3); in md5_append()
331 if (nbytes <= 0) in md5_append()
335 if (nbytes > INT_MAX - offset) { in md5_append()
342 md5_append(pms, data + overlap, nbytes - overlap); in md5_append()
347 pms->count[1] += nbytes >> 29; in md5_append()
354 unsigned int copy = (offset + nbytes > 64 ? 64 - offset : nbytes); in md5_append()
Dmd5.h82 void md5_append(md5_state_t *pms, const md5_byte_t *data, unsigned int nbytes);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
Dbitset.c10 int nbytes = NBYTES(nbits); in newbitset() local
11 bitset ss = (char *)PyObject_MALLOC(sizeof(BYTE) * nbytes); in newbitset()
16 ss += nbytes; in newbitset()
17 while (--nbytes >= 0) in newbitset()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/
Dbitset.c10 int nbytes = NBYTES(nbits); in newbitset() local
11 bitset ss = (char *)PyObject_MALLOC(sizeof(BYTE) * nbytes); in newbitset()
16 ss += nbytes; in newbitset()
17 while (--nbytes >= 0) in newbitset()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_ioctl.py38 def _check_ioctl_mutate_len(self, nbytes=None): argument
44 if nbytes is not None:
46 buf.extend([fill] * (nbytes // intsize))
47 self.assertEqual(len(buf) * intsize, nbytes) # sanity check
/device/linaro/hikey/hifi/xaf/hifi-dpf/build_hikey/tools/
Delftobin.sh51 nbytes=`expr 4 - $mod0`
52 if [ "$nbytes" -ne "4" ] ; then
53 tail -c $nbytes __zero.bin >> $VARBIN
54 size_sec[$i]=`expr ${size_sec[${i}]} + $nbytes`
/device/linaro/bootloader/arm-trusted-firmware/include/lib/
Dutils.h24 size_t nbytes; member
39 uintptr_t addr, size_t nbytes);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dssl.py236 def recv_into(self, buffer, nbytes=None, flags=0): argument
237 if buffer and (nbytes is None):
238 nbytes = len(buffer)
239 elif nbytes is None:
240 nbytes = 1024
246 tmp_buffer = self.read(nbytes)
251 return self._sock.recv_into(buffer, nbytes, flags)
260 def recvfrom_into(self, buffer, nbytes=None, flags=0): argument
265 return self._sock.recvfrom_into(buffer, nbytes, flags)
DCGIHTTPServer.py271 nbytes = int(length)
273 nbytes = 0
280 if self.command.lower() == "post" and nbytes > 0:
281 data = self.rfile.read(nbytes)
Duu.py146 nbytes = (((ord(s[0])-32) & 63) * 4 + 5) // 3
147 data = binascii.a2b_uu(s[:nbytes])
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dobjimpl.h105 PyAPI_FUNC(void *) _PyObject_DebugMalloc(size_t nbytes);
106 PyAPI_FUNC(void *) _PyObject_DebugRealloc(void *p, size_t nbytes);
111 PyAPI_FUNC(void *) _PyObject_DebugMallocApi(char api, size_t nbytes);
112 PyAPI_FUNC(void *) _PyObject_DebugReallocApi(char api, void *p, size_t nbytes);
115 PyAPI_FUNC(void *) _PyMem_DebugMalloc(size_t nbytes);
116 PyAPI_FUNC(void *) _PyMem_DebugRealloc(void *p, size_t nbytes);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dobjimpl.h105 PyAPI_FUNC(void *) _PyObject_DebugMalloc(size_t nbytes);
106 PyAPI_FUNC(void *) _PyObject_DebugRealloc(void *p, size_t nbytes);
111 PyAPI_FUNC(void *) _PyObject_DebugMallocApi(char api, size_t nbytes);
112 PyAPI_FUNC(void *) _PyObject_DebugReallocApi(char api, void *p, size_t nbytes);
115 PyAPI_FUNC(void *) _PyMem_DebugMalloc(size_t nbytes);
116 PyAPI_FUNC(void *) _PyMem_DebugRealloc(void *p, size_t nbytes);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dmd5.c324 md5_append(md5_state_t *pms, const md5_byte_t *data, unsigned int nbytes) in md5_append() argument
327 unsigned int left = nbytes; in md5_append()
329 md5_word_t nbits = (md5_word_t)(nbytes << 3); in md5_append()
331 if (nbytes <= 0) in md5_append()
335 if (nbytes > INT_MAX - offset) { in md5_append()
342 md5_append(pms, data + overlap, nbytes - overlap); in md5_append()
347 pms->count[1] += nbytes >> 29; in md5_append()
354 unsigned int copy = (offset + nbytes > 64 ? 64 - offset : nbytes); in md5_append()
Dmd5.h82 void md5_append(md5_state_t *pms, const md5_byte_t *data, unsigned int nbytes);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/encodings/
Duu_codec.py87 nbytes = (((ord(s[0])-32) & 63) * 4 + 5) // 3
88 data = a2b_uu(s[:nbytes])
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/
Duu_codec.py87 nbytes = (((ord(s[0])-32) & 63) * 4 + 5) / 3
88 data = a2b_uu(s[:nbytes])
/device/linaro/hikey/hifi/xaf/host-apf/playback/
Dxa_playback.h39 unsigned int nbytes);
Dxa_playback.c265 unsigned int nbytes) in xa_playback_buf() argument
272 if (nbytes > 0) { in xa_playback_buf()
273 err = pcm_write(handle, data, nbytes); in xa_playback_buf()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/
Dcursor.c312 Py_ssize_t nbytes; in _pysqlite_fetch_one_row() local
344 nbytes = sqlite3_column_bytes(self->statement->st, i); in _pysqlite_fetch_one_row()
350 item = PyString_FromStringAndSize(val_str, nbytes); in _pysqlite_fetch_one_row()
400 nbytes = sqlite3_column_bytes(self->statement->st, i); in _pysqlite_fetch_one_row()
401 buffer = PyBuffer_New(nbytes); in _pysqlite_fetch_one_row()
405 if (PyObject_AsWriteBuffer(buffer, &raw_buffer, &nbytes)) { in _pysqlite_fetch_one_row()
408 memcpy(raw_buffer, sqlite3_column_blob(self->statement->st, i), nbytes); in _pysqlite_fetch_one_row()
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dvfwprintf.c501 size_t clen, nbytes; in __wcsconv() local
507 nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs); in __wcsconv()
508 if (nbytes == (size_t)-1) in __wcsconv()
517 nbytes = prec; in __wcsconv()
519 nbytes = 0; in __wcsconv()
525 nbytes + clen > (size_t)prec) in __wcsconv()
527 nbytes += clen; in __wcsconv()
531 if ((convbuf = malloc(nbytes + 1)) == NULL) in __wcsconv()
537 if ((nbytes = wcsrtombs(convbuf, (const wchar_t **)&p, in __wcsconv()
538 nbytes, &mbs)) == (size_t)-1) { in __wcsconv()
[all …]

123