Lines Matching refs:old

262 				    struct ff_envelope *old)  in pidff_needs_set_envelope()  argument
264 return envelope->attack_level != old->attack_level || in pidff_needs_set_envelope()
265 envelope->fade_level != old->fade_level || in pidff_needs_set_envelope()
266 envelope->attack_length != old->attack_length || in pidff_needs_set_envelope()
267 envelope->fade_length != old->fade_length; in pidff_needs_set_envelope()
289 struct ff_effect *old) in pidff_needs_set_constant() argument
291 return effect->u.constant.level != old->u.constant.level; in pidff_needs_set_constant()
324 struct ff_effect *old) in pidff_needs_set_effect() argument
326 return effect->replay.length != old->replay.length || in pidff_needs_set_effect()
327 effect->trigger.interval != old->trigger.interval || in pidff_needs_set_effect()
328 effect->trigger.button != old->trigger.button || in pidff_needs_set_effect()
329 effect->direction != old->direction || in pidff_needs_set_effect()
330 effect->replay.delay != old->replay.delay; in pidff_needs_set_effect()
357 struct ff_effect *old) in pidff_needs_set_periodic() argument
359 return effect->u.periodic.magnitude != old->u.periodic.magnitude || in pidff_needs_set_periodic()
360 effect->u.periodic.offset != old->u.periodic.offset || in pidff_needs_set_periodic()
361 effect->u.periodic.phase != old->u.periodic.phase || in pidff_needs_set_periodic()
362 effect->u.periodic.period != old->u.periodic.period; in pidff_needs_set_periodic()
399 struct ff_effect *old) in pidff_needs_set_condition() argument
406 struct ff_condition_effect *old_cond = &old->u.condition[i]; in pidff_needs_set_condition()
438 static int pidff_needs_set_ramp(struct ff_effect *effect, struct ff_effect *old) in pidff_needs_set_ramp() argument
440 return effect->u.ramp.start_level != old->u.ramp.start_level || in pidff_needs_set_ramp()
441 effect->u.ramp.end_level != old->u.ramp.end_level; in pidff_needs_set_ramp()
553 struct ff_effect *old) in pidff_upload_effect() argument
560 if (old) { in pidff_upload_effect()
567 if (!old) { in pidff_upload_effect()
573 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect()
575 if (!old || pidff_needs_set_constant(effect, old)) in pidff_upload_effect()
577 if (!old || in pidff_upload_effect()
579 &old->u.constant.envelope)) in pidff_upload_effect()
585 if (!old) { in pidff_upload_effect()
612 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect()
614 if (!old || pidff_needs_set_periodic(effect, old)) in pidff_upload_effect()
616 if (!old || in pidff_upload_effect()
618 &old->u.periodic.envelope)) in pidff_upload_effect()
624 if (!old) { in pidff_upload_effect()
630 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect()
632 if (!old || pidff_needs_set_ramp(effect, old)) in pidff_upload_effect()
634 if (!old || in pidff_upload_effect()
636 &old->u.ramp.envelope)) in pidff_upload_effect()
642 if (!old) { in pidff_upload_effect()
648 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect()
650 if (!old || pidff_needs_set_condition(effect, old)) in pidff_upload_effect()
655 if (!old) { in pidff_upload_effect()
661 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect()
663 if (!old || pidff_needs_set_condition(effect, old)) in pidff_upload_effect()
668 if (!old) { in pidff_upload_effect()
674 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect()
676 if (!old || pidff_needs_set_condition(effect, old)) in pidff_upload_effect()
681 if (!old) { in pidff_upload_effect()
687 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect()
689 if (!old || pidff_needs_set_condition(effect, old)) in pidff_upload_effect()
698 if (!old) in pidff_upload_effect()