Home
last modified time | relevance | path

Searched refs:curoff (Results 1 – 5 of 5) sorted by relevance

/external/libmtp/src/
Dptp-pack.c2331 uint32_t len, curoff; in ptp_unpack_CANON_changes() local
2356 curoff = 8+4+4; in ptp_unpack_CANON_changes()
2360 sprintf(ce[i].u.info, "Button %d", dtoh16a(curdata+curoff)); in ptp_unpack_CANON_changes()
2362 curoff += 2; in ptp_unpack_CANON_changes()
2370 dpd->CurrentValue.u16 = curdata[curoff+5]; /* just use last byte */ in ptp_unpack_CANON_changes()
2374 curoff += 6; in ptp_unpack_CANON_changes()
2382 dpd->CurrentValue.u16 = curdata[curoff+4]; /* just use last byte */ in ptp_unpack_CANON_changes()
2386 curoff += 5; in ptp_unpack_CANON_changes()
2394 dpd->CurrentValue.u16 = curdata[curoff+3]; /* just use last byte */ in ptp_unpack_CANON_changes()
2398 curoff += 4; in ptp_unpack_CANON_changes()
[all …]
Dlibusb-glue.c1059 unsigned long size, curoff; member
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()
1084 if (priv->curoff + sendlen > priv->size) { in memory_putfunc()
1085 priv->data = realloc (priv->data, priv->curoff+sendlen); in memory_putfunc()
1086 priv->size = priv->curoff + sendlen; in memory_putfunc()
1088 memcpy (priv->data + priv->curoff, data, sendlen); in memory_putfunc()
1089 priv->curoff += sendlen; in memory_putfunc()
[all …]
Dlibopenusb1-glue.c1067 unsigned long size, curoff; member
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()
1092 if (priv->curoff + sendlen > priv->size) { in memory_putfunc()
1093 priv->data = realloc(priv->data, priv->curoff + sendlen); in memory_putfunc()
1094 priv->size = priv->curoff + sendlen; in memory_putfunc()
1096 memcpy(priv->data + priv->curoff, data, sendlen); in memory_putfunc()
1097 priv->curoff += sendlen; in memory_putfunc()
[all …]
Dlibusb1-glue.c1084 unsigned long size, curoff; member
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()
1109 if (priv->curoff + sendlen > priv->size) { in memory_putfunc()
1110 priv->data = realloc (priv->data, priv->curoff+sendlen); in memory_putfunc()
1111 priv->size = priv->curoff + sendlen; in memory_putfunc()
1113 memcpy (priv->data + priv->curoff, data, sendlen); in memory_putfunc()
1114 priv->curoff += sendlen; in memory_putfunc()
[all …]
Dptp.c239 unsigned long size, curoff; member
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()
264 if (priv->curoff + sendlen > priv->size) { in memory_putfunc()
265 priv->data = realloc (priv->data, priv->curoff+sendlen); in memory_putfunc()
268 priv->size = priv->curoff + sendlen; in memory_putfunc()
270 memcpy (priv->data + priv->curoff, data, sendlen); in memory_putfunc()
271 priv->curoff += sendlen; in memory_putfunc()
[all …]