Lines Matching refs:ff
195 static int get_compatible_type(struct ff_device *ff, int effect_type)
198 if (test_bit(effect_type, ff->ffbit))
201 if (effect_type == FF_PERIODIC && test_bit(FF_RUMBLE, ff->ffbit))
352 effect_type = get_compatible_type(ml->dev->ff, effect->type);
418 struct ml_device *ml = dev->ff->private;
434 struct ml_device *ml = dev->ff->private;
465 struct ml_device *ml = dev->ff->private;
485 static void ml_ff_destroy(struct ff_device *ff)
487 struct ml_device *ml = ff->private;
511 struct ff_device *ff;
533 ff = dev->ff;
534 ff->private = ml;
535 ff->upload = ml_ff_upload;
536 ff->playback = ml_ff_playback;
537 ff->set_gain = ml_ff_set_gain;
538 ff->destroy = ml_ff_destroy;
541 if (test_bit(FF_RUMBLE, ff->ffbit)) {
549 ml->states[i].effect = &ff->effects[i];