| /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/ |
| 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/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 | 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()
|
| 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 …]
|
| /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/drivers/hid/ |
| 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-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()
|
| H 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()
|
| /linux/tools/testing/cxl/test/ |
| H A D | mem.c | 21 #define EFFECT(x) (1U << x) macro 44 .effect = CXL_CMD_EFFECT_NONE, 48 .effect = CXL_CMD_EFFECT_NONE, 52 .effect = CXL_CMD_EFFECT_NONE, 56 .effect = cpu_to_le16(EFFECT(CONF_CHANGE_IMMEDIATE)), 60 .effect = CXL_CMD_EFFECT_NONE, 64 .effect = CXL_CMD_EFFECT_NONE, 68 .effect = CXL_CMD_EFFECT_NONE, 72 .effect = cpu_to_le16(EFFECT(CONF_CHANGE_IMMEDIATE) | 73 EFFECT(DATA_CHANGE_IMMEDIATE)), [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/sound/soc/codecs/ |
| H A D | fs210x.c | 392 const struct fs_file_table *effect; in fs210x_set_effect_table() local 400 if (!scene->effect || cur_scene == scene) { in fs210x_set_effect_table() 401 dev_dbg(fs210x->dev, "Skip writing effect table\n"); in fs210x_set_effect_table() 405 effect = scene->effect; in fs210x_set_effect_table() 406 dev_dbg(fs210x->dev, "effect table size: %d\n", effect->size); in fs210x_set_effect_table() 408 /* Unit of effect data is u32(4 bytes), 2 channels */ in fs210x_set_effect_table() 409 if (effect->size == 0 || (effect->size & 0x7)) { in fs210x_set_effect_table() 410 dev_err(fs210x->dev, "Invalid effect size: %d\n", in fs210x_set_effect_table() 411 effect->size); in fs210x_set_effect_table() 415 half_size = effect->size / 2; in fs210x_set_effect_table() [all …]
|
| /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.
|
| /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/drivers/gpu/drm/hisilicon/kirin/ |
| H A D | kirin_ade_reg.h | 109 /* regs take effect in every vsync */ 111 /* regs take effect in fist ade en and every frame end */ 113 /* regs take effect in ade en immediately */ 115 /* regs take effect in first vsync and every frame end */
|
| /linux/Documentation/driver-api/ |
| H A D | io-mapping.rst | 49 io_mapping_map_local_wc() has a side effect on X86 32bit as it disables 51 effect. 53 io_mapping_map_atomic_wc() has the side effect of disabling preemption and
|
| /linux/drivers/gpu/drm/mcde/ |
| H A D | mcde_drm.h | 54 /* Command mode with tearing effect (TE) IRQ sync */ 57 * Command mode with bus turn-around (BTA) and tearing effect 61 /* Video mode with tearing effect (TE) sync IRQ */
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-driver-toshiba_acpi | 17 a reboot for changes to take effect. 126 take effect. 175 take effect. 189 take effect. 202 take effect.
|
| /linux/include/sound/ |
| H A D | emux_legacy.h | 51 /* 6*/ EMUX_MD_KEEP_EFFECT, /* 0/1: keep effect values, (default=0) */ 71 * effect parameters 105 /* Other overall effect parameters */ 126 /* effect flag values */
|