Lines Matching refs:effect
125 * It uploads an effect to the device
127 static int iforce_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old)
130 struct iforce_core_effect *core_effect = &iforce->core_effects[effect->id];
134 /* Check the effect is not already being updated */
140 * Upload the effect
142 switch (effect->type) {
145 ret = iforce_upload_periodic(iforce, effect, old);
149 ret = iforce_upload_constant(iforce, effect, old);
154 ret = iforce_upload_condition(iforce, effect, old);
171 * Erases an effect: it frees the effect id and mark as unused the memory
310 iforce->device_memory.name = "I-Force device effect memory";