Searched refs:pos (Results 351 - 375 of 520) sorted by relevance

<<11121314151617181920>>

/haiku/src/add-ons/media/media-add-ons/mixer/
H A DMixerUtils.cpp164 int pos = 0; local
168 if (pos == channel)
170 pos++;
/haiku/src/add-ons/kernel/file_systems/xfs/
H A DBPlusTree.cpp100 TreeDirectory::GetPtrOffsetIntoRoot(int pos) argument
104 + (pos - 1) * PtrSize();
117 TreeDirectory::GetPtrOffsetIntoNode(int pos) argument
120 return BlockLen() + maxRecords * KeySize() + (pos - 1) * PtrSize();
125 TreeDirectory::GetPtrFromRoot(int pos) argument
129 + GetPtrOffsetIntoRoot(pos));
134 TreeDirectory::GetPtrFromNode(int pos, void* buffer) argument
136 size_t offsetIntoNode = GetPtrOffsetIntoNode(pos);
142 TreeDirectory::GetKeyFromNode(int pos, void* buffer) argument
145 ((char*)buffer + BlockLen() + (pos
150 GetKeyFromRoot(int pos) argument
[all...]
H A Dkernel_interface.cpp168 off_t pos, const iovec *vecs, size_t count, size_t *_numBytes)
300 xfs_read(fs_volume *_volume, fs_vnode *_node, void *_cookie, off_t pos, argument
303 TRACE("Inode::ReadAt: pos:(%ld), *length:(%ld)\n", pos, *_length);
311 return inode->ReadAt(pos, (uint8*)buffer, _length);
594 off_t pos, void *buffer, size_t *_length)
606 status_t status = attribute->Read(cookie, pos, (uint8*)buffer, _length);
615 off_t pos, const void *buffer, size_t *length)
167 xfs_read_pages(fs_volume *_volume, fs_vnode *_node, void *_cookie, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes) argument
593 xfs_read_attr(fs_volume *_volume, fs_vnode *_node, void *_cookie, off_t pos, void *buffer, size_t *_length) argument
614 xfs_write_attr(fs_volume *_volume, fs_vnode *_node, void *cookie, off_t pos, const void *buffer, size_t *length) argument
/haiku/src/tests/system/kernel/device_manager/
H A Ddma_resource_test.cpp1225 dma_test_read(void *cookie, off_t pos, void *buffer, size_t *_length) argument
1229 if (pos >= sAreaSize)
1231 if (pos + length > sAreaSize)
1232 length = sAreaSize - pos;
1236 status_t status = request.Init(pos, (addr_t)buffer, length, false, 0);
1247 status_t status = user_memcpy(buffer, (uint8*)sAreaAddress + pos, length);
1257 dma_test_write(void *cookie, off_t pos, const void *buffer, size_t *_length) argument
1261 if (pos >= sAreaSize)
1263 if (pos + length > sAreaSize)
1264 length = sAreaSize - pos;
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dindex.c78 static VCN ntfs_ib_pos_to_vcn(ntfs_index_context *icx, s64 pos) argument
80 return pos >> icx->vcn_size_bits;
241 static INDEX_ENTRY *ntfs_ie_get_by_pos(INDEX_HEADER *ih, int pos) argument
245 ntfs_log_trace("pos: %d\n", pos);
249 while (pos-- > 0)
345 * Insert @ie index entry at @pos entry. Used @ih values should be ok already.
347 static void ntfs_ie_insert(INDEX_HEADER *ih, INDEX_ENTRY *ie, INDEX_ENTRY *pos) argument
354 memmove((u8 *)pos + ie_size, pos,
690 s64 pos, ret; local
971 ntfs_ibm_pos_to_vcn(ntfs_index_context *icx, s64 pos) argument
1000 s64 pos = ntfs_ibm_vcn_to_pos(icx, vcn); local
1394 ntfs_ih_insert(INDEX_HEADER *ih, INDEX_ENTRY *orig_ie, VCN new_vcn, int pos) argument
[all...]
H A Dlcnalloc.c64 static void ntfs_cluster_set_zone_pos(LCN start, LCN end, LCN *pos, LCN tc) argument
66 ntfs_log_trace("pos: %lld tc: %lld\n", (long long)*pos, (long long)tc);
69 *pos = start;
71 *pos = tc;
171 static int bitmap_writeback(ntfs_volume *vol, s64 pos, s64 size, void *b, argument
183 written = ntfs_attr_pwrite(vol->lcnbmp_na, pos, size, b);
188 (long long)pos, (long long)size);
H A Ddir.c948 * @pos: current position in directory
959 static int ntfs_filldir(ntfs_inode *dir_ni, s64 *pos, u8 ivcn_bits, argument
974 *pos = (u8*)ie - (u8*)iu.ia + (sle64_to_cpu(
978 *pos = (u8*)ie - (u8*)iu.ir;
1003 fn->file_name_type, *pos,
1015 fn->file_name_type, *pos,
1091 * @pos: current position in directory
1104 int ntfs_readdir(ntfs_inode *dir_ni, s64 *pos, argument
1121 if (!dir_ni || !pos || !filldir) {
1133 ntfs_log_trace("Entering for inode %lld, *pos
2873 s64 pos; local
[all...]
H A Dcompress.c691 * @pos: byte position in the attribute to begin reading from
697 * This function will read @count bytes starting at offset @pos from the
709 s64 ntfs_compressed_attr_pread(ntfs_attr *na, s64 pos, s64 count, void *b) argument
723 ntfs_log_trace("Entering for inode 0x%llx, attr 0x%x, pos 0x%llx, count 0x%llx.\n",
725 (long long)pos, (long long)count);
731 || pos < 0 || count < 0) {
746 if (pos + count > na->data_size) {
747 if (pos >= na->data_size) {
750 count = na->data_size - pos;
754 return ntfs_attr_pread(na, pos, coun
1582 ntfs_read_append(ntfs_attr *na, const runlist_element *rl, s64 offs, u32 compsz, s32 pos, BOOL appending, char *outbuf, s64 to_write, const void *b) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A Dkernel_interface.cpp363 nfs4_read_pages(fs_volume* _volume, fs_vnode* vnode, void* _cookie, off_t pos, argument
367 TRACE("volume = %p, vnode = %" B_PRIi64 ", cookie = %p, pos = %" B_PRIi64 \
368 ", count = %lu, numBytes = %lu\n", _volume, vti->ID(), _cookie, pos,
387 result = inode->ReadDirect(cookie, pos, buffer, &bytesRead, &eof);
392 pos += bytesRead;
407 nfs4_write_pages(fs_volume* _volume, fs_vnode* vnode, void* _cookie, off_t pos, argument
411 TRACE("volume = %p, vnode = %" B_PRIi64 ", cookie = %p, pos = %" B_PRIi64 \
412 ", count = %lu, numBytes = %lu\n", _volume, vti->ID(), _cookie, pos,
425 if (pos + bytesLeft > inode->MaxFileSize())
426 bytesLeft = inode->MaxFileSize() - pos;
905 nfs4_read(fs_volume* volume, fs_vnode* vnode, void* _cookie, off_t pos, void* buffer, size_t* length) argument
930 nfs4_write(fs_volume* volume, fs_vnode* vnode, void* _cookie, off_t pos, const void* _buffer, size_t* length) argument
1232 nfs4_read_attr(fs_volume* volume, fs_vnode* vnode, void* _cookie, off_t pos, void* buffer, size_t* length) argument
1249 nfs4_write_attr(fs_volume* volume, fs_vnode* vnode, void* _cookie, off_t pos, const void* buffer, size_t* length) argument
[all...]
/haiku/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioFormatConverter.cpp190 AudioFormatConverter::Read(void* buffer, int64 pos, int64 frames) argument
192 TRACE("AudioFormatConverter::Read(%p, %lld, %lld)\n", buffer, pos, frames);
198 pos += fOutOffset;
204 return fSource->Read(buffer, pos, frames);
234 error = fSource->Read(inBuffer, pos, frames);
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DInode.cpp239 Inode::ReadAt(off_t pos, uint8* buffer, size_t* _length) argument
241 return file_cache_read(FileCache(), NULL, pos, buffer, _length);
246 Inode::WriteAt(Transaction& transaction, off_t pos, const uint8* buffer, argument
249 TRACE("Inode::WriteAt(%" B_PRIdOFF ", %p, *(%p) = %" B_PRIuSIZE ")\n", pos,
256 if (pos < 0)
274 off_t oldEnd = pos + length;
279 off_t end = pos + (off_t)length;
305 if (oldSize < pos)
306 FillGapWithZeros(oldSize, pos);
309 // Probably just changed the file size with the pos paramete
[all...]
/haiku/src/kits/support/
H A DArchivable.cpp127 string::size_type pos = 0; local
129 while (pos != string::npos) {
130 pos = origName.find_first_of("::", oldpos);
131 spacenames.push_back(string(origName, oldpos, pos - oldpos));
132 pos = origName.find_first_not_of("::", pos);
133 oldpos = pos;
/haiku/src/add-ons/translators/stxt/
H A DSTXTTranslator.cpp159 off_t seekresult, pos;
160 pos = header.header.header_size + txtheader.header.header_size
164 if (seekresult < pos)
166 if (seekresult > pos)
593 const char* pos = (char*)buffer; local
601 status = codec.Decode(pos, bytes,
616 pos += bytes;
/haiku/src/tools/fs_shell/
H A Dvfs.cpp191 static fssh_status_t file_read(struct file_descriptor *, fssh_off_t pos,
193 static fssh_status_t file_write(struct file_descriptor *, fssh_off_t pos,
195 static fssh_off_t file_seek(struct file_descriptor *, fssh_off_t pos,
214 static fssh_status_t attr_read(struct file_descriptor *, fssh_off_t pos,
216 static fssh_status_t attr_write(struct file_descriptor *, fssh_off_t pos,
218 static fssh_off_t attr_seek(struct file_descriptor *, fssh_off_t pos,
2172 fssh_read_pages(int fd, fssh_off_t pos, const fssh_iovec *vecs, argument
2201 fssh_ssize_t bytesRead = fssh_readv_pos(fd, pos, vecs, count);
2213 fssh_write_pages(int fd, fssh_off_t pos, const fssh_iovec *vecs, argument
2242 fssh_ssize_t bytesWritten = fssh_writev_pos(fd, pos, vec
2386 vfs_read_pages(void *_vnode, void *cookie, fssh_off_t pos, const fssh_iovec *vecs, fssh_size_t count, fssh_size_t *_numBytes) argument
2397 vfs_write_pages(void *_vnode, void *cookie, fssh_off_t pos, const fssh_iovec *vecs, fssh_size_t count, fssh_size_t *_numBytes) argument
3196 file_read(struct file_descriptor *descriptor, fssh_off_t pos, void *buffer, fssh_size_t *length) argument
3206 file_write(struct file_descriptor *descriptor, fssh_off_t pos, const void *buffer, fssh_size_t *length) argument
3216 file_seek(struct file_descriptor *descriptor, fssh_off_t pos, int seekType) argument
4131 attr_read(struct file_descriptor *descriptor, fssh_off_t pos, void *buffer, fssh_size_t *length) argument
4144 attr_write(struct file_descriptor *descriptor, fssh_off_t pos, const void *buffer, fssh_size_t *length) argument
4157 attr_seek(struct file_descriptor *descriptor, fssh_off_t pos, int seekType) argument
[all...]
/haiku/src/system/kernel/fs/
H A Dvfs.cpp357 static status_t file_read(struct file_descriptor* descriptor, off_t pos,
359 static status_t file_write(struct file_descriptor* descriptor, off_t pos,
361 static off_t file_seek(struct file_descriptor* descriptor, off_t pos,
383 static status_t attr_read(struct file_descriptor* descriptor, off_t pos,
385 static status_t attr_write(struct file_descriptor* descriptor, off_t pos,
387 static off_t attr_seek(struct file_descriptor* descriptor, off_t pos,
600 PagesIOTraceEntry(struct vnode* vnode, void* cookie, off_t pos, argument
609 fPos(pos),
623 "cookie: %p, pos: %" B_PRIdOFF ", size: %" B_PRIu64 ", vecs: {",
658 ReadPages(struct vnode* vnode, void* cookie, off_t pos, argument
678 WritePages(struct vnode* vnode, void* cookie, off_t pos, const generic_io_vec* vecs, uint32 count, uint32 flags, generic_size_t bytesRequested, status_t status, generic_size_t bytesTransferred) argument
4637 vfs_read_pages(struct vnode* vnode, void* cookie, off_t pos, const generic_io_vec* vecs, size_t count, uint32 flags, generic_size_t* _numBytes) argument
4665 vfs_write_pages(struct vnode* vnode, void* cookie, off_t pos, const generic_io_vec* vecs, size_t count, uint32 flags, generic_size_t* _numBytes) argument
5696 file_read(struct file_descriptor* descriptor, off_t pos, void* buffer, size_t* length) argument
5713 file_write(struct file_descriptor* descriptor, off_t pos, const void* buffer, size_t* length) argument
5733 file_seek(struct file_descriptor* descriptor, off_t pos, int seekType) argument
6868 attr_read(struct file_descriptor* descriptor, off_t pos, void* buffer, size_t* length) argument
6884 attr_write(struct file_descriptor* descriptor, off_t pos, const void* buffer, size_t* length) argument
6900 attr_seek(struct file_descriptor* descriptor, off_t pos, int seekType) argument
8056 fs_read_attr(int fd, const char *attribute, uint32 type, off_t pos, void *buffer, size_t readBytes) argument
9722 _user_read_attr(int fd, const char* userAttribute, off_t pos, void* userBuffer, size_t readBytes) argument
9747 _user_write_attr(int fd, const char* userAttribute, uint32 type, off_t pos, const void* buffer, size_t writeBytes) argument
[all...]
/haiku/src/tests/system/kernel/file_corruption/driver/
H A Dchecksum_device.cpp1008 checksum_raw_device_read(void* _cookie, off_t pos, void* buffer,
1016 if (pos >= device->DeviceSize())
1018 if (pos + length > device->DeviceSize())
1019 length = device->DeviceSize() - pos;
1022 status_t status = request.Init(pos, (addr_t)buffer, length, false, 0);
1038 checksum_raw_device_write(void* _cookie, off_t pos, const void* buffer,
1046 if (pos >= device->DeviceSize())
1048 if (pos + length > device->DeviceSize())
1049 length = device->DeviceSize() - pos;
1052 status_t status = request.Init(pos, (addr_
[all...]
/haiku/src/add-ons/kernel/file_systems/iso9660/
H A Diso9660.cpp759 off_t totalRead = cookie->pos + (cookie->block - cookie->startBlock)
767 if (blockData != NULL && *(blockData + cookie->pos) == 0) {
772 += volume->logicalBlkSize[FS_DATA_FORMAT] - cookie->pos;
773 cookie->pos = 0;
787 result = InitNode(volume, &node, blockData + cookie->pos,
799 + (cookie->pos & 0x3fffffff);
806 "pos %lld, inode id %lld\n", dirent->d_name, cookie->block,
807 cookie->pos, dirent->d_ino));
819 cookie->pos += bytesRead;
821 if (cookie->pos
[all...]
/haiku/src/system/boot/platform/atari_m68k/
H A Ddevices.cpp120 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize);
121 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize);
604 BlockHandle::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) argument
607 uint32 offset = pos % fBlockSize;
608 pos /= fBlockSize;
609 TRACE(("BlockHandle::%s: (%d) %lld, %d\n", __FUNCTION__, fHandle, pos, bufferSize));
615 // blocksLeft * fBlockSize, pos * fBlockSize, offset));
619 ret = ReadBlocks(gScratchBuffer, pos, 1);
634 ret = ReadBlocks(gScratchBuffer, pos, blocksRead);
644 pos
658 WriteAt(void *cookie, off_t pos, const void *buffer, size_t bufferSize) argument
[all...]
/haiku/src/add-ons/kernel/drivers/common/
H A Dconsole.cpp546 size_t pos = 0; local
548 while (pos < length) {
549 c = &((const char *)buffer)[pos++];
654 return pos;
701 console_read(void *cookie, off_t pos, void *buffer, size_t *_length) argument
708 console_write(void *cookie, off_t pos, const void *buffer, size_t *_length) argument
/haiku/src/add-ons/kernel/drivers/graphics/s3/
H A Ddriver.cpp117 static status_t device_read(void* dev, off_t pos, void* buf, size_t* len);
118 static status_t device_write(void* dev, off_t pos, const void* buf, size_t* len);
734 device_read(void* dev, off_t pos, void* buf, size_t* len) argument
738 (void)pos;
747 device_write(void* dev, off_t pos, const void* buf, size_t* len) argument
751 (void)pos;
/haiku/src/add-ons/kernel/drivers/graphics/intel_810/
H A Ddriver.cpp83 static status_t device_read(void* dev, off_t pos, void* buf, size_t* len);
84 static status_t device_write(void* dev, off_t pos, const void* buf,
583 device_read(void* dev, off_t pos, void* buf, size_t* len) argument
588 (void)pos;
597 device_write(void* dev, off_t pos, const void* buf, size_t* len) argument
602 (void)pos;
/haiku/src/add-ons/translators/rtf/
H A DRTF.cpp72 int32 pos = 0; local
73 for (; pos < base; pos++) {
74 if (kDigits[pos] == tolower(digit)) {
75 integer = integer * base + pos;
80 if (pos == base) {
/haiku/src/add-ons/kernel/bus_managers/fdt/
H A Dfdt_module.cpp712 fdt_devfs_node_read(void *cookie, off_t pos, void *buffer, size_t *_length) argument
714 if (pos < 0)
718 if ((uint64)pos >= size) {
723 if (pos + readSize > size)
724 readSize = size - pos;
726 status_t res = user_memcpy(buffer, (uint8*)gFDT + pos, readSize);
/haiku/src/system/libroot/posix/glibc/libio/
H A Dwstrops.c128 _IO_size_t pos; local
137 pos = fp->_wide_data->_IO_write_ptr - fp->_wide_data->_IO_write_base;
138 if (pos >= (_IO_size_t) (_IO_wblen (fp) + flush_only))
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/
H A Dkernel_interface.cpp520 userlandfs_read(fs_volume* fsVolume, fs_vnode* fsNode, void* cookie, off_t pos, argument
525 volume, fsNode->private_node, cookie, pos, buffer, *length));
526 status_t error = volume->Read(fsNode->private_node, cookie, pos, buffer,
535 userlandfs_write(fs_volume* fsVolume, fs_vnode* fsNode, void* cookie, off_t pos, argument
540 ")\n", volume, fsNode->private_node, cookie, pos, buffer, *length));
541 status_t error = volume->Write(fsNode->private_node, cookie, pos, buffer,
788 off_t pos, void* buffer, size_t* length)
792 B_PRIuSIZE ")\n", volume, fsNode->private_node, cookie, pos, buffer,
794 status_t error = volume->ReadAttr(fsNode->private_node, cookie, pos, buffer,
804 off_t pos, cons
787 userlandfs_read_attr(fs_volume* fsVolume, fs_vnode* fsNode, void* cookie, off_t pos, void* buffer, size_t* length) argument
803 userlandfs_write_attr(fs_volume* fsVolume, fs_vnode* fsNode, void* cookie, off_t pos, const void* buffer, size_t* length) argument
[all...]

Completed in 475 milliseconds

<<11121314151617181920>>