| /freebsd-12-stable/contrib/apr/atomic/unix/ |
| D | s390.c | 30 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem) in apr_atomic_read32() argument 32 return *mem; in apr_atomic_read32() 35 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_set32() argument 37 *mem = val; in apr_atomic_set32() 40 static APR_INLINE apr_uint32_t atomic_add(volatile apr_uint32_t *mem, apr_uint32_t val) in atomic_add() argument 42 apr_uint32_t prev = *mem, temp; in atomic_add() 49 : "+d" (prev), "+d" (temp), "=Q" (*mem) in atomic_add() 50 : "d" (val), "m" (*mem) in atomic_add() 56 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_add32() argument 58 return atomic_add(mem, val); in apr_atomic_add32() [all …]
|
| D | mutex.c | 25 # define DECLARE_MUTEX_LOCKED(name, mem) \ argument 26 apr_thread_mutex_t *name = mutex_hash(mem) 33 # define DECLARE_MUTEX_LOCKED(name, mem) argument 77 static APR_INLINE apr_thread_mutex_t *mutex_hash(volatile apr_uint32_t *mem) in mutex_hash() argument 79 apr_thread_mutex_t *mutex = hash_mutex[ATOMIC_HASH(mem)]; in mutex_hash() 97 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem) in apr_atomic_read32() argument 99 return *mem; in apr_atomic_read32() 102 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_set32() argument 104 DECLARE_MUTEX_LOCKED(mutex, mem); in apr_atomic_set32() 106 *mem = val; in apr_atomic_set32() [all …]
|
| D | ppc.c | 36 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem) in apr_atomic_read32() argument 38 return *mem; in apr_atomic_read32() 41 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_set32() argument 43 *mem = val; in apr_atomic_set32() 46 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_add32() argument 56 : "=&r" (prev), "=&r" (temp), "=m" (*mem) in apr_atomic_add32() 57 : "b" (mem), "r" (val) in apr_atomic_add32() 63 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_sub32() argument 73 : "=&r" (temp), "=m" (*mem) in apr_atomic_sub32() 74 : "b" (mem), "r" (val) in apr_atomic_sub32() [all …]
|
| D | mutex64.c | 25 # define DECLARE_MUTEX_LOCKED(name, mem) \ argument 26 apr_thread_mutex_t *name = mutex_hash(mem) 33 # define DECLARE_MUTEX_LOCKED(name, mem) argument 77 static APR_INLINE apr_thread_mutex_t *mutex_hash(volatile apr_uint64_t *mem) in mutex_hash() argument 79 apr_thread_mutex_t *mutex = hash_mutex[ATOMIC_HASH(mem)]; in mutex_hash() 97 APR_DECLARE(apr_uint64_t) apr_atomic_read64(volatile apr_uint64_t *mem) in apr_atomic_read64() argument 99 return *mem; in apr_atomic_read64() 102 APR_DECLARE(void) apr_atomic_set64(volatile apr_uint64_t *mem, apr_uint64_t val) in apr_atomic_set64() argument 104 DECLARE_MUTEX_LOCKED(mutex, mem); in apr_atomic_set64() 106 *mem = val; in apr_atomic_set64() [all …]
|
| D | ia32.c | 30 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem) in apr_atomic_read32() argument 32 return *mem; in apr_atomic_read32() 35 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_set32() argument 37 *mem = val; in apr_atomic_set32() 40 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_add32() argument 43 : "=r" (val), "=m" (*mem) in apr_atomic_add32() 44 : "0" (val), "m" (*mem) in apr_atomic_add32() 49 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_sub32() argument 53 : "m" (*(mem)), "r" (val) in apr_atomic_sub32() 57 APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem) in apr_atomic_inc32() argument [all …]
|
| D | builtins.c | 26 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem) in apr_atomic_read32() argument 28 return *mem; in apr_atomic_read32() 31 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_set32() argument 33 *mem = val; in apr_atomic_set32() 36 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_add32() argument 38 return __sync_fetch_and_add(mem, val); in apr_atomic_add32() 41 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_sub32() argument 43 __sync_fetch_and_sub(mem, val); in apr_atomic_sub32() 46 APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem) in apr_atomic_inc32() argument 48 return __sync_fetch_and_add(mem, 1); in apr_atomic_inc32() [all …]
|
| D | solaris.c | 32 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem) in apr_atomic_read32() argument 34 return *mem; in apr_atomic_read32() 37 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_set32() argument 39 *mem = val; in apr_atomic_set32() 42 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_add32() argument 44 return atomic_add_32_nv(mem, val) - val; in apr_atomic_add32() 47 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) in apr_atomic_sub32() argument 49 atomic_add_32(mem, -val); in apr_atomic_sub32() 52 APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem) in apr_atomic_inc32() argument 54 return atomic_inc_32_nv(mem) - 1; in apr_atomic_inc32() [all …]
|
| D | builtins64.c | 21 APR_DECLARE(apr_uint64_t) apr_atomic_read64(volatile apr_uint64_t *mem) in apr_atomic_read64() argument 23 return *mem; in apr_atomic_read64() 26 APR_DECLARE(void) apr_atomic_set64(volatile apr_uint64_t *mem, apr_uint64_t val) in apr_atomic_set64() argument 28 *mem = val; in apr_atomic_set64() 31 APR_DECLARE(apr_uint64_t) apr_atomic_add64(volatile apr_uint64_t *mem, apr_uint64_t val) in apr_atomic_add64() argument 33 return __sync_fetch_and_add(mem, val); in apr_atomic_add64() 36 APR_DECLARE(void) apr_atomic_sub64(volatile apr_uint64_t *mem, apr_uint64_t val) in apr_atomic_sub64() argument 38 __sync_fetch_and_sub(mem, val); in apr_atomic_sub64() 41 APR_DECLARE(apr_uint64_t) apr_atomic_inc64(volatile apr_uint64_t *mem) in apr_atomic_inc64() argument 43 return __sync_fetch_and_add(mem, 1); in apr_atomic_inc64() [all …]
|
| /freebsd-12-stable/sys/sys/ |
| D | memdesc.h | 70 struct memdesc mem; in memdesc_vaddr() local 72 mem.u.md_vaddr = vaddr; in memdesc_vaddr() 73 mem.md_opaque = len; in memdesc_vaddr() 74 mem.md_type = MEMDESC_VADDR; in memdesc_vaddr() 76 return (mem); in memdesc_vaddr() 82 struct memdesc mem; in memdesc_paddr() local 84 mem.u.md_paddr = paddr; in memdesc_paddr() 85 mem.md_opaque = len; in memdesc_paddr() 86 mem.md_type = MEMDESC_PADDR; in memdesc_paddr() 88 return (mem); in memdesc_paddr() [all …]
|
| /freebsd-12-stable/usr.sbin/sa/tests/ |
| D | v2-sparc64-u.out | 1 0 0.019 cpu 163k mem 0 io accton 2 0 1.644 cpu 272k mem 0 io awk 3 0 0.029 cpu 175k mem 0 io time 4 0 0.019 cpu 163k mem 0 io sleep 5 0 0.032 cpu 214k mem 35 io fsck_ufs 6 0 0.028 cpu 213k mem 10 io fsck_ufs 7 0 0.028 cpu 189k mem 8 io fsck_ufs 8 0 0.028 cpu 196k mem 7 io fsck_ufs 9 0 0.055 cpu 168k mem 0 io fsck 10 0 0.008 cpu 204k mem 0 io sh* [all …]
|
| D | v2-i386-u.out | 1 0 0.001 cpu 0k mem 0 io accton 2 0 0.448 cpu 112k mem 0 io awk 3 0 0.001 cpu 0k mem 0 io time 4 0 6.680 cpu 110k mem 0 io egrep 5 0 0.001 cpu 0k mem 0 io time 6 0 0.248 cpu 108k mem 0 io find 7 0 0.001 cpu 0k mem 0 io time 8 0 0.001 cpu 0k mem 0 io sleep 9 0 0.001 cpu 0k mem 0 io time 10 0 0.025 cpu 103k mem 16 io dd [all …]
|
| D | v2-amd64-u.out | 1 0 0.002 cpu 68k mem 0 io accton 2 0 0.163 cpu 35k mem 0 io awk 3 0 0.003 cpu 0k mem 0 io time 4 0 3.247 cpu 29k mem 26 io egrep 5 0 0.003 cpu 93k mem 0 io time 6 0 0.822 cpu 19k mem 4472 io find 7 0 0.003 cpu 0k mem 0 io time 8 0 0.002 cpu 0k mem 0 io sleep 9 0 0.004 cpu 88k mem 0 io time 10 0 0.076 cpu 18k mem 16 io dd [all …]
|
| D | v1-sparc64-u.out | 1 0 0.016 cpu 162k mem 0 io accton 2 0 1.609 cpu 273k mem 0 io awk 3 0 0.016 cpu 174k mem 0 io time 4 0 29.750 cpu 233k mem 26 io egrep 5 0 0.016 cpu 161k mem 0 io time 6 0 5.516 cpu 184k mem 4437 io find 7 0 0.016 cpu 156k mem 0 io time 8 0 0.000 cpu 136k mem 0 io sleep 9 0 0.016 cpu 152k mem 0 io time 10 0 0.562 cpu 161k mem 16 io dd [all …]
|
| D | v1-i386-u.out | 1 0 0.000 cpu 264k mem 0 io accton 2 0 0.453 cpu 41k mem 0 io awk 3 0 0.000 cpu 0k mem 0 io time 4 0 4.984 cpu 41k mem 28 io egrep 5 0 0.000 cpu 140k mem 0 io time 6 0 0.266 cpu 36k mem 3921 io find 7 0 0.000 cpu 0k mem 0 io time 8 0 0.000 cpu 0k mem 0 io sleep 9 0 0.000 cpu 0k mem 0 io time 10 0 0.016 cpu 25k mem 16 io dd [all …]
|
| D | v1-amd64-u.out | 1 0 0.000 cpu 0k mem 0 io accton 2 0 0.172 cpu 41k mem 0 io awk 3 0 0.000 cpu 140k mem 0 io time 4 0 3.031 cpu 45k mem 1 io egrep 5 0 0.000 cpu 0k mem 0 io time 6 0 0.250 cpu 42k mem 1087 io find 7 0 0.000 cpu 0k mem 0 io time 8 0 0.000 cpu 0k mem 0 io sleep 9 0 0.000 cpu 57k mem 0 io time 10 0 0.016 cpu 31k mem 16 io dd [all …]
|
| /freebsd-12-stable/crypto/heimdal/lib/hx509/ |
| D | ks_mem.c | 56 struct mem_data *mem; in mem_init() local 57 mem = calloc(1, sizeof(*mem)); in mem_init() 58 if (mem == NULL) in mem_init() 62 mem->name = strdup(residue); in mem_init() 63 if (mem->name == NULL) { in mem_init() 64 free(mem); in mem_init() 67 *data = mem; in mem_init() 74 struct mem_data *mem = data; in mem_free() local 77 for (i = 0; i < mem->certs.len; i++) in mem_free() 78 hx509_cert_free(mem->certs.val[i]); in mem_free() [all …]
|
| /freebsd-12-stable/sys/vm/ |
| D | uma_dbg.c | 67 trash_ctor(void *mem, int size, void *arg, int flags) in trash_ctor() argument 73 if (is_memguard_addr(mem)) in trash_ctor() 79 for (p = mem; cnt > 0; cnt--, p++) in trash_ctor() 83 mem, size, *p, p); in trash_ctor() 86 mem, size, *p, p); in trash_ctor() 100 trash_dtor(void *mem, int size, void *arg) in trash_dtor() argument 106 if (is_memguard_addr(mem)) in trash_dtor() 112 for (p = mem; cnt > 0; cnt--, p++) in trash_dtor() 123 trash_init(void *mem, int size, int flags) in trash_init() argument 125 trash_dtor(mem, size, NULL); in trash_init() [all …]
|
| /freebsd-12-stable/sys/dev/ixl/ |
| D | i40e_osdep.c | 52 i40e_allocate_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem, u32 size) in i40e_allocate_virt_mem() argument 54 mem->va = malloc(size, M_IXL, M_NOWAIT | M_ZERO); in i40e_allocate_virt_mem() 55 return (mem->va == NULL); in i40e_allocate_virt_mem() 59 i40e_free_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem) in i40e_free_virt_mem() argument 61 free(mem->va, M_IXL); in i40e_free_virt_mem() 62 mem->va = NULL; in i40e_free_virt_mem() 68 i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem, in i40e_allocate_dma_mem() argument 86 &mem->tag); in i40e_allocate_dma_mem() 93 err = bus_dmamem_alloc(mem->tag, (void **)&mem->va, in i40e_allocate_dma_mem() 94 BUS_DMA_NOWAIT | BUS_DMA_ZERO, &mem->map); in i40e_allocate_dma_mem() [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libbpfjit/ |
| D | t_extmem.c | 60 return args->mem[(uintptr_t)args->arg]; in retM() 80 uint32_t mem[ctx.extwords]; in ATF_TC_BODY() local 83 mem[0] = 0; in ATF_TC_BODY() 84 mem[3] = 3; in ATF_TC_BODY() 90 .mem = mem, in ATF_TC_BODY() 119 uint32_t mem[ctx.extwords]; in ATF_TC_BODY() local 122 mem[0] = 0; in ATF_TC_BODY() 123 mem[3] = 3; in ATF_TC_BODY() 129 .mem = mem, in ATF_TC_BODY() 181 uint32_t mem[ctx.extwords]; in ATF_TC_BODY() local [all …]
|
| /freebsd-12-stable/sys/dev/iavf/ |
| D | iavf_osdep.c | 79 iavf_allocate_virt_mem(struct iavf_hw *hw __unused, struct iavf_virt_mem *mem, in iavf_allocate_virt_mem() argument 82 mem->va = malloc(size, M_IAVF, M_NOWAIT | M_ZERO); in iavf_allocate_virt_mem() 83 return(mem->va == NULL); in iavf_allocate_virt_mem() 96 iavf_free_virt_mem(struct iavf_hw *hw __unused, struct iavf_virt_mem *mem) in iavf_free_virt_mem() argument 98 free(mem->va, M_IAVF); in iavf_free_virt_mem() 99 mem->va = NULL; in iavf_free_virt_mem() 118 iavf_allocate_dma_mem(struct iavf_hw *hw, struct iavf_dma_mem *mem, in iavf_allocate_dma_mem() argument 136 &mem->tag); in iavf_allocate_dma_mem() 143 err = bus_dmamem_alloc(mem->tag, (void **)&mem->va, in iavf_allocate_dma_mem() 144 BUS_DMA_NOWAIT | BUS_DMA_ZERO, &mem->map); in iavf_allocate_dma_mem() [all …]
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/ |
| D | spillbuf.c | 202 struct memblock_t *mem = buf->out_for_reading; in get_buffer() local 204 if (mem != NULL) in get_buffer() 207 return mem; in get_buffer() 212 mem = apr_palloc(buf->pool, sizeof(*mem)); in get_buffer() 213 mem->data = apr_palloc(buf->pool, buf->blocksize); in get_buffer() 214 return mem; in get_buffer() 217 mem = buf->avail; in get_buffer() 218 buf->avail = mem->next; in get_buffer() 219 return mem; in get_buffer() 226 struct memblock_t *mem) in return_buffer() argument [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/net/bpfjit/ |
| D | t_extmem.c | 68 return args->mem[(uintptr_t)args->arg]; in retM() 88 uint32_t mem[ctx.extwords]; in ATF_TC_BODY() local 91 mem[0] = 0; in ATF_TC_BODY() 92 mem[3] = 3; in ATF_TC_BODY() 98 .mem = mem, in ATF_TC_BODY() 162 uint32_t mem[ctx.extwords]; in ATF_TC_BODY() local 165 mem[0] = 0; in ATF_TC_BODY() 166 mem[3] = 7; in ATF_TC_BODY() 168 mem[1] = mem[2] = 0xdeadbeef; in ATF_TC_BODY() 174 .mem = mem, in ATF_TC_BODY() [all …]
|
| /freebsd-12-stable/sys/dev/agp/ |
| D | agp.c | 477 struct agp_memory *mem; in agp_generic_alloc_memory() local 491 mem = malloc(sizeof *mem, M_AGP, M_WAITOK); in agp_generic_alloc_memory() 492 mem->am_id = sc->as_nextid++; in agp_generic_alloc_memory() 493 mem->am_size = size; in agp_generic_alloc_memory() 494 mem->am_type = 0; in agp_generic_alloc_memory() 495 mem->am_obj = vm_object_allocate(OBJT_DEFAULT, atop(round_page(size))); in agp_generic_alloc_memory() 496 mem->am_physical = 0; in agp_generic_alloc_memory() 497 mem->am_offset = 0; in agp_generic_alloc_memory() 498 mem->am_is_bound = 0; in agp_generic_alloc_memory() 499 TAILQ_INSERT_TAIL(&sc->as_memory, mem, am_link); in agp_generic_alloc_memory() [all …]
|
| /freebsd-12-stable/sys/mips/mips/ |
| D | stdatomic.c | 158 __sync_lock_test_and_set_##N(uintN_t *mem, uintN_t val) \ 164 mem32 = round_to_word(mem); \ 166 put_##N(&val32, mem, val); \ 168 put_##N(&negmask, mem, 0); \ 180 return (get_##N(&old, mem)); \ 188 __sync_val_compare_and_swap_##N(uintN_t *mem, uintN_t expected, \ 195 mem32 = round_to_word(mem); \ 197 put_##N(&expected32, mem, expected); \ 199 put_##N(&desired32, mem, desired); \ 201 put_##N(&posmask, mem, ~0); \ [all …]
|
| /freebsd-12-stable/sys/arm/arm/ |
| D | stdatomic.c | 114 __atomic_load_##N(uintN_t *mem, int model __unused) \ 119 ret = *mem; \ 126 __atomic_store_##N(uintN_t *mem, uintN_t val, int model __unused) \ 130 *mem = val; \ 136 __atomic_compare_exchange_##N(uintN_t *mem, uintN_t *expected, \ 142 if (*mem == *expected) { \ 143 *mem = desired; \ 146 *expected = *mem; \ 155 __atomic_##name##_##N(uintN_t *mem, uintN_t val, int model __unused) \ 160 ret = *mem; \ [all …]
|