/openbmc/u-boot/common/ |
H A D | malloc_simple.c | 19 ulong addr, new_ptr; in alloc_simple() local 23 new_ptr = addr + bytes - gd->malloc_base; in alloc_simple() 24 log_debug("size=%zx, ptr=%lx, limit=%lx: ", bytes, new_ptr, in alloc_simple() 26 if (new_ptr > gd->malloc_limit) { in alloc_simple() 32 gd->malloc_ptr = ALIGN(new_ptr, sizeof(new_ptr)); in alloc_simple()
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | coreboot_table.c | 35 u32 new_ptr; in high_table_malloc() local 38 new_ptr = gd->arch.high_table_ptr + bytes; in high_table_malloc() 39 if (new_ptr >= gd->arch.high_table_limit) in high_table_malloc() 42 gd->arch.high_table_ptr = new_ptr; in high_table_malloc()
|
/openbmc/linux/sound/soc/dwc/ |
H A D | dwc-pcm.c | 108 unsigned int new_ptr; in dw_pcm_transfer() local 112 new_ptr = dev->tx_fn(dev, substream->runtime, ptr, in dw_pcm_transfer() 114 cmpxchg(&dev->tx_ptr, ptr, new_ptr); in dw_pcm_transfer() 117 new_ptr = dev->rx_fn(dev, substream->runtime, ptr, in dw_pcm_transfer() 119 cmpxchg(&dev->rx_ptr, ptr, new_ptr); in dw_pcm_transfer()
|
/openbmc/linux/rust/alloc/ |
H A D | alloc.rs | 229 let new_ptr = self.alloc_impl(new_layout, zeroed)?; in grow_impl() localVariable 230 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), old_size); in grow_impl() 232 Ok(new_ptr) in grow_impl() 317 let new_ptr = self.allocate(new_layout)?; in shrink() localVariable 318 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), new_size); in shrink() 320 Ok(new_ptr) in shrink()
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_btree_staging.c | 372 union xfs_btree_ptr new_ptr; in xfs_btree_bload_prep_block() local 402 xfs_btree_set_ptr_null(cur, &new_ptr); in xfs_btree_bload_prep_block() 403 ret = bbl->claim_block(cur, &new_ptr, priv); in xfs_btree_bload_prep_block() 407 ASSERT(!xfs_btree_ptr_is_null(cur, &new_ptr)); in xfs_btree_bload_prep_block() 409 ret = xfs_btree_get_buf_block(cur, &new_ptr, &new_block, &new_bp); in xfs_btree_bload_prep_block() 418 xfs_btree_set_sibling(cur, *blockp, &new_ptr, XFS_BB_RIGHTSIB); in xfs_btree_bload_prep_block() 428 xfs_btree_copy_ptrs(cur, ptrp, &new_ptr, 1); in xfs_btree_bload_prep_block()
|
/openbmc/linux/fs/ntfs3/ |
H A D | run.c | 372 struct ntfs_run *new_ptr; in run_add_entry() local 389 new_ptr = kvmalloc(bytes, GFP_KERNEL); in run_add_entry() 391 if (!new_ptr) in run_add_entry() 394 r = new_ptr + index; in run_add_entry() 395 memcpy(new_ptr, run->runs, in run_add_entry() 401 run->runs = new_ptr; in run_add_entry() 1156 struct ntfs_run *new_ptr = kvmalloc(bytes, GFP_KERNEL); in run_clone() local 1158 if (!new_ptr) in run_clone() 1162 new_run->runs = new_ptr; in run_clone()
|
/openbmc/linux/sound/soc/intel/keembay/ |
H A D | kmb_platform.c | 224 unsigned int new_ptr; in kmb_pcm_operation() local 237 new_ptr = kmb_pcm_tx_fn(kmb_i2s, substream->runtime, in kmb_pcm_operation() 239 cmpxchg(&kmb_i2s->tx_ptr, ptr, new_ptr); in kmb_pcm_operation() 242 new_ptr = kmb_pcm_rx_fn(kmb_i2s, substream->runtime, in kmb_pcm_operation() 244 cmpxchg(&kmb_i2s->rx_ptr, ptr, new_ptr); in kmb_pcm_operation()
|
/openbmc/linux/kernel/bpf/ |
H A D | arraymap.c | 849 void *new_ptr, *old_ptr; in bpf_fd_array_map_update_elem() local 859 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem() 860 if (IS_ERR(new_ptr)) in bpf_fd_array_map_update_elem() 861 return PTR_ERR(new_ptr); in bpf_fd_array_map_update_elem() 865 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem() 866 map->ops->map_poke_run(map, index, old_ptr, new_ptr); in bpf_fd_array_map_update_elem() 869 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem()
|
/openbmc/qemu/target/hexagon/ |
H A D | op_helper.c | 265 uint32_t new_ptr = RxV + offset; in HELPER() local 282 if (new_ptr >= end_addr) { in HELPER() 283 new_ptr -= length; in HELPER() 284 } else if (new_ptr < start_addr) { in HELPER() 285 new_ptr += length; in HELPER() 288 return new_ptr; in HELPER()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_trace.h | 3772 xfs_agino_t old_ptr, xfs_agino_t new_ptr), 3773 TP_ARGS(mp, agno, bucket, old_ptr, new_ptr), 3779 __field(xfs_agino_t, new_ptr) 3786 __entry->new_ptr = new_ptr; 3793 __entry->new_ptr) 3798 xfs_agino_t old_ptr, xfs_agino_t new_ptr), 3799 TP_ARGS(mp, agno, agino, old_ptr, new_ptr), 3805 __field(xfs_agino_t, new_ptr) 3812 __entry->new_ptr = new_ptr; 3819 __entry->new_ptr)
|
/openbmc/qemu/block/ |
H A D | qcow2-refcount.c | 1483 void *new_ptr; in realloc_refcount_array() local 1502 new_ptr = g_try_realloc(*array, new_byte_size); in realloc_refcount_array() 1503 if (!new_ptr) { in realloc_refcount_array() 1508 memset((char *)new_ptr + old_byte_size, 0, in realloc_refcount_array() 1512 *array = new_ptr; in realloc_refcount_array()
|
/openbmc/linux/sound/core/ |
H A D | pcm_lib.c | 39 snd_pcm_uframes_t new_ptr) in update_silence_vars() argument 43 delta = new_ptr - ptr; in update_silence_vars() 52 runtime->silence_start = new_ptr; in update_silence_vars()
|