Lines Matching defs:esmp
37 sfxge_dma_buffer_unbind_handle(efsys_mem_t *esmp)
41 esmp->esm_addr = 0;
42 rc = ddi_dma_unbind_handle(esmp->esm_dma_handle);
55 sfxge_dma_buffer_mem_free(efsys_mem_t *esmp)
57 esmp->esm_base = NULL;
58 ddi_dma_mem_free(&(esmp->esm_acc_handle));
59 esmp->esm_acc_handle = NULL;
70 sfxge_dma_buffer_create(efsys_mem_t *esmp, const sfxge_dma_buffer_attr_t *sdbap)
80 sdbap->sdba_callback, NULL, &(esmp->esm_dma_handle));
99 err = ddi_dma_mem_alloc(esmp->esm_dma_handle, sdbap->sdba_length,
102 &(esmp->esm_base), &unit, &(esmp->esm_acc_handle));
115 bzero(esmp->esm_base, sdbap->sdba_length);
120 err = ddi_dma_addr_bind_handle(esmp->esm_dma_handle, NULL,
121 esmp->esm_base, sdbap->sdba_length, sdbap->sdba_bindflags,
150 esmp->esm_addr = dmac.dmac_laddress;
151 esmp->esm_size = dmac.dmac_size;
152 DTRACE_PROBE1(addr, efsys_dma_addr_t, esmp->esm_addr);
159 sfxge_dma_buffer_mem_free(esmp);
164 sfxge_dma_buffer_handle_free(&(esmp->esm_dma_handle));
165 esmp->esm_dma_handle = NULL;
174 sfxge_dma_buffer_destroy(efsys_mem_t *esmp)
178 rc = sfxge_dma_buffer_unbind_handle(esmp);
182 sfxge_dma_buffer_mem_free(esmp);
183 sfxge_dma_buffer_handle_free(&(esmp->esm_dma_handle));