Lines Matching refs:ixgbe
58 ixgbe_t *ixgbe; in ixgbe_rx_recycle() local
68 ixgbe = rx_ring->ixgbe; in ixgbe_rx_recycle()
123 mutex_enter(&ixgbe->rx_pending_lock); in ixgbe_rx_recycle()
125 atomic_dec_32(&ixgbe->rcb_pending); in ixgbe_rx_recycle()
135 mutex_exit(&ixgbe->rx_pending_lock); in ixgbe_rx_recycle()
148 ixgbe_t *ixgbe; in ixgbe_rx_copy() local
152 ixgbe = rx_data->rx_ring->ixgbe; in ixgbe_rx_copy()
159 ddi_fm_service_impact(ixgbe->dip, DDI_SERVICE_DEGRADED); in ixgbe_rx_copy()
160 atomic_or_32(&ixgbe->ixgbe_state, IXGBE_ERROR); in ixgbe_rx_copy()
169 ixgbe_log(ixgbe, "ixgbe_rx_copy: allocate buffer failed"); in ixgbe_rx_copy()
196 ixgbe_t *ixgbe = rx_data->rx_ring->ixgbe; in ixgbe_rx_bind() local
233 ddi_fm_service_impact(ixgbe->dip, DDI_SERVICE_DEGRADED); in ixgbe_rx_bind()
235 atomic_or_32(&ixgbe->ixgbe_state, IXGBE_ERROR); in ixgbe_rx_bind()
283 ixgbe_t *ixgbe = rx_data->rx_ring->ixgbe; in ixgbe_lro_bind() local
307 ddi_fm_service_impact(ixgbe->dip, DDI_SERVICE_DEGRADED); in ixgbe_lro_bind()
309 atomic_or_32(&ixgbe->ixgbe_state, IXGBE_ERROR); in ixgbe_lro_bind()
340 last_pkt_len = pkt_len - ixgbe->rx_buf_size * (lro_num - 1); in ixgbe_lro_bind()
348 mp->b_wptr = mp->b_rptr + ixgbe->rx_buf_size; in ixgbe_lro_bind()
393 ixgbe_t *ixgbe; in ixgbe_lro_copy() local
401 ixgbe = rx_data->rx_ring->ixgbe; in ixgbe_lro_copy()
408 ixgbe_log(ixgbe, "LRO copy MP alloc failed"); in ixgbe_lro_copy()
422 ddi_fm_service_impact(ixgbe->dip, DDI_SERVICE_DEGRADED); in ixgbe_lro_copy()
423 atomic_or_32(&ixgbe->ixgbe_state, IXGBE_ERROR); in ixgbe_lro_copy()
433 last_pkt_len = pkt_len - ixgbe->rx_buf_size * (lro_num - 1); in ixgbe_lro_copy()
443 ixgbe->rx_buf_size); in ixgbe_lro_copy()
444 mp->b_wptr += ixgbe->rx_buf_size; in ixgbe_lro_copy()
561 ixgbe_t *ixgbe = rx_ring->ixgbe; in ixgbe_ring_rx() local
564 if ((ixgbe->ixgbe_state & IXGBE_SUSPENDED) || in ixgbe_ring_rx()
565 (ixgbe->ixgbe_state & IXGBE_ERROR) || in ixgbe_ring_rx()
566 (ixgbe->ixgbe_state & IXGBE_OVERTEMP) || in ixgbe_ring_rx()
567 !(ixgbe->ixgbe_state & IXGBE_STARTED)) in ixgbe_ring_rx()
581 ddi_fm_service_impact(ixgbe->dip, DDI_SERVICE_DEGRADED); in ixgbe_ring_rx()
582 atomic_or_32(&ixgbe->ixgbe_state, IXGBE_ERROR); in ixgbe_ring_rx()
603 ((!ixgbe->lro_enable) && in ixgbe_ring_rx()
613 if (ixgbe->lro_enable) { in ixgbe_ring_rx()
625 ixgbe->lro_pkt_count++; in ixgbe_ring_rx()
628 ixgbe->rx_buf_size; in ixgbe_ring_rx()
678 if (pkt_len > ixgbe->rx_copy_thresh) in ixgbe_ring_rx()
688 if (ixgbe->rx_hcksum_enable) in ixgbe_ring_rx()
700 if (ixgbe->lro_enable) { in ixgbe_ring_rx()
719 if (++pkt_num > ixgbe->rx_limit_per_intr) { in ixgbe_ring_rx()
738 if (ixgbe->lro_enable) { in ixgbe_ring_rx()
744 IXGBE_WRITE_REG(&ixgbe->hw, IXGBE_RDT(rx_ring->hw_index), rx_tail); in ixgbe_ring_rx()
746 if (ixgbe_check_acc_handle(ixgbe->osdep.reg_handle) != DDI_FM_OK) { in ixgbe_ring_rx()
747 ddi_fm_service_impact(ixgbe->dip, DDI_SERVICE_DEGRADED); in ixgbe_ring_rx()
748 atomic_or_32(&ixgbe->ixgbe_state, IXGBE_ERROR); in ixgbe_ring_rx()