Home
last modified time | relevance | path

Searched refs:vecCount (Results 1 – 25 of 42) sorted by relevance

12

/haiku/headers/private/kernel/util/
H A Diovec_support.h49 get_iovecs_from_user(const iovec* userVecs, size_t vecCount, iovec* vecs,
52 if (vecCount == 0)
58 if (user_memcpy(vecs, userVecs, sizeof(iovec) * vecCount) != B_OK)
62 for (size_t i = 0; i < vecCount; i++) {
/haiku/src/tests/system/kernel/cache/
H A Dpages_io_test.cpp46 status_t Add(file_io_vec *vecs, size_t vecCount, off_t &lastOffset);
106 file_map::Add(file_io_vec *vecs, size_t vecCount, off_t &lastOffset) in Add() argument
108 TRACE(("file_map::Add(vecCount = %ld)\n", vecCount)); in Add()
112 if (vecCount <= CACHED_FILE_EXTENTS && count == 0) { in Add()
119 (count + vecCount) * sizeof(file_extent)); in Add()
132 count += vecCount; in Add()
134 for (uint32 i = 0; i < vecCount; i++) { in Add()
359 size_t vecCount = maxVecs; in get_file_map() local
363 status = vfs_get_file_map(ref->vnode, mapOffset, ~0UL, vecs, &vecCount); in get_file_map()
369 status_t addStatus = ref->map.Add(vecs, vecCount, mapOffset); in get_file_map()
[all …]
/haiku/src/add-ons/kernel/network/protocols/unix/
H A DUnixDatagramEndpoint.h35 ssize_t Send(const iovec* vecs, size_t vecCount,
39 ssize_t Receive(const iovec* vecs, size_t vecCount,
H A DUnixEndpoint.h56 virtual ssize_t Send(const iovec* vecs, size_t vecCount,
60 virtual ssize_t Receive(const iovec* vecs, size_t vecCount,
H A DUnixStreamEndpoint.h51 ssize_t Send(const iovec* vecs, size_t vecCount,
55 ssize_t Receive(const iovec* vecs, size_t vecCount,
H A DUnixFifo.cpp386 UnixFifo::Read(const iovec* vecs, size_t vecCount, in Read() argument
391 find_thread(NULL), this, vecs, vecCount, timeout); in Read()
396 UnixRequest request(vecs, vecCount, NULL, address); in Read()
432 UnixFifo::Write(const iovec* vecs, size_t vecCount, in Write() argument
437 ")\n", find_thread(NULL), this, vecs, vecCount, ancillaryData, in Write()
446 UnixRequest request(vecs, vecCount, ancillaryData, in Write()
H A DUnixFifo.h135 ssize_t Read(const iovec* vecs, size_t vecCount,
138 ssize_t Write(const iovec* vecs, size_t vecCount,
H A DUnixStreamEndpoint.cpp380 UnixStreamEndpoint::Send(const iovec* vecs, size_t vecCount, in Send() argument
385 find_thread(NULL), this, vecs, vecCount, ancillaryData); in Send()
420 ssize_t result = peerFifo->Write(vecs, vecCount, ancillaryData, NULL, timeout); in Send()
474 UnixStreamEndpoint::Receive(const iovec* vecs, size_t vecCount, in Receive() argument
479 find_thread(NULL), this, vecs, vecCount); in Receive()
519 ssize_t result = fifo->Read(vecs, vecCount, _ancillaryData, NULL, timeout); in Receive()
H A Dunix.cpp423 size_t vecCount, ancillary_data_container *ancillaryData, in unix_send_data_no_buffer() argument
426 return ((UnixEndpoint*)_protocol)->Send(vecs, vecCount, ancillaryData, in unix_send_data_no_buffer()
433 size_t vecCount, ancillary_data_container **_ancillaryData, in unix_read_data_no_buffer() argument
436 return ((UnixEndpoint*)_protocol)->Receive(vecs, vecCount, _ancillaryData, in unix_read_data_no_buffer()
H A DUnixDatagramEndpoint.cpp211 UnixDatagramEndpoint::Send(const iovec* vecs, size_t vecCount, in Send() argument
281 ssize_t result = targetFifo->Write(vecs, vecCount, ancillaryData, &sourceAddress, in Send()
323 UnixDatagramEndpoint::Receive(const iovec* vecs, size_t vecCount, in Receive() argument
373 ssize_t result = fifo->Read(vecs, vecCount, _ancillaryData, &addressStorage, timeout); in Receive()
/haiku/src/system/kernel/cache/
H A Dfile_map.cpp90 status_t _Add(file_io_vec* vecs, size_t vecCount,
233 FileMap::_Add(file_io_vec* vecs, size_t vecCount, off_t& lastOffset) in _Add() argument
235 TRACE("FileMap@%p::Add(vecCount = %ld)\n", this, vecCount); in _Add()
240 status_t status = _MakeSpace(fCount + vecCount); in _Add()
250 for (uint32 i = 0; i < vecCount; i++) { in _Add()
371 size_t vecCount = kMaxVecs; in _Cache() local
372 status = vfs_get_file_map(Vnode(), mapEnd, ~0UL, vecs, &vecCount); in _Cache()
374 status = _Add(vecs, vecCount, mapEnd); in _Cache()
H A Dfile_cache.cpp389 uint32 vecCount = 0; in read_into_cache() local
402 add_to_iovec(vecs, vecCount, MAX_IO_VECS, in read_into_cache()
413 vecCount, B_PHYSICAL_IO_REQUEST, &numBytes); in read_into_cache()
505 uint32 vecCount = 0; in write_to_cache() local
530 add_to_iovec(vecs, vecCount, MAX_IO_VECS, in write_to_cache()
556 generic_addr_t last = vecs[vecCount - 1].base in write_to_cache()
557 + vecs[vecCount - 1].length - B_PAGE_SIZE; in write_to_cache()
584 for (uint32 i = 0; i < vecCount; i++) { in write_to_cache()
609 vecCount, B_PHYSICAL_IO_REQUEST, &numBytes); in write_to_cache()
/haiku/src/system/kernel/device_manager/
H A DIORequest.cpp380 uint32 vecCount = fDMABuffer->VecCount(); in Finish() local
391 for (uint32 i = 0; error == B_OK && i < vecCount; i++) { in Finish()
462 uint32 vecCount = fDMABuffer->VecCount(); in Prepare() local
489 if (vecs[vecCount - 1].length <= toSkip) { in Prepare()
490 toSkip -= vecs[vecCount - 1].length; in Prepare()
491 vecCount--; in Prepare()
499 for (; i < vecCount; i++) { in Prepare()
623 uint32 vecCount = fDMABuffer->VecCount(); in _PrepareVecs() local
625 for (uint32 i = 0; i < vecCount; i++) { in _PrepareVecs()
637 uint32 vecCount = fDMABuffer->VecCount(); in _PrepareVecs() local
[all …]
H A Ddma_resources.cpp307 int32 vecCount = buffer.VecCount(); in _CutBuffer() local
308 for (int32 i = vecCount - 1; toCut > 0 && i >= 0; i--) { in _CutBuffer()
314 vecCount--; in _CutBuffer()
332 buffer.SetVecCount(vecCount); in _CutBuffer()
360 uint32 vecCount = buffer.VecCount(); in _AddBounceBuffer() local
361 if (vecCount > 0) { in _AddBounceBuffer()
363 generic_io_vec& vec = buffer.VecAt(vecCount - 1); in _AddBounceBuffer()
385 if (vecCount == fRestrictions.max_segment_count) in _AddBounceBuffer()
392 vecCount++; in _AddBounceBuffer()
H A DIOCache.cpp532 size_t vecCount = 0; in _TransferPages() local
538 if (vecCount == 0 || pageAddress != vecsEndAddress) { in _TransferPages()
539 fVecs[vecCount].base = pageAddress; in _TransferPages()
540 fVecs[vecCount++].length = B_PAGE_SIZE; in _TransferPages()
544 fVecs[vecCount - 1].length += B_PAGE_SIZE; in _TransferPages()
552 if (vecCount > 0 && padLength != B_PAGE_SIZE) in _TransferPages()
553 fVecs[vecCount - 1].length -= padLength; in _TransferPages()
557 status_t error = request.Init(firstPageOffset, fVecs, vecCount, in _TransferPages()
/haiku/headers/private/kernel/
H A Dport.h46 size_t vecCount, size_t bufferSize, uint32 flags,
68 const iovec *msgVecs, size_t vecCount,
/haiku/headers/private/net/
H A Dnet_buffer.h103 struct iovec* iovecs, uint32 vecCount);
105 struct iovec* iovecs, uint32 vecCount);
H A Dnet_protocol.h110 size_t vecCount, ancillary_data_container* ancillaryData,
114 size_t vecCount, ancillary_data_container** _ancillaryData,
/haiku/src/system/kernel/fs/
H A Dvfs_request_io.cpp155 size_t vecCount = kMaxSubRequests; in do_iterative_fd_io_iterate() local
157 requestLength, vecs, &vecCount); in do_iterative_fd_io_iterate()
160 if (vecCount == 0) { in do_iterative_fd_io_iterate()
164 TRACE_RIO("[%ld] got %zu file vecs\n", find_thread(NULL), vecCount); in do_iterative_fd_io_iterate()
172 i < vecCount && subRequestCount < kMaxSubRequests && error == B_OK; in do_iterative_fd_io_iterate()
/haiku/src/add-ons/kernel/generic/scsi_periph/
H A Dio.cpp231 physical_entry* vecs, size_t vecCount, bool isWrite, in read_write() argument
276 request->sg_count = vecCount; in read_write()
520 uint64 offset, size_t numBlocks, physical_entry* vecs, size_t vecCount, in periph_read_write() argument
523 return read_write(device, request, NULL, offset, numBlocks, vecs, vecCount, in periph_read_write()
H A Dscsi_periph_int.h110 uint64 offset, size_t numBlocks, physical_entry* vecs, size_t vecCount,
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/
H A Dkernel_emu.cpp856 int32 requestID, void* cookie, const file_io_vec* vecs, uint32 vecCount) in do_iterative_fd_io() argument
877 if (vecCount > 0) { in do_iterative_fd_io()
878 vecCount = std::min(vecCount, (uint32)DoIterativeFDIORequest::MAX_VECS); in do_iterative_fd_io()
879 memcpy(request->vecs, vecs, sizeof(file_io_vec) * vecCount); in do_iterative_fd_io()
881 request->vecCount = vecCount; in do_iterative_fd_io()
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/
H A DVolume.cpp182 uint32 vecCount; member
186 uint32 vecCount) in IterativeFDIOCookie()
194 vecCount(vecCount) in IterativeFDIOCookie()
724 const file_io_vec* vecs, uint32 vecCount) in DoIterativeFDIO() argument
739 this, fd, requestID, clientCookie, request->Offset(), vecs, vecCount); in DoIterativeFDIO()
758 cookie->vecCount = 0; in DoIterativeFDIO()
4693 size_t vecCount = 0; in _IterativeFDIOGetVecs() local
4696 while (size > 0 && vecCount < cookie->vecCount in _IterativeFDIOGetVecs()
4697 && vecCount < *_count) { in _IterativeFDIOGetVecs()
4699 cookie->vecs[vecCount].length); in _IterativeFDIOGetVecs()
[all …]
/haiku/headers/private/drivers/
H A Dscsi_periph.h111 uint64 offset, size_t numBlocks, physical_entry* vecs, size_t vecCount,
/haiku/src/system/kernel/
H A Dport.cpp1557 size_t vecCount, size_t bufferSize, uint32 flags, bigtime_t timeout) in writev_port_etc() argument
1645 for (uint32 i = 0; i < vecCount; i++) { in writev_port_etc()
1918 size_t vecCount, size_t bufferSize, uint32 flags, bigtime_t timeout) in _user_writev_port_etc() argument
1924 if (vecCount > IOV_MAX) in _user_writev_port_etc()
1927 BStackOrHeapArray<iovec, 16> vecs(vecCount); in _user_writev_port_etc()
1931 if (userVecs != NULL && vecCount != 0) { in _user_writev_port_etc()
1932 status_t status = get_iovecs_from_user(userVecs, vecCount, vecs); in _user_writev_port_etc()
1937 status_t status = writev_port_etc(port, messageCode, vecs, vecCount, in _user_writev_port_etc()

12