Lines Matching refs:ff
210 static int get_compatible_type(struct ff_device *ff, int effect_type) in get_compatible_type() argument
213 if (test_bit(effect_type, ff->ffbit)) in get_compatible_type()
216 if (effect_type == FF_PERIODIC && test_bit(FF_RUMBLE, ff->ffbit)) in get_compatible_type()
367 effect_type = get_compatible_type(ml->dev->ff, effect->type); in ml_get_combo_effect()
418 struct ml_device *ml = dev->ff->private; in ml_effect_timer()
433 struct ml_device *ml = dev->ff->private; in ml_ff_set_gain()
449 struct ml_device *ml = dev->ff->private; in ml_ff_playback()
480 struct ml_device *ml = dev->ff->private; in ml_ff_upload()
500 static void ml_ff_destroy(struct ff_device *ff) in ml_ff_destroy() argument
502 struct ml_device *ml = ff->private; in ml_ff_destroy()
517 struct ff_device *ff; in input_ff_create_memless() local
539 ff = dev->ff; in input_ff_create_memless()
540 ff->private = ml; in input_ff_create_memless()
541 ff->upload = ml_ff_upload; in input_ff_create_memless()
542 ff->playback = ml_ff_playback; in input_ff_create_memless()
543 ff->set_gain = ml_ff_set_gain; in input_ff_create_memless()
544 ff->destroy = ml_ff_destroy; in input_ff_create_memless()
547 if (test_bit(FF_RUMBLE, ff->ffbit)) { in input_ff_create_memless()
555 ml->states[i].effect = &ff->effects[i]; in input_ff_create_memless()