Searched refs:buffers (Results 1 - 25 of 38) sorted by relevance

12

/barrelfish-master/usr/tests/dma_test/
H A Ddma_test.c33 static uint8_t *buffers[DMA_BUFFER_COUNT]; variable
39 assert(memcmp(buffers[0], buffers[1], (DMA_BUFFER_SIZE << 20)) == 0);
65 buffers[i] = b;
108 memset(buffers[0], 0x5A, (DMA_BUFFER_SIZE << 20));
109 memset(buffers[1], 0, (DMA_BUFFER_SIZE << 20));
110 assert(memcmp(buffers[0], buffers[1], (DMA_BUFFER_SIZE << 20)) != 0);
/barrelfish-master/lib/virtio/
H A Dvbuffer.h18 struct virtio_buffer *buffers; member in struct:virtio_buffer_allocator
21 uint16_t buf_count; ///< the number of buffers
30 * buffers over the VirtIO channel.
H A Dvbuffer.c21 * buffers
24 * \param nbufs number of buffers to allocate
90 void *buffers = malloc(nbufs * sizeof(struct virtio_buffer)); local
91 if (buffers == NULL) {
99 vbuf_alloc->buffers = buffers;
112 struct virtio_buffer *vbuf = buffers;
136 * \param cap capability of the buffers
138 * \param offset offset where the buffers start
140 * \param bufcount number of buffers
180 void *buffers = calloc(bufcount, sizeof(struct virtio_buffer)); local
[all...]
/barrelfish-master/lib/devif/backends/debug/
H A Ddevif_backend_debug.c32 * We keep track of the owned buffers as a list of regions which each
59 * the call will fail since some of the buffers are still in use.
75 struct memory_ele* buffers; member in struct:memory_list
97 struct memory_ele* ele = region->buffers;
119 struct memory_ele* ele = region->buffers;
154 struct memory_ele* ele = region->buffers;
197 que->regions->buffers = slab_alloc(&que->alloc);
198 assert(que->regions->buffers != NULL);
200 memset(que->regions->buffers, 0, sizeof(que->regions->buffers));
[all...]
/barrelfish-master/usr/drivers/lo/
H A Dlo_qdriver.c35 #define DRIVER_RECEIVE_BUFFERS (1024 * 8) // Number of buffers with driver
77 static errval_t lo_send_ethernet_packet_fn(struct driver_buffer *buffers, argument
83 pkt_len += buffers[idx].len;
87 LO_DEBUG("sending ethernet packet with opaque %p\n", buffers);
93 memcpy_fast((packetbuf + pkt_len), buffers[idx].va,
94 buffers[idx].len);
95 pkt_len += buffers[idx].len;
110 handle_tx_done(buffers[idx].opaque);
257 /* check if there are enough free buffers with driver,
299 static errval_t transmit_pbuf_list_fn(struct driver_buffer *buffers,
[all...]
/barrelfish-master/lib/blk/blk_ahci/
H A Ddevice_impl.c15 struct dma_mem buffers[MAX_BUFFERS]; member in struct:ahci_queue
22 return !capref_is_null(dq->buffers[slot].frame);
62 queue->buffers[i].frame = NULL_CAP;
108 dma_mem_free(&q->buffers[i]);
127 struct dma_mem* mem = &queue->buffers[(region_id % MAX_BUFFERS)];
207 queue->buffers[slot].frame = cap;
209 struct dma_mem* mem = &queue->buffers[slot];
226 struct dma_mem* mem = &queue->buffers[(region_id % MAX_BUFFERS)];
H A Dblk_ahci.h106 struct dma_mem buffers[MAX_BUFFERS]; member in struct:dev_queue
/barrelfish-master/usr/bench/dma/
H A Ddma_bench.c48 static uint8_t *buffers[2*DMA_BUFFER_COUNT]; variable
75 buffers[i] = b;
99 buffers[i+DMA_BUFFER_COUNT] = b;
172 // err = dma_bench_run_memcpy(buffers[0], buffers[DMA_BUFFER_COUNT]);
176 // err = dma_bench_run_memcpy(buffers[DMA_BUFFER_COUNT], buffers[0]);
180 //err = dma_bench_run_memcpy(buffers[0], buffers[1]);
/barrelfish-master/lib/virtio/guest/
H A Dchannel_flounder.c98 uint8_t buffers = virtio_virtqueue_has_buffers(vq); local
102 err = virtio_binding->rpc_tx_vtbl.add(virtio_binding, id, ndesc, buffers, frame, &msg_err);
/barrelfish-master/lib/bulk_transfer/
H A Dbulk_pool.c381 buf = pool->buffers[i];
499 struct bulk_buffer *buf = pool->buffers[i];
551 struct bulk_buffer *buf = pool->buffers[i];
578 * initializes the buffers for a pool given the struct pool is allocated and
587 /* allocate memory for buffers */
595 pool->buffers = malloc(buffer_count * sizeof(void *));
596 if (!pool->buffers) {
604 pool->buffers[i] = bufs + i;
614 * @param buffer_count the number of buffers in the pool
656 * @param buffer_count the number of buffers i
[all...]
H A Dbulk_allocator.c29 * @param buffer_count the number of buffers to allocate
85 * in the trusted case, we copy the pool_cap into all buffers and map
97 struct bulk_buffer *buf = alloc->pool->buffers[i];
111 * buffers as possible of size buffer_size that fit into the capability.
143 buf = alloc->pool->buffers[4];
260 /* only read_write i.e. owned buffers can be added back */
265 /* the buffers can only be added to the allocator */
/barrelfish-master/usr/drivers/rtl8029/
H A Drtl8029.c56 /// This buffers the card's MAC address upon card reset
157 * \param buffers Descriptors for buffer chain
158 * \param count Number of buffers in chain
161 static inline void write_page(uint8_t page, struct driver_buffer *buffers, argument
178 uint8_t *src = buffers[idx].va;
179 pbuf_len = buffers[idx].len;
246 static errval_t rtl8029_send_ethernet_packet_fn(struct driver_buffer *buffers, argument
252 pkt_len += buffers[idx].len;
259 write_page(WRITE_PAGE, buffers, count, pkt_len);
280 handle_tx_done(buffers[id
[all...]
/barrelfish-master/usr/net_socket_server/
H A Dnet_sockets_server.c55 void *buffers[NO_OF_BUFFERS]; member in struct:network_connection
143 void *buffer = nc->buffers[nc->next_free];
152 nc->buffers[nc->next_free] = NULL;
193 void *buffer = nc->buffers[nc->next_free];
232 nc->buffers[nc->next_free] = NULL;
262 void *buffer = nc->buffers[nc->next_free];
270 nc->buffers[nc->next_free] = NULL;
283 // void *buffer = nc->buffers[nc->next_free];
293 // nc->buffers[nc->next_free] = NULL;
371 void *buffer = nc->buffers[n
[all...]
H A Dlib_netss.c57 void *buffers[NO_OF_BUFFERS]; member in struct:network_connection
149 void *buffer = nc->buffers[nc->next_free];
158 nc->buffers[nc->next_free] = NULL;
197 void *buffer = nc->buffers[nc->next_free];
233 nc->buffers[nc->next_free] = NULL;
261 void *buffer = nc->buffers[nc->next_free];
269 nc->buffers[nc->next_free] = NULL;
339 void *buffer = nc->buffers[nc->next_free];
348 nc->buffers[nc->next_free] = NULL;
649 nc->buffers[n
[all...]
/barrelfish-master/lib/net_sockets/
H A Dnet_sockets.c40 void *buffers[NO_OF_BUFFERS]; variable
166 // DEBUG_NETSOCK_to_log("%s(%d): %ld:%p %ld:%p", __func__, socket->descriptor, next_free, buffers[next_free], next_used, buffers[next_used]);
219 void *buffer = buffers[next_free];
221 // DEBUG_NETSOCK_to_log("%s: %ld:%p %ld:%p", __func__, next_free, buffers[next_free], next_used, buffers[next_used]);
228 buffers[next_free] = NULL;
230 // DEBUG_NETSOCK("%s: %p:%zd %ld:%p %ld:%p %p\n", __func__, buffer + sizeof(struct net_buffer), size, next_free, buffers[next_free], next_used, buffers[next_used], __builtin_return_address(0));
236 assert(!buffers[next_use
[all...]
/barrelfish-master/doc/026-device-queues/
H A Ddevif.tex103 \item \textbf{Region}: A Region is a chunk of memory that is registered to the \devif interface. From the memory of the region, buffers can be allocated.
113 should be transferring ownership of buffers between two endpoints of a queue.
115 register region of memory. We exclude managing the buffers themselves i.e. allocating
116 and deallocating buffers to keep the interface and the underlying protocol simple.
117 If we manage the variable sized buffers, we would have to implement a dynamic memory
162 buffers from the just registered region can be enqueued and the ownership
240 Enqueues a buffer of a region for ownership transfer. The buffers offset into the memory region
246 the buffers length.
254 will result in undefined behaviour. Multiple buffers can be chained by using
255 the argument \texttt{misc\_flags}. When chaining multiple buffers, th
[all...]
/barrelfish-master/include/net_queue_manager/
H A Dnet_queue_manager.h59 // State required in TX path to remember information about buffers
162 uint64_t in_dropped_app_buf_full; // # packets dropped for lack of buffers
177 struct driver_buffer *buffers,
201 * @param handle_free_tx_slots_ptr Callback to remove transmitted buffers from
/barrelfish-master/lib/bulk_transfer/backends/local/
H A Dcontrol_channel.c477 struct bulk_buffer *buf = pool->buffers[bufid];
558 struct bulk_buffer *buf = pool->buffers[bufid];
639 struct bulk_buffer *buf = pool->buffers[bufid];
709 struct bulk_buffer *buf = pool->buffers[bufid];
/barrelfish-master/usr/vmkitmon/
H A Dpci_vmkitmon_eth.c112 static errval_t transmit_pbuf_list_fn(struct driver_buffer *buffers, size_t size) { argument
126 struct driver_buffer *buffer = &buffers[i];
/barrelfish-master/usr/eclipseclp/documents/internal/kernel/
H A Dio.tex38 \item buffers and associated bookkeeping data
52 \item[string] in-memory buffers similar to files
53 \item[queue] in-memory buffers with a read and a write end, similar to pipes
63 when full. For the in-memory streams (string, queue) the buffers expand
/barrelfish-master/lib/bulk_transfer/backends/sm/
H A Dbuffers.c352 buffer = pool->buffers[bufferid];
465 buffer = pool->buffers[bufferid];
580 buffer = pool->buffers[bufferid];
690 buffer = pool->buffers[bufferid];
/barrelfish-master/include/bulk_transfer/
H A Dbulk_transfer.h202 /** the other endpoint ran out of buffers and requests more buffers */
286 * equally sized buffers.
299 /** the maximum number of buffers in this pool */
301 /** array of the buffers for this pool (pre allocated) */
302 struct bulk_buffer **buffers; member in struct:bulk_pool
323 /** index of this buffer within the pool's array of buffers */
353 /** Size of metadata to be passed along with transfers and passed buffers. */
/barrelfish-master/doc/015-disk-driver-arch/
H A Dlibahci.tex27 need a mechanism to manage data buffers that are mapped non-cached. Because
29 manage these buffers ourselves and have therefore implemented our own memory
35 \lstinline+ahci_dma_region_alloc_aligned+ allocate buffers of the given size
/barrelfish-master/doc/011-idc/
H A DIDC.tex324 --msgbuf-header Create a header file for message buffers
325 --msgbuf-stub Create a stub file for message buffers
945 is necessary to avoid over-running the receiver's buffers, and to ensure
986 multiple such endpoint buffers.
1018 the endpoint capability and appropriate buffers, then invoking
1050 buffer (Figure~\ref{fig:ump}), with each entry in the buffers being the size of
1075 channel buffers, then sending a cap to the buffer along with a bind request
1099 \section{Message buffers}
/barrelfish-master/usr/eclipseclp/documents/megalog/
H A Dkernel-lst.tex132 \item[statistics_relation(+RelationName)]{Print information on the pages of {\it RelationName} that are currently in the page buffers.}

Completed in 166 milliseconds

12