Searched refs:curoff (Results 1 – 2 of 2) sorted by relevance
/external/libmtp/src/ |
D | libusb-glue.c | 1025 unsigned long size, curoff; member 1036 if (priv->curoff + tocopy > priv->size) in memory_getfunc() 1037 tocopy = priv->size - priv->curoff; in memory_getfunc() 1038 memcpy (data, priv->data + priv->curoff, tocopy); in memory_getfunc() 1039 priv->curoff += tocopy; in memory_getfunc() 1051 if (priv->curoff + sendlen > priv->size) { in memory_putfunc() 1052 priv->data = realloc (priv->data, priv->curoff+sendlen); in memory_putfunc() 1053 priv->size = priv->curoff + sendlen; in memory_putfunc() 1055 memcpy (priv->data + priv->curoff, data, sendlen); in memory_putfunc() 1056 priv->curoff += sendlen; in memory_putfunc() [all …]
|
D | ptp.c | 208 unsigned long size, curoff; member 219 if (priv->curoff + tocopy > priv->size) in memory_getfunc() 220 tocopy = priv->size - priv->curoff; in memory_getfunc() 221 memcpy (data, priv->data + priv->curoff, tocopy); in memory_getfunc() 222 priv->curoff += tocopy; in memory_getfunc() 234 if (priv->curoff + sendlen > priv->size) { in memory_putfunc() 235 priv->data = realloc (priv->data, priv->curoff+sendlen); in memory_putfunc() 236 priv->size = priv->curoff + sendlen; in memory_putfunc() 238 memcpy (priv->data + priv->curoff, data, sendlen); in memory_putfunc() 239 priv->curoff += sendlen; in memory_putfunc() [all …]
|