Home
last modified time | relevance | path

Searched refs:bufferOffset (Results 1 – 8 of 8) sorted by relevance

/haiku/src/kits/media/
H A DSound.cpp202 off_t bufferOffset = offset - startFrame * frameSize; in GetDataAt() local
207 if (bufferOffset != 0) { in GetDataAt()
219 memcpy(intoBuffer, (uint8*)buffer + bufferOffset, in GetDataAt()
220 indirectSize - bufferOffset); in GetDataAt()
222 *outUsed = indirectSize - bufferOffset; in GetDataAt()
228 if (fTrackReader->ReadFrames((uint8*)intoBuffer + bufferOffset, in GetDataAt()
/haiku/src/apps/diskprobe/
H A DDataEditor.cpp69 void Normalize(off_t bufferOffset, size_t bufferSize,
221 ReplaceChange::Normalize(off_t bufferOffset, size_t bufferSize, off_t &offset, in Normalize() argument
224 if (fOffset < bufferOffset) { in Normalize()
225 offset = bufferOffset; in Normalize()
226 dataOffset = bufferOffset - fOffset; in Normalize()
230 if (offset + size > bufferOffset + bufferSize) in Normalize()
231 size = bufferOffset + bufferSize - offset; in Normalize()
236 ReplaceChange::Apply(off_t bufferOffset, uint8 *buffer, size_t bufferSize) in Apply() argument
239 if (fOffset > (bufferOffset + (off_t)bufferSize) in Apply()
240 || (fOffset + (off_t)fSize) < bufferOffset) { in Apply()
[all …]
/haiku/src/kits/mail/
H A DMailContainer.cpp218 off_t bufferOffset; in SetToRFC822() local
267 bufferOffset = data->Position(); // File offset of the start of the buffer. in SetToRFC822()
273 while (((bufferOffset + bufferIndex < topLevelEnd) in SetToRFC822()
284 bufferOffset += bufferIndex; in SetToRFC822()
291 amountToRead = topLevelEnd - (bufferOffset + bufferSize); in SetToRFC822()
316 startOfBoundaryOffset = bufferOffset + bufferIndex; in SetToRFC822()
368 lastBoundaryOffset = bufferOffset + bufferIndex; in SetToRFC822()
/haiku/src/add-ons/kernel/busses/usb/
H A Dohci.cpp2286 size_t bufferOffset = 0; in _WriteDescriptorChain() local
2293 size_t length = min_c(current->buffer_size - bufferOffset, in _WriteDescriptorChain()
2297 " vectorOffset %ld at index %ld of %ld\n", length, bufferOffset, in _WriteDescriptorChain()
2300 (generic_addr_t)current->buffer_logical + bufferOffset, false, in _WriteDescriptorChain()
2306 bufferOffset += length; in _WriteDescriptorChain()
2318 if (bufferOffset >= current->buffer_size) { in _WriteDescriptorChain()
2319 bufferOffset = 0; in _WriteDescriptorChain()
2343 size_t bufferOffset = 0; in _WriteIsochronousDescriptorChain() local
2350 size_t length = min_c(current->buffer_size - bufferOffset, in _WriteIsochronousDescriptorChain()
2354 " vectorOffset %ld at index %ld of %ld\n", length, bufferOffset, in _WriteIsochronousDescriptorChain()
[all …]
H A Duhci.cpp2284 size_t bufferOffset = 0; in WriteDescriptorChain() local
2291 size_t length = min_c(current->buffer_size - bufferOffset, in WriteDescriptorChain()
2295 " vectorOffset %ld at index %ld of %ld\n", length, bufferOffset, in WriteDescriptorChain()
2298 (generic_addr_t)current->buffer_log + bufferOffset, false, in WriteDescriptorChain()
2304 bufferOffset += length; in WriteDescriptorChain()
2316 if (bufferOffset >= current->buffer_size) { in WriteDescriptorChain()
2317 bufferOffset = 0; in WriteDescriptorChain()
2342 size_t bufferOffset = 0; in ReadDescriptorChain() local
2352 size_t length = min_c(bufferSize - bufferOffset, in ReadDescriptorChain()
2357 bufferOffset, vectorIndex, vectorCount); in ReadDescriptorChain()
[all …]
H A Dehci.cpp2798 size_t bufferOffset = 0; in WriteDescriptorChain() local
2805 size_t length = min_c(current->buffer_size - bufferOffset, in WriteDescriptorChain()
2809 (generic_addr_t)current->buffer_log + bufferOffset, false, in WriteDescriptorChain()
2815 bufferOffset += length; in WriteDescriptorChain()
2827 if (bufferOffset >= current->buffer_size) { in WriteDescriptorChain()
2828 bufferOffset = 0; in WriteDescriptorChain()
2853 size_t bufferOffset = 0; in ReadDescriptorChain() local
2865 size_t length = min_c(bufferSize - bufferOffset, in ReadDescriptorChain()
2870 (generic_addr_t)current->buffer_log + bufferOffset, false, length); in ReadDescriptorChain()
2875 bufferOffset += length; in ReadDescriptorChain()
[all …]
/haiku/src/add-ons/kernel/file_systems/cdda/
H A Dcdda.cpp692 off_t bufferOffset, void *buffer, size_t bufferSize) in read_cdda_data() argument
694 if (bufferOffset >= 0 && bufferOffset <= offset + (off_t)length in read_cdda_data()
695 && bufferOffset + (off_t)bufferSize > offset) { in read_cdda_data()
696 if (offset >= bufferOffset) { in read_cdda_data()
698 off_t dataOffset = offset - bufferOffset; in read_cdda_data()
706 } else if (offset < bufferOffset in read_cdda_data()
707 && offset + length < bufferOffset + bufferSize) { in read_cdda_data()
709 off_t dataOffset = bufferOffset - offset; in read_cdda_data()
H A Dcdda.h35 size_t length, off_t bufferOffset, void *buffer, size_t bufferSize);