Lines Matching refs:cds

31 static int init_device_subkind(libxl__checkpoint_devices_state *cds)  in init_device_subkind()  argument
35 STATE_AO_GC(cds->ao); in init_device_subkind()
38 rc = init_subkind_nic(cds); in init_device_subkind()
42 rc = init_subkind_drbd_disk(cds); in init_device_subkind()
50 static void cleanup_device_subkind(libxl__checkpoint_devices_state *cds) in cleanup_device_subkind() argument
53 STATE_AO_GC(cds->ao); in cleanup_device_subkind()
56 cleanup_subkind_nic(cds); in cleanup_device_subkind()
58 cleanup_subkind_drbd_disk(cds); in cleanup_device_subkind()
64 libxl__checkpoint_devices_state *cds, int rc);
66 libxl__checkpoint_devices_state *cds, int rc);
78 libxl__checkpoint_devices_state *const cds = &dss->cds; in libxl__remus_setup() local
91 cds->device_kind_flags |= (1 << LIBXL__DEVICE_KIND_VIF); in libxl__remus_setup()
95 cds->device_kind_flags |= (1 << LIBXL__DEVICE_KIND_VBD); in libxl__remus_setup()
97 cds->ao = ao; in libxl__remus_setup()
98 cds->domid = dss->domid; in libxl__remus_setup()
99 cds->callback = remus_setup_done; in libxl__remus_setup()
100 cds->ops = remus_ops; in libxl__remus_setup()
101 cds->concrete_data = rs; in libxl__remus_setup()
104 if (init_device_subkind(cds)) { in libxl__remus_setup()
116 libxl__checkpoint_devices_setup(egc, cds); in libxl__remus_setup()
124 libxl__checkpoint_devices_state *cds, int rc) in remus_setup_done() argument
126 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_setup_done()
135 cds->callback = remus_setup_failed; in remus_setup_done()
136 libxl__checkpoint_devices_teardown(egc, cds); in remus_setup_done()
140 libxl__checkpoint_devices_state *cds, int rc) in remus_setup_failed() argument
142 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_setup_failed()
149 cleanup_device_subkind(cds); in remus_setup_failed()
155 libxl__checkpoint_devices_state *cds,
164 libxl__checkpoint_devices_state *const cds = &dss->cds; in libxl__remus_teardown() local
170 cds->callback = remus_teardown_done; in libxl__remus_teardown()
171 libxl__checkpoint_devices_teardown(egc, cds); in libxl__remus_teardown()
175 libxl__checkpoint_devices_state *cds, in remus_teardown_done() argument
178 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_teardown_done()
185 cleanup_device_subkind(cds); in remus_teardown_done()
195 libxl__checkpoint_devices_state *cds,
198 libxl__checkpoint_devices_state *cds,
220 libxl__checkpoint_devices_state *const cds = &dss->cds; in remus_domain_suspend_callback_common_done() local
221 cds->callback = remus_devices_postsuspend_cb; in remus_domain_suspend_callback_common_done()
222 libxl__checkpoint_devices_postsuspend(egc, cds); in remus_domain_suspend_callback_common_done()
231 libxl__checkpoint_devices_state *cds, in remus_devices_postsuspend_cb() argument
234 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_devices_postsuspend_cb()
254 libxl__checkpoint_devices_state *const cds = &dss->cds; in libxl__remus_domain_resume_callback() local
255 cds->callback = remus_devices_preresume_cb; in libxl__remus_domain_resume_callback()
256 libxl__checkpoint_devices_preresume(egc, cds); in libxl__remus_domain_resume_callback()
260 libxl__checkpoint_devices_state *cds, in remus_devices_preresume_cb() argument
263 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_devices_preresume_cb()
285 libxl__checkpoint_devices_state *cds,
307 libxl__checkpoint_devices_state *const cds = &dss->cds; in remus_checkpoint_stream_written() local
317 cds->callback = remus_devices_commit_cb; in remus_checkpoint_stream_written()
318 libxl__checkpoint_devices_commit(egc, cds); in remus_checkpoint_stream_written()
327 libxl__checkpoint_devices_state *cds, in remus_devices_commit_cb() argument
330 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_devices_commit_cb()