Lines Matching refs:old_ptr
887 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()
933 if (old_ptr) { in __fd_array_map_delete_elem()
934 map->ops->map_fd_put_ptr(map, old_ptr, need_defer); in __fd_array_map_delete_elem()