Lines Matching full:dim
832 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
835 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
866 if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) { in bcmgenet_set_ring_rx_coalesce()
867 moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode); in bcmgenet_set_ring_rx_coalesce()
872 ring->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcmgenet_set_ring_rx_coalesce()
2384 ring->dim.bytes = bytes_processed; in bcmgenet_desc_rx()
2385 ring->dim.packets = rxpktprocessed; in bcmgenet_desc_rx()
2405 if (ring->dim.use_dim) { in bcmgenet_rx_poll()
2406 dim_update_sample(ring->dim.event_ctr, ring->dim.packets, in bcmgenet_rx_poll()
2407 ring->dim.bytes, &dim_sample); in bcmgenet_rx_poll()
2408 net_dim(&ring->dim.dim, dim_sample); in bcmgenet_rx_poll()
2416 struct dim *dim = container_of(work, struct dim, work); in bcmgenet_dim_work() local
2418 container_of(dim, struct bcmgenet_net_dim, dim); in bcmgenet_dim_work()
2420 container_of(ndim, struct bcmgenet_rx_ring, dim); in bcmgenet_dim_work()
2422 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in bcmgenet_dim_work()
2425 dim->state = DIM_START_MEASURE; in bcmgenet_dim_work()
2602 struct bcmgenet_net_dim *dim = &ring->dim; in bcmgenet_init_dim() local
2604 INIT_WORK(&dim->dim.work, cb); in bcmgenet_init_dim()
2605 dim->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bcmgenet_init_dim()
2606 dim->event_ctr = 0; in bcmgenet_init_dim()
2607 dim->packets = 0; in bcmgenet_init_dim()
2608 dim->bytes = 0; in bcmgenet_init_dim()
2613 struct bcmgenet_net_dim *dim = &ring->dim; in bcmgenet_init_rx_coalesce() local
2620 /* If DIM was enabled, re-apply default parameters */ in bcmgenet_init_rx_coalesce()
2621 if (dim->use_dim) { in bcmgenet_init_rx_coalesce()
2622 moder = net_dim_get_def_rx_moderation(dim->dim.mode); in bcmgenet_init_rx_coalesce()
2884 cancel_work_sync(&ring->dim.dim.work); in bcmgenet_disable_rx_napi()
2889 cancel_work_sync(&ring->dim.dim.work); in bcmgenet_disable_rx_napi()
3169 rx_ring->dim.event_ctr++; in bcmgenet_isr1()
3214 rx_ring->dim.event_ctr++; in bcmgenet_isr0()