Lines Matching refs:old_ptr
846 void *new_ptr, *old_ptr;
862 old_ptr = xchg(array->ptrs + index, new_ptr);
863 map->ops->map_poke_run(map, index, old_ptr, new_ptr);
866 old_ptr = xchg(array->ptrs + index, new_ptr);
869 if (old_ptr)
870 map->ops->map_fd_put_ptr(map, old_ptr, true);
877 void *old_ptr;
885 old_ptr = xchg(array->ptrs + index, NULL);
886 map->ops->map_poke_run(map, index, old_ptr, NULL);
889 old_ptr = xchg(array->ptrs + index, NULL);
892 if (old_ptr) {
893 map->ops->map_fd_put_ptr(map, old_ptr, need_defer);