/external/ltp/testcases/kernel/syscalls/sync_file_range/ |
D | sync_file_range01.c | 114 off64_t nbytes; member 196 static inline long syncfilerange(int fd, off64_t offset, off64_t nbytes, in syncfilerange() argument 204 (int)(offset >> 32), (int)offset, (int)(nbytes >> 32), in syncfilerange() 205 (int)nbytes); in syncfilerange() 208 (int)(offset >> 32), nbytes, (int)(nbytes >> 32)); in syncfilerange() 211 return ltp_syscall(__NR_sync_file_range2, fd, flags, offset, nbytes); in syncfilerange() 217 (int)offset, (int)(nbytes >> 32), (int)nbytes, flags); in syncfilerange() 223 (int)offset, (int)(nbytes >> 32), (int)nbytes, flags); in syncfilerange() 226 (int)(offset >> 32), (int)nbytes, (int)(nbytes >> 32), flags); in syncfilerange() 231 return ltp_syscall(__NR_sync_file_range, fd, offset, nbytes, flags); in syncfilerange() [all …]
|
/external/freetype/src/pcf/ |
D | pcfutil.c | 45 size_t nbytes ) in BitOrderInvert() argument 47 for ( ; nbytes > 0; nbytes--, buf++ ) in BitOrderInvert() 67 size_t nbytes ) in TwoByteSwap() argument 69 for ( ; nbytes >= 2; nbytes -= 2, buf += 2 ) in TwoByteSwap() 86 size_t nbytes ) in FourByteSwap() argument 88 for ( ; nbytes >= 4; nbytes -= 4, buf += 4 ) in FourByteSwap()
|
/external/python/cpython2/Objects/ |
D | obmalloc.c | 571 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 …]
|
/external/python/cpython3/Lib/ |
D | secrets.py | 35 def token_bytes(nbytes=None): argument 45 if nbytes is None: 46 nbytes = DEFAULT_ENTROPY 47 return os.urandom(nbytes) 49 def token_hex(nbytes=None): argument 60 return binascii.hexlify(token_bytes(nbytes)).decode('ascii') 62 def token_urlsafe(nbytes=None): argument 72 tok = token_bytes(nbytes)
|
/external/ltp/testcases/kernel/syscalls/pwrite/ |
D | pwrite04.c | 69 int nbytes; in main() local 93 if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) { in main() 96 nbytes, errno); in main() 113 if ((nbytes = pwrite(fd, wbuf[2], K1, K2)) != K1) { in main() 116 nbytes, errno); in main() 134 if ((nbytes = write(fd, wbuf[3], K1)) != K1) { in main() 136 nbytes, errno); in main() 148 if ((nbytes = pwrite(fd, wbuf[1], K1, K1)) != K1) { in main() 150 nbytes, errno); in main() 187 if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) { in main() [all …]
|
/external/python/cpython3/Objects/ |
D | obmalloc.c | 1196 size_t nbytes; in new_arena() local 1208 nbytes = numarenas * sizeof(*arenas); in new_arena() 1209 arenaobj = (struct arena_object *)PyMem_RawRealloc(arenas, nbytes); in new_arena() 1380 pymalloc_alloc(void *ctx, void **ptr_p, size_t nbytes) in pymalloc_alloc() argument 1396 if (nbytes == 0) { in pymalloc_alloc() 1399 if (nbytes > SMALL_REQUEST_THRESHOLD) { in pymalloc_alloc() 1407 size = (uint)(nbytes - 1) >> ALIGNMENT_SHIFT; in pymalloc_alloc() 1571 _PyObject_Malloc(void *ctx, size_t nbytes) in _PyObject_Malloc() argument 1574 if (pymalloc_alloc(ctx, &ptr, nbytes)) { in _PyObject_Malloc() 1579 ptr = PyMem_RawMalloc(nbytes); in _PyObject_Malloc() [all …]
|
/external/python/cpython2/Modules/ |
D | md5module.c | 63 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 …]
|
/external/curl/lib/ |
D | content_encoding.c | 282 const char *buf, size_t nbytes) in deflate_unencode_write() argument 289 z->avail_in = (uInt) nbytes; in deflate_unencode_write() 436 const char *buf, size_t nbytes) in gzip_unencode_write() argument 444 z->avail_in = (uInt) nbytes; in gzip_unencode_write() 472 switch(check_gzip_header((unsigned char *) buf, nbytes, &hlen)) { in gzip_unencode_write() 475 z->avail_in = (uInt) (nbytes - hlen); in gzip_unencode_write() 487 z->avail_in = (uInt) nbytes; in gzip_unencode_write() 509 z->avail_in += (uInt) nbytes; in gzip_unencode_write() 515 memcpy(z->next_in + z->avail_in - nbytes, buf, nbytes); in gzip_unencode_write() 522 z->next_in = (Bytef *) buf + hlen + nbytes - z->avail_in; in gzip_unencode_write() [all …]
|
/external/u-boot/net/ |
D | checksum.c | 13 unsigned compute_ip_checksum(const void *vptr, unsigned nbytes) in compute_ip_checksum() argument 19 while (nbytes > 1) { in compute_ip_checksum() 21 nbytes -= 2; in compute_ip_checksum() 23 if (nbytes == 1) { in compute_ip_checksum() 56 int ip_checksum_ok(const void *addr, unsigned nbytes) in ip_checksum_ok() argument 58 return !(compute_ip_checksum(addr, nbytes) & 0xfffe); in ip_checksum_ok()
|
/external/v4l2_codec2/vda/ |
D | bit_reader.cc | 39 int nbytes = max_nbytes; in GetBytes() local 40 if (nbytes > bytes_left_) in GetBytes() 41 nbytes = bytes_left_; in GetBytes() 44 data_ += nbytes; in GetBytes() 45 bytes_left_ -= nbytes; in GetBytes() 46 return nbytes; in GetBytes()
|
D | bit_reader_core.cc | 80 const int nbytes = num_bits / 8; in SkipBits() local 81 if (nbytes > 0) { in SkipBits() 84 byte_stream_provider_->GetBytes(nbytes, &byte_stream_window); in SkipBits() 86 DCHECK_LE(window_size, nbytes); in SkipBits() 87 if (window_size < nbytes) { in SkipBits() 92 num_bits -= 8 * nbytes; in SkipBits() 93 bits_read_ += 8 * nbytes; in SkipBits()
|
/external/expat/xmlwf/ |
D | readfilemap.c | 84 size_t nbytes; in filemap() local 110 nbytes = sb.st_size; in filemap() 112 if (nbytes == 0) { in filemap() 118 p = malloc(nbytes); in filemap() 124 n = _EXPAT_read(fd, p, (_EXPAT_read_req_t)nbytes); in filemap() 131 if (n != (_EXPAT_read_count_t)nbytes) { in filemap() 137 processor(p, nbytes, name, arg); in filemap()
|
D | unixfilemap.c | 61 size_t nbytes; in filemap() local 85 nbytes = sb.st_size; in filemap() 87 if (nbytes == 0) { in filemap() 93 p = (void *)mmap((void *)0, (size_t)nbytes, PROT_READ, in filemap() 100 processor(p, nbytes, name, arg); in filemap() 101 munmap((void *)p, nbytes); in filemap()
|
/external/ltp/testcases/kernel/fs/doio/ |
D | doio.c | 328 int lock_file_region(char *fname, int fd, int type, int start, int nbytes); 410 int alloc_mem(int nbytes); 413 int alloc_sds(int nbytes); 756 int rval, i, infd, nbytes; in doio() local 918 while ((nbytes = read(infd, (char *)&ioreq, sizeof(ioreq)))) { in doio() 935 if (nbytes == -1) { in doio() 943 if (nbytes != sizeof(ioreq)) { in doio() 946 sizeof(ioreq), nbytes); in doio() 1406 int fd, offset, nbytes, oflags, rval; in do_read() local 1425 nbytes = req->r_data.read.r_nbytes; in do_read() [all …]
|
/external/pdfium/core/fxcrt/ |
D | fx_string.cpp | 28 int nbytes = 0; in Input() local 30 nbytes = 2; in Input() 32 nbytes = 3; in Input() 34 nbytes = 4; in Input() 36 nbytes = 5; in Input() 38 nbytes = 6; in Input() 41 int order = 1 << ((nbytes - 1) * 6); in Input() 43 m_Buffer.push_back(prefix[nbytes - 2] | (code / order)); in Input() 44 for (int i = 0; i < nbytes - 1; i++) { in Input()
|
/external/ltp/testcases/misc/crash/ |
D | crash01.c | 89 const int nbytes = 2000; variable 171 if (inc <= nbytes / 2) in main() 175 "Invalid arg for -b (max: %u): %s", nbytes / 2, in main() 185 (malloc_flag == 0) ? "" : "+", nbytes, incptr, nseed, in main() 312 the_data = bad_malloc((nbytes < 0) ? -nbytes : nbytes); in badboy_loop() 484 compute_block_badboy(nbytes); in compute_badboy() 489 || (next_offset > ((nbytes * BLOCK_TRIGGER) / 100))) { in compute_badboy() 490 compute_block_badboy(nbytes); in compute_badboy() 506 else if (nbytes == 0) in try_one_crash()
|
/external/u-boot/cmd/ |
D | fpgad.c | 35 ulong nbytes; in do_fpga_md() local 67 nbytes = length * sizeof(u16); in do_fpga_md() 69 ulong linebytes = (nbytes > DISP_LINE_LEN) ? in do_fpga_md() 70 DISP_LINE_LEN : nbytes; in do_fpga_md() 82 nbytes -= linebytes; in do_fpga_md() 88 } while (nbytes > 0); in do_fpga_md()
|
/external/e2fsprogs/lib/ext2fs/ |
D | bitops.c | 135 unsigned int ext2fs_bitcount(const void *addr, unsigned int nbytes) in ext2fs_bitcount() argument 141 while (((((uintptr_t) cp) & 3) != 0) && (nbytes > 0)) { in ext2fs_bitcount() 143 nbytes--; in ext2fs_bitcount() 147 while (nbytes > 4) { in ext2fs_bitcount() 149 nbytes -= 4; in ext2fs_bitcount() 153 while (nbytes > 0) { in ext2fs_bitcount() 155 nbytes--; in ext2fs_bitcount()
|
/external/elfutils/libasm/ |
D | asm_adduleb128.c | 75 size_t nbytes = dest - tmpbuf; in asm_adduleb128() local 78 if (__libasm_ensure_section_space (asmscn, nbytes) != 0) in asm_adduleb128() 83 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes); in asm_adduleb128() 86 asmscn->content->len += nbytes; in asm_adduleb128() 89 asmscn->offset += nbytes; in asm_adduleb128()
|
D | asm_addsleb128.c | 79 size_t nbytes = dest - tmpbuf; in asm_addsleb128() local 82 if (__libasm_ensure_section_space (asmscn, nbytes) != 0) in asm_addsleb128() 87 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes); in asm_addsleb128() 90 asmscn->content->len += nbytes; in asm_addsleb128() 93 asmscn->offset += nbytes; in asm_addsleb128()
|
/external/libpng/contrib/arm-neon/ |
D | linux-auxv.c | 39 safe_read(png_structp png_ptr, int fd, void *buffer_in, size_t nbytes) in safe_read() argument 44 while (nbytes > 0) in safe_read() 53 if (nbytes > INT_MAX) in safe_read() 57 nread = (unsigned int)/*SAFE*/nbytes; in safe_read() 85 nbytes -= (unsigned int)/*SAFE*/iread; in safe_read()
|
/external/libcxx/src/support/solaris/ |
D | wcsnrtombs.inc | 35 size_t nbytes; 39 nbytes = 0; 47 return (nbytes + nb - 1); 49 nbytes += nb; 51 return (nbytes); 83 return (nbytes + nb - 1); 88 nbytes += nb; 91 return (nbytes);
|
/external/libvterm/src/ |
D | utf8.h | 18 int nbytes = utf8_seqlen(codepoint); in fill_utf8() local 21 int b = nbytes; in fill_utf8() 28 switch(nbytes) { in fill_utf8() 37 return nbytes; in fill_utf8()
|
/external/u-boot/arch/x86/lib/ |
D | string.c | 75 #define BYTE_COPY_FWD(dst_bp, src_bp, nbytes) \ argument 85 "0" (dst_bp), "1" (src_bp), "2" (nbytes) : \ 89 #define WORD_COPY_FWD(dst_bp, src_bp, nbytes_left, nbytes) \ argument 99 "0" (dst_bp), "1" (src_bp), "2" ((nbytes) / 4) : \ 101 (nbytes_left) = (nbytes) % 4; \
|
/external/ltp/testcases/kernel/controllers/freezer/ |
D | vfork.c | 266 ssize_t nbytes = 0; in send_mutex() local 269 nbytes = write(fd, "r", 1); in send_mutex() 270 if (nbytes == 1) in send_mutex() 272 if (nbytes != -1) in send_mutex() 285 ssize_t nbytes = 0; in await_mutex() local 288 nbytes = read(fd, buffer, sizeof(buffer)); in await_mutex() 289 if (nbytes == 1) in await_mutex() 291 if (nbytes != -1) in await_mutex()
|