/haiku/src/kits/tracker/ |
H A D | FSUtils.cpp | 2226 uint32 pos = snprintf(buffer, length, "\n\t(%s ", size.String()); local 2228 strftime(buffer + pos, length - pos, "%b %d %Y, %I:%M:%S %p)", &timeData);
|
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | kernel_interface.cpp | 954 ramfs_read(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, argument 963 // node->GetObjectID(), pos, buffer, *bufferSize)); 976 error = file->ReadAt(pos, buffer, *bufferSize, bufferSize); 991 ramfs_write(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, argument 1000 // node->GetObjectID(), pos, buffer, *bufferSize)); 1014 pos = node->GetSize(); 1017 error = file->WriteAt(pos, buffer, *bufferSize, 1672 ramfs_read_attr(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, argument 1695 error = attribute->ReadAt(pos, buffer, *bufferSize, bufferSize); 1705 off_t pos, cons 1704 ramfs_write_attr(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, const void *buffer, size_t *bufferSize) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/xfs/ |
H A D | ShortAttribute.h | 33 status_t Read(attr_cookie* cookie, off_t pos,
|
H A D | ShortAttribute.cpp | 91 ShortAttribute::Read(attr_cookie* cookie, off_t pos, uint8* buffer, size_t* length) argument 95 if (pos < 0) 108 if (pos + *length > fEntry->valuelen) 109 lengthToRead = fEntry->valuelen - pos;
|
H A D | Inode.h | 317 status_t ReadAt(off_t pos, uint8* buffer, size_t* length); 329 TreePointer* GetPtrFromRoot(int pos); 330 TreePointer* GetPtrFromNode(int pos, void* buffer); 331 size_t GetPtrOffsetIntoRoot(int pos); 332 size_t GetPtrOffsetIntoNode(int pos);
|
H A D | Inode.cpp | 406 Inode::GetPtrOffsetIntoRoot(int pos) argument 410 + maxRecords * XFS_KEY_SIZE + (pos - 1) * XFS_PTR_SIZE); 415 Inode::GetPtrFromRoot(int pos) argument 418 ((char*)DIR_DFORK_PTR(Buffer(), CoreInodeSize()) + GetPtrOffsetIntoRoot(pos)); 431 Inode::GetPtrOffsetIntoNode(int pos) argument 436 + (pos - 1) * XFS_PTR_SIZE; 441 Inode::GetPtrFromNode(int pos, void* buffer) argument 443 size_t offsetIntoNode = GetPtrOffsetIntoNode(pos); 594 Inode::ReadAt(off_t pos, uint8* buffer, size_t* length) argument 596 TRACE("Inode::ReadAt: pos [all...] |
/haiku/src/add-ons/kernel/drivers/audio/cmedia/ |
H A D | pcm.c | 80 static status_t pcm_read(void *cookie, off_t pos, void *data, size_t *len); 81 static status_t pcm_write(void *cookie, off_t pos, const void *data, size_t *len); 82 //static status_t pcm_writev(void *cookie, off_t pos, const iovec *vec, size_t count, size_t *len); /* */ 1347 off_t pos, 1451 off_t pos, 1345 pcm_read( void * cookie, off_t pos, void * data, size_t * nread) argument 1449 pcm_write( void * cookie, off_t pos, const void * data, size_t * nwritten) argument
|
H A D | mixer.c | 18 static status_t mixer_read(void *cookie, off_t pos, void *data, size_t *len); 19 static status_t mixer_write(void *cookie, off_t pos, const void *data, size_t *len); 292 off_t pos, 303 off_t pos, 290 mixer_read( void * cookie, off_t pos, void * data, size_t * nread) argument 301 mixer_write( void * cookie, off_t pos, const void * data, size_t * nwritten) argument
|
/haiku/src/tools/fs_shell/ |
H A D | vfs.cpp | 191 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...] |
H A D | fssh.cpp | 758 size_t pos = 0; local 765 ssize_t statusOrNumBytes = _kern_read(fd, pos, buffer, numBytes); 773 pos += numBytes;
|
H A D | command_cp.cpp | 86 fssh_off_t pos, void *buffer, int size) = 0; 88 fssh_off_t pos, const void *buffer, int size) = 0; 202 fssh_off_t pos, void *buffer, int size) 204 fssh_ssize_t bytesRead = fs_read_attr(fFD, name, type, pos, buffer, 210 fssh_off_t pos, const void *buffer, int size) 212 fssh_ssize_t bytesWritten = fs_write_attr(fFD, name, type, pos, buffer, 586 fssh_off_t pos, void *buffer, int size) 594 fssh_ssize_t bytesRead = _kern_read(attrFD, pos, buffer, size); 603 fssh_off_t pos, const void *buffer, int size) 611 fssh_ssize_t bytesWritten = _kern_write(attrFD, pos, buffe 201 ReadAttr(const char *name, uint32_t type, fssh_off_t pos, void *buffer, int size) argument 209 WriteAttr(const char *name, uint32_t type, fssh_off_t pos, const void *buffer, int size) argument 585 ReadAttr(const char *name, uint32_t type, fssh_off_t pos, void *buffer, int size) argument 602 WriteAttr(const char *name, uint32_t type, fssh_off_t pos, const void *buffer, int size) argument 1008 fssh_off_t pos = 0; local [all...] |
/haiku/src/add-ons/media/plugins/ffmpeg/ |
H A D | AVFormatReader.cpp | 528 if (fPacket.pos >= 0) 529 timeStamp = fPacket.pos; 707 data->pos = fPacket.pos; 724 mediaHeader->file_pos = fPacket.pos;
|
H A D | AVCodecDecoder.cpp | 1421 fTempPacket->pos = data->pos;
|
H A D | Utilities.h | 33 int64_t pos; member in struct:avpacket_user_data
|
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | kernel_interface.cpp | 257 off_t pos, const iovec* vecs, size_t count, size_t* _numBytes) 276 status = file_map_translate(inode->Map(), pos, bytesLeft, fileVecs, 289 pos += bytes; 574 btrfs_write(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, argument 583 if (pos < 0) 594 btrfs_read(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, argument 605 return inode->ReadAt(pos, (uint8*)buffer, _length); 999 off_t pos, void* buffer, size_t* _length) 1008 return attribute.Read(cookie, pos, (uint8*)buffer, _length); 1014 off_t pos, cons 256 btrfs_read_pages(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, const iovec* vecs, size_t count, size_t* _numBytes) argument 998 btrfs_read_attr(fs_volume* _volume, fs_vnode* _node, void* _cookie, off_t pos, void* buffer, size_t* _length) argument 1013 btrfs_write_attr(fs_volume* _volume, fs_vnode* _node, void* cookie, off_t pos, const void* buffer, size_t* length) argument [all...] |
H A D | Inode.cpp | 173 Inode::FindBlock(off_t pos, off_t& physical, off_t* _length) argument 178 search_key.SetOffset(pos + 1); 193 off_t diff = pos - search_key.Offset(); 203 B_PRIdOFF "\n", ID(), pos, physical); 211 Inode::ReadAt(off_t pos, uint8* buffer, size_t* _length) argument 216 // set/check boundaries for pos/length 217 if (pos < 0) { 218 ERROR("inode %" B_PRIdINO ": ReadAt failed(pos %" B_PRIdOFF 219 ", length %lu)\n", ID(), pos, length); 223 if (pos > [all...] |
/haiku/src/kits/package/ |
H A D | PackageInfoParser.h | 123 const char* pos; member in struct:BPackageKit::BPackageInfo::Parser::ParseError 126 : message(_message), pos(_pos) 135 const char* pos; member in struct:BPackageKit::BPackageInfo::Parser::Token 141 pos(_pos) 146 this->text.SetTo(pos, length); 167 virtual void Validate(const BString &string, const char *pos) = 0; 174 virtual void Validate(const BString &string, const char* pos);
|
H A D | PackageInfoParser.cpp | 51 int32 offset = error.pos - packageInfoString.String(); 67 if (error.pos[i - inLineOffset] == '\t') 95 int32 offset = error.pos - versionString.String(); 120 int32 offset = error.pos - expressionString.String(); 145 int32 offset = error.pos - expressionString.String(); 313 fPos = token.pos; 322 throw ParseError("expected string", string.pos); 326 *_tokenPos = string.pos; 350 throw ParseError(error, arch.pos); 368 throw ParseError("expected string (a version)", word.pos); 1204 Validate(const BString& urlString, const char* pos) argument [all...] |
/haiku/src/system/kernel/fs/ |
H A D | vfs.cpp | 357 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 6864 attr_read(struct file_descriptor* descriptor, off_t pos, void* buffer, size_t* length) argument 6880 attr_write(struct file_descriptor* descriptor, off_t pos, const void* buffer, size_t* length) argument 6896 attr_seek(struct file_descriptor* descriptor, off_t pos, int seekType) argument 8052 fs_read_attr(int fd, const char *attribute, uint32 type, off_t pos, void *buffer, size_t readBytes) argument 9718 _user_read_attr(int fd, const char* userAttribute, off_t pos, void* userBuffer, size_t readBytes) argument 9743 _user_write_attr(int fd, const char* userAttribute, uint32 type, off_t pos, const void* buffer, size_t writeBytes) argument [all...] |
H A D | fd.cpp | 64 ", pos = %" B_PRId64 "\n", 67 descriptor->cookie, descriptor->open_mode, descriptor->pos); 87 descriptor->pos = -1; 685 common_user_io(int fd, off_t pos, void* buffer, size_t length, bool write) argument 687 if (pos < -1) 700 if (pos == -1 && descriptor->pos != -1) { 701 pos = descriptor->pos; 719 status = descriptor->ops->fd_write(descriptor.Get(), pos, buffe 736 common_user_vector_io(int fd, off_t pos, const iovec* userVecs, size_t count, bool write) argument 824 _user_read(int fd, off_t pos, void* buffer, size_t length) argument 831 _user_readv(int fd, off_t pos, const iovec* userVecs, size_t count) argument 838 _user_write(int fd, off_t pos, const void* buffer, size_t length) argument 845 _user_writev(int fd, off_t pos, const iovec* userVecs, size_t count) argument 852 _user_seek(int fd, off_t pos, int seekType) argument 990 _kern_read(int fd, off_t pos, void* buffer, size_t length) argument 1030 _kern_readv(int fd, off_t pos, const iovec* vecs, size_t count) argument 1082 _kern_write(int fd, off_t pos, const void* buffer, size_t length) argument 1122 _kern_writev(int fd, off_t pos, const iovec* vecs, size_t count) argument 1174 _kern_seek(int fd, off_t pos, int seekType) argument [all...] |
/haiku/src/apps/terminal/ |
H A D | TermViewStates.cpp | 820 TermPos pos = fView->_ConvertToTerminal(where); local 824 if (!textBuffer->FindWord(pos, &fURLCharClassifier, false, _start, _end)) 842 if (!textBuffer->FindWord(pos, fView->fCharClassifier, false, _start, _end)) 850 if (textBuffer->FindWord(pos, &fPathComponentCharClassifier, false, 854 // That means pos points to a '/'. We simply use the previous 856 _end = pos; 914 if (_start >= pos) 931 if (_end <= pos)
|
/haiku/src/kits/interface/ |
H A D | HaikuControlLook.cpp | 1552 float pos = startPos; local 1554 view->AddLine(BPoint(pos, rect.top), 1555 BPoint(pos, rect.top + 4), darkColor); 1556 view->AddLine(BPoint(pos + 1, rect.top), 1557 BPoint(pos + 1, rect.top + 4), lightColor); 1559 pos += factor; 1562 float pos = startPos; local 1564 view->AddLine(BPoint(rect.left, pos), 1565 BPoint(rect.left + 4, pos), darkColor); 1566 view->AddLine(BPoint(rect.left, pos 1580 float pos = startPos; local 1590 float pos = startPos; local [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/ |
H A D | if_iwm.c | 6183 uint8_t pos = IWM_PHY_VHT_CTRL_POS_1_BELOW; local 6187 pos = IWM_PHY_VHT_CTRL_POS_2_BELOW; 6190 pos = IWM_PHY_VHT_CTRL_POS_1_BELOW; 6193 pos = IWM_PHY_VHT_CTRL_POS_1_ABOVE; 6196 pos = IWM_PHY_VHT_CTRL_POS_2_ABOVE; 6202 return pos; 7651 uint8_t *frm, *pos; local 7690 pos = frm; 7694 remain -= frm - pos; 7705 preq->band_data[0].len = htole16(frm - pos); [all...] |
/haiku/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/ |
H A D | if_iwx.c | 5569 uint8_t pos = IWX_PHY_VHT_CTRL_POS_1_BELOW; local 5573 pos = IWX_PHY_VHT_CTRL_POS_2_BELOW; 5576 pos = IWX_PHY_VHT_CTRL_POS_1_BELOW; 5579 pos = IWX_PHY_VHT_CTRL_POS_1_ABOVE; 5582 pos = IWX_PHY_VHT_CTRL_POS_2_ABOVE; 5588 return pos; 6893 uint8_t *frm, *pos; local 6931 pos = frm; 6935 remain -= frm - pos; 6946 preq->band_data[0].len = htole16(frm - pos); [all...] |
/haiku/src/add-ons/kernel/drivers/disk/nvme/ |
H A D | nvme_disk.cpp | 798 nvme_disk_read(void* cookie, off_t pos, void* buffer, size_t* length) argument 804 if (pos >= ns_end) 806 if ((pos + (off_t)*length) > ns_end) 807 *length = ns_end - pos; 810 status_t status = request.Init(pos, (addr_t)buffer, *length, false, 0); 821 nvme_disk_write(void* cookie, off_t pos, const void* buffer, size_t* length) argument 827 if (pos >= ns_end) 829 if ((pos + (off_t)*length) > ns_end) 830 *length = ns_end - pos; 833 status_t status = request.Init(pos, (addr_ [all...] |