Lines Matching refs:xas

14 	XA_STATE(xas, &cache->reqs, 0);  in cachefiles_ondemand_fd_release()
23 xas_for_each(&xas, req, ULONG_MAX) { in cachefiles_ondemand_fd_release()
28 xas_store(&xas, NULL); in cachefiles_ondemand_fd_release()
245 XA_STATE(xas, &cache->reqs, cache->req_id_next); in cachefiles_ondemand_daemon_read()
253 req = xas_find_marked(&xas, UINT_MAX, CACHEFILES_REQ_NEW); in cachefiles_ondemand_daemon_read()
255 xas_set(&xas, 0); in cachefiles_ondemand_daemon_read()
256 req = xas_find_marked(&xas, cache->req_id_next - 1, CACHEFILES_REQ_NEW); in cachefiles_ondemand_daemon_read()
271 xas_clear_mark(&xas, CACHEFILES_REQ_NEW); in cachefiles_ondemand_daemon_read()
272 cache->req_id_next = xas.xa_index + 1; in cachefiles_ondemand_daemon_read()
275 id = xas.xa_index; in cachefiles_ondemand_daemon_read()
317 XA_STATE(xas, &cache->reqs, 0); in cachefiles_ondemand_send_req()
355 xas_lock(&xas); in cachefiles_ondemand_send_req()
358 xas_unlock(&xas); in cachefiles_ondemand_send_req()
368 xas_unlock(&xas); in cachefiles_ondemand_send_req()
373 xas.xa_index = 0; in cachefiles_ondemand_send_req()
374 xas_find_marked(&xas, UINT_MAX, XA_FREE_MARK); in cachefiles_ondemand_send_req()
375 if (xas.xa_node == XAS_RESTART) in cachefiles_ondemand_send_req()
376 xas_set_err(&xas, -EBUSY); in cachefiles_ondemand_send_req()
377 xas_store(&xas, req); in cachefiles_ondemand_send_req()
378 xas_clear_mark(&xas, XA_FREE_MARK); in cachefiles_ondemand_send_req()
379 xas_set_mark(&xas, CACHEFILES_REQ_NEW); in cachefiles_ondemand_send_req()
380 xas_unlock(&xas); in cachefiles_ondemand_send_req()
381 } while (xas_nomem(&xas, GFP_KERNEL)); in cachefiles_ondemand_send_req()
383 ret = xas_error(&xas); in cachefiles_ondemand_send_req()