Home
last modified time | relevance | path

Searched refs:iov_len (Results 1 – 25 of 52) sorted by relevance

123

/haiku/src/add-ons/kernel/busses/scsi/usb/
H A Dsg_buffer.c39 sgb->iov.iov_len = ccbio->cam_dxfer_len; in init_sg_buffer()
65 sgb->iov.iov_len = size; in realloc_sg_buffer()
83 if(offset >= sgb->piov[i].iov_len){ in sg_access_byte()
84 offset -= sgb->piov[i].iov_len; in sg_access_byte()
110 if((d_offset + size) > d_sgb->piov->iov_len){ in sg_memcpy()
112 d_sgb->piov->iov_len, d_offset + size); in sg_memcpy()
118 if((s_offset + size) > s_sgb->piov->iov_len){ in sg_memcpy()
120 s_sgb->piov->iov_len, s_offset + size); in sg_memcpy()
172 *size += sgb->piov[i].iov_len; in sg_buffer_len()
H A Dtracing.c341 sprintf(p, "%lX,", sgb->piov[i].iov_len); in usb_scsi_trace_sgb()
342 sgb_len += sgb->piov[i].iov_len; in usb_scsi_trace_sgb()
348 usb_scsi_trace_bytes(sgbPrefix, sgb_own.piov->iov_base, sgb_own.piov->iov_len); in usb_scsi_trace_sgb()
369 sprintf(p, (!i) ? "%d" : ", %d", sg[i].iov_len); in usb_scsi_trace_SG()
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dherror.c101 v->iov_len = strlen(t); in __weak_alias()
105 v->iov_len = 2; in __weak_alias()
110 v->iov_len = strlen(v->iov_base); in __weak_alias()
114 v->iov_len = 1; in __weak_alias()
/haiku/headers/private/kernel/util/
H A Diovec_support.h65 if (!is_user_address_range(vecs[i].iov_base, vecs[i].iov_len)) {
68 if (vecs[i].iov_len > SSIZE_MAX || total > (SSIZE_MAX - vecs[i].iov_len)) {
71 total += vecs[i].iov_len;
/haiku/src/add-ons/kernel/bus_managers/scsi/
H A Dvirtual_memory.cpp40 while (vec_count > 0 && vec_offset > vec->iov_len) { in get_iovec_memory_map()
41 vec_offset -= vec->iov_len; in get_iovec_memory_map()
59 range_len = std::min(vec->iov_len - vec_offset, left_len); in get_iovec_memory_map()
/haiku/src/system/libnetwork/netresolv/isc/
H A Dev_streams.c61 ret.iov_len = cnt; in evConsIovec()
222 str->ioTotal += iov[i].iov_len; in copyvec()
235 if (bytes < (size_t)str->iovCur->iov_len) { in consume()
236 str->iovCur->iov_len -= bytes; in consume()
242 bytes -= str->iovCur->iov_len; in consume()
243 str->ioDone += str->iovCur->iov_len; in consume()
/haiku/src/build/libroot/
H A Dfs_freebsd.cpp237 vecs[i].iov_len); in haiku_freebsd_readv()
244 if ((size_t)currentRead != vecs[i].iov_len) in haiku_freebsd_readv()
259 vecs[i].iov_len); in haiku_freebsd_writev()
266 if ((size_t)written != vecs[i].iov_len) in haiku_freebsd_writev()
/haiku/src/system/kernel/util/
H A Dring_buffer.cpp288 vecs[0].iov_len = buffer->in; in ring_buffer_get_vecs()
297 vecs[0].iov_len = upper; in ring_buffer_get_vecs()
299 vecs[1].iov_len = lower; in ring_buffer_get_vecs()
372 vecs[0].iov_len = upper;
374 vecs[1].iov_len = lower;
/haiku/src/tests/system/kernel/cache/
H A Dpages_io_test.cpp185 vecs[count].iov_len = length; in set_vecs()
302 i, (uint32)vecs[i].iov_base, vecs[i].iov_len); in vfs_read_pages()
315 i, (uint32)vecs[i].iov_base, vecs[i].iov_len); in vfs_write_pages()
534 if (size < vecs[i].iov_len) in pages_io()
537 size -= vecs[i].iov_len; in pages_io()
567 size_t vecLeft = vecs[i].iov_len - vecOffset; in pages_io()
582 tempVecs[tempCount].iov_len = tempVecSize; in pages_io()
/haiku/src/tools/fs_shell/
H A Duio.cpp44 systemVecs[i].iov_len = vecs[i].iov_len; in prepare_iovecs()
H A Dfd.cpp524 fssh_size_t length = vecs[i].iov_len; in _kern_readv()
536 pos += vecs[i].iov_len; in _kern_readv()
603 fssh_size_t length = vecs[i].iov_len; in _kern_writev()
615 pos += vecs[i].iov_len; in _kern_writev()
H A Dfile_cache.cpp88 vec.iov_len = bufferSize; in read_from_file()
107 vec.iov_len = bufferSize; in write_to_file()
/haiku/headers/posix/sys/
H A Duio.h14 size_t iov_len; member
/haiku/headers/private/fs_shell/
H A Dfssh_uio.h14 fssh_size_t iov_len; member
/haiku/src/bin/fwcontrol/
H A Dfwdv.c231 wbuf[vec++].iov_len = npad; in dvrecv()
246 wbuf[vec++].iov_len = DSIZE; in dvrecv()
395 wbuf[vec++].iov_len = sizeof(hdr[0]); in dvsend()
401 wbuf[vec++].iov_len = sizeof(hdr[0]); in dvsend()
403 wbuf[vec++].iov_len = DSIZE; in dvsend()
/haiku/src/add-ons/kernel/network/protocols/unix/
H A DUnixFifo.cpp40 fTotalSize += fVecs[i].iov_len; in UnixRequest()
51 && fVecs[fVecIndex].iov_len - fVecOffset <= size) { in AddBytesTransferred()
52 size -= fVecs[fVecIndex].iov_len - fVecOffset; in AddBytesTransferred()
66 && fVecOffset >= fVecs[fVecIndex].iov_len) { in GetCurrentChunk()
74 size = fVecs[fVecIndex].iov_len - fVecOffset; in GetCurrentChunk()
/haiku/src/libs/compat/freebsd_network/
H A Dusb.cpp415 xfer->frames[frindex].iov_len = len; in usbd_xfer_set_frame_data()
430 xfer->frames[frindex].iov_len = len; in usbd_xfer_set_frame_len()
546 xfer->frames[0].iov_base, xfer->frames[0].iov_len, in usbd_transfer_submit()
596 sum += xfer->frames[i].iov_len; in usbd_xfer_status()
603 length -= xfer->frames[i].iov_len; in usbd_xfer_status()
/haiku/src/add-ons/kernel/network/stack/
H A Dstack_interface.cpp115 length = message->msg_iov[0].iov_len; in stack_interface_recvmsg()
156 length = message->msg_iov[0].iov_len; in stack_interface_sendmsg()
H A Dnet_socket.cpp1153 totalLength += header->msg_iov[i].iov_len; in socket_receive()
1213 toRead = min_c(bytesReceived - bytesCopied, vec.iov_len); in socket_receive()
1335 bytesLeft += header->msg_iov[i].iov_len; in socket_send()
1354 length = header->msg_iov[vecIndex].iov_len; in socket_send()
/haiku/src/add-ons/kernel/busses/scsi/usb/freecom/
H A Dfreecom.c358 if(off < data_sg[i].iov_len) { in transfer_sg()
359 int len = min(to_xfer, (data_sg[i].iov_len - off)); in transfer_sg()
386 off -= data_sg[i].iov_len; in transfer_sg()
/haiku/src/system/kernel/fs/
H A Dvfs_request_io.cpp120 vec.iov_len = *length; in IO()
300 generic_size_t vecLength = min_c(vector.iov_len, length); in do_synchronous_iterative_vnode_io()
370 size_t vecLength = min_c(vector.iov_len, length); in synchronous_io()
/haiku/src/add-ons/kernel/bus_managers/usb/
H A DTransfer.cpp92 fVector[i].length = vector[i].iov_len; in SetVector()
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DJournal.cpp151 + vecs[index - 1].iov_len == (addr_t)address) { in add_to_iovec()
153 vecs[index - 1].iov_len += size; in add_to_iovec()
162 vecs[index].iov_len = size; in add_to_iovec()
/haiku/src/add-ons/kernel/drivers/network/ether/usb_rndis/
H A DRNDISDevice.cpp387 vec[0].iov_len = sizeof(header); in Write()
390 vec[1].iov_len = *numBytes; in Write()
/haiku/src/tests/add-ons/kernel/network/
H A Duserland_ipc.c318 iov.iov_len = args->u.transfer.datalen; in connection_runner()
329 iov.iov_len = args->u.transfer.datalen; in connection_runner()

123