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

1234567891011>>

/freebsd-11.0-release/contrib/apr/atomic/unix/
H A Ds390.c26 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem)
28 return *mem;
31 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
33 *mem = val;
36 static APR_INLINE apr_uint32_t atomic_add(volatile apr_uint32_t *mem, apr_uint32_t val) argument
38 apr_uint32_t prev = *mem, temp;
45 : "+d" (prev), "+d" (temp), "=Q" (*mem)
46 : "d" (val), "m" (*mem)
52 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val)
54 return atomic_add(mem, va
62 atomic_sub(volatile apr_uint32_t *mem, apr_uint32_t val) argument
78 apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
83 apr_atomic_dec32(volatile apr_uint32_t *mem) argument
113 apr_atomic_casptr(volatile void **mem, void *with, const void *cmp) argument
132 apr_atomic_xchgptr(volatile void **mem, void *with) argument
[all...]
H A Dppc.c32 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem)
34 return *mem;
37 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
39 *mem = val;
42 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val)
52 : "=&r" (prev), "=&r" (temp), "=m" (*mem)
53 : "b" (mem), "r" (val)
59 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
69 : "=&r" (temp), "=m" (*mem)
70 : "b" (mem), "
92 apr_atomic_dec32(volatile apr_uint32_t *mem) argument
145 apr_atomic_casptr(volatile void **mem, void *with, const void *cmp) argument
178 apr_atomic_xchgptr(volatile void **mem, void *with) argument
[all...]
H A Dbuiltins.c26 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem)
28 return *mem;
31 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
33 *mem = val;
36 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val)
38 return __sync_fetch_and_add(mem, val);
41 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
43 __sync_fetch_and_sub(mem, val);
46 APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem)
48 return __sync_fetch_and_add(mem,
51 apr_atomic_dec32(volatile apr_uint32_t *mem) argument
69 apr_atomic_casptr(volatile void **mem, void *with, const void *cmp) argument
74 apr_atomic_xchgptr(volatile void **mem, void *with) argument
[all...]
H A Dsolaris.c28 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem)
30 return *mem;
33 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
35 *mem = val;
38 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val)
40 return atomic_add_32_nv(mem, val) - val;
43 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
45 atomic_add_32(mem, -val);
48 APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem)
50 return atomic_inc_32_nv(mem)
53 apr_atomic_dec32(volatile apr_uint32_t *mem) argument
69 apr_atomic_casptr(volatile void **mem, void *with, const void *cmp) argument
74 apr_atomic_xchgptr(volatile void **mem, void *with) argument
[all...]
H A Dia32.c26 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem)
28 return *mem;
31 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
33 *mem = val;
36 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val)
39 : "=r" (val), "=m" (*mem)
40 : "0" (val), "m" (*mem)
45 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
49 : "m" (*(mem)), "r" (val)
53 APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem)
58 apr_atomic_dec32(volatile apr_uint32_t *mem) argument
92 apr_atomic_casptr(volatile void **mem, void *with, const void *cmp) argument
110 apr_atomic_xchgptr(volatile void **mem, void *with) argument
[all...]
H A Dmutex.c24 # define DECLARE_MUTEX_LOCKED(name, mem) \
25 apr_thread_mutex_t *name = mutex_hash(mem)
32 # define DECLARE_MUTEX_LOCKED(name, mem)
76 static APR_INLINE apr_thread_mutex_t *mutex_hash(volatile apr_uint32_t *mem) argument
78 apr_thread_mutex_t *mutex = hash_mutex[ATOMIC_HASH(mem)];
96 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem)
98 return *mem;
101 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
103 DECLARE_MUTEX_LOCKED(mutex, mem);
105 *mem
123 apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) argument
135 apr_atomic_dec32(volatile apr_uint32_t *mem) argument
177 apr_atomic_casptr(volatile void **mem, void *with, const void *cmp) argument
192 apr_atomic_xchgptr(volatile void **mem, void *with) argument
[all...]
/freebsd-11.0-release/sys/sys/
H A Dmemdesc.h68 struct memdesc mem; local
70 mem.u.md_vaddr = vaddr;
71 mem.md_opaque = len;
72 mem.md_type = MEMDESC_VADDR;
74 return (mem);
80 struct memdesc mem; local
82 mem.u.md_paddr = paddr;
83 mem.md_opaque = len;
84 mem.md_type = MEMDESC_PADDR;
86 return (mem);
92 struct memdesc mem; local
104 struct memdesc mem; local
116 struct memdesc mem; local
127 struct memdesc mem; local
138 struct memdesc mem; local
149 struct memdesc mem; local
[all...]
/freebsd-11.0-release/contrib/ntp/include/isc/
H A DMakefile.am4 mem.h \
/freebsd-11.0-release/sys/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...]
/freebsd-11.0-release/contrib/subversion/subversion/include/private/
H A Dsvn_atomic.h52 #define svn_atomic_read(mem) apr_atomic_read32((mem))
55 #define svn_atomic_set(mem, val) apr_atomic_set32((mem), (val))
58 #define svn_atomic_inc(mem) apr_atomic_inc32(mem)
61 #define svn_atomic_dec(mem) apr_atomic_dec32(mem)
66 * Compare the value that @a mem points to with @a cmp. If they are
74 #define svn_atomic_cas(mem, wit
[all...]
/freebsd-11.0-release/crypto/heimdal/lib/hx509/
H A Dks_mem.c56 struct mem_data *mem; local
57 mem = calloc(1, sizeof(*mem));
58 if (mem == NULL)
62 mem->name = strdup(residue);
63 if (mem->name == NULL) {
64 free(mem);
67 *data = mem;
74 struct mem_data *mem = data; local
77 for (i = 0; i < mem
92 struct mem_data *mem = data; local
132 struct mem_data *mem = data; local
160 struct mem_data *mem = data; local
185 struct mem_data *mem = data; local
[all...]
/freebsd-11.0-release/contrib/apr/include/
H A Dapr_atomic.h57 * @param mem the pointer
59 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem); variable
63 * @param mem pointer to the object
66 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val);
70 * @param mem pointer to the object
72 * @return old value pointed to by mem
74 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val);
78 * @param mem pointer to the object
81 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val);
85 * @param mem pointe
88 APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem); variable
95 APR_DECLARE(int) apr_atomic_dec32(volatile apr_uint32_t *mem); variable
[all...]
/freebsd-11.0-release/cddl/contrib/opensolaris/tools/ctf/common/
H A Dmemory.c50 void *mem; local
52 if ((mem = malloc(size)) == NULL)
55 return (mem);
61 void *mem; local
63 mem = xmalloc(size);
64 bzero(mem, size);
66 return (mem);
97 void *mem; local
99 if ((mem = realloc(ptr, size)) == NULL)
102 return (mem);
[all...]
/freebsd-11.0-release/sys/dev/ixl/
H A Di40e_osdep.c52 i40e_allocate_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem, u32 size) argument
54 mem->va = malloc(size, M_DEVBUF, M_NOWAIT | M_ZERO);
55 return(mem->va == NULL);
59 i40e_free_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem) argument
61 free(mem->va, M_DEVBUF);
66 i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem, argument
84 &mem->tag);
91 err = bus_dmamem_alloc(mem->tag, (void **)&mem->va,
92 BUS_DMA_NOWAIT | BUS_DMA_ZERO, &mem
126 i40e_free_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem) argument
[all...]
H A Di40e_alloc.h55 struct i40e_dma_mem *mem,
59 struct i40e_dma_mem *mem);
61 struct i40e_virt_mem *mem,
64 struct i40e_virt_mem *mem);
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/
H A Dtst.memenable.ksh55 xdt:mem::page-grant-map,
56 xdt:mem::page-grant-unmap,
57 xdt:mem::page-grant-transfer
/freebsd-11.0-release/contrib/subversion/subversion/libsvn_subr/
H A Dspillbuf.c202 struct memblock_t *mem = buf->out_for_reading; local
204 if (mem != NULL)
207 return mem;
212 mem = apr_palloc(buf->pool, sizeof(*mem));
213 mem->data = apr_palloc(buf->pool, buf->blocksize);
214 return mem;
217 mem = buf->avail;
218 buf->avail = mem->next;
219 return mem;
225 return_buffer(svn_spillbuf_t *buf, struct memblock_t *mem) argument
239 struct memblock_t *mem; local
352 read_data(struct memblock_t **mem, svn_spillbuf_t *buf, apr_pool_t *scratch_pool) argument
453 struct memblock_t *mem; local
495 struct memblock_t *mem; local
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCInstrBuilder.h34 bool mem = true) {
35 if (mem)
/freebsd-11.0-release/sys/mips/mips/
H A Dstdatomic.c152 __sync_lock_test_and_set_##N(uintN_t *mem, uintN_t val) \
158 mem32 = round_to_word(mem); \
160 put_##N(&val32, mem, val); \
162 put_##N(&negmask, mem, 0); \
174 return (get_##N(&old, mem)); \
182 __sync_val_compare_and_swap_##N(uintN_t *mem, uintN_t expected, \
189 mem32 = round_to_word(mem); \
191 put_##N(&expected32, mem, expected); \
193 put_##N(&desired32, mem, desired); \
195 put_##N(&posmask, mem, ~
291 __sync_val_compare_and_swap_4(uint32_t *mem, uint32_t expected, uint32_t desired) argument
346 __sync_val_compare_and_swap_8(uint64_t *mem, uint64_t expected, uint64_t desired) argument
[all...]
/freebsd-11.0-release/contrib/netbsd-tests/lib/libbpfjit/
H A Dt_extmem.c60 return args->mem[(uintptr_t)args->arg];
80 uint32_t mem[ctx.extwords]; local
83 mem[0] = 0;
84 mem[3] = 3;
90 .mem = mem,
119 uint32_t mem[ctx.extwords]; local
122 mem[0] = 0;
123 mem[3] = 3;
129 .mem
181 uint32_t mem[ctx.extwords]; local
233 uint32_t mem[ctx.extwords]; local
302 uint32_t mem[ctx.extwords]; local
347 uint32_t mem[ctx.extwords]; local
393 uint32_t mem[ctx.extwords]; local
439 uint32_t mem[ctx.extwords]; local
[all...]
/freebsd-11.0-release/libexec/rtld-elf/
H A Dxmalloc.c74 void *mem, *res; local
79 mem = xmalloc(size + sizeof(void *) + align - 1);
80 res = (void *)round((uintptr_t)mem + sizeof(void *), align);
81 *(void **)((uintptr_t)res - sizeof(void *)) = mem;
88 void *mem; local
95 mem = *(void **)x;
96 free(mem);
/freebsd-11.0-release/contrib/netbsd-tests/net/bpfjit/
H A Dt_extmem.c68 return args->mem[(uintptr_t)args->arg];
88 uint32_t mem[ctx.extwords]; local
91 mem[0] = 0;
92 mem[3] = 3;
98 .mem = mem,
162 uint32_t mem[ctx.extwords]; local
165 mem[0] = 0;
166 mem[3] = 7;
168 mem[
220 uint32_t mem[ctx.extwords]; local
301 uint32_t mem[ctx.extwords]; local
352 uint32_t mem[ctx.extwords]; local
404 uint32_t mem[ctx.extwords]; local
456 uint32_t mem[ctx.extwords]; local
[all...]
/freebsd-11.0-release/sys/modules/mem/
H A DMakefile1 # $FreeBSD: releng/11.0/sys/modules/mem/Makefile 221869 2011-05-14 01:53:38Z attilio $
3 .PATH: ${.CURDIR}/../../dev/mem
7 KMOD= mem
8 SRCS= mem.c memdev.c memutil.c
/freebsd-11.0-release/sys/arm/arm/
H A Dstdatomic.c112 __atomic_load_##N(uintN_t *mem, int model __unused) \
117 ret = *mem; \
124 __atomic_store_##N(uintN_t *mem, uintN_t val, int model __unused) \
128 *mem = val; \
134 __atomic_compare_exchange_##N(uintN_t *mem, uintN_t *expected, \
140 if (*mem == *expected) { \
141 *mem = desired; \
144 *expected = *mem; \
153 __atomic_##name##_##N(uintN_t *mem, uintN_t val, int model __unused) \
158 ret = *mem; \
590 __sync_lock_test_and_set_4_c(uint32_t *mem, uint32_t val) argument
607 __sync_val_compare_and_swap_4_c(uint32_t *mem, uint32_t expected, uint32_t desired) argument
[all...]

Completed in 329 milliseconds

1234567891011>>