Lines Matching defs:ff
26 #define debug(format, arg...) pr_debug("ff-memless: " format "\n", ## arg)
209 static int get_compatible_type(struct ff_device *ff, int effect_type)
212 if (test_bit(effect_type, ff->ffbit))
215 if (effect_type == FF_PERIODIC && test_bit(FF_RUMBLE, ff->ffbit))
219 "ff-memless: invalid type in get_compatible_type()\n");
315 printk(KERN_ERR "ff-memless: invalid type in ml_combine_effects()\n");
355 effect_type = get_compatible_type(ml->dev->ff, effect->type);
406 struct ml_device *ml = dev->ff->private;
421 struct ml_device *ml = dev->ff->private;
437 struct ml_device *ml = dev->ff->private;
468 struct ml_device *ml = dev->ff->private;
488 static void ml_ff_destroy(struct ff_device *ff)
490 struct ml_device *ml = ff->private;
505 struct ff_device *ff;
527 ff = dev->ff;
528 ff->private = ml;
529 ff->upload = ml_ff_upload;
530 ff->playback = ml_ff_playback;
531 ff->set_gain = ml_ff_set_gain;
532 ff->destroy = ml_ff_destroy;
535 if (test_bit(FF_RUMBLE, ff->ffbit)) {
543 ml->states[i].effect = &ff->effects[i];