| /linux/drivers/input/joystick/iforce/ |
| H A D | iforce-ff.c | 12 * Set the magnitude of a constant force effect 44 * Upload the component of an effect dealing with the period, phase and magnitude 81 * Uploads the part of an effect setting the envelope of the force 174 * Analyse the changes in an effect, and tell if we need to send an condition 185 dev_warn(&iforce->dev->dev, "bad effect type in %s\n", in need_condition_modifier() 202 * Analyse the changes in an effect, and tell if we need to send a magnitude 207 struct ff_effect *effect) in need_magnitude_modifier() argument 209 if (effect->type != FF_CONSTANT) { in need_magnitude_modifier() 210 dev_warn(&iforce->dev->dev, "bad effect type in %s\n", in need_magnitude_modifier() 215 return old->u.constant.level != effect->u.constant.level; in need_magnitude_modifier() [all …]
|
| H A D | iforce.h | 28 /* Each force feedback effect is made of one core effect, which can be 29 * associated to at most to effect modifiers 34 #define FF_CORE_IS_PLAYED 3 /* Effect is currently being played */ 35 #define FF_CORE_SHOULD_PLAY 4 /* User wants the effect to be played */ 36 #define FF_CORE_UPDATE 5 /* Effect is being updated */
|
| /linux/drivers/input/misc/ |
| H A D | cs40l50-vibra.c | 90 struct ff_effect *effect; member 130 struct cs40l50_effect *effect; in cs40l50_find_effect() local 132 list_for_each_entry(effect, effect_head, list) in cs40l50_find_effect() 133 if (effect->id == id) in cs40l50_find_effect() 134 return effect; in cs40l50_find_effect() 140 struct cs40l50_effect *effect) in cs40l50_effect_bank_set() argument 150 effect->type = CS40L50_WVFRM_BANK_OWT; in cs40l50_effect_bank_set() 152 effect->type = bank_type; in cs40l50_effect_bank_set() 158 struct cs40l50_effect *effect) in cs40l50_effect_index_set() argument 164 base_index = vib->dsp.banks[effect->type].base_index; in cs40l50_effect_index_set() [all …]
|
| H A D | da7280.c | 505 struct ff_effect *effect, in da7280_haptics_upload_effect() argument 514 /* The effect should be uploaded when haptic is not working */ in da7280_haptics_upload_effect() 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() 547 if (effect->u.periodic.custom_len == DA7280_CUSTOM_DATA_LEN) in da7280_haptics_upload_effect() 550 if (effect->u.periodic.custom_len == DA7280_CUSTOM_GP_DATA_LEN) in da7280_haptics_upload_effect() 553 if (effect->u.periodic.custom_len < DA7280_CUSTOM_DATA_LEN || in da7280_haptics_upload_effect() [all …]
|
| H A D | uinput.c | 52 struct ff_effect *effect; member 247 struct ff_effect *effect, in uinput_dev_upload_effect() argument 260 if (effect->type == FF_PERIODIC && in uinput_dev_upload_effect() 261 effect->u.periodic.waveform == FF_CUSTOM) in uinput_dev_upload_effect() 265 request.u.upload.effect = effect; in uinput_dev_upload_effect() 789 struct ff_effect_compat effect; member 808 memcpy(&ff_up_compat.effect, &ff_up->effect, in uinput_ff_upload_to_user() 837 memcpy(&ff_up->effect, &ff_up_compat.effect, in uinput_ff_upload_from_user() 1016 !req->u.upload.effect) { in uinput_ioctl_handler() 1022 ff_up.effect = *req->u.upload.effect; in uinput_ioctl_handler() [all …]
|
| H A D | pm8xxx-vibrator.c | 183 * @data: data of effect 184 * @effect: effect to play 189 struct ff_effect *effect) in pm8xxx_vib_play_effect() argument 193 vib->speed = effect->u.rumble.strong_magnitude >> 8; in pm8xxx_vib_play_effect() 195 vib->speed = effect->u.rumble.weak_magnitude >> 9; in pm8xxx_vib_play_effect()
|
| /linux/drivers/input/ |
| H A D | ff-core.c | 20 * Check that the effect_id is a valid effect and whether the user 48 * Convert an effect into compatible one 50 static int compat_effect(struct ff_device *ff, struct ff_effect *effect) in compat_effect() argument 54 switch (effect->type) { in compat_effect() 63 magnitude = effect->u.rumble.strong_magnitude / 3 + in compat_effect() 64 effect->u.rumble.weak_magnitude / 6; in compat_effect() 66 effect->type = FF_PERIODIC; in compat_effect() 67 effect->u.periodic.waveform = FF_SINE; in compat_effect() 68 effect->u.periodic.period = 50; in compat_effect() 69 effect->u.periodic.magnitude = magnitude; in compat_effect() [all …]
|
| H A D | ff-memless.c | 37 struct ff_effect *effect; member 38 unsigned long flags; /* effect state (STARTED, PLAYING, etc) */ 39 int count; /* loop count of the effect */ 42 unsigned long adj_at; /* last time the effect was sent */ 53 struct ff_effect *effect); 56 static const struct ff_envelope *get_envelope(const struct ff_effect *effect) in get_envelope() argument 60 switch (effect->type) { in get_envelope() 62 return &effect->u.periodic.envelope; in get_envelope() 65 return &effect->u.constant.envelope; in get_envelope() 77 const struct ff_envelope *envelope = get_envelope(state->effect); in calculate_next_time() [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-haptic.c | 148 struct ff_haptic_effect *effect, in fill_effect_buf() argument 171 if (effect->intensity > 100) { in fill_effect_buf() 175 effect->intensity * in fill_effect_buf() 181 value = effect->repeat_count; in fill_effect_buf() 184 value = effect->retrigger_period; in fill_effect_buf() 233 static int hid_haptic_upload_effect(struct input_dev *dev, struct ff_effect *effect, in hid_haptic_upload_effect() argument 243 if (effect->u.haptic.hid_usage >= (HID_HP_VENDORWAVEFORMMIN & HID_USAGE) && in hid_haptic_upload_effect() 244 effect->u.haptic.hid_usage <= (HID_HP_VENDORWAVEFORMMAX & HID_USAGE) && in hid_haptic_upload_effect() 245 (effect->u.haptic.vendor_id != haptic->vendor_id || in hid_haptic_upload_effect() 246 effect->u.haptic.vendor_waveform_page != haptic->vendor_page)) in hid_haptic_upload_effect() [all …]
|
| H A D | hid-holtekff.c | 27 * 01 set effect parameters 28 * 02 play specified effect 29 * 03 stop specified effect 39 * commands 02,03 take only the effect id. 42 * bits 0-3: effect id: 59 * bytes 5-6: unknown (win driver seems to use at least 10e0 with effect 1 60 * and 0014 with effect 6) 62 * bits 0-3: effect magnitude 91 struct ff_effect *effect) in holtekff_play() argument 96 /* effect type 1, length 65535 msec */ in holtekff_play() [all …]
|
| H A D | hid-logitech-hidpp.c | 2482 /* find current slot for effect */ in hidpp_ff_work_handler() 2502 /* regular effect uploaded */ in hidpp_ff_work_handler() 2513 /* regular effect destroyed */ in hidpp_ff_work_handler() 2562 static int hidpp_ff_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old) in hidpp_ff_upload_effect() 2570 params[2] = effect->replay.length >> 8; in hidpp_ff_upload_effect() 2571 params[3] = effect->replay.length & 255; in hidpp_ff_upload_effect() 2572 params[4] = effect->replay.delay >> 8; in hidpp_ff_upload_effect() 2573 params[5] = effect->replay.delay & 255; in hidpp_ff_upload_effect() 2575 switch (effect->type) { in hidpp_ff_upload_effect() 2577 force = (effect in hidpp_ff_upload_effect() 2554 hidpp_ff_upload_effect(struct input_dev * dev,struct ff_effect * effect,struct ff_effect * old) hidpp_ff_upload_effect() argument [all...] |
| H 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()
|
| H 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()
|
| H 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()
|
| /linux/drivers/hid/usbhid/ |
| H A D | hid-pidff.c | 212 struct pidff_effect effect[PID_EFFECTS_MAX]; 247 static int pidff_is_effect_conditional(struct ff_effect *effect) in pidff_is_effect_conditional() 249 return effect->type == FF_SPRING || in pidff_is_effect_conditional() 250 effect->type == FF_DAMPER || in pidff_is_effect_conditional() 251 effect->type == FF_INERTIA || in pidff_is_effect_conditional() 252 effect->type == FF_FRICTION; in pidff_is_effect_conditional() 261 * Get PID effect index from FF effect type. 264 static int pidff_effect_ff_to_pid(struct ff_effect *effect) in pidff_effect_ff_to_pid() 266 switch (effect in pidff_effect_ff_to_pid() 211 struct pidff_effect effect[PID_EFFECTS_MAX]; global() member 246 pidff_is_effect_conditional(struct ff_effect * effect) pidff_is_effect_conditional() argument 263 pidff_effect_ff_to_pid(struct ff_effect * effect) pidff_effect_ff_to_pid() argument 301 pidff_get_effect_type_id(struct pidff_device * pidff,struct ff_effect * effect) pidff_get_effect_type_id() argument 401 pidff_set_effect_direction(struct pidff_device * pidff,struct ff_effect * effect) pidff_set_effect_direction() argument 492 pidff_set_constant_report(struct pidff_device * pidff,struct ff_effect * effect) pidff_set_constant_report() argument 506 pidff_needs_set_constant(struct ff_effect * effect,struct ff_effect * old) pidff_needs_set_constant() argument 516 pidff_set_effect_report(struct pidff_device * pidff,struct ff_effect * effect) pidff_set_effect_report() argument 556 pidff_needs_set_effect(struct ff_effect * effect,struct ff_effect * old) pidff_needs_set_effect() argument 570 pidff_set_periodic_report(struct pidff_device * pidff,struct ff_effect * effect) pidff_set_periodic_report() argument 589 pidff_needs_set_periodic(struct ff_effect * effect,struct ff_effect * old) pidff_needs_set_periodic() argument 602 pidff_set_condition_report(struct pidff_device * pidff,struct ff_effect * effect) pidff_set_condition_report() argument 637 pidff_needs_set_condition(struct ff_effect * effect,struct ff_effect * old) pidff_needs_set_condition() argument 662 pidff_set_ramp_report(struct pidff_device * pidff,struct ff_effect * effect) pidff_set_ramp_report() argument 677 pidff_needs_set_ramp(struct ff_effect * effect,struct ff_effect * old) pidff_needs_set_ramp() argument 901 PIDFF_SET_REPORT_IF_NEEDED(type,effect,old) global() argument 905 PIDFF_SET_ENVELOPE_IF_NEEDED(type,effect,old) global() argument [all...] |
| /linux/Documentation/input/ |
| H A D | ff.rst | 115 int ioctl(int file_descriptor, int request, struct ff_effect *effect); 119 "effect" points to a structure describing the effect to upload. The effect is 121 The content of effect may be modified. In particular, its field "id" is set 123 some operations (removing an effect, controlling the playback). 125 allocate a new effect. 142 Removing an effect from the device 147 int ioctl(int fd, EVIOCRMFF, effect.id); 150 stops the effect if it was playing. 164 struct ff_effect effect; 171 play.code = effect.id; [all …]
|
| /linux/sound/synth/emux/ |
| H A D | emux_effect.c | 84 /* set byte effect value */ 88 short effect; in effect_set_byte() local 91 effect = fx->val[type]; in effect_set_byte() 94 effect += *(char*)valp; in effect_set_byte() 96 effect += *valp; in effect_set_byte() 98 if (effect < parm_defs[type].low) in effect_set_byte() 99 effect = parm_defs[type].low; in effect_set_byte() 100 else if (effect > parm_defs[type].high) in effect_set_byte() 101 effect = parm_defs[type].high; in effect_set_byte() 102 *valp = (unsigned char)effect; in effect_set_byte() [all …]
|
| /linux/Documentation/input/devices/ |
| H A D | iforce-protocol.rst | 82 01 Bit 8 is set if the effect is playing. Bits 0 to 7 are the effect id. 89 Force effect 111 Bits 4-7: Val 2 = effect along one axis. Byte 05 indicates direction 116 Val x+1 = Button x triggers the effect 119 03-04 Duration of effect (little endian encoding, in ms) 121 05 Direction of effect, if applicable. Else, see 02 for value to assign. 133 0c-0d Delay before execution of effect (little endian encoding, in ms) 283 Query effect 290 Send effect type. 323 Set Effect State [all …]
|
| /linux/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_hw_ctl.h | 91 * No effect on hardware. 99 * No effect on hardware 107 * No effect on hardware 117 * No effect on hardware 127 * No effect on hardware 137 * No effect on hardware 147 * No effect on hardware 157 * No effect on hardware 167 * No effect on hardware 177 * No effect on hardware [all …]
|
| /linux/tools/testing/cxl/test/ |
| H A D | mem.c | 22 #define EFFECT(x) (1U << x) macro 45 .effect = CXL_CMD_EFFECT_NONE, 49 .effect = CXL_CMD_EFFECT_NONE, 53 .effect = CXL_CMD_EFFECT_NONE, 57 .effect = cpu_to_le16(EFFECT(CONF_CHANGE_IMMEDIATE)), 61 .effect = CXL_CMD_EFFECT_NONE, 65 .effect = CXL_CMD_EFFECT_NONE, 69 .effect = CXL_CMD_EFFECT_NONE, 73 .effect [all...] |
| /linux/Documentation/images/ |
| H A D | logo.svg | 50 <inkscape:path-effect 53 effect="spiro" /> 54 <inkscape:path-effect 57 effect="spiro" /> 58 <inkscape:path-effect 61 effect="spiro" /> 114 <inkscape:path-effect 115 effect="spiro" 131 <inkscape:path-effect 132 effect="spiro" [all …]
|
| /linux/drivers/iio/magnetometer/ |
| H A D | Kconfig | 58 tristate "Allegro MicroSystems ALS31300 3-D Linear Hall Effect Sensor" 65 ALS31300 Hall Effect Sensor through its I2C interface. 264 tristate "SI7210 Hall effect sensor" 268 Say Y here to add support for the SI7210 Hall effect sensor. 275 tristate "TI TMAG5273 Low-Power Linear 3D Hall-Effect Sensor" 280 Linear 3D Hall-Effect Sensor.
|
| /linux/drivers/media/platform/samsung/exynos4-is/ |
| H 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 in fimc_set_color_effect() [all...] |
| /linux/include/linux/usb/ |
| H A D | audio-v2.h | 170 /* 4.7.2.10 Effect Unit Descriptor */ 265 /* A.11 Effect Unit Effect Types */ 345 /* A.17.8.1 Parametric Equalizer Section Effect Unit Control Selectors */ 355 /* A.17.8.2 Reverberation Effect Unit Control Selectors */ 369 /* A.17.8.3 Modulation Delay Effect Control Selectors */ 381 /* A.17.8.4 Dynamic Range Compressor Effect Unit Control Selectors */
|
| /linux/Documentation/devicetree/bindings/iio/magnetometer/ |
| H A D | ti,tmag5273.yaml | 7 title: TI TMAG5273 Low-Power Linear 3D Hall-Effect Sensor 13 The TI TMAG5273 is a low-power linear 3D Hall-effect sensor. This device 14 integrates three independent Hall-effect sensors in the X, Y, and Z axes.
|