| /drivers/input/joystick/iforce/ |
| A D | iforce-ff.c | 225 switch (effect->type) { in need_envelope_modifier() 348 effect->u.periodic.magnitude, effect->u.periodic.offset, in iforce_upload_periodic() 349 effect->u.periodic.period, effect->u.periodic.phase); in iforce_upload_periodic() 383 effect->replay.delay, in iforce_upload_periodic() 386 effect->direction); in iforce_upload_periodic() 443 effect->replay.delay, in iforce_upload_constant() 446 effect->direction); in iforce_upload_constant() 471 switch (effect->type) { in iforce_upload_condition() 508 effect->replay.length, effect->replay.delay, in iforce_upload_condition() 509 effect->trigger.button, effect->trigger.interval, in iforce_upload_condition() [all …]
|
| A D | iforce-main.c | 107 static int iforce_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *… in iforce_upload_effect() argument 110 struct iforce_core_effect *core_effect = &iforce->core_effects[effect->id]; in iforce_upload_effect() 122 switch (effect->type) { in iforce_upload_effect() 124 ret = iforce_upload_periodic(iforce, effect, old); in iforce_upload_effect() 128 ret = iforce_upload_constant(iforce, effect, old); in iforce_upload_effect() 133 ret = iforce_upload_condition(iforce, effect, old); in iforce_upload_effect()
|
| /drivers/input/ |
| A D | ff-memless.c | 36 struct ff_effect *effect; member 59 switch (effect->type) { in get_envelope() 152 struct ff_effect *effect = state->effect; in apply_envelope() local 274 effect->direction, in ml_combine_effects() 279 effect->direction, in ml_combine_effects() 283 effect->direction = 0; in ml_combine_effects() 300 effect->direction, in ml_combine_effects() 304 effect->direction = 0; in ml_combine_effects() 327 struct ff_effect *effect; in ml_get_combo_effect() local 339 effect = state->effect; in ml_get_combo_effect() [all …]
|
| A D | ff-core.c | 54 switch (effect->type) { in compat_effect() 66 effect->type = FF_PERIODIC; in compat_effect() 68 effect->u.periodic.period = 50; in compat_effect() 70 effect->u.periodic.offset = 0; in compat_effect() 71 effect->u.periodic.phase = 0; in compat_effect() 102 if (effect->type < FF_EFFECT_MIN || effect->type > FF_EFFECT_MAX || in input_ff_upload() 108 if (effect->type == FF_PERIODIC && in input_ff_upload() 124 if (effect->id == -1) { in input_ff_upload() 132 effect->id = id; in input_ff_upload() 136 id = effect->id; in input_ff_upload() [all …]
|
| A D | input-compat.c | 63 struct ff_effect *effect) in input_ff_effect_from_user() argument 76 compat_effect = (struct ff_effect_compat *)effect; in input_ff_effect_from_user() 84 effect->u.periodic.custom_data = in input_ff_effect_from_user() 90 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user() 118 struct ff_effect *effect) in input_ff_effect_from_user() argument 123 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user()
|
| /drivers/input/misc/ |
| A D | cs40l50-vibra.c | 133 if (effect->id == id) in cs40l50_find_effect() 134 return effect; in cs40l50_find_effect() 173 effect->index++; in cs40l50_effect_index_set() 184 if (effect->index > max_index || effect->index < base_index) { in cs40l50_effect_index_set() 277 effect = cs40l50_find_effect(work_data->effect->id, &vib->effect_head); in cs40l50_add_worker() 278 if (!effect) { in cs40l50_add_worker() 279 effect = kzalloc(sizeof(*effect), GFP_KERNEL); in cs40l50_add_worker() 280 if (!effect) { in cs40l50_add_worker() 285 effect->id = work_data->effect->id; in cs40l50_add_worker() 306 kfree(effect); in cs40l50_add_worker() [all …]
|
| A D | arizona-haptics.c | 109 struct ff_effect *effect) in arizona_haptics_play() argument 119 if (effect->u.rumble.strong_magnitude) { in arizona_haptics_play() 123 effect->u.rumble.strong_magnitude >> 9; in arizona_haptics_play() 124 if (effect->direction < 0x8000) in arizona_haptics_play() 128 effect->u.rumble.strong_magnitude >> 8; in arizona_haptics_play()
|
| A D | da7280.c | 505 struct ff_effect *effect, in da7280_haptics_upload_effect() argument 518 switch (effect->type) { in da7280_haptics_upload_effect() 523 tmp = effect->u.constant.level * 254; in da7280_haptics_upload_effect() 528 haptics->gain = effect->u.constant.level <= 0 ? in da7280_haptics_upload_effect() 529 0 : effect->u.constant.level; in da7280_haptics_upload_effect() 534 if (effect->u.periodic.waveform != FF_CUSTOM) { in da7280_haptics_upload_effect() 559 if (copy_from_user(data, effect->u.periodic.custom_data, in da7280_haptics_upload_effect() 561 effect->u.periodic.custom_len)) in da7280_haptics_upload_effect() 566 for (i = 0; i < effect->u.periodic.custom_len; i++) { in da7280_haptics_upload_effect() 585 if (copy_from_user(data, effect->u.periodic.custom_data, in da7280_haptics_upload_effect() [all …]
|
| A D | uinput.c | 50 struct ff_effect *effect; member 236 struct ff_effect *effect, in uinput_dev_upload_effect() argument 249 if (effect->type == FF_PERIODIC && in uinput_dev_upload_effect() 250 effect->u.periodic.waveform == FF_CUSTOM) in uinput_dev_upload_effect() 254 request.u.upload.effect = effect; in uinput_dev_upload_effect() 768 struct ff_effect_compat effect; member 786 memcpy(&ff_up_compat.effect, &ff_up->effect, in uinput_ff_upload_to_user() 815 memcpy(&ff_up->effect, &ff_up_compat.effect, in uinput_ff_upload_from_user() 994 !req->u.upload.effect) { in uinput_ioctl_handler() 1000 ff_up.effect = *req->u.upload.effect; in uinput_ioctl_handler() [all …]
|
| A D | twl4030-vibra.c | 123 struct ff_effect *effect) in vibra_play() argument 127 info->speed = effect->u.rumble.strong_magnitude >> 8; in vibra_play() 129 info->speed = effect->u.rumble.weak_magnitude >> 9; in vibra_play() 130 info->direction = effect->direction < EFFECT_DIR_180_DEG ? 0 : 1; in vibra_play()
|
| /drivers/hid/usbhid/ |
| A D | hid-pidff.c | 362 effect->u.constant.level); in pidff_set_constant_force_report() 389 effect->replay.length); in pidff_set_effect_report() 393 effect->trigger.interval); in pidff_set_effect_report() 407 effect->replay.delay); in pidff_set_effect_report() 440 effect->u.periodic.period); in pidff_set_periodic_report() 522 struct ff_effect *effect) in pidff_set_ramp_force_report() argument 529 effect->u.ramp.end_level); in pidff_set_ramp_force_report() 773 pidff->pid_id[effect->id]; in pidff_upload_effect() 776 switch (effect->type) { in pidff_upload_effect() 854 switch (effect->type) { in pidff_upload_effect() [all …]
|
| /drivers/hid/ |
| A D | hid-logitech-hidpp.c | 2559 switch (effect->type) { in hidpp_ff_upload_effect() 2561 force = (effect->u.constant.level * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect() 2573 effect->u.constant.level, in hidpp_ff_upload_effect() 2574 effect->direction, force); in hidpp_ff_upload_effect() 2620 effect->u.periodic.magnitude, effect->direction, in hidpp_ff_upload_effect() 2621 effect->u.periodic.offset, in hidpp_ff_upload_effect() 2622 effect->u.periodic.period, in hidpp_ff_upload_effect() 2623 effect->u.periodic.phase); in hidpp_ff_upload_effect() 2633 force = (effect->u.ramp.start_level * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect() 2636 force = (effect->u.ramp.end_level * fixp_sin16((effect->direction * 360) >> 16)) >> 15; in hidpp_ff_upload_effect() [all …]
|
| A D | hid-lgff.c | 57 static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *effect) in hid_lgff_play() argument 67 switch (effect->type) { in hid_lgff_play() 69 x = effect->u.ramp.start_level + 0x7f; /* 0x7f is center */ in hid_lgff_play() 70 y = effect->u.ramp.end_level + 0x7f; in hid_lgff_play() 82 right = effect->u.rumble.strong_magnitude; in hid_lgff_play() 83 left = effect->u.rumble.weak_magnitude; in hid_lgff_play()
|
| A D | hid-tmff.c | 74 struct ff_effect *effect) in tmff_play() argument 82 switch (effect->type) { in tmff_play() 84 x = tmff_scale_s8(effect->u.ramp.start_level, in tmff_play() 87 y = tmff_scale_s8(effect->u.ramp.end_level, in tmff_play() 98 left = tmff_scale_u16(effect->u.rumble.weak_magnitude, in tmff_play() 101 right = tmff_scale_u16(effect->u.rumble.strong_magnitude, in tmff_play()
|
| A D | hid-lg3ff.c | 45 struct ff_effect *effect) in hid_lg3ff_play() argument 59 switch (effect->type) { in hid_lg3ff_play() 65 x = effect->u.ramp.start_level; in hid_lg3ff_play() 66 y = effect->u.ramp.end_level; in hid_lg3ff_play()
|
| A D | hid-lg2ff.c | 23 struct ff_effect *effect) in play_effect() argument 29 strong = effect->u.rumble.strong_magnitude; in play_effect() 30 weak = effect->u.rumble.weak_magnitude; in play_effect()
|
| A D | hid-megaworld.c | 25 struct ff_effect *effect) in mwctrl_play() argument 30 *mwctrl->strong = effect->u.rumble.strong_magnitude >> 8; in mwctrl_play() 31 *mwctrl->weak = effect->u.rumble.weak_magnitude >> 8; in mwctrl_play()
|
| A D | hid-zpff.c | 26 struct ff_effect *effect) in zpff_play() argument 38 left = effect->u.rumble.strong_magnitude; in zpff_play() 39 right = effect->u.rumble.weak_magnitude; in zpff_play()
|
| A D | hid-betopff.c | 38 struct ff_effect *effect) in hid_betopff_play() argument 44 left = effect->u.rumble.strong_magnitude; in hid_betopff_play() 45 right = effect->u.rumble.weak_magnitude; in hid_betopff_play()
|
| A D | hid-emsff.c | 23 struct ff_effect *effect) in emsff_play() argument 29 weak = effect->u.rumble.weak_magnitude; in emsff_play() 30 strong = effect->u.rumble.strong_magnitude; in emsff_play()
|
| A D | hid-holtekff.c | 91 struct ff_effect *effect) in holtekff_play() argument 100 left = effect->u.rumble.strong_magnitude; in holtekff_play() 101 right = effect->u.rumble.weak_magnitude; in holtekff_play()
|
| A D | hid-mf.c | 34 static int mf_play(struct input_dev *dev, void *data, struct ff_effect *effect) in mf_play() argument 40 strong = effect->u.rumble.strong_magnitude; in mf_play() 41 weak = effect->u.rumble.weak_magnitude; in mf_play()
|
| A D | hid-google-stadiaff.c | 43 struct ff_effect *effect) in stadiaff_play() argument 51 stadiaff->strong_magnitude = effect->u.rumble.strong_magnitude; in stadiaff_play() 52 stadiaff->weak_magnitude = effect->u.rumble.weak_magnitude; in stadiaff_play()
|
| A D | hid-sjoy.c | 30 struct ff_effect *effect) in hid_sjoyff_play() argument 36 left = effect->u.rumble.strong_magnitude; in hid_sjoyff_play() 37 right = effect->u.rumble.weak_magnitude; in hid_sjoyff_play()
|
| /drivers/media/platform/samsung/exynos4-is/ |
| A D | fimc-core.c | 460 struct fimc_effect *effect = &ctx->effect; in fimc_set_color_effect() local 464 effect->type = FIMC_REG_CIIMGEFF_FIN_BYPASS; in fimc_set_color_effect() 467 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; in fimc_set_color_effect() 468 effect->pat_cb = 128; in fimc_set_color_effect() 469 effect->pat_cr = 128; in fimc_set_color_effect() 472 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; in fimc_set_color_effect() 473 effect->pat_cb = 115; in fimc_set_color_effect() 474 effect->pat_cr = 145; in fimc_set_color_effect() 477 effect->type = FIMC_REG_CIIMGEFF_FIN_NEGATIVE; in fimc_set_color_effect() 480 effect->type = FIMC_REG_CIIMGEFF_FIN_EMBOSSING; in fimc_set_color_effect() [all …]
|