Lines Matching refs:index_idr
94 sess_dev = xa_load(&srv_sess->index_idr, dev_id); in rnbd_get_sess_dev()
212 xa_cmpxchg(&sess_dev->sess->index_idr, sess_dev->device_id, in rnbd_destroy_sess_dev()
215 xa_erase(&sess_dev->sess->index_idr, sess_dev->device_id); in rnbd_destroy_sess_dev()
240 if (xa_empty(&srv_sess->index_idr)) in destroy_sess()
246 xa_for_each(&srv_sess->index_idr, index, sess_dev) in destroy_sess()
251 xa_destroy(&srv_sess->index_idr); in destroy_sess()
280 xa_init_flags(&srv_sess->index_idr, XA_FLAGS_ALLOC); in create_sess()
414 error = xa_alloc(&srv_sess->index_idr, &sess_dev->device_id, sess_dev, in rnbd_sess_dev_alloc()
662 if (xa_empty(&srv_sess->index_idr)) in find_srv_sess_dev()
665 xa_for_each(&srv_sess->index_idr, index, sess_dev) in find_srv_sess_dev()
783 xa_erase(&srv_sess->index_idr, srv_sess_dev->device_id); in process_msg_open()