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");
279 printk(KERN_ERR "ff-memless: invalid type in ml_combine_effects()\n");
319 effect_type = get_compatible_type(ml->dev->ff, effect->type);
370 struct ml_device *ml = dev->ff->private;
381 struct ml_device *ml = dev->ff->private;
398 struct ml_device *ml = dev->ff->private;
435 struct ml_device *ml = dev->ff->private;
455 static void ml_ff_destroy(struct ff_device *ff)
457 struct ml_device *ml = ff->private;
472 struct ff_device *ff;
495 ff = dev->ff;
496 ff->private = ml;
497 ff->upload = ml_ff_upload;
498 ff->playback = ml_ff_playback;
499 ff->set_gain = ml_ff_set_gain;
500 ff->destroy = ml_ff_destroy;
503 if (test_bit(FF_RUMBLE, ff->ffbit)) {
511 ml->states[i].effect = &ff->effects[i];