Lines Matching refs:umpacket

56 bnx_rxbuffer_alloc(um_device_t *const umdevice, um_rxpacket_t *const umpacket)  in bnx_rxbuffer_alloc()  argument
65 lmpacket = &(umpacket->lmpacket); in bnx_rxbuffer_alloc()
69 (void *)0, &(umpacket->dma_handle)); in bnx_rxbuffer_alloc()
82 rc = ddi_dma_mem_alloc(umpacket->dma_handle, pktsize, in bnx_rxbuffer_alloc()
85 &umpacket->dma_acc_handle); in bnx_rxbuffer_alloc()
91 rc = ddi_dma_addr_bind_handle(umpacket->dma_handle, NULL, in bnx_rxbuffer_alloc()
104 ddi_dma_mem_free(&(umpacket->dma_acc_handle)); in bnx_rxbuffer_alloc()
107 ddi_dma_free_handle(&(umpacket->dma_handle)); in bnx_rxbuffer_alloc()
113 bnx_rxbuffer_free(um_device_t * const umdevice, um_rxpacket_t * const umpacket) in bnx_rxbuffer_free() argument
117 lmpacket = &(umpacket->lmpacket); in bnx_rxbuffer_free()
122 (void) ddi_dma_unbind_handle(umpacket->dma_handle); in bnx_rxbuffer_free()
125 ddi_dma_mem_free(&umpacket->dma_acc_handle); in bnx_rxbuffer_free()
127 ddi_dma_free_handle(&(umpacket->dma_handle)); in bnx_rxbuffer_free()
137 um_rxpacket_t *umpacket; in bnx_recv_ring_init() local
158 umpacket = (um_rxpacket_t *)s_list_pop_head(srcq); in bnx_recv_ring_init()
159 if (umpacket == NULL) { in bnx_recv_ring_init()
163 s_list_push_tail(dstq, &(umpacket->lmpacket.link)); in bnx_recv_ring_init()
176 um_rxpacket_t *umpacket; in bnx_recv_ring_fill() local
188 umpacket = (um_rxpacket_t *)s_list_pop_head(srcq); in bnx_recv_ring_fill()
189 if (umpacket == NULL) { in bnx_recv_ring_fill()
193 if (bnx_rxbuffer_alloc(umdevice, umpacket) != 0) { in bnx_recv_ring_fill()
194 s_list_push_head(srcq, &umpacket->lmpacket.link); in bnx_recv_ring_fill()
198 s_list_push_tail(dstq, &umpacket->lmpacket.link); in bnx_recv_ring_fill()
216 um_rxpacket_t *umpacket; in bnx_recv_ring_recv() local
246 umpacket = (um_rxpacket_t *)s_list_pop_head(srcq); in bnx_recv_ring_recv()
247 if (umpacket == NULL) { in bnx_recv_ring_recv()
251 lmpacket = &(umpacket->lmpacket); in bnx_recv_ring_recv()
277 (void) ddi_dma_sync(umpacket->dma_handle, 0, in bnx_recv_ring_recv()
462 um_rxpacket_t *umpacket; in bnx_recv_ring_dump() local
470 umpacket = (um_rxpacket_t *)s_list_pop_head(srcq); in bnx_recv_ring_dump()
471 if (umpacket == NULL) { in bnx_recv_ring_dump()
475 s_list_push_tail(dstq, &(umpacket->lmpacket.link)); in bnx_recv_ring_dump()
484 um_rxpacket_t *umpacket; in bnx_recv_ring_free() local
497 umpacket = (um_rxpacket_t *)s_list_pop_head(srcq); in bnx_recv_ring_free()
498 if (umpacket == NULL) { in bnx_recv_ring_free()
502 bnx_rxbuffer_free(umdevice, umpacket); in bnx_recv_ring_free()
504 s_list_push_tail(dstq, &umpacket->lmpacket.link); in bnx_recv_ring_free()
512 um_rxpacket_t *umpacket; in bnx_recv_ring_fini() local
521 umpacket = (um_rxpacket_t *)s_list_pop_head(srcq); in bnx_recv_ring_fini()
522 if (umpacket == NULL) { in bnx_recv_ring_fini()