Lines Matching refs:dhe
1037 free_dh_t *dhe; in ch_get_dma_handle() local
1040 dhe = (free_dh_t *)kmem_zalloc(sizeof (*dhe), KM_SLEEP); in ch_get_dma_handle()
1067 kmem_free(dhe, sizeof (*dhe)); in ch_get_dma_handle()
1072 dhe->dhe_dh = (ulong_t)ch_dh; in ch_get_dma_handle()
1074 return (dhe); in ch_get_dma_handle()
1083 free_dh_t *dhe, *the; in ch_free_dma_handles() local
1085 dhe = chp->ch_dh; in ch_free_dma_handles()
1086 while (dhe) { in ch_free_dma_handles()
1087 ddi_dma_free_handle((ddi_dma_handle_t *)&dhe->dhe_dh); in ch_free_dma_handles()
1088 the = dhe; in ch_free_dma_handles()
1089 dhe = dhe->dhe_next; in ch_free_dma_handles()
1115 free_dh_t *dhe; in ch_bind_dma_handle() local
1119 if ((dhe = chp->ch_dh) != NULL) { in ch_bind_dma_handle()
1120 chp->ch_dh = dhe->dhe_next; in ch_bind_dma_handle()
1124 if (dhe == NULL) { in ch_bind_dma_handle()
1128 ch_dh = (ddi_dma_handle_t)dhe->dhe_dh; in ch_bind_dma_handle()
1144 dhe->dhe_next = chp->ch_dh; in ch_bind_dma_handle()
1145 chp->ch_dh = dhe; in ch_bind_dma_handle()
1161 dhe->dhe_next = chp->ch_dh; in ch_bind_dma_handle()
1162 chp->ch_dh = dhe; in ch_bind_dma_handle()
1185 cmp->ce_dh = dhe; in ch_bind_dma_handle()
1199 ch_unbind_dma_handle(ch_t *chp, free_dh_t *dhe) in ch_unbind_dma_handle() argument
1201 ddi_dma_handle_t ch_dh = (ddi_dma_handle_t)dhe->dhe_dh; in ch_unbind_dma_handle()
1208 dhe->dhe_next = chp->ch_dh; in ch_unbind_dma_handle()
1209 chp->ch_dh = dhe; in ch_unbind_dma_handle()
1228 free_dh_t *dhe; in ch_get_dvma_handle() local
1231 dhe = (free_dh_t *)kmem_zalloc(sizeof (*dhe), KM_SLEEP); in ch_get_dvma_handle()
1252 kmem_free(dhe, sizeof (*dhe)); in ch_get_dvma_handle()
1257 dhe->dhe_dh = (ulong_t)ch_dh; in ch_get_dvma_handle()
1259 return (dhe); in ch_get_dvma_handle()
1270 free_dh_t *dhe, *the; in ch_free_dvma_handles() local
1272 dhe = chp->ch_vdh; in ch_free_dvma_handles()
1273 while (dhe) { in ch_free_dvma_handles()
1274 dvma_release((ddi_dma_handle_t)dhe->dhe_dh); in ch_free_dvma_handles()
1275 the = dhe; in ch_free_dvma_handles()
1276 dhe = dhe->dhe_next; in ch_free_dvma_handles()
1302 free_dh_t *dhe; in ch_bind_dvma_handle() local
1305 if ((dhe = chp->ch_vdh) != NULL) { in ch_bind_dvma_handle()
1306 chp->ch_vdh = dhe->dhe_next; in ch_bind_dvma_handle()
1310 if (dhe == NULL) { in ch_bind_dvma_handle()
1314 ch_dh = (ddi_dma_handle_t)dhe->dhe_dh; in ch_bind_dvma_handle()
1330 cmp->ce_dh = dhe; in ch_bind_dvma_handle()
1347 ch_unbind_dvma_handle(ch_t *chp, free_dh_t *dhe) in ch_unbind_dvma_handle() argument
1349 ddi_dma_handle_t ch_dh = (ddi_dma_handle_t)dhe->dhe_dh; in ch_unbind_dvma_handle()
1354 dhe->dhe_next = chp->ch_vdh; in ch_unbind_dvma_handle()
1355 chp->ch_vdh = dhe; in ch_unbind_dvma_handle()