Home
last modified time | relevance | path

Searched refs:old_ptr (Results 1 – 10 of 10) sorted by relevance

/linux/mm/kasan/
H A Dtags.c104 void *old_ptr; in save_stack_info() local
120 old_ptr = READ_ONCE(entry->ptr); in save_stack_info()
121 if (old_ptr == STACK_RING_BUSY_PTR) in save_stack_info()
123 if (!try_cmpxchg(&entry->ptr, &old_ptr, STACK_RING_BUSY_PTR)) in save_stack_info()
/linux/rust/kernel/alloc/
H A Dvec_ext.rs137 let (old_ptr, len, cap) = destructure(self); in reserve()
146 old_ptr in reserve()
154 unsafe { rebuild(self, old_ptr, len, cap) }; in reserve()
/linux/tools/include/nolibc/
H A Dstdlib.h165 void *realloc(void *old_ptr, size_t new_size) in realloc() argument
171 if (!old_ptr) in realloc()
174 heap = container_of(old_ptr, struct nolibc_heap, user_p); in realloc()
182 return old_ptr; in realloc()
/linux/kernel/bpf/
H A Darraymap.c887 void *new_ptr, *old_ptr; in bpf_fd_array_map_update_elem() local
903 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem()
904 map->ops->map_poke_run(map, index, old_ptr, new_ptr); in bpf_fd_array_map_update_elem()
907 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem()
910 if (old_ptr) in bpf_fd_array_map_update_elem()
911 map->ops->map_fd_put_ptr(map, old_ptr, true); in bpf_fd_array_map_update_elem()
918 void *old_ptr; in __fd_array_map_delete_elem() local
926 old_ptr = xchg(array->ptrs + index, NULL); in __fd_array_map_delete_elem()
927 map->ops->map_poke_run(map, index, old_ptr, NULL); in __fd_array_map_delete_elem()
930 old_ptr = xchg(array->ptrs + index, NULL); in __fd_array_map_delete_elem()
[all …]
/linux/fs/erofs/
H A Dzutil.c70 void *ptr, *old_ptr; in z_erofs_gbuf_growsize() local
103 old_ptr = gbuf->ptr; in z_erofs_gbuf_growsize()
107 if (old_ptr) in z_erofs_gbuf_growsize()
108 vunmap(old_ptr); in z_erofs_gbuf_growsize()
/linux/arch/powerpc/platforms/pseries/
H A Dpapr-vpd.c156 const char *old_ptr = blob->data; in vpd_blob_extend() local
159 new_ptr = kvrealloc(old_ptr, new_len, GFP_KERNEL_ACCOUNT); in vpd_blob_extend()
/linux/kernel/irq/
H A Dmanage.c1509 struct irqaction *old, **old_ptr; in __setup_irq() local
1615 old_ptr = &desc->action; in __setup_irq()
1616 old = *old_ptr; in __setup_irq()
1669 old_ptr = &old->next; in __setup_irq()
1670 old = *old_ptr; in __setup_irq()
1807 *old_ptr = new; in __setup_irq()
/linux/fs/xfs/
H A Dxfs_trace.h4040 xfs_agino_t old_ptr, xfs_agino_t new_ptr),
4041 TP_ARGS(mp, agno, bucket, old_ptr, new_ptr),
4046 __field(xfs_agino_t, old_ptr)
4053 __entry->old_ptr = old_ptr;
4060 __entry->old_ptr,
4066 xfs_agino_t old_ptr, xfs_agino_t new_ptr),
4067 TP_ARGS(mp, agno, agino, old_ptr, new_ptr),
4072 __field(xfs_agino_t, old_ptr)
4079 __entry->old_ptr = old_ptr;
4086 __entry->old_ptr,
H A Dxfs_log_recover.c2103 char *ptr, *old_ptr; in xlog_recover_add_to_cont_trans() local
2128 old_ptr = item->ri_buf[item->ri_cnt-1].i_addr; in xlog_recover_add_to_cont_trans()
2131 ptr = kvrealloc(old_ptr, len + old_len, GFP_KERNEL); in xlog_recover_add_to_cont_trans()
/linux/tools/testing/selftests/mm/
H A Dhmm-tests.c690 void *old_ptr; in TEST_F() local
716 old_ptr = buffer->ptr; in TEST_F()
733 buffer->ptr = old_ptr; in TEST_F()