Lines Matching refs:dcopy_statep
130 dcopy_state_t *dcopy_statep;
216 dcopy_statep = kmem_zalloc(sizeof (*dcopy_statep), KM_SLEEP);
219 e = dcopy_list_init(&dcopy_statep->d_device_list,
227 e = dcopy_list_init(&dcopy_statep->d_globalchan_list,
237 dcopy_list_fini(&dcopy_statep->d_globalchan_list);
239 dcopy_list_fini(&dcopy_statep->d_device_list);
241 kmem_free(dcopy_statep, sizeof (*dcopy_statep));
257 ASSERT(list_head(&dcopy_statep->d_globalchan_list.dl_list) == NULL);
258 ASSERT(list_head(&dcopy_statep->d_device_list.dl_list) == NULL);
260 dcopy_list_fini(&dcopy_statep->d_globalchan_list);
261 dcopy_list_fini(&dcopy_statep->d_device_list);
262 kmem_free(dcopy_statep, sizeof (*dcopy_statep));
274 query->dq_num_channels = dcopy_statep->d_globalchan_list.dl_cnt;
294 list = &dcopy_statep->d_globalchan_list;
339 list = &dcopy_statep->d_globalchan_list;
670 dcopy_list_push(&dcopy_statep->d_device_list, device);
676 mutex_enter(&dcopy_statep->d_globalchan_list.dl_mutex);
677 mutex_enter(&dcopy_statep->d_device_list.dl_mutex);
680 list_insert_tail(&dcopy_statep->d_globalchan_list.dl_list,
682 dcopy_statep->d_globalchan_list.dl_cnt++;
685 mutex_exit(&dcopy_statep->d_device_list.dl_mutex);
686 mutex_exit(&dcopy_statep->d_globalchan_list.dl_mutex);
737 mutex_enter(&dcopy_statep->d_globalchan_list.dl_mutex);
751 dcopy_statep->d_globalchan_list.dl_cnt--;
752 list_remove(&dcopy_statep->d_globalchan_list.dl_list, channel);
756 mutex_exit(&dcopy_statep->d_globalchan_list.dl_mutex);
785 mutex_enter(&dcopy_statep->d_device_list.dl_mutex);
798 list_remove(&dcopy_statep->d_device_list.dl_list, device);
800 mutex_exit(&dcopy_statep->d_device_list.dl_mutex);