Searched defs:mem (Results 1 - 25 of 313) sorted by relevance

1234567891011>>

/freebsd-head/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-head/contrib/apr/atomic/unix/
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 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 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...]
/freebsd-head/stand/i386/loader/
H A Dchain.c60 vm_offset_t mem = 0x100000; local
107 if (archsw.arch_readin(fd, mem, size) != size) {
115 *((uint16_t *)PTOV(mem + DOSMAGICOFFSET)) != DOSMAGIC) {
120 relocater_data[0].src = mem;
/freebsd-head/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_proc.cc21 void *mem = InternalAlloc(sizeof(Processor)); local
22 internal_memset(mem, 0, sizeof(Processor));
23 Processor *proc = new(mem) Processor;
/freebsd-head/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-head/contrib/sendmail/libsm/
H A Dt-memstat.c88 char *mem; local
106 mem = malloc(sz);
107 if (NULL == mem)
/freebsd-head/usr.sbin/mpsutil/
H A Dmps_flash.c123 unsigned char *mem = NULL; local
164 mem = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
165 if (mem == MAP_FAILED) {
177 munmap(mem, st.st_size);
183 munmap(mem, st.st_size);
190 if (((mem[0x01]<<8) + mem[0x00]) != 0xaa55) {
192 munmap(mem, st.st_size);
199 munmap(mem, st.st_size);
205 fwheader = (MPI2_FW_IMAGE_HEADER *)mem;
[all...]
/freebsd-head/contrib/ntp/libntp/
H A Demalloc.c35 char * mem; local
43 mem = EREALLOC_IMPL(ptr, allocsz, file, line);
44 if (NULL == mem) {
58 zero_mem(mem + priorsz, newsz - priorsz);
60 return mem;
/freebsd-head/lib/libpam/modules/pam_ftpusers/
H A Dpam_ftpusers.c63 char *line, *name, **mem; local
102 for (mem = grp->gr_mem; mem && *mem && !found; ++mem)
103 if (strcmp(user, *mem) == 0)
/freebsd-head/sys/amd64/amd64/
H A Duma_machdep.c69 uma_small_free(void *mem, vm_size_t size, u_int8_t flags) argument
74 pa = DMAP_TO_PHYS((vm_offset_t)mem);
/freebsd-head/sys/arm64/arm64/
H A Duma_machdep.c67 uma_small_free(void *mem, vm_size_t size, u_int8_t flags) argument
72 pa = DMAP_TO_PHYS((vm_offset_t)mem);
/freebsd-head/sys/mips/mips/
H A Duma_machdep.c87 uma_small_free(void *mem, vm_size_t size, u_int8_t flags) argument
92 pa = MIPS_DIRECT_TO_PHYS((vm_offset_t)mem);
/freebsd-head/sys/vm/
H A Duma_dbg.c67 trash_ctor(void *mem, int size, void *arg, int flags) argument
73 if (is_memguard_addr(mem))
79 for (p = mem; cnt > 0; cnt--, p++)
83 mem, size, *p, p);
86 mem, size, *p, p);
100 trash_dtor(void *mem, int size, void *arg) argument
106 if (is_memguard_addr(mem))
112 for (p = mem; cnt > 0; cnt--, p++)
123 trash_init(void *mem, int size, int flags) argument
125 trash_dtor(mem, siz
136 trash_fini(void *mem, int size) argument
142 mtrash_ctor(void *mem, int size, void *arg, int flags) argument
175 mtrash_dtor(void *mem, int size, void *arg) argument
199 mtrash_init(void *mem, int size, int flags) argument
224 mtrash_fini(void *mem, int size) argument
[all...]
/freebsd-head/sys/riscv/riscv/
H A Duma_machdep.c67 uma_small_free(void *mem, vm_size_t size, u_int8_t flags) argument
72 pa = DMAP_TO_PHYS((vm_offset_t)mem);
/freebsd-head/libexec/rtld-elf/
H A Dxmalloc.c81 void *mem, *res; local
86 mem = xmalloc(size + sizeof(void *) + align - 1);
87 res = (void *)round((uintptr_t)mem + sizeof(void *), align);
88 *(void **)((uintptr_t)res - sizeof(void *)) = mem;
95 void *mem; local
102 mem = *(void **)x;
103 free(mem);
/freebsd-head/contrib/libcxxrt/
H A Dmemory.cc90 void * mem = malloc(size); variable
91 while (0 == mem)
102 mem = malloc(size);
105 return mem;
/freebsd-head/sys/powerpc/powerpc/
H A Duma_machdep.c94 uma_small_free(void *mem, vm_size_t size, u_int8_t flags) argument
99 pmap_remove(kernel_pmap,(vm_offset_t)mem,
100 (vm_offset_t)mem + PAGE_SIZE);
103 m = PHYS_TO_VM_PAGE(DMAP_TO_PHYS((vm_offset_t)mem));
105 m = PHYS_TO_VM_PAGE((vm_offset_t)mem);
107 ("Freeing UMA block at %p with no associated page", mem));
/freebsd-head/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_persistent_allocator.h58 uptr mem = (uptr)MmapOrDie(allocsz, "stack depot"); local
59 atomic_store(&region_end, mem + allocsz, memory_order_release);
60 atomic_store(&region_pos, mem, memory_order_release);
/freebsd-head/contrib/gcclibs/libiberty/
H A Dcp-demint.c183 cplus_demangle_v3_components (const char *mangled, int options, void **mem) argument
229 *mem = di.comps;
/freebsd-head/contrib/binutils/libiberty/
H A Dcp-demint.c183 cplus_demangle_v3_components (const char *mangled, int options, void **mem) argument
229 *mem = di.comps;
/freebsd-head/sys/security/mac/
H A Dmac_label.c57 static int mac_labelzone_ctor(void *mem, int size, void *arg, int flags);
58 static void mac_labelzone_dtor(void *mem, int size, void *arg);
98 mac_labelzone_ctor(void *mem, int size, void *arg, int flags) argument
103 label = mem;
109 mac_labelzone_dtor(void *mem, int size, void *arg) argument
114 label = mem;

Completed in 387 milliseconds

1234567891011>>