Lines Matching full:ff
198 static int get_compatible_type(struct ff_device *ff, int effect_type) in get_compatible_type() argument
201 if (test_bit(effect_type, ff->ffbit)) in get_compatible_type()
204 if (effect_type == FF_PERIODIC && test_bit(FF_RUMBLE, ff->ffbit)) in get_compatible_type()
355 effect_type = get_compatible_type(ml->dev->ff, effect->type); in ml_get_combo_effect()
417 * Sets requested gain for FF effects. Called with dev->event_lock held.
421 struct ml_device *ml = dev->ff->private; in ml_ff_set_gain()
433 * Start/stop specified FF effect. Called with dev->event_lock held.
437 struct ml_device *ml = dev->ff->private; in ml_ff_playback()
468 struct ml_device *ml = dev->ff->private; in ml_ff_upload()
488 static void ml_ff_destroy(struct ff_device *ff) in ml_ff_destroy() argument
490 struct ml_device *ml = ff->private; in ml_ff_destroy()
508 * @play_effect: driver-specific method for playing FF effect
514 struct ff_device *ff; in input_ff_create_memless() local
536 ff = dev->ff; in input_ff_create_memless()
537 ff->private = ml; in input_ff_create_memless()
538 ff->upload = ml_ff_upload; in input_ff_create_memless()
539 ff->playback = ml_ff_playback; in input_ff_create_memless()
540 ff->set_gain = ml_ff_set_gain; in input_ff_create_memless()
541 ff->destroy = ml_ff_destroy; in input_ff_create_memless()
544 if (test_bit(FF_RUMBLE, ff->ffbit)) { in input_ff_create_memless()
552 ml->states[i].effect = &ff->effects[i]; in input_ff_create_memless()