Lines Matching refs:umdevice

56 bnx_rxbuffer_alloc(um_device_t *const umdevice, um_rxpacket_t *const umpacket)  in bnx_rxbuffer_alloc()  argument
67 rc = ddi_dma_alloc_handle(umdevice->os_param.dip, in bnx_rxbuffer_alloc()
113 bnx_rxbuffer_free(um_device_t * const umdevice, um_rxpacket_t * const umpacket) in bnx_rxbuffer_free() argument
131 bnx_recv_ring_init(um_device_t * const umdevice, const unsigned int ringidx) in bnx_recv_ring_init() argument
139 recvinfo = &_RX_QINFO(umdevice, ringidx); in bnx_recv_ring_init()
143 lmrxring = &umdevice->lm_dev.rx_info.chain[ringidx]; in bnx_recv_ring_init()
172 bnx_recv_ring_fill(um_device_t * const umdevice, const unsigned int ringidx) in bnx_recv_ring_fill() argument
179 recvinfo = &(_RX_QINFO(umdevice, ringidx)); in bnx_recv_ring_fill()
183 dstq = &(umdevice->lm_dev.rx_info.chain[ringidx].free_descq); in bnx_recv_ring_fill()
193 if (bnx_rxbuffer_alloc(umdevice, umpacket) != 0) { in bnx_recv_ring_fill()
206 bnx_recv_ring_recv(um_device_t *const umdevice, const unsigned int ringidx) in bnx_recv_ring_recv() argument
219 recvinfo = &(_RX_QINFO(umdevice, ringidx)); in bnx_recv_ring_recv()
230 freeq = &(umdevice->lm_dev.rx_info.chain[ringidx].free_descq); in bnx_recv_ring_recv()
232 recvq = &(umdevice->lm_dev.rx_info.chain[ringidx].active_descq); in bnx_recv_ring_recv()
282 if (pktlen < umdevice->rx_copy_threshold) { in bnx_recv_ring_recv()
284 lmdevice = &(umdevice->lm_dev); in bnx_recv_ring_recv()
365 umdevice->recv_discards++; in bnx_recv_ring_recv()
392 umdevice->recv_discards++; in bnx_recv_ring_recv()
406 if ((umdevice->dev_var.enabled_oflds & in bnx_recv_ring_recv()
412 if (((umdevice->dev_var.enabled_oflds & in bnx_recv_ring_recv()
415 ((umdevice->dev_var.enabled_oflds & in bnx_recv_ring_recv()
446 mutex_exit(&umdevice->os_param.rcv_mutex); in bnx_recv_ring_recv()
448 mac_rx(umdevice->os_param.macp, in bnx_recv_ring_recv()
449 umdevice->os_param.rx_resc_handle[ringidx], head); in bnx_recv_ring_recv()
451 mutex_enter(&umdevice->os_param.rcv_mutex); in bnx_recv_ring_recv()
458 bnx_recv_ring_dump(um_device_t *const umdevice, const unsigned int ringidx) in bnx_recv_ring_dump() argument
464 srcq = &(_RX_QINFO(umdevice, ringidx).waitq); in bnx_recv_ring_dump()
465 dstq = &(umdevice->lm_dev.rx_info.chain[ringidx].free_descq); in bnx_recv_ring_dump()
480 bnx_recv_ring_free(um_device_t *const umdevice, const unsigned int ringidx) in bnx_recv_ring_free() argument
486 srcq = &(umdevice->lm_dev.rx_info.chain[ringidx].free_descq); in bnx_recv_ring_free()
488 dstq = &(_RX_QINFO(umdevice, ringidx).buffq); in bnx_recv_ring_free()
502 bnx_rxbuffer_free(umdevice, umpacket); in bnx_recv_ring_free()
509 bnx_recv_ring_fini(um_device_t *const umdevice, const unsigned int ringidx) in bnx_recv_ring_fini() argument
515 recvinfo = &(_RX_QINFO(umdevice, ringidx)); in bnx_recv_ring_fini()
535 bnx_rxpkts_init(um_device_t *const umdevice) in bnx_rxpkts_init() argument
541 lmdevice = &(umdevice->lm_dev); in bnx_rxpkts_init()
548 bnx_recv_ring_init(umdevice, i); in bnx_rxpkts_init()
550 bnx_recv_ring_fill(umdevice, i); in bnx_rxpkts_init()
558 umdevice->dev_name, in bnx_rxpkts_init()
559 umdevice->lm_dev.params.l2_rx_desc_cnt[i], in bnx_rxpkts_init()
570 umdevice->dev_name); in bnx_rxpkts_init()
585 bnx_rxpkts_intr(um_device_t *const umdevice) in bnx_rxpkts_intr() argument
591 recvinfo = &(_RX_QINFO(umdevice, i)); in bnx_rxpkts_intr()
595 bnx_recv_ring_recv(umdevice, i); in bnx_rxpkts_intr()
601 bnx_rxpkts_post(um_device_t *const umdevice) in bnx_rxpkts_post() argument
607 recvinfo = &(_RX_QINFO(umdevice, i)); in bnx_rxpkts_post()
611 bnx_recv_ring_fill(umdevice, i); in bnx_rxpkts_post()
614 (void) lm_post_buffers(&(umdevice->lm_dev), i, NULL); in bnx_rxpkts_post()
620 bnx_rxpkts_recycle(um_device_t *const umdevice) in bnx_rxpkts_recycle() argument
625 bnx_recv_ring_dump(umdevice, i); in bnx_rxpkts_recycle()
627 lm_abort(&(umdevice->lm_dev), ABORT_OP_RX_CHAIN, i); in bnx_rxpkts_recycle()
632 bnx_rxpkts_fini(um_device_t *const umdevice) in bnx_rxpkts_fini() argument
638 bnx_recv_ring_dump(umdevice, i); in bnx_rxpkts_fini()
641 lm_abort(&(umdevice->lm_dev), ABORT_OP_RX_CHAIN, i); in bnx_rxpkts_fini()
643 bnx_recv_ring_free(umdevice, i); in bnx_rxpkts_fini()
644 bnx_recv_ring_fini(umdevice, i); in bnx_rxpkts_fini()