Lines Matching refs:dim
620 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
623 ec->use_adaptive_rx_coalesce |= ring->dim.use_dim; in bcmgenet_get_coalesce()
654 if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) { in bcmgenet_set_ring_rx_coalesce()
655 moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode); in bcmgenet_set_ring_rx_coalesce()
660 ring->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcmgenet_set_ring_rx_coalesce()
1890 ring->dim.bytes = bytes_processed; in bcmgenet_desc_rx()
1891 ring->dim.packets = rxpktprocessed; in bcmgenet_desc_rx()
1911 if (ring->dim.use_dim) { in bcmgenet_rx_poll()
1912 net_dim_sample(ring->dim.event_ctr, ring->dim.packets, in bcmgenet_rx_poll()
1913 ring->dim.bytes, &dim_sample); in bcmgenet_rx_poll()
1914 net_dim(&ring->dim.dim, dim_sample); in bcmgenet_rx_poll()
1922 struct net_dim *dim = container_of(work, struct net_dim, work); in bcmgenet_dim_work() local
1924 container_of(dim, struct bcmgenet_net_dim, dim); in bcmgenet_dim_work()
1926 container_of(ndim, struct bcmgenet_rx_ring, dim); in bcmgenet_dim_work()
1928 net_dim_get_rx_moderation(dim->mode, dim->profile_ix); in bcmgenet_dim_work()
1931 dim->state = NET_DIM_START_MEASURE; in bcmgenet_dim_work()
2085 struct bcmgenet_net_dim *dim = &ring->dim; in bcmgenet_init_dim() local
2087 INIT_WORK(&dim->dim.work, cb); in bcmgenet_init_dim()
2088 dim->dim.mode = NET_DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bcmgenet_init_dim()
2089 dim->event_ctr = 0; in bcmgenet_init_dim()
2090 dim->packets = 0; in bcmgenet_init_dim()
2091 dim->bytes = 0; in bcmgenet_init_dim()
2096 struct bcmgenet_net_dim *dim = &ring->dim; in bcmgenet_init_rx_coalesce() local
2104 if (dim->use_dim) { in bcmgenet_init_rx_coalesce()
2105 moder = net_dim_get_def_rx_moderation(dim->dim.mode); in bcmgenet_init_rx_coalesce()
2369 cancel_work_sync(&ring->dim.dim.work); in bcmgenet_disable_rx_napi()
2374 cancel_work_sync(&ring->dim.dim.work); in bcmgenet_disable_rx_napi()
2652 rx_ring->dim.event_ctr++; in bcmgenet_isr1()
2697 rx_ring->dim.event_ctr++; in bcmgenet_isr0()