Lines Matching refs:dim
95 Net DIM API exposes the main function net_dim(struct dim *dim,
99 data structures: struct dim and struct dim_sample. Struct dim
104 data sample stored in struct dim in order to decide on the algorithm's next
113 struct dim to the net_dim() function call. It is advised for each entity
114 using Net DIM to hold a struct dim as part of its data structure and use it
135 #include <linux/dim.h>
140 /* Get struct dim from struct work_struct */
141 struct dim *dim = container_of(work, struct dim,
147 dim->state = DIM_START_MEASURE;
163 net_dim(&my_entity->dim, dim_sample);
172 INIT_WORK(&my_entity->dim.work, my_driver_do_dim_work);