Lines Matching defs:tw

206 	uhci_trans_wrapper_t	*tw;
251 tw = td->tw;
254 ddi_rep_get8(tw->tw_accesshandle,
256 (uint8_t *)td->tw->tw_buf,
393 uhci_trans_wrapper_t *tw;
407 tw = td->tw;
415 tw->tw_length = num_characters;
416 ddi_put8(tw->tw_accesshandle, (uint8_t *)tw->tw_buf, *buf);
417 ddi_rep_put8(tw->tw_accesshandle, buf, (uint8_t *)tw->tw_buf,
422 td->tw = tw;
433 SetTD32(uhcip, td->buffer_address, tw->tw_cookie.dmac_address);
547 uhci_free_tw(uhcip, td->tw);
660 if (td->tw->tw_pipe_private->pp_pipe_handle == ph) {
753 if (td->tw->tw_pipe_private->pp_pipe_handle ==
798 uhci_trans_wrapper_t *tw;
802 if ((tw = uhci_polled_create_tw(uhci_polledp->uhci_polled_uhcip)) ==
813 td->tw = tw;
829 SetTD32(uhcip, td->buffer_address, tw->tw_cookie.dmac_address);
849 uhci_trans_wrapper_t *tw;
853 if ((tw = kmem_zalloc(sizeof (uhci_trans_wrapper_t), KM_NOSLEEP)) ==
859 tw->tw_length = POLLED_RAW_BUF_SIZE;
863 &uhcip->uhci_dma_attr, DDI_DMA_DONTWAIT, 0, &tw->tw_dmahandle)) !=
865 kmem_free(tw, sizeof (uhci_trans_wrapper_t));
875 if ((result = ddi_dma_mem_alloc(tw->tw_dmahandle, POLLED_RAW_BUF_SIZE,
877 &tw->tw_buf, &real_length, &tw->tw_accesshandle)) !=
879 ddi_dma_free_handle(&tw->tw_dmahandle);
880 kmem_free(tw, sizeof (uhci_trans_wrapper_t));
886 if ((result = ddi_dma_addr_bind_handle(tw->tw_dmahandle, NULL,
887 tw->tw_buf, real_length, DDI_DMA_RDWR|DDI_DMA_CONSISTENT,
888 DDI_DMA_DONTWAIT, NULL, &tw->tw_cookie, &ccount)) !=
890 ddi_dma_mem_free(&tw->tw_accesshandle);
891 ddi_dma_free_handle(&tw->tw_dmahandle);
892 kmem_free(tw, sizeof (uhci_trans_wrapper_t));
899 result = ddi_dma_unbind_handle(tw->tw_dmahandle);
902 ddi_dma_mem_free(&tw->tw_accesshandle);
903 ddi_dma_free_handle(&tw->tw_dmahandle);
904 kmem_free(tw, sizeof (uhci_trans_wrapper_t));
909 return (tw);