Lines Matching refs:xas
523 XA_STATE(xas, xa, start_index);
528 entry = xas_next(&xas);
529 if (xas_retry(&xas, entry))
544 XA_STATE(xas, xa, start_index);
547 xas_lock(&xas);
549 entry = xas_next(&xas);
550 if (xas_retry(&xas, entry))
555 xas_store(&xas, NULL);
560 xas_unlock(&xas);
566 XA_STATE(xas, xa, start_index);
569 xas_lock(&xas);
570 xas_for_each(&xas, entry, last_index)
571 xas_store(&xas, NULL);
572 xas_unlock(&xas);
580 XA_STATE(xas, xa, start_index);
585 xas_lock(&xas);
589 xas_set_err(&xas, -EINVAL);
590 xas_unlock(&xas);
592 xas_nomem(&xas, GFP_KERNEL);
596 old = xas_store(&xas, xa_mk_value(page_to_pfn(*pages)));
597 if (xas_error(&xas))
601 xas_next(&xas);
603 xas_unlock(&xas);
604 } while (xas_nomem(&xas, GFP_KERNEL));
607 if (xas_error(&xas)) {
608 if (xas.xa_index != start_index)
609 clear_xarray(xa, start_index, xas.xa_index - 1);
610 return xas_error(&xas);
1595 XA_STATE(xas, &pages->pinned_pfns, start_index);
1600 entry = xas_next(&xas);
1601 if (xas_retry(&xas, entry))