Home
last modified time | relevance | path

Searched refs:index_idr (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/block/rnbd/
H A Drnbd-srv.c94 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()
[all …]
H A Drnbd-srv.h27 struct xarray index_idr; member