Lines Matching full:dim
3905 * idpf_update_dim_sample - Update dim sample with packets and bytes
3907 * @dim_sample: dim sample to update
3908 * @dim: dim instance structure
3912 * Update the dim sample with the packets and bytes which are passed to this
3913 * function. Set the dim state appropriately if the dim settings gets stale.
3917 struct dim *dim, u64 packets, u64 bytes) in idpf_update_dim_sample() argument
3922 /* if dim settings get stale, like when not updated for 1 second or in idpf_update_dim_sample()
3926 if (ktime_ms_delta(dim_sample->time, dim->start_sample.time) >= HZ) in idpf_update_dim_sample()
3927 dim->state = DIM_START_MEASURE; in idpf_update_dim_sample()
3931 * idpf_net_dim - Update net DIM algorithm
3934 * Create a DIM sample and notify net_dim() so that it can possibly decide
4135 struct dim *dim; in idpf_tx_dim_work() local
4138 dim = container_of(work, struct dim, work); in idpf_tx_dim_work()
4139 q_vector = container_of(dim, struct idpf_q_vector, tx_dim); in idpf_tx_dim_work()
4142 if (dim->profile_ix >= ARRAY_SIZE(vport->tx_itr_profile)) in idpf_tx_dim_work()
4143 dim->profile_ix = ARRAY_SIZE(vport->tx_itr_profile) - 1; in idpf_tx_dim_work()
4146 itr = vport->tx_itr_profile[dim->profile_ix]; in idpf_tx_dim_work()
4150 dim->state = DIM_START_MEASURE; in idpf_tx_dim_work()
4161 struct dim *dim; in idpf_rx_dim_work() local
4164 dim = container_of(work, struct dim, work); in idpf_rx_dim_work()
4165 q_vector = container_of(dim, struct idpf_q_vector, rx_dim); in idpf_rx_dim_work()
4168 if (dim->profile_ix >= ARRAY_SIZE(vport->rx_itr_profile)) in idpf_rx_dim_work()
4169 dim->profile_ix = ARRAY_SIZE(vport->rx_itr_profile) - 1; in idpf_rx_dim_work()
4172 itr = vport->rx_itr_profile[dim->profile_ix]; in idpf_rx_dim_work()
4176 dim->state = DIM_START_MEASURE; in idpf_rx_dim_work()