Lines Matching defs:bindings
12 struct xarray bindings;
113 xa_for_each_range(&gmem->bindings, index, slot, start, end - 1) {
145 if (xa_find(&gmem->bindings, &start, end - 1, XA_PRESENT)) {
258 * reference to the file and thus no new bindings can be created, but
259 * dereferencing the slot for existing bindings needs to be protected
267 xa_for_each(&gmem->bindings, index, slot)
273 * All in-flight operations are gone and new bindings can be created.
286 xa_destroy(&gmem->bindings);
442 xa_init(&gmem->bindings);
504 if (!xa_empty(&gmem->bindings) &&
505 xa_find(&gmem->bindings, &start, end - 1, XA_PRESENT)) {
518 xa_store_range(&gmem->bindings, start, end - 1, slot, GFP_KERNEL);
523 * not the other way 'round. Active bindings are invalidated if the
541 * closed right now), kvm_gmem_release() invalidates all bindings.
550 xa_store_range(&gmem->bindings, start, end - 1, NULL, GFP_KERNEL);
573 if (xa_load(&gmem->bindings, index) != slot) {
574 WARN_ON_ONCE(xa_load(&gmem->bindings, index));