Lines Matching refs:effect
128 * It uploads an effect to the device
130 static int iforce_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old)
133 struct iforce_core_effect *core_effect = &iforce->core_effects[effect->id];
137 /* Check the effect is not already being updated */
143 * Upload the effect
145 switch (effect->type) {
148 ret = iforce_upload_periodic(iforce, effect, old);
152 ret = iforce_upload_constant(iforce, effect, old);
157 ret = iforce_upload_condition(iforce, effect, old);
174 * Erases an effect: it frees the effect id and mark as unused the memory
303 iforce->device_memory.name = "I-Force device effect memory";