/haiku-fatelf/src/bin/bfs_tools/lib/ |
H A D | Inode.cpp | 657 DataStream::FindBlockRun(off_t pos) argument 661 if (pos > fInode->data.size) 672 if (fCurrent >= 0 && pos >= fRunFileOffset && pos < fRunBlockEnd) 678 && pos >= fInode->data.max_direct_range) { 680 && pos >= fInode->data.max_indirect_range) { 688 off_t start = pos - fInode->data.max_indirect_range; 713 if (fLevel != 1 || pos < fRunFileOffset) { 725 if (fRunBlockEnd > pos) 737 if (fRunFileOffset > pos) { 763 ReadAt(off_t pos, void *buffer, size_t size) argument 811 WriteAt(off_t pos, const void *buffer, size_t size) argument [all...] |
H A D | Inode.h | 108 status_t FindBlockRun(off_t pos); 110 virtual ssize_t ReadAt(off_t pos, void *buffer, size_t size); 111 virtual ssize_t WriteAt(off_t pos, const void *buffer, size_t size);
|
H A D | Disk.cpp | 718 Disk::ReadAt(off_t pos, void *buffer, size_t size) argument 720 return fBufferedFile->ReadAt(pos + fRawDiskOffset, buffer, size); 725 Disk::WriteAt(off_t pos, const void *buffer, size_t size) argument 727 return fBufferedFile->WriteAt(pos + fRawDiskOffset, buffer, size);
|
H A D | Disk.h | 78 virtual ssize_t ReadAt(off_t pos, void *buffer, size_t size); 79 virtual ssize_t WriteAt(off_t pos, const void *buffer, size_t size);
|
/haiku-fatelf/src/system/kernel/fs/ |
H A D | vfs.cpp | 272 static status_t file_read(struct file_descriptor* descriptor, off_t pos, 274 static status_t file_write(struct file_descriptor* descriptor, off_t pos, 276 static off_t file_seek(struct file_descriptor* descriptor, off_t pos, 298 static status_t attr_read(struct file_descriptor* descriptor, off_t pos, 300 static status_t attr_write(struct file_descriptor* descriptor, off_t pos, 302 static off_t attr_seek(struct file_descriptor* descriptor, off_t pos, 547 PagesIOTraceEntry(struct vnode* vnode, void* cookie, off_t pos, argument 555 fPos(pos), 569 "pos: %lld, size: %llu, vecs: {", mode, fVnode, fMountID, fNodeID, 601 ReadPages(struct vnode* vnode, void* cookie, off_t pos, argument 620 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 4510 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 4538 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 5506 file_read(struct file_descriptor* descriptor, off_t pos, void* buffer, size_t* length) argument 5521 file_write(struct file_descriptor* descriptor, off_t pos, const void* buffer, size_t* length) argument 5537 file_seek(struct file_descriptor* descriptor, off_t pos, int seekType) argument 6606 attr_read(struct file_descriptor* descriptor, off_t pos, void* buffer, size_t* length) argument 6622 attr_write(struct file_descriptor* descriptor, off_t pos, const void* buffer, size_t* length) argument 6636 attr_seek(struct file_descriptor* descriptor, off_t pos, int seekType) argument 7797 fs_read_attr(int fd, const char *attribute, uint32 type, off_t pos, void *buffer, size_t readBytes) argument 9410 _user_read_attr(int fd, const char* attribute, off_t pos, void* userBuffer, size_t readBytes) argument 9425 _user_write_attr(int fd, const char* attribute, uint32 type, off_t pos, const void* buffer, size_t writeBytes) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/bus_managers/ps2/ |
H A D | ps2_alps.cpp | 557 alps_read(void* cookie, off_t pos, void* buffer, size_t* _length) argument 565 alps_write(void* cookie, off_t pos, const void* buffer, size_t* _length) argument
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/ipro100/dev/fxp/ |
H A D | if_fxp.c | 223 struct mbuf *m, uint16_t status, int pos); 1784 uint16_t status, int pos) 1845 csum = be16dec(mtod(m, char *) + pos); 1783 fxp_rxcsum(struct fxp_softc *sc, struct ifnet *ifp, struct mbuf *m, uint16_t status, int pos) argument
|
/haiku-fatelf/src/system/kernel/vm/ |
H A D | VMAnonymousCache.cpp | 611 off_t pos = (off_t)(startSlotIndex - swapFile->first_slot) local 614 status_t status = vfs_read_pages(swapFile->vnode, swapFile->cookie, pos, 676 off_t pos = (off_t)(slotIndex - swapFile->first_slot) * B_PAGE_SIZE; local 684 pos, vector, 1, flags, &length); 763 off_t pos = (off_t)(slotIndex - swapFile->first_slot) * B_PAGE_SIZE; local 765 return vfs_asynchronous_write_pages(swapFile->vnode, swapFile->cookie, pos,
|
/haiku-fatelf/src/add-ons/kernel/drivers/network/dec21xxx/dev/dc/ |
H A D | if_dc.c | 2816 int i, pos; local 2818 pos = sc->dc_cdata.dc_rx_prod; 2821 cur_rx = &sc->dc_ldata.dc_rx_list[pos]; 2824 DC_INC(pos, DC_RX_LIST_CNT); 2832 sc->dc_cdata.dc_rx_prod = pos;
|
/haiku-fatelf/src/kits/interface/ |
H A D | ColumnListView.cpp | 3159 LatchType pos = B_NO_LATCH; local 3161 pos = row->fIsExpanded ? B_OPEN_LATCH : B_CLOSED_LATCH; 3165 fMasterView->DrawLatch(fDrawBufferView, latchRect, pos, row); 3332 BPoint pos; local 3334 GetMouse(&pos, &buttons); 3335 if (fLatchRect.Contains(pos)) { 3344 LatchType pos = B_NO_LATCH; local 3346 pos = row->fIsExpanded ? B_OPEN_LATCH 3353 destRect.bottom), pos, row);
|
H A D | PicturePlayer.cpp | 169 size_t pos = 0; local 174 while ((pos + 6) <= fSize) { 177 pos += 6; 180 if (pos + size > fSize) 543 pos += size;
|
/haiku-fatelf/src/apps/terminal/ |
H A D | TermView.cpp | 748 TermView::_ConvertFromTerminal(const TermPos &pos) argument 750 return BPoint(fFontWidth * pos.x, _LineOffset(pos.y)); 2858 TermView::_ExtendSelection(TermPos pos, bool inclusive, argument 2873 if (pos >= start && pos >= end) 2874 pos.x++; 2877 if (pos < start) 2878 _Select(pos, end, false, !useInitialSelection); 2879 else if (pos > en 2915 TermPos pos = _ConvertToTerminal(where); local [all...] |
/haiku-fatelf/src/kits/translation/ |
H A D | BitmapStream.cpp | 66 BBitmapStream::ReadAt(off_t pos, void* buffer, size_t size) argument 72 if (pos >= (off_t)fSize || pos < 0 || buffer == NULL) 78 if (pos < (off_t)sizeof(TranslatorBitmap)) { 79 toRead = sizeof(TranslatorBitmap) - pos; 80 source = (reinterpret_cast<uint8 *>(fBigEndianHeader)) + pos; 82 toRead = fSize - pos; 83 source = (reinterpret_cast<uint8 *>(fBitmap->Bits())) + pos - 96 BBitmapStream::WriteAt(off_t pos, const void* data, size_t size) argument 100 if (!data || pos < [all...] |
/haiku-fatelf/src/servers/cddb_daemon/ |
H A D | cddb_server.cpp | 259 int32 pos = line.FindFirst(" / " ); local 260 if (pos != B_ERROR) { 263 line.MoveInto(artist, 0, pos); 293 int32 pos = cddbServer.FindFirst(":"); local 294 if (pos == B_ERROR) { 304 newCddbServer.MoveInto(portString, pos + 1, 305 newCddbServer.CountChars() - pos + 1);
|
/haiku-fatelf/src/add-ons/accelerants/intel_extreme/ |
H A D | overlay.cpp | 135 int32 pos; local 137 pos = i + j * 32; 138 sum += rawCoefficients[pos]; 141 pos = i + j * 32; 142 coefficients[i][j] = rawCoefficients[pos] / sum; 147 pos = j + i * taps; 151 splitCoefficients[pos]); 173 pos = tap2Fix + i * taps; 177 splitCoefficients[pos]); 677 int32 pos local [all...] |
/haiku-fatelf/src/apps/cdplayer/ |
H A D | CDDBSupport.cpp | 1118 int32 pos; local 1120 pos = data.FindFirst("DYEAR="); 1121 if (pos > 0) { 1124 + pos); 1133 pos = data.FindFirst("DTITLE="); 1134 if (pos > 0) { 1137 + pos); 1139 pos = artist.FindFirst(" / "); 1140 if (pos > 0) 1141 artist.Truncate(pos); [all...] |
/haiku-fatelf/src/apps/bsnow/ |
H A D | SnowView.cpp | 285 if (!ur.Contains(BRect(fFlakes[cw][i].pos-BPoint(4,4), fFlakes[cw][i].pos+BPoint(4,4)))) 290 //FillRect(BRect(fFlakes[cw][i].pos-BPoint(PAT_HOTSPOT),fFlakes[cw][i].pos-BPoint(PAT_HOTSPOT)+BPoint(7,7)), gFlakePatterns[pat]); 292 StrokeLine(fFlakes[cw][i].pos+BPoint(-1,-1), 293 fFlakes[cw][i].pos+BPoint(1,1)); 294 StrokeLine(fFlakes[cw][i].pos+BPoint(-1,1), 295 fFlakes[cw][i].pos+BPoint(1,-1)); 297 DrawBitmap(fFlakeBitmaps[pat], fFlakes[cw][i].pos-BPoint(PAT_HOTSPOT)); 340 fFlakes[cw][i].pos [all...] |
/haiku-fatelf/src/preferences/shortcuts/ |
H A D | ShortcutsSpec.cpp | 57 // Returns the (pos)'th char in the string, or '\0' if (pos) if off the end of 60 GetLetterAt(const char* str, int pos) argument 62 for (int i = 0; i < pos; i++) { 66 return str[pos];
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/bfs/r5/ |
H A D | Inode.cpp | 716 Inode::ReadAttribute(const char *name, int32 type, off_t pos, uint8 *buffer, size_t *_length) argument 718 if (pos < 0) 719 pos = 0; 728 if (pos >= smallData->data_size) { 732 if (length + pos > smallData->DataSize()) 733 length = smallData->DataSize() - pos; 735 memcpy(buffer, smallData->Data() + pos, length); 746 status = attribute->ReadAt(pos, (uint8 *)buffer, _length); 764 Inode::WriteAttribute(Transaction *transaction, const char *name, int32 type, off_t pos, argument 817 status = attribute->WriteAt(transaction, pos, buffe 1040 FindBlockRun(off_t pos, block_run &run, off_t &offset) argument 1049 ReadAt(off_t pos, uint8 *buffer, size_t *_length) argument 1064 WriteAt(Transaction *transaction, off_t pos, const uint8 *buffer, size_t *_length) argument 1091 FillGapWithZeros(off_t pos, off_t newSize) argument [all...] |
H A D | BlockAllocator.cpp | 1061 uint32 pos = run.Start() % bitsPerBlock; 1068 for (; block < fBlocksPerGroup && length < run.Length(); block++, pos = 0) { 1072 if (pos >= cached.NumBlockBits()) { 1077 while (length < run.Length() && pos < cached.NumBlockBits()) { 1078 if (cached.IsUsed(pos) != allocated) { 1080 PRINT(("%s: block_run(%ld, %u, %u) is only partially allocated (pos = %ld, length = %ld)!\n", 1081 type, run.AllocationGroup(), run.Start(), run.Length(), pos, length)); 1085 firstMissing = firstGroupBlock + pos + block * bitsPerBlock; 1092 firstGroupBlock + pos + block * bitsPerBlock - 1, allocated ? "not " : "")); 1099 uint32 offset = pos [all...] |
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/bfs/fragmenter/ |
H A D | fragmenter.cpp | 61 read_from(int fd, off_t pos, void *buffer, size_t size)
argument 63 if (lseek(fd, pos, SEEK_SET) < 0
66 size, pos);
73 write_to(int fd, off_t pos, const void *buffer, size_t size)
argument 75 if (lseek(fd, pos, SEEK_SET) < 0
78 size, pos);
|
/haiku-fatelf/src/add-ons/kernel/drivers/graphics/nvidia/ |
H A D | driver.c | 69 static status_t read_hook(void* dev, off_t pos, void* buf, size_t* len); 70 static status_t write_hook(void* dev, off_t pos, const void* buf, size_t* len); 1082 read_hook(void* dev, off_t pos, void* buf, size_t* len) argument 1090 write_hook(void* dev, off_t pos, const void* buf, size_t* len) argument
|
/haiku-fatelf/src/apps/mail/ |
H A D | MailWindow.cpp | 797 float pos = scroll->Value(); local 801 node.WriteAttr(name, B_FLOAT_TYPE, 0, &pos, sizeof(pos)); 805 if (node.ReadAttr(name, B_FLOAT_TYPE, 0, &pos, sizeof(pos)) == sizeof(pos)) { 807 scroll->SetValue(pos); 1797 TMailWindow::Zoom(BPoint /*pos*/, float /*x*/, float /*y*/) 2582 int32 pos = min_c(sizeof(fileName) - strlen(appendix), local 2584 sprintf(fileName + pos, " [all...] |
/haiku-fatelf/src/apps/pairs/ |
H A D | PairsView.cpp | 253 PairsView::GetIconFromPos(int pos) argument 255 return fRandPos[pos];
|
/haiku-fatelf/src/kits/tracker/ |
H A D | FSUtils.cpp | 2040 uint32 pos = sprintf(buffer, local 2042 strftime(buffer + pos, length - pos,"%b %d %Y, %I:%M:%S %p)", &timeData);
|