Searched refs:mem (Results 1 - 25 of 162) sorted by relevance

1234567

/barrelfish-master/include/vm/
H A Duma_dbg.h41 int trash_ctor(void *mem, int size, void *arg, int flags);
42 void trash_dtor(void *mem, int size, void *arg);
43 int trash_init(void *mem, int size, int flags);
44 void trash_fini(void *mem, int size);
47 int mtrash_ctor(void *mem, int size, void *arg, int flags);
48 void mtrash_dtor(void *mem, int size, void *arg);
49 int mtrash_init(void *mem, int size, int flags);
50 void mtrash_fini(void *mem, int size);
H A Duma_dbg.c65 trash_ctor(void *mem, int size, void *arg, int flags) argument
71 if (is_memguard_addr(mem))
77 for (p = mem; cnt > 0; cnt--, p++)
81 mem, size, *p, p);
84 mem, size, *p, p);
98 trash_dtor(void *mem, int size, void *arg) argument
104 if (is_memguard_addr(mem))
110 for (p = mem; cnt > 0; cnt--, p++)
121 trash_init(void *mem, int size, int flags) argument
123 trash_dtor(mem, siz
134 trash_fini(void *mem, int size) argument
140 mtrash_ctor(void *mem, int size, void *arg, int flags) argument
173 mtrash_dtor(void *mem, int size, void *arg) argument
197 mtrash_init(void *mem, int size, int flags) argument
222 mtrash_fini(void *mem, int size) argument
[all...]
/barrelfish-master/include/arch/x86/barrelfish/
H A Dbulk_transfer_arch.h18 /* FIXME: is mem physical address or virtual address?
20 static inline void bulk_arch_prepare_send(void *mem, size_t size) argument
25 static inline void bulk_arch_prepare_recv(void *mem, size_t size) argument
/barrelfish-master/include/arch/aarch64/barrelfish/
H A Dbulk_transfer_arch.h18 static inline void bulk_arch_prepare_send(void *mem, size_t size) argument
23 static inline void bulk_arch_prepare_recv(void *mem, size_t size) argument
/barrelfish-master/include/arch/arm/barrelfish/
H A Dbulk_transfer_arch.h18 static inline void bulk_arch_prepare_send(void *mem, size_t size) argument
23 static inline void bulk_arch_prepare_recv(void *mem, size_t size) argument
/barrelfish-master/lib/blk/dma_mem/
H A Ddma_mem.c14 errval_t dma_mem_from_capref(struct capref frame, struct dma_mem *mem) argument
17 if (mem == NULL) {
28 mem->paddr = id.base;
29 mem->bytes = id.bytes;
30 mem->requested = id.bytes;
31 mem->frame = frame;
34 err = vspace_map_one_frame_attr(&addr, mem->bytes, mem->frame, VREGION_FLAGS_READ_WRITE,
37 dma_mem_free(mem);
41 mem
56 dma_mem_alloc(size_t bytes, struct dma_mem *mem) argument
99 dma_mem_free(struct dma_mem *mem) argument
[all...]
H A Ddma_mem.h29 * \param mem returns the mapping information
34 errval_t dma_mem_alloc(size_t bytes, struct dma_mem *mem);
44 errval_t dma_mem_from_capref(struct capref frame, struct dma_mem *mem);
52 errval_t dma_mem_free(struct dma_mem *mem);
/barrelfish-master/lib/dma/
H A Ddma_mem_utils.c26 * \param mem returns the mapping information
34 struct dmem *mem)
39 if (mem == NULL) {
44 err = driverkit_iommu_mmap_cl(cl, bytes, flags, mem);
51 err = frame_alloc(&mem->mem, bytes, &mem->size);
58 err = frame_identify(mem->mem, &id);
60 dma_mem_free(mem);
31 dma_mem_alloc(size_t bytes, vregion_flags_t flags, struct iommu_client *cl, struct dmem *mem) argument
89 dma_mem_free(struct dmem *mem) argument
[all...]
H A Ddma_descriptor.c63 struct dmem *mem; ///< the dma memory information member in struct:dma_descriptor
106 struct dmem *mem = calloc(1, sizeof(*mem)); local
107 if (mem == NULL) {
132 err = driverkit_hwmodel_frame_alloc(&mem->mem, ndesc * size,
138 free(mem);
143 err = dev->convert(dev->convert_arg, mem->mem, &mem
230 struct dmem *mem = desc->mem; local
[all...]
/barrelfish-master/lib/pci/
H A Dmem.c12 #include <pci/mem.h>
15 errval_t map_device(struct device_mem *mem) argument
19 if(mem->type == 1) { // IO
23 PCI_CLIENT_DEBUG("map_device: %lu\n", mem->bytes);
26 size_t cap_size = mem->bytes;
28 err = vspace_map_anon_attr(&mem->vaddr, &mem->memobj, &mem->vregion,
29 mem->bytes, NULL,
36 PCI_CLIENT_DEBUG("mem
[all...]
/barrelfish-master/lib/dma/include/
H A Ddma_mem_utils.h23 * \param mem returns the mapping information
31 struct dmem *mem);
39 errval_t dma_mem_free(struct dmem *mem);
/barrelfish-master/lib/lwip2/src/core/
H A Dmem.c57 #include "lwip/mem.h"
84 mem_trim(void *mem, mem_size_t size) argument
87 return mem;
247 LWIP_ASSERT("MEM_USE_POOLS: mem overflow detected", data == 0xcd);
264 struct mem { struct
281 #define SIZEOF_STRUCT_MEM LWIP_MEM_ALIGN_SIZE(sizeof(struct mem))
289 /** the heap. we need one struct mem at the end and some room for alignment */
297 static struct mem *ram_end;
299 static struct mem *lfree;
335 * one empty struct mem pointin
344 plug_holes(struct mem *mem) argument
384 struct mem *mem; local
421 struct mem *mem; local
482 struct mem *mem, *mem2; local
606 struct mem *mem, *mem2; local
[all...]
/barrelfish-master/lib/lwip/src/core/
H A Dmem.c61 #include "lwip/mem.h"
156 struct mem { struct
173 #define SIZEOF_STRUCT_MEM LWIP_MEM_ALIGN_SIZE(sizeof(struct mem))
176 /** the heap. we need one struct mem at the end and some room for alignment */
187 static struct mem *ram_end;
190 static struct mem *lfree;
224 * one empty struct mem pointing to another empty struct mem.
226 * @param mem this points to a struct mem whic
232 plug_holes(struct mem *mem) argument
273 struct mem *mem; local
312 struct mem *mem; local
385 struct mem *mem, *mem2; local
511 struct mem *mem, *mem2; local
[all...]
/barrelfish-master/usr/monitor/include/
H A Dconnection.h29 struct lmp_conn_state *mem = malloc(sizeof(struct lmp_conn_state)); local
30 assert(mem != NULL);
32 *con = mem;
33 *con_id = (uintptr_t)mem;
40 struct lmp_conn_state *mem = (struct lmp_conn_state*)con_id; local
41 assert(mem != NULL);
43 free(mem);
94 struct span_state *mem = malloc(sizeof(struct span_state)); local
95 assert(mem != NULL);
97 *state = mem;
105 struct span_state *mem = (struct span_state*)id; local
[all...]
/barrelfish-master/include/lwip/lwip/
H A Dmem.h62 static void *mem_realloc(void *mem, mem_size_t size) { argument
64 return mem;
83 #define mem_realloc(mem, size) (mem)
87 void *mem_realloc(void *mem, mem_size_t size);
91 void mem_free(void *mem);
/barrelfish-master/usr/pci/
H A Dht_config.h19 #include <pci/mem.h>
/barrelfish-master/include/barrelfish/
H A Dbulk_transfer.h38 void *mem; member in struct:bulk_transfer
43 void *mem; member in struct:bulk_transfer_slave
47 errval_t bulk_init(void *mem, size_t size, size_t block_size,
101 return (char *)bt->mem + id;
105 static inline errval_t bulk_slave_init(void *mem, size_t size, argument
108 bt->mem = mem;
117 void *mem = bulk_slave_buf_get_mem(bt, id, &len); local
118 assert(mem != NULL);
119 bulk_arch_prepare_send(mem, le
126 void *mem = bulk_slave_buf_get_mem(bt, id, &len); local
[all...]
/barrelfish-master/include/blk/
H A Dahci.h14 #include <pci/mem.h>
/barrelfish-master/tools/arm_gem5/
H A Dboot_gem5.sh48 --mem-type=SimpleMemory \
49 --mem-size=512MB \
/barrelfish-master/usr/drivers/usb/usb_manager/controller/ohci/
H A Dusb_ohci_memory.c42 struct usb_memory_block mem; local
46 free_pages, &mem);
73 free_pages, &mem);
77 hcca = (struct usb_ohci_hcca *) mem.buffer;
78 hcca_phys = mem.phys_addr;
119 struct usb_memory_block mem; local
123 free_pages, &mem);
150 free_pages, &mem);
156 ret = (struct usb_ohci_td *) mem.buffer;
157 ret->td_self = mem
198 struct usb_memory_block mem; local
[all...]
/barrelfish-master/include/lwip2/lwip/
H A Dmem.h73 void *mem_trim(void *mem, mem_size_t size);
76 void mem_free(void *mem);
/barrelfish-master/usr/tests/memtest/
H A Dmem_alloc.c28 static void *mem[MAX_ROUNDS]; local
39 mem[i] = NULL;
62 /* printf("highest memory at %p\n", mem[j - 1]); */
65 mem[j] = ret;
96 for(j = 0; mem[j] != NULL; j++) {
98 free(mem[j]);
99 mem[j] = NULL;
/barrelfish-master/lib/bomp/backends/
H A Dxomp_gateway.c78 struct mem_reg *mem = calloc(1, sizeof(*mem)); local
79 if (mem == NULL) {
83 mem->addr = addr;
84 mem->frame = frame;
86 return mem;
99 struct mem_reg *mem = mem_regs; local
100 while (mem) {
101 if (mem->addr == addr) {
104 mem
200 struct mem_reg *mem = xgw_do_lookup_mem(addr); local
[all...]
/barrelfish-master/lib/openssl-1.0.0d/crypto/ocsp/
H A Docsp_ht.c81 BIO *mem; /* Memory BIO response is built into */ member in struct:ocsp_req_ctx_st
114 if (rctx->mem)
115 BIO_free(rctx->mem);
126 if (BIO_printf(rctx->mem, req_hdr, i2d_OCSP_REQUEST(req, NULL)) <= 0)
128 if (i2d_OCSP_REQUEST_bio(rctx->mem, req) <= 0)
131 rctx->asn1_len = BIO_get_mem_data(rctx->mem, NULL);
140 if (BIO_puts(rctx->mem, name) <= 0)
144 if (BIO_write(rctx->mem, ": ", 2) != 2)
146 if (BIO_puts(rctx->mem, value) <= 0)
149 if (BIO_write(rctx->mem, "\
[all...]
/barrelfish-master/kernel/
H A Dmemset.c93 unsigned char *mem = s; local
103 *mem++ = x;
108 p = (uintptr_t*)mem;
131 mem = (unsigned char*)p;
135 *mem++ = x;

Completed in 297 milliseconds

1234567