Home
last modified time | relevance | path

Searched refs:tocopy (Results 1 – 12 of 12) sorted by relevance

/external/curl/tests/libtest/
Dlib1517.c36 size_t tocopy = size * nmemb; in read_callback() local
42 if(tocopy < 1 || !pooh->sizeleft) in read_callback()
45 if(pooh->sizeleft < tocopy) in read_callback()
46 tocopy = pooh->sizeleft; in read_callback()
48 memcpy(ptr, pooh->readptr, tocopy);/* copy requested data */ in read_callback()
49 pooh->readptr += tocopy; /* advance pointer */ in read_callback()
50 pooh->sizeleft -= tocopy; /* less data left */ in read_callback()
51 return tocopy; in read_callback()
/external/libcap/libcap/
Dcap_file.c44 unsigned tocopy, i; in _fcaps_load() local
50 tocopy = VFS_CAP_U32_1; in _fcaps_load()
57 tocopy = VFS_CAP_U32_2; in _fcaps_load()
77 for (i=0; i < tocopy; i++) { in _fcaps_load()
102 unsigned tocopy, i; in _fcaps_save() local
113 tocopy = VFS_CAP_U32_1; in _fcaps_save()
121 tocopy = VFS_CAP_U32_2; in _fcaps_save()
129 tocopy = VFS_CAP_U32_2; in _fcaps_save()
141 for (eff_not_zero = 0, i = 0; i < tocopy; i++) { in _fcaps_save()
157 for (i=0; i < tocopy; i++) { in _fcaps_save()
/external/skqp/src/pdf/
DSkDeflate.cpp106 size_t tocopy = in write() local
108 memcpy(fImpl->fInBuffer + fImpl->fInBufferIndex, buffer, tocopy); in write()
109 len -= tocopy; in write()
110 buffer += tocopy; in write()
111 fImpl->fInBufferIndex += tocopy; in write()
/external/skia/src/pdf/
DSkDeflate.cpp106 size_t tocopy = in write() local
108 memcpy(fImpl->fInBuffer + fImpl->fInBufferIndex, buffer, tocopy); in write()
109 len -= tocopy; in write()
110 buffer += tocopy; in write()
111 fImpl->fInBufferIndex += tocopy; in write()
/external/ltp/testcases/kernel/io/ltp-aiodio/
Daiocp.c51 static int tocopy = 0; // # of blocks left to copy variable
235 --tocopy; in wr_done()
263 --tocopy; in rd_done()
491 tocopy = howmany(length, aio_blksize); in main()
498 while (tocopy > 0) { in main()
551 busy, aio_maxio, tocopy); in main()
/external/e2fsprogs/lib/ext2fs/
Dextent.c908 int tocopy; in extent_node_split() local
999 tocopy = ext2fs_le16_to_cpu(eh->eh_entries); in extent_node_split()
1007 tocopy = 1; in extent_node_split()
1009 tocopy = ext2fs_le16_to_cpu(eh->eh_entries) / 2; in extent_node_split()
1014 tocopy, ext2fs_le16_to_cpu(eh->eh_entries), in extent_node_split()
1018 if (!tocopy && !no_balance) { in extent_node_split()
1050 neweh->eh_entries = ext2fs_cpu_to_le16(tocopy); in extent_node_split()
1058 (ext2fs_le16_to_cpu(eh->eh_entries) - tocopy), in extent_node_split()
1059 sizeof(struct ext3_extent_idx) * tocopy); in extent_node_split()
1090 path->entries -= tocopy; in extent_node_split()
[all …]
/external/libmtp/src/
Dlibusb-glue.c1068 unsigned long tocopy = wantlen; in memory_getfunc() local
1070 if (priv->curoff + tocopy > priv->size) in memory_getfunc()
1071 tocopy = priv->size - priv->curoff; in memory_getfunc()
1072 memcpy (data, priv->data + priv->curoff, tocopy); in memory_getfunc()
1073 priv->curoff += tocopy; in memory_getfunc()
1074 *gotlen = tocopy; in memory_getfunc()
Dlibusb1-glue.c1093 unsigned long tocopy = wantlen; in memory_getfunc() local
1095 if (priv->curoff + tocopy > priv->size) in memory_getfunc()
1096 tocopy = priv->size - priv->curoff; in memory_getfunc()
1097 memcpy (data, priv->data + priv->curoff, tocopy); in memory_getfunc()
1098 priv->curoff += tocopy; in memory_getfunc()
1099 *gotlen = tocopy; in memory_getfunc()
Dlibopenusb1-glue.c1076 unsigned long tocopy = wantlen; in memory_getfunc() local
1078 if (priv->curoff + tocopy > priv->size) in memory_getfunc()
1079 tocopy = priv->size - priv->curoff; in memory_getfunc()
1080 memcpy(data, priv->data + priv->curoff, tocopy); in memory_getfunc()
1081 priv->curoff += tocopy; in memory_getfunc()
1082 *gotlen = tocopy; in memory_getfunc()
Dptp.c248 unsigned long tocopy = wantlen; in memory_getfunc() local
250 if (priv->curoff + tocopy > priv->size) in memory_getfunc()
251 tocopy = priv->size - priv->curoff; in memory_getfunc()
252 memcpy (data, priv->data + priv->curoff, tocopy); in memory_getfunc()
253 priv->curoff += tocopy; in memory_getfunc()
254 *gotlen = tocopy; in memory_getfunc()
/external/libchrome/base/
Dtuple_unittest.cc70 CopyLogger(const CopyLogger& tocopy) { ++TimesConstructed; ++TimesCopied; } in CopyLogger()
/external/python/cpython2/Mac/Modules/file/
D_Filemodule.c128 int tocopy; in _PyMac_GetFullPathname() local
145 tocopy = fss->name[0]; in _PyMac_GetFullPathname()
146 if ((strlen(path) + tocopy) >= len) in _PyMac_GetFullPathname()
147 tocopy = len - strlen(path) - 1; in _PyMac_GetFullPathname()
148 if (tocopy > 0) in _PyMac_GetFullPathname()
149 strncat(path, (char*)fss->name+1, tocopy); in _PyMac_GetFullPathname()