Lines Matching full:dim
637 ec->use_adaptive_rx_coalesce = priv->dim.use_dim; in bcm_sysport_get_coalesce()
674 if (ec->use_adaptive_rx_coalesce && !priv->dim.use_dim) { in bcm_sysport_set_coalesce()
675 moder = net_dim_get_def_rx_moderation(priv->dim.dim.mode); in bcm_sysport_set_coalesce()
680 priv->dim.use_dim = ec->use_adaptive_rx_coalesce; in bcm_sysport_set_coalesce()
879 priv->dim.packets = processed; in bcm_sysport_desc_rx()
880 priv->dim.bytes = processed_bytes; in bcm_sysport_desc_rx()
1053 if (priv->dim.use_dim) { in bcm_sysport_poll()
1054 dim_update_sample(priv->dim.event_ctr, priv->dim.packets, in bcm_sysport_poll()
1055 priv->dim.bytes, &dim_sample); in bcm_sysport_poll()
1056 net_dim(&priv->dim.dim, dim_sample); in bcm_sysport_poll()
1125 struct dim *dim = container_of(work, struct dim, work); in bcm_sysport_dim_work() local
1127 container_of(dim, struct bcm_sysport_net_dim, dim); in bcm_sysport_dim_work()
1129 container_of(ndim, struct bcm_sysport_priv, dim); in bcm_sysport_dim_work()
1130 struct dim_cq_moder cur_profile = net_dim_get_rx_moderation(dim->mode, in bcm_sysport_dim_work()
1131 dim->profile_ix); in bcm_sysport_dim_work()
1134 dim->state = DIM_START_MEASURE; in bcm_sysport_dim_work()
1155 priv->dim.event_ctr++; in bcm_sysport_rx_isr()
1485 struct bcm_sysport_net_dim *dim = &priv->dim; in bcm_sysport_init_dim() local
1487 INIT_WORK(&dim->dim.work, cb); in bcm_sysport_init_dim()
1488 dim->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in bcm_sysport_init_dim()
1489 dim->event_ctr = 0; in bcm_sysport_init_dim()
1490 dim->packets = 0; in bcm_sysport_init_dim()
1491 dim->bytes = 0; in bcm_sysport_init_dim()
1496 struct bcm_sysport_net_dim *dim = &priv->dim; in bcm_sysport_init_rx_coalesce() local
1503 /* If DIM was enabled, re-apply default parameters */ in bcm_sysport_init_rx_coalesce()
1504 if (dim->use_dim) { in bcm_sysport_init_rx_coalesce()
1505 moder = net_dim_get_def_rx_moderation(dim->dim.mode); in bcm_sysport_init_rx_coalesce()
2097 cancel_work_sync(&priv->dim.dim.work); in bcm_sysport_netif_stop()