Searched refs:effect (Results 1 - 200 of 831) sorted by relevance

12345

/linux-4.1.27/drivers/input/joystick/iforce/
H A Diforce-ff.c31 * Set the magnitude of a constant force effect
64 * Upload the component of an effect dealing with the period, phase and magnitude
102 * Uploads the part of an effect setting the envelope of the force
197 * Analyse the changes in an effect, and tell if we need to send an condition
208 dev_warn(&iforce->dev->dev, "bad effect type in %s\n", need_condition_modifier()
225 * Analyse the changes in an effect, and tell if we need to send a magnitude
230 struct ff_effect *effect) need_magnitude_modifier()
232 if (effect->type != FF_CONSTANT) { need_magnitude_modifier()
233 dev_warn(&iforce->dev->dev, "bad effect type in %s\n", need_magnitude_modifier()
238 return old->u.constant.level != effect->u.constant.level; need_magnitude_modifier()
242 * Analyse the changes in an effect, and tell if we need to send an envelope
246 struct ff_effect *effect) need_envelope_modifier()
248 switch (effect->type) { need_envelope_modifier()
250 if (old->u.constant.envelope.attack_length != effect->u.constant.envelope.attack_length need_envelope_modifier()
251 || old->u.constant.envelope.attack_level != effect->u.constant.envelope.attack_level need_envelope_modifier()
252 || old->u.constant.envelope.fade_length != effect->u.constant.envelope.fade_length need_envelope_modifier()
253 || old->u.constant.envelope.fade_level != effect->u.constant.envelope.fade_level) need_envelope_modifier()
258 if (old->u.periodic.envelope.attack_length != effect->u.periodic.envelope.attack_length need_envelope_modifier()
259 || old->u.periodic.envelope.attack_level != effect->u.periodic.envelope.attack_level need_envelope_modifier()
260 || old->u.periodic.envelope.fade_length != effect->u.periodic.envelope.fade_length need_envelope_modifier()
261 || old->u.periodic.envelope.fade_level != effect->u.periodic.envelope.fade_level) need_envelope_modifier()
266 dev_warn(&iforce->dev->dev, "bad effect type in %s\n", need_envelope_modifier()
274 * Analyse the changes in an effect, and tell if we need to send a periodic
275 * parameter effect
281 dev_warn(&iforce->dev->dev, "bad effect type in %s\n", need_period_modifier()
292 * Analyse the changes in an effect, and tell if we need to send an effect
339 /* Stop effect */ make_core()
344 /* If needed, restart effect */ make_core()
354 * Upload a periodic effect to the device
357 int iforce_upload_periodic(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_periodic() argument
360 int core_id = effect->id; iforce_upload_periodic()
368 if (!old || need_period_modifier(iforce, old, effect)) { iforce_upload_periodic()
371 effect->u.periodic.magnitude, effect->u.periodic.offset, iforce_upload_periodic()
372 effect->u.periodic.period, effect->u.periodic.phase); iforce_upload_periodic()
378 if (!old || need_envelope_modifier(iforce, old, effect)) { iforce_upload_periodic()
381 effect->u.periodic.envelope.attack_length, iforce_upload_periodic()
382 effect->u.periodic.envelope.attack_level, iforce_upload_periodic()
383 effect->u.periodic.envelope.fade_length, iforce_upload_periodic()
384 effect->u.periodic.envelope.fade_level); iforce_upload_periodic()
390 switch (effect->u.periodic.waveform) { iforce_upload_periodic()
399 if (!old || need_core(old, effect)) { iforce_upload_periodic()
400 core_err = make_core(iforce, effect->id, iforce_upload_periodic()
405 effect->replay.length, iforce_upload_periodic()
406 effect->replay.delay, iforce_upload_periodic()
407 effect->trigger.button, iforce_upload_periodic()
408 effect->trigger.interval, iforce_upload_periodic()
409 effect->direction); iforce_upload_periodic()
422 * Upload a constant force effect
425 * 0 Ok, effect created or updated
426 * 1 effect did not change since last upload, and no packet was therefore sent
428 int iforce_upload_constant(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_constant() argument
430 int core_id = effect->id; iforce_upload_constant()
438 if (!old || need_magnitude_modifier(iforce, old, effect)) { iforce_upload_constant()
441 effect->u.constant.level); iforce_upload_constant()
447 if (!old || need_envelope_modifier(iforce, old, effect)) { iforce_upload_constant()
450 effect->u.constant.envelope.attack_length, iforce_upload_constant()
451 effect->u.constant.envelope.attack_level, iforce_upload_constant()
452 effect->u.constant.envelope.fade_length, iforce_upload_constant()
453 effect->u.constant.envelope.fade_level); iforce_upload_constant()
459 if (!old || need_core(old, effect)) { iforce_upload_constant()
460 core_err = make_core(iforce, effect->id, iforce_upload_constant()
465 effect->replay.length, iforce_upload_constant()
466 effect->replay.delay, iforce_upload_constant()
467 effect->trigger.button, iforce_upload_constant()
468 effect->trigger.interval, iforce_upload_constant()
469 effect->direction); iforce_upload_constant()
482 * Upload an condition effect. Those are for example friction, inertia, springs...
484 int iforce_upload_condition(struct iforce *iforce, struct ff_effect *effect, struct ff_effect *old) iforce_upload_condition() argument
486 int core_id = effect->id; iforce_upload_condition()
494 switch (effect->type) { iforce_upload_condition()
500 if (!old || need_condition_modifier(iforce, old, effect)) { iforce_upload_condition()
503 effect->u.condition[0].right_saturation, iforce_upload_condition()
504 effect->u.condition[0].left_saturation, iforce_upload_condition()
505 effect->u.condition[0].right_coeff, iforce_upload_condition()
506 effect->u.condition[0].left_coeff, iforce_upload_condition()
507 effect->u.condition[0].deadband, iforce_upload_condition()
508 effect->u.condition[0].center); iforce_upload_condition()
515 effect->u.condition[1].right_saturation, iforce_upload_condition()
516 effect->u.condition[1].left_saturation, iforce_upload_condition()
517 effect->u.condition[1].right_coeff, iforce_upload_condition()
518 effect->u.condition[1].left_coeff, iforce_upload_condition()
519 effect->u.condition[1].deadband, iforce_upload_condition()
520 effect->u.condition[1].center); iforce_upload_condition()
527 if (!old || need_core(old, effect)) { iforce_upload_condition()
528 core_err = make_core(iforce, effect->id, iforce_upload_condition()
531 effect->replay.length, effect->replay.delay, iforce_upload_condition()
532 effect->trigger.button, effect->trigger.interval, iforce_upload_condition()
533 effect->direction); iforce_upload_condition()
228 need_magnitude_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *effect) need_magnitude_modifier() argument
245 need_envelope_modifier(struct iforce *iforce, struct ff_effect *old, struct ff_effect *effect) need_envelope_modifier() argument
H A Diforce-main.c128 * It uploads an effect to the device
130 static int iforce_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old) iforce_upload_effect() argument
133 struct iforce_core_effect *core_effect = &iforce->core_effects[effect->id]; iforce_upload_effect()
137 /* Check the effect is not already being updated */ iforce_upload_effect()
143 * Upload the effect iforce_upload_effect()
145 switch (effect->type) { iforce_upload_effect()
148 ret = iforce_upload_periodic(iforce, effect, old); iforce_upload_effect()
152 ret = iforce_upload_constant(iforce, effect, old); iforce_upload_effect()
157 ret = iforce_upload_condition(iforce, effect, old); iforce_upload_effect()
174 * Erases an effect: it frees the effect id and mark as unused the memory
303 iforce->device_memory.name = "I-Force device effect memory"; iforce_init_device()
H A Diforce.h53 /* Each force feedback effect is made of one core effect, which can be
54 * associated to at most to effect modifiers
60 #define FF_CORE_SHOULD_PLAY 4 /* User wants the effect to be played */
H A Diforce-packets.c124 /* Start or stop an effect */ iforce_control_playback()
135 /* Mark an effect that was being updated as ready. That means it can be updated
152 dev_warn(&iforce->dev->dev, "unused effect %04x updated !!!\n", addr); mark_core_as_ready()
226 /* Check if an effect was just started or stopped */ iforce_process_packet()
/linux-4.1.27/drivers/input/
H A Dff-memless.c51 struct ff_effect *effect; member in struct:ml_effect_state
52 unsigned long flags; /* effect state (STARTED, PLAYING, etc) */
53 int count; /* loop count of the effect */
56 unsigned long adj_at; /* last time the effect was sent */
67 struct ff_effect *effect);
70 static const struct ff_envelope *get_envelope(const struct ff_effect *effect) get_envelope() argument
74 switch (effect->type) { get_envelope()
76 return &effect->u.periodic.envelope; get_envelope()
79 return &effect->u.constant.envelope; get_envelope()
91 const struct ff_envelope *envelope = get_envelope(state->effect); calculate_next_time()
102 if (state->effect->replay.length) { calculate_next_time()
167 struct ff_effect *effect = state->effect; apply_envelope() local
183 } else if (envelope->fade_length && effect->replay.length && apply_envelope()
208 * Return the type the effect has to be converted into (memless devices)
255 static void ml_combine_effects(struct ff_effect *effect, ml_combine_effects() argument
259 struct ff_effect *new = state->effect; ml_combine_effects()
277 effect->u.ramp.start_level = ml_combine_effects()
278 clamp_val(effect->u.ramp.start_level + x, -0x80, 0x7f); ml_combine_effects()
279 effect->u.ramp.end_level = ml_combine_effects()
280 clamp_val(effect->u.ramp.end_level + y, -0x80, 0x7f); ml_combine_effects()
287 if (effect->u.rumble.strong_magnitude + strong) ml_combine_effects()
288 effect->direction = ml_calculate_direction( ml_combine_effects()
289 effect->direction, ml_combine_effects()
290 effect->u.rumble.strong_magnitude, ml_combine_effects()
292 else if (effect->u.rumble.weak_magnitude + weak) ml_combine_effects()
293 effect->direction = ml_calculate_direction( ml_combine_effects()
294 effect->direction, ml_combine_effects()
295 effect->u.rumble.weak_magnitude, ml_combine_effects()
298 effect->direction = 0; ml_combine_effects()
299 effect->u.rumble.strong_magnitude = ml_combine_effects()
300 min(strong + effect->u.rumble.strong_magnitude, ml_combine_effects()
302 effect->u.rumble.weak_magnitude = ml_combine_effects()
303 min(weak + effect->u.rumble.weak_magnitude, 0xffffU); ml_combine_effects()
313 if (effect->u.rumble.strong_magnitude + i) ml_combine_effects()
314 effect->direction = ml_calculate_direction( ml_combine_effects()
315 effect->direction, ml_combine_effects()
316 effect->u.rumble.strong_magnitude, ml_combine_effects()
319 effect->direction = 0; ml_combine_effects()
320 effect->u.rumble.strong_magnitude = ml_combine_effects()
321 min(i + effect->u.rumble.strong_magnitude, 0xffffU); ml_combine_effects()
322 effect->u.rumble.weak_magnitude = ml_combine_effects()
323 min(i + effect->u.rumble.weak_magnitude, 0xffffU); ml_combine_effects()
335 * Because memoryless devices have only one effect per effect type active
342 struct ff_effect *effect; ml_get_combo_effect() local
354 effect = state->effect; ml_get_combo_effect()
367 effect_type = get_compatible_type(ml->dev->ff, effect->type); ml_get_combo_effect()
379 } else if (effect->replay.length && ml_get_combo_effect()
388 msecs_to_jiffies(effect->replay.delay); ml_get_combo_effect()
390 msecs_to_jiffies(effect->replay.length); ml_get_combo_effect()
404 struct ff_effect effect; ml_play_effects() local
409 while (ml_get_combo_effect(ml, handled_bm, &effect)) ml_play_effects()
410 ml->play_effect(ml->dev, ml->private, &effect); ml_play_effects()
445 * Start/stop specified FF effect. Called with dev->event_lock held.
458 msecs_to_jiffies(state->effect->replay.delay); ml_ff_playback()
460 msecs_to_jiffies(state->effect->replay.length); ml_ff_playback()
478 struct ff_effect *effect, struct ff_effect *old) ml_ff_upload()
481 struct ml_effect_state *state = &ml->states[effect->id]; ml_ff_upload()
488 msecs_to_jiffies(state->effect->replay.delay); ml_ff_upload()
490 msecs_to_jiffies(state->effect->replay.length); ml_ff_upload()
511 * @play_effect: driver-specific method for playing FF effect
555 ml->states[i].effect = &ff->effects[i]; input_ff_create_memless()
477 ml_ff_upload(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old) ml_ff_upload() argument
H A Dff-core.c33 * Check that the effect_id is a valid effect and whether the user
61 * Convert an effect into compatible one
63 static int compat_effect(struct ff_device *ff, struct ff_effect *effect) compat_effect() argument
67 switch (effect->type) { compat_effect()
76 magnitude = effect->u.rumble.strong_magnitude / 3 + compat_effect()
77 effect->u.rumble.weak_magnitude / 6; compat_effect()
79 effect->type = FF_PERIODIC; compat_effect()
80 effect->u.periodic.waveform = FF_SINE; compat_effect()
81 effect->u.periodic.period = 50; compat_effect()
82 effect->u.periodic.magnitude = max(magnitude, 0x7fff); compat_effect()
83 effect->u.periodic.offset = 0; compat_effect()
84 effect->u.periodic.phase = 0; compat_effect()
85 effect->u.periodic.envelope.attack_length = 0; compat_effect()
86 effect->u.periodic.envelope.attack_level = 0; compat_effect()
87 effect->u.periodic.envelope.fade_length = 0; compat_effect()
88 effect->u.periodic.envelope.fade_level = 0; compat_effect()
99 * input_ff_upload() - upload effect into force-feedback device
101 * @effect: effect to be uploaded
102 * @file: owner of the effect
104 int input_ff_upload(struct input_dev *dev, struct ff_effect *effect, input_ff_upload() argument
115 if (effect->type < FF_EFFECT_MIN || effect->type > FF_EFFECT_MAX || input_ff_upload()
116 !test_bit(effect->type, dev->ffbit)) { input_ff_upload()
117 dev_dbg(&dev->dev, "invalid or not supported effect type in upload\n"); input_ff_upload()
121 if (effect->type == FF_PERIODIC && input_ff_upload()
122 (effect->u.periodic.waveform < FF_WAVEFORM_MIN || input_ff_upload()
123 effect->u.periodic.waveform > FF_WAVEFORM_MAX || input_ff_upload()
124 !test_bit(effect->u.periodic.waveform, dev->ffbit))) { input_ff_upload()
129 if (!test_bit(effect->type, ff->ffbit)) { input_ff_upload()
130 ret = compat_effect(ff, effect); input_ff_upload()
137 if (effect->id == -1) { input_ff_upload()
147 effect->id = id; input_ff_upload()
151 id = effect->id; input_ff_upload()
159 if (!check_effects_compatible(effect, old)) { input_ff_upload()
165 ret = ff->upload(dev, effect, old); input_ff_upload()
170 ff->effects[id] = *effect; input_ff_upload()
181 * Erases the effect if the requester is also the effect owner. The mutex
214 * input_ff_erase - erase a force-feedback effect from device
215 * @dev: input device to erase effect from
219 * This function erases a force-feedback effect from specified device.
220 * The effect will only be erased if it was uploaded through the same
261 * @dev: input device to send the effect to
H A Dinput-compat.c66 struct ff_effect *effect) input_ff_effect_from_user()
79 compat_effect = (struct ff_effect_compat *)effect; input_ff_effect_from_user()
87 effect->u.periodic.custom_data = input_ff_effect_from_user()
93 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) input_ff_effect_from_user()
121 struct ff_effect *effect) input_ff_effect_from_user()
126 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) input_ff_effect_from_user()
65 input_ff_effect_from_user(const char __user *buffer, size_t size, struct ff_effect *effect) input_ff_effect_from_user() argument
120 input_ff_effect_from_user(const char __user *buffer, size_t size, struct ff_effect *effect) input_ff_effect_from_user() argument
H A Dinput-compat.h90 struct ff_effect *effect);
H A Devdev.c862 struct ff_effect effect; evdev_do_ioctl() local
981 if (input_ff_effect_from_user(p, size, &effect)) evdev_do_ioctl()
984 error = input_ff_upload(dev, &effect, file); evdev_do_ioctl()
988 if (put_user(effect.id, &(((struct ff_effect __user *)p)->id))) evdev_do_ioctl()
/linux-4.1.27/sound/synth/emux/
H A Demux_effect.c98 /* set byte effect value */
102 short effect; effect_set_byte() local
105 effect = fx->val[type]; effect_set_byte()
108 effect += *(char*)valp; effect_set_byte()
110 effect += *valp; effect_set_byte()
112 if (effect < parm_defs[type].low) effect_set_byte()
113 effect = parm_defs[type].low; effect_set_byte()
114 else if (effect > parm_defs[type].high) effect_set_byte()
115 effect = parm_defs[type].high; effect_set_byte()
116 *valp = (unsigned char)effect; effect_set_byte()
119 /* set word effect value */
123 int effect; effect_set_word() local
126 effect = *(unsigned short*)&fx->val[type]; effect_set_word()
128 effect += *valp; effect_set_word()
129 if (effect < parm_defs[type].low) effect_set_word()
130 effect = parm_defs[type].low; effect_set_word()
131 else if (effect > parm_defs[type].high) effect_set_word()
132 effect = parm_defs[type].high; effect_set_word()
133 *valp = (unsigned short)effect; effect_set_word()
173 /* Modify the effect value.
243 /* modify the register values via effect table */ snd_emux_setup_effect()
277 * effect table
283 p->effect = kcalloc(p->chset.max_channels, snd_emux_create_effect()
285 if (p->effect) { snd_emux_create_effect()
287 p->chset.channels[i].private = p->effect + i; snd_emux_create_effect()
297 kfree(p->effect); snd_emux_delete_effect()
298 p->effect = NULL; snd_emux_delete_effect()
304 if (p->effect) { snd_emux_clear_effect()
305 memset(p->effect, 0, sizeof(struct snd_emux_effect_table) * snd_emux_clear_effect()
H A Demux_nrpn.c32 int effect; member in struct:nrpn_conv_table
36 /* effect sensitivity */
60 snd_emux_send_effect(port, chan, table[i].effect, send_converted_effect()
76 /* effect sensitivities for GS NRPN:
85 /* effect sensitivies for XG controls:
/linux-4.1.27/drivers/hid/usbhid/
H A Dhid-pidff.c286 struct ff_effect *effect) pidff_set_constant_force_report()
291 effect->u.constant.level); pidff_set_constant_force_report()
300 static int pidff_needs_set_constant(struct ff_effect *effect, pidff_needs_set_constant() argument
303 return effect->u.constant.level != old->u.constant.level; pidff_needs_set_constant()
307 * Send set effect report to the device
310 struct ff_effect *effect) pidff_set_effect_report()
316 pidff->set_effect[PID_DURATION].value[0] = effect->replay.length; pidff_set_effect_report()
317 pidff->set_effect[PID_TRIGGER_BUTTON].value[0] = effect->trigger.button; pidff_set_effect_report()
319 effect->trigger.interval; pidff_set_effect_report()
324 pidff_rescale(effect->direction, 0xffff, pidff_set_effect_report()
326 pidff->set_effect[PID_START_DELAY].value[0] = effect->replay.delay; pidff_set_effect_report()
335 static int pidff_needs_set_effect(struct ff_effect *effect, pidff_needs_set_effect() argument
338 return effect->replay.length != old->replay.length || pidff_needs_set_effect()
339 effect->trigger.interval != old->trigger.interval || pidff_needs_set_effect()
340 effect->trigger.button != old->trigger.button || pidff_needs_set_effect()
341 effect->direction != old->direction || pidff_needs_set_effect()
342 effect->replay.delay != old->replay.delay; pidff_needs_set_effect()
346 * Send periodic effect report to the device
349 struct ff_effect *effect) pidff_set_periodic_report()
354 effect->u.periodic.magnitude); pidff_set_periodic_report()
356 effect->u.periodic.offset); pidff_set_periodic_report()
357 pidff_set(&pidff->set_periodic[PID_PHASE], effect->u.periodic.phase); pidff_set_periodic_report()
358 pidff->set_periodic[PID_PERIOD].value[0] = effect->u.periodic.period; pidff_set_periodic_report()
366 * Test if periodic effect parameters have changed
368 static int pidff_needs_set_periodic(struct ff_effect *effect, pidff_needs_set_periodic() argument
371 return effect->u.periodic.magnitude != old->u.periodic.magnitude || pidff_needs_set_periodic()
372 effect->u.periodic.offset != old->u.periodic.offset || pidff_needs_set_periodic()
373 effect->u.periodic.phase != old->u.periodic.phase || pidff_needs_set_periodic()
374 effect->u.periodic.period != old->u.periodic.period; pidff_needs_set_periodic()
378 * Send condition effect reports to the device
381 struct ff_effect *effect) pidff_set_condition_report()
391 effect->u.condition[i].center); pidff_set_condition_report()
393 effect->u.condition[i].right_coeff); pidff_set_condition_report()
395 effect->u.condition[i].left_coeff); pidff_set_condition_report()
397 effect->u.condition[i].right_saturation); pidff_set_condition_report()
399 effect->u.condition[i].left_saturation); pidff_set_condition_report()
401 effect->u.condition[i].deadband); pidff_set_condition_report()
408 * Test if condition effect parameters have changed
410 static int pidff_needs_set_condition(struct ff_effect *effect, pidff_needs_set_condition() argument
417 struct ff_condition_effect *cond = &effect->u.condition[i]; pidff_needs_set_condition()
435 struct ff_effect *effect) pidff_set_ramp_force_report()
440 effect->u.ramp.start_level); pidff_set_ramp_force_report()
442 effect->u.ramp.end_level); pidff_set_ramp_force_report()
450 static int pidff_needs_set_ramp(struct ff_effect *effect, struct ff_effect *old) pidff_needs_set_ramp() argument
452 return effect->u.ramp.start_level != old->u.ramp.start_level || pidff_needs_set_ramp()
453 effect->u.ramp.end_level != old->u.ramp.end_level; pidff_needs_set_ramp()
457 * Send a request for effect upload to the device
501 * Play the effect with PID id n times
521 * Play the effect with effect id @effect_id for @value times
533 * Erase effect with PID id
543 * Stop and erase effect with effect_id
553 prevent the effect removal. */ pidff_erase_effect()
564 static int pidff_upload_effect(struct input_dev *dev, struct ff_effect *effect, pidff_upload_effect() argument
574 pidff->pid_id[effect->id]; pidff_upload_effect()
577 switch (effect->type) { pidff_upload_effect()
585 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
586 pidff_set_effect_report(pidff, effect); pidff_upload_effect()
587 if (!old || pidff_needs_set_constant(effect, old)) pidff_upload_effect()
588 pidff_set_constant_force_report(pidff, effect); pidff_upload_effect()
590 pidff_needs_set_envelope(&effect->u.constant.envelope, pidff_upload_effect()
593 &effect->u.constant.envelope); pidff_upload_effect()
598 switch (effect->u.periodic.waveform) { pidff_upload_effect()
624 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
625 pidff_set_effect_report(pidff, effect); pidff_upload_effect()
626 if (!old || pidff_needs_set_periodic(effect, old)) pidff_upload_effect()
627 pidff_set_periodic_report(pidff, effect); pidff_upload_effect()
629 pidff_needs_set_envelope(&effect->u.periodic.envelope, pidff_upload_effect()
632 &effect->u.periodic.envelope); pidff_upload_effect()
642 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
643 pidff_set_effect_report(pidff, effect); pidff_upload_effect()
644 if (!old || pidff_needs_set_ramp(effect, old)) pidff_upload_effect()
645 pidff_set_ramp_force_report(pidff, effect); pidff_upload_effect()
647 pidff_needs_set_envelope(&effect->u.ramp.envelope, pidff_upload_effect()
650 &effect->u.ramp.envelope); pidff_upload_effect()
660 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
661 pidff_set_effect_report(pidff, effect); pidff_upload_effect()
662 if (!old || pidff_needs_set_condition(effect, old)) pidff_upload_effect()
663 pidff_set_condition_report(pidff, effect); pidff_upload_effect()
673 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
674 pidff_set_effect_report(pidff, effect); pidff_upload_effect()
675 if (!old || pidff_needs_set_condition(effect, old)) pidff_upload_effect()
676 pidff_set_condition_report(pidff, effect); pidff_upload_effect()
686 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
687 pidff_set_effect_report(pidff, effect); pidff_upload_effect()
688 if (!old || pidff_needs_set_condition(effect, old)) pidff_upload_effect()
689 pidff_set_condition_report(pidff, effect); pidff_upload_effect()
699 if (!old || pidff_needs_set_effect(effect, old)) pidff_upload_effect()
700 pidff_set_effect_report(pidff, effect); pidff_upload_effect()
701 if (!old || pidff_needs_set_condition(effect, old)) pidff_upload_effect()
702 pidff_set_condition_report(pidff, effect); pidff_upload_effect()
711 pidff->pid_id[effect->id] = pidff_upload_effect()
958 hid_err(pidff->hid, "effect lists not found\n"); pidff_find_special_fields()
978 hid_err(pidff->hid, "effect operation field not found\n"); pidff_find_special_fields()
990 hid_err(pidff->hid, "no effect types found\n"); pidff_find_special_fields()
1005 hid_err(pidff->hid, "effect operation identifiers not found\n"); pidff_find_special_fields()
1013 * Find the implemented effect types
1025 "effect type number %d is invalid\n", i); pidff_find_effects()
1109 "has constant effect but no envelope\n"); pidff_init_fields()
1112 "has ramp effect but no envelope\n"); pidff_init_fields()
1116 "has periodic effect but no envelope\n"); pidff_init_fields()
1121 hid_warn(pidff->hid, "unknown constant effect layout\n"); pidff_init_fields()
1127 hid_warn(pidff->hid, "unknown ramp effect layout\n"); pidff_init_fields()
1136 hid_warn(pidff->hid, "unknown condition effect layout\n"); pidff_init_fields()
1145 hid_warn(pidff->hid, "unknown periodic effect layout\n"); pidff_init_fields()
1208 * effect upload and cancel it immediately. If the approved pidff_check_autocenter()
1209 * effect id was one above the minimum, then we assume the first pidff_check_autocenter()
1210 * effect id is a built-in spring type effect used for autocenter pidff_check_autocenter()
285 pidff_set_constant_force_report(struct pidff_device *pidff, struct ff_effect *effect) pidff_set_constant_force_report() argument
309 pidff_set_effect_report(struct pidff_device *pidff, struct ff_effect *effect) pidff_set_effect_report() argument
348 pidff_set_periodic_report(struct pidff_device *pidff, struct ff_effect *effect) pidff_set_periodic_report() argument
380 pidff_set_condition_report(struct pidff_device *pidff, struct ff_effect *effect) pidff_set_condition_report() argument
434 pidff_set_ramp_force_report(struct pidff_device *pidff, struct ff_effect *effect) pidff_set_ramp_force_report() argument
/linux-4.1.27/drivers/hid/
H A Dhid-holtekff.c43 * 01 set effect parameters
44 * 02 play specified effect
45 * 03 stop specified effect
55 * commands 02,03 take only the effect id.
58 * bits 0-3: effect id:
75 * bytes 5-6: unknown (win driver seems to use at least 10e0 with effect 1
76 * and 0014 with effect 6)
78 * bits 0-3: effect magnitude
107 struct ff_effect *effect) holtekff_play()
112 /* effect type 1, length 65535 msec */ holtekff_play()
116 left = effect->u.rumble.strong_magnitude; holtekff_play()
117 right = effect->u.rumble.weak_magnitude; holtekff_play()
106 holtekff_play(struct input_dev *dev, void *data, struct ff_effect *effect) holtekff_play() argument
H A Dhid-lgff.c69 static int hid_lgff_play(struct input_dev *dev, void *data, struct ff_effect *effect) hid_lgff_play() argument
79 switch (effect->type) { hid_lgff_play()
81 x = effect->u.ramp.start_level + 0x7f; /* 0x7f is center */ hid_lgff_play()
82 y = effect->u.ramp.end_level + 0x7f; hid_lgff_play()
94 right = effect->u.rumble.strong_magnitude; hid_lgff_play()
95 left = effect->u.rumble.weak_magnitude; hid_lgff_play()
H A Dhid-betopff.c41 struct ff_effect *effect) hid_betopff_play()
47 left = effect->u.rumble.strong_magnitude; hid_betopff_play()
48 right = effect->u.rumble.weak_magnitude; hid_betopff_play()
40 hid_betopff_play(struct input_dev *dev, void *data, struct ff_effect *effect) hid_betopff_play() argument
H A Dhid-emsff.c35 struct ff_effect *effect) emsff_play()
41 weak = effect->u.rumble.weak_magnitude; emsff_play()
42 strong = effect->u.rumble.strong_magnitude; emsff_play()
34 emsff_play(struct input_dev *dev, void *data, struct ff_effect *effect) emsff_play() argument
H A Dhid-lg2ff.c35 struct ff_effect *effect) play_effect()
41 strong = effect->u.rumble.strong_magnitude; play_effect()
42 weak = effect->u.rumble.weak_magnitude; play_effect()
34 play_effect(struct input_dev *dev, void *data, struct ff_effect *effect) play_effect() argument
H A Dhid-zpff.c38 struct ff_effect *effect) zpff_play()
50 left = effect->u.rumble.strong_magnitude; zpff_play()
51 right = effect->u.rumble.weak_magnitude; zpff_play()
37 zpff_play(struct input_dev *dev, void *data, struct ff_effect *effect) zpff_play() argument
H A Dhid-lg3ff.c61 struct ff_effect *effect) hid_lg3ff_play()
75 switch (effect->type) { hid_lg3ff_play()
81 x = effect->u.ramp.start_level; hid_lg3ff_play()
82 y = effect->u.ramp.end_level; hid_lg3ff_play()
60 hid_lg3ff_play(struct input_dev *dev, void *data, struct ff_effect *effect) hid_lg3ff_play() argument
H A Dhid-tmff.c84 struct ff_effect *effect) tmff_play()
92 switch (effect->type) { tmff_play()
94 x = tmff_scale_s8(effect->u.ramp.start_level, tmff_play()
97 y = tmff_scale_s8(effect->u.ramp.end_level, tmff_play()
108 left = tmff_scale_u16(effect->u.rumble.weak_magnitude, tmff_play()
111 right = tmff_scale_u16(effect->u.rumble.strong_magnitude, tmff_play()
83 tmff_play(struct input_dev *dev, void *data, struct ff_effect *effect) tmff_play() argument
H A Dhid-axff.c43 static int axff_play(struct input_dev *dev, void *data, struct ff_effect *effect) axff_play() argument
52 left = effect->u.rumble.strong_magnitude; axff_play()
53 right = effect->u.rumble.weak_magnitude; axff_play()
H A Dhid-gaff.c43 struct ff_effect *effect) hid_gaff_play()
49 left = effect->u.rumble.strong_magnitude; hid_gaff_play()
50 right = effect->u.rumble.weak_magnitude; hid_gaff_play()
42 hid_gaff_play(struct input_dev *dev, void *data, struct ff_effect *effect) hid_gaff_play() argument
H A Dhid-sjoy.c42 struct ff_effect *effect) hid_sjoyff_play()
48 left = effect->u.rumble.strong_magnitude; hid_sjoyff_play()
49 right = effect->u.rumble.weak_magnitude; hid_sjoyff_play()
41 hid_sjoyff_play(struct input_dev *dev, void *data, struct ff_effect *effect) hid_sjoyff_play() argument
H A Dhid-dr.c44 struct ff_effect *effect) drff_play()
50 strong = effect->u.rumble.strong_magnitude; drff_play()
51 weak = effect->u.rumble.weak_magnitude; drff_play()
43 drff_play(struct input_dev *dev, void *data, struct ff_effect *effect) drff_play() argument
H A Dhid-pl.c60 struct ff_effect *effect) hid_plff_play()
66 left = effect->u.rumble.strong_magnitude; hid_plff_play()
67 right = effect->u.rumble.weak_magnitude; hid_plff_play()
59 hid_plff_play(struct input_dev *dev, void *data, struct ff_effect *effect) hid_plff_play() argument
/linux-4.1.27/drivers/input/misc/
H A Dpm8xxx-vibrator.c125 * @data: data of effect
126 * @effect: effect to play
131 struct ff_effect *effect) pm8xxx_vib_play_effect()
135 vib->speed = effect->u.rumble.strong_magnitude >> 8; pm8xxx_vib_play_effect()
137 vib->speed = effect->u.rumble.weak_magnitude >> 9; pm8xxx_vib_play_effect()
130 pm8xxx_vib_play_effect(struct input_dev *dev, void *data, struct ff_effect *effect) pm8xxx_vib_play_effect() argument
H A Darizona-haptics.c111 struct ff_effect *effect) arizona_haptics_play()
121 if (effect->u.rumble.strong_magnitude) { arizona_haptics_play()
125 effect->u.rumble.strong_magnitude >> 9; arizona_haptics_play()
126 if (effect->direction < 0x8000) arizona_haptics_play()
130 effect->u.rumble.strong_magnitude >> 8; arizona_haptics_play()
110 arizona_haptics_play(struct input_dev *input, void *data, struct ff_effect *effect) arizona_haptics_play() argument
H A Dtwl4030-vibra.c137 struct ff_effect *effect) vibra_play()
141 info->speed = effect->u.rumble.strong_magnitude >> 8; vibra_play()
143 info->speed = effect->u.rumble.weak_magnitude >> 9; vibra_play()
144 info->direction = effect->direction < EFFECT_DIR_180_DEG ? 0 : 1; vibra_play()
136 vibra_play(struct input_dev *input, void *data, struct ff_effect *effect) vibra_play() argument
H A Duinput.c195 struct ff_effect *effect, uinput_dev_upload_effect()
208 if (effect->type == FF_PERIODIC && uinput_dev_upload_effect()
209 effect->u.periodic.waveform == FF_CUSTOM) uinput_dev_upload_effect()
213 request.u.upload.effect = effect; uinput_dev_upload_effect()
584 struct ff_effect_compat effect; member in struct:uinput_ff_upload_compat
602 memcpy(&ff_up_compat.effect, &ff_up->effect, uinput_ff_upload_to_user()
631 memcpy(&ff_up->effect, &ff_up_compat.effect, uinput_ff_upload_from_user()
803 !req->u.upload.effect) { uinput_ioctl_handler()
809 ff_up.effect = *req->u.upload.effect; uinput_ioctl_handler()
846 !req->u.upload.effect) { uinput_ioctl_handler()
194 uinput_dev_upload_effect(struct input_dev *dev, struct ff_effect *effect, struct ff_effect *old) uinput_dev_upload_effect() argument
H A Dregulator-haptic.c98 struct ff_effect *effect) regulator_haptic_play_effect()
102 haptic->magnitude = effect->u.rumble.strong_magnitude; regulator_haptic_play_effect()
104 haptic->magnitude = effect->u.rumble.weak_magnitude; regulator_haptic_play_effect()
97 regulator_haptic_play_effect(struct input_dev *input, void *data, struct ff_effect *effect) regulator_haptic_play_effect() argument
H A Ddrv2667.c235 struct ff_effect *effect) drv2667_haptics_play()
239 if (effect->u.rumble.strong_magnitude > 0) drv2667_haptics_play()
240 haptics->magnitude = effect->u.rumble.strong_magnitude; drv2667_haptics_play()
241 else if (effect->u.rumble.weak_magnitude > 0) drv2667_haptics_play()
242 haptics->magnitude = effect->u.rumble.weak_magnitude; drv2667_haptics_play()
234 drv2667_haptics_play(struct input_dev *input, void *data, struct ff_effect *effect) drv2667_haptics_play() argument
H A Dtwl6040-vibra.c200 struct ff_effect *effect) vibra_play()
205 /* Do not allow effect, while the routing is set to use audio */ vibra_play()
212 info->weak_speed = effect->u.rumble.weak_magnitude; vibra_play()
213 info->strong_speed = effect->u.rumble.strong_magnitude; vibra_play()
214 info->direction = effect->direction < EFFECT_DIR_180_DEG ? 1 : -1; vibra_play()
199 vibra_play(struct input_dev *input, void *data, struct ff_effect *effect) vibra_play() argument
H A Dmax77693-haptic.c194 struct ff_effect *effect) max77693_haptic_play_effect()
199 haptic->magnitude = effect->u.rumble.strong_magnitude; max77693_haptic_play_effect()
201 haptic->magnitude = effect->u.rumble.weak_magnitude; max77693_haptic_play_effect()
193 max77693_haptic_play_effect(struct input_dev *dev, void *data, struct ff_effect *effect) max77693_haptic_play_effect() argument
H A Dmax77843-haptic.c191 struct ff_effect *effect) max77843_haptic_play_effect()
196 haptic->magnitude = effect->u.rumble.strong_magnitude; max77843_haptic_play_effect()
198 haptic->magnitude = effect->u.rumble.weak_magnitude; max77843_haptic_play_effect()
190 max77843_haptic_play_effect(struct input_dev *dev, void *data, struct ff_effect *effect) max77843_haptic_play_effect() argument
H A Dmax8997_haptic.c232 struct ff_effect *effect) max8997_haptic_play_effect()
236 chip->level = effect->u.rumble.strong_magnitude; max8997_haptic_play_effect()
238 chip->level = effect->u.rumble.weak_magnitude; max8997_haptic_play_effect()
231 max8997_haptic_play_effect(struct input_dev *dev, void *data, struct ff_effect *effect) max8997_haptic_play_effect() argument
H A Ddrv260x.c283 struct ff_effect *effect) drv260x_haptics_play()
289 if (effect->u.rumble.strong_magnitude > 0) drv260x_haptics_play()
290 haptics->magnitude = effect->u.rumble.strong_magnitude; drv260x_haptics_play()
291 else if (effect->u.rumble.weak_magnitude > 0) drv260x_haptics_play()
292 haptics->magnitude = effect->u.rumble.weak_magnitude; drv260x_haptics_play()
282 drv260x_haptics_play(struct input_dev *input, void *data, struct ff_effect *effect) drv260x_haptics_play() argument
H A Dpowermate.c143 the argument only has an effect for operations 0 and 2, and ranges between powermate_sync_state()
144 1 (least effect) to 255 (maximum effect). powermate_sync_state()
/linux-4.1.27/include/uapi/linux/
H A Dinput.h150 #define EVIOCSFF _IOC(_IOC_WRITE, 'E', 0x80, sizeof(struct ff_effect)) /* send a force effect to a force feedback device */
151 #define EVIOCRMFF _IOW('E', 0x81, int) /* Erase a force effect */
985 * Values describing the status of a force-feedback effect
1002 * struct ff_replay - defines scheduling of the force-feedback effect
1003 * @length: duration of the effect
1004 * @delay: delay before effect should start playing
1012 * struct ff_trigger - defines what triggers the force-feedback effect
1013 * @button: number of the button triggering the effect
1014 * @interval: controls how soon the effect can be re-triggered
1022 * struct ff_envelope - generic force-feedback effect envelope
1030 * value based on polarity of the default level of the effect.
1041 * struct ff_constant_effect - defines parameters of a constant force-feedback effect
1042 * @level: strength of the effect; may be negative
1051 * struct ff_ramp_effect - defines parameters of a ramp force-feedback effect
1052 * @start_level: beginning strength of the effect; may be negative
1053 * @end_level: final strength of the effect; may be negative
1063 * struct ff_condition_effect - defines a spring or friction force-feedback effect
1084 * struct ff_periodic_effect - defines parameters of a periodic force-feedback effect
1085 * @waveform: kind of the effect (wave)
1115 * struct ff_rumble_effect - defines parameters of a periodic force-feedback effect
1128 * struct ff_effect - defines force feedback effect
1129 * @type: type of the effect (FF_CONSTANT, FF_PERIODIC, FF_RAMP, FF_SPRING,
1131 * @id: an unique id assigned to an effect
1132 * @direction: direction of the effect
1134 * @replay: scheduling of the effect (struct ff_replay)
1135 * @u: effect-specific structure (one of ff_constant_effect, ff_ramp_effect,
1137 * defining effect parameters
1140 * To create a new effect application should set its @id to -1; the kernel
1142 * this effect.
1144 * Direction of the effect is encoded as follows:
1167 * Force feedback effect types
1183 * Force feedback periodic effect types
H A Duinput.h46 struct ff_effect effect; member in struct:uinput_ff_upload
115 * 4. Perform the effect upload, and place a return code back into
128 * effect ID passed to erase_effect().
129 * 4. Perform the effect erasure, and place a return code back
H A Dparport.h85 * parport_negotiate to use address operations. They have no effect
H A Dif_tun.h58 /* This flag has no real effect */
H A Ddccp.h216 #define DCCP_SOCKOPT_PACKET_SIZE 1 /* XXX deprecated, without effect */
/linux-4.1.27/arch/xtensa/boot/
H A DMakefile11 # KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
/linux-4.1.27/include/sound/
H A Demux_legacy.h65 /* 6*/ EMUX_MD_KEEP_EFFECT, /* 0/1: keep effect values, (default=0) */
85 * effect parameters
119 /* Other overall effect parameters */
140 /* effect flag values */
H A Demux_synth.h151 struct snd_emux_effect_table *effect; member in struct:snd_emux_port
220 * effect table
H A Dak4113.h217 /* mask enable for DAT bit (if 1, no INT1 effect */
219 /* mask enable for DAT bit (if 1, no INT0 effect */
H A Dgus.h300 effect:1; /* use effect voices */ member in struct:snd_gf1
610 int effect,
/linux-4.1.27/arch/arm/mach-bcm/
H A Dkona_l2_cache.c41 * The aux_val and aux_mask have no effect since L2 cache is already kona_l2_cache_init()
/linux-4.1.27/mm/
H A Dmmu_context.c45 * Reverses the effect of use_mm, i.e. releases the
/linux-4.1.27/sound/usb/line6/
H A Dplayback.h23 * the next period (sounds like a delay effect). As a workaround, the output
/linux-4.1.27/kernel/
H A Dcapability.c180 * has the effect of making older libcap SYSCALL_DEFINE2()
291 * currently in effect to the specified user namespace, false if not.
313 * currently in effect to the initial user namespace, false if not.
330 * currently in effect to the specified user namespace, false if not.
354 * currently in effect to init_user_ns, false if not. Don't write an
365 * ns_capable - Determine if the current task has a superior capability in effect
392 * capable - Determine if the current task has a superior capability in effect
409 * file_ns_capable - Determine if the file's opener had a capability in effect
414 * Return true if task that opened the file had a capability in effect
H A Dfreezer.c14 /* total number of freezing conditions in effect */
18 /* indicate whether PM freezing is in effect, protected by pm_mutex */
/linux-4.1.27/drivers/media/platform/exynos4-is/
H A Dfimc-core.c485 struct fimc_effect *effect = &ctx->effect; fimc_set_color_effect() local
489 effect->type = FIMC_REG_CIIMGEFF_FIN_BYPASS; fimc_set_color_effect()
492 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; fimc_set_color_effect()
493 effect->pat_cb = 128; fimc_set_color_effect()
494 effect->pat_cr = 128; fimc_set_color_effect()
497 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; fimc_set_color_effect()
498 effect->pat_cb = 115; fimc_set_color_effect()
499 effect->pat_cr = 145; fimc_set_color_effect()
502 effect->type = FIMC_REG_CIIMGEFF_FIN_NEGATIVE; fimc_set_color_effect()
505 effect->type = FIMC_REG_CIIMGEFF_FIN_EMBOSSING; fimc_set_color_effect()
508 effect->type = FIMC_REG_CIIMGEFF_FIN_ARTFREEZE; fimc_set_color_effect()
511 effect->type = FIMC_REG_CIIMGEFF_FIN_SILHOUETTE; fimc_set_color_effect()
514 effect->type = FIMC_REG_CIIMGEFF_FIN_ARBITRARY; fimc_set_color_effect()
515 effect->pat_cb = ctx->ctrls.colorfx_cbcr->val >> 8; fimc_set_color_effect()
516 effect->pat_cr = ctx->ctrls.colorfx_cbcr->val & 0xff; fimc_set_color_effect()
629 ctx->effect.type = FIMC_REG_CIIMGEFF_FIN_BYPASS; fimc_ctrls_create()
672 ctx->effect.type = FIMC_REG_CIIMGEFF_FIN_BYPASS; fimc_ctrls_activate()
H A Dfimc-reg.c377 struct fimc_effect *effect = &ctx->effect; fimc_hw_set_effect() local
380 if (effect->type != FIMC_REG_CIIMGEFF_FIN_BYPASS) { fimc_hw_set_effect()
383 cfg |= effect->type; fimc_hw_set_effect()
384 if (effect->type == FIMC_REG_CIIMGEFF_FIN_ARBITRARY) fimc_hw_set_effect()
385 cfg |= (effect->pat_cb << 13) | effect->pat_cr; fimc_hw_set_effect()
H A Dfimc-core.h161 * struct fimc_effect - color effect information
162 * @type: effect type
445 * @colorfx: image effect control
477 * @effect: image effect
497 struct fimc_effect effect; member in struct:fimc_ctx
H A Dfimc-is-param.h334 /* Image effect error codes */
335 #define ISP_IMAGE_EFFECT_ERROR_NONE 0 /* Image effect setting
693 struct param_isp_imageeffect effect; member in struct:isp_param
713 struct param_scaler_imageeffect effect; member in struct:scalerc_param
743 struct param_scaler_imageeffect effect; member in struct:scalerp_param
H A Dfimc-is-param.c94 __hw_param_copy(&par->isp.effect, &cfg->isp.effect); __fimc_is_hw_update_param()
344 isp->effect.cmd = cmd; __is_set_isp_effect()
345 isp->effect.err = ISP_IMAGE_EFFECT_ERROR_NONE; __is_set_isp_effect()
H A Dfimc-isp.h100 /* ISP image effect */
H A Dfimc-reg.h183 /* Image effect */
/linux-4.1.27/include/asm-generic/bitops/
H A Dnon-atomic.h12 * If it's called on the same region of memory simultaneously, the effect
37 * If it's called on the same region of memory simultaneously, the effect
/linux-4.1.27/include/linux/
H A Dio.h96 * no effect if the per-page mechanisms are functional.
100 * to have no effect.
H A Dzsmalloc.h23 * They also have no effect when PGTABLE_MAPPING is selected.
H A Dfreezer.h12 extern atomic_t system_freezing_cnt; /* nr of freezing conds in effect */
13 extern bool pm_freezing; /* PM freezing in effect */
14 extern bool pm_nosig_freezing; /* PM nosig freezing in effect */
116 * effect.
H A Dinput.h476 * @upload: Called to upload an new effect into device
477 * @erase: Called to erase an effect from device
478 * @playback: Called to request device to start playing specified effect
489 * @effect_owners: array of effect owners; when file handle owning
490 * an effect gets closed the effect is automatically erased
502 int (*upload)(struct input_dev *dev, struct ff_effect *effect,
528 int input_ff_upload(struct input_dev *dev, struct ff_effect *effect, struct file *file);
H A Duinput.h55 struct ff_effect *effect; member in struct:uinput_request::__anon12497::__anon12498
H A Dhighuid.h45 /* prevent uid mod 65536 effect by returning a default value for high UIDs */
H A Djump_label.h24 * effect is a single NOP of appropriate size. The on case will patch in a jump
H A Dparport_pc.h83 /* here's hoping that reading these ports won't side-effect anything underneath */ dump_parport_state()
H A Dpm_wakeup.h69 * Changes to device_may_wakeup take effect on the next pm state change.
/linux-4.1.27/drivers/media/rc/img-ir/
H A Dimg-ir-rc5.c29 * no effect on standard RC5. img_ir_rc5_scancode()
H A Dimg-ir-rc6.c21 * Due to a side effect of the decoder handling the double length img_ir_rc6_scancode()
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_drm_crtc.h37 * to trigger to transfer video image at the tearing effect synchronization
/linux-4.1.27/arch/sparc/include/uapi/asm/
H A Dfcntl.h29 * This has the nice side-effect that we can simply test for O_DSYNC
/linux-4.1.27/arch/metag/kernel/
H A Dhead.S54 ! the boot thread might have performed prior to coherency taking effect.
/linux-4.1.27/arch/sh/include/asm/
H A Dbarrier.h17 * effect. On newer cores (like the sh4a and sh5) this is accomplished
H A Dbitops-op32.h61 * If it's called on the same region of memory simultaneously, the effect
/linux-4.1.27/arch/mips/mti-sead3/
H A Dsead3-time.c20 * Estimate CPU frequency. Sets mips_hpt_frequency as a side-effect.
/linux-4.1.27/arch/alpha/include/uapi/asm/
H A Dfcntl.h26 * This has the nice side-effect that we can simply test for O_DSYNC
/linux-4.1.27/lib/xz/
H A Dxz_stream.h39 * in code size (no effect on speed). Doing so limits the uncompressed and
/linux-4.1.27/sound/isa/sb/
H A Demu8000.c681 int effect = emu->chorus_mode; snd_emu8000_update_chorus_mode() local
682 if (effect < 0 || effect >= SNDRV_EMU8000_CHORUS_NUMBERS || snd_emu8000_update_chorus_mode()
683 (effect >= SNDRV_EMU8000_CHORUS_PREDEFINED && !chorus_defined[effect])) snd_emu8000_update_chorus_mode()
685 EMU8000_INIT3_WRITE(emu, 0x09, chorus_parm[effect].feedback); snd_emu8000_update_chorus_mode()
686 EMU8000_INIT3_WRITE(emu, 0x0c, chorus_parm[effect].delay_offset); snd_emu8000_update_chorus_mode()
687 EMU8000_INIT4_WRITE(emu, 0x03, chorus_parm[effect].lfo_depth); snd_emu8000_update_chorus_mode()
688 EMU8000_HWCF4_WRITE(emu, chorus_parm[effect].delay); snd_emu8000_update_chorus_mode()
689 EMU8000_HWCF5_WRITE(emu, chorus_parm[effect].lfo_freq); snd_emu8000_update_chorus_mode()
809 int effect = emu->reverb_mode; snd_emu8000_update_reverb_mode() local
812 if (effect < 0 || effect >= SNDRV_EMU8000_REVERB_NUMBERS || snd_emu8000_update_reverb_mode()
813 (effect >= SNDRV_EMU8000_REVERB_PREDEFINED && !reverb_defined[effect])) snd_emu8000_update_reverb_mode()
821 snd_emu8000_poke(emu, port, reverb_cmds[i].cmd, reverb_parm[effect].parms[i]); snd_emu8000_update_reverb_mode()
/linux-4.1.27/drivers/media/i2c/m5mols/
H A Dm5mols_reg.h98 * between the sensor and the Application Processor/even the image effect.
127 * another options like zoom/color effect(different with effect in PARAMETER
134 /* CR value for color effect */
136 /* CB value for color effect */
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dpcmda12.c41 * will not take effect until a subsequent read of any AO channel. This
43 * with values before simultaneously setting them to take effect with one
H A Dadv_pci1724.c36 * The calibration offset and gains have quite a large effect on the
H A Dcb_pcimdda.c46 - Simultaneous XFER Mode: Writing to an AO channel has no effect until
/linux-4.1.27/arch/arm/mach-pxa/include/mach/
H A Dmfp-pxa2xx.h33 * Note: MFP_LPM_KEEP_OUTPUT has no effect on pins configured for input.
58 * so not to cause any side effect
/linux-4.1.27/drivers/iio/common/st_sensors/
H A Dst_sensors_i2c.c89 * In effect this function matches a compatible string to an internal kernel
/linux-4.1.27/drivers/media/usb/gspca/
H A Dpac_common.h29 the new settings to come into effect before doing any other adjustments. */
/linux-4.1.27/drivers/thunderbolt/
H A Dnhi_regs.h59 * 14: max frame sizes (anything larger than 0x100 has no effect)
H A Dtunnel_pci.c222 * port. Seems to have no effect? tb_pci_deactivate()
/linux-4.1.27/fs/isofs/
H A Dutil.c13 * The time stored should be localtime (with or without DST in effect),
/linux-4.1.27/arch/mips/include/uapi/asm/
H A Dfcntl.h30 * This has the nice side-effect that we can simply test for O_DSYNC
/linux-4.1.27/arch/arm/mach-tegra/
H A Dreset.c55 * NOTE: Has no effect on chips prior to Tegra30. tegra_cpu_reset_handler_set()
H A Dplatsmp.c54 * effect on first boot of the CPU since it should already be tegra20_boot_secondary()
/linux-4.1.27/arch/arm/plat-samsung/
H A Dpm-common.c67 * WARNING: Do not put any debug in here that may effect memory or use
/linux-4.1.27/arch/arm/kernel/
H A Dsmp_scu.c80 * has the side effect of disabling coherency, caches must have been
/linux-4.1.27/tools/perf/util/
H A Dcache.h47 * DO NOT USE any expression with side-effect for 'x' or 'alloc'.
/linux-4.1.27/include/linux/i2c/
H A Dapds990x.h35 * struct apds990x_chip_factors - defines effect of the cover window
/linux-4.1.27/drivers/net/usb/
H A Dcx82310_eth.c30 CMD_START = 0x84, /* no effect? */
31 CMD_STOP = 0x85, /* no effect? */
197 /* start (does not seem to have any effect?) */ cx82310_bind()
/linux-4.1.27/drivers/video/fbdev/aty/
H A Dmach64_accel.c148 /* set write mask to effect all pixel bits */ aty_init_engine()
152 /* no-effect */ aty_init_engine()
159 /* set compare functionality to false (no-effect on */ aty_init_engine()
/linux-4.1.27/drivers/media/platform/s3c-camif/
H A Dcamif-regs.c60 void camif_hw_set_effect(struct camif_dev *camif, unsigned int effect, camif_hw_set_effect() argument
76 if (colorfx[i].id == effect) camif_hw_set_effect()
83 /* Set effect */ camif_hw_set_effect()
88 if (effect == V4L2_COLORFX_NONE) camif_hw_set_effect()
H A Dcamif-regs.h183 /* Image effect: 1 - after scaler, 0 - before scaler */
257 void camif_hw_set_effect(struct camif_dev *camif, unsigned int effect,
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac.h43 /* Frequently used values are kept adjacent for cache effect */
H A Ddwmac1000_dma.c69 /* Mixed Burst has no effect when fb is set */ dwmac1000_dma_init()
83 * effect. dwmac1000_dma_init()
H A Ddwmac_lib.c229 * bit that has no effect on the High Reg 0 where the bit 31 (MO) stmmac_set_mac_addr()
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
H A Dreg.h97 state of other bits (0 = no effect).
107 state of other bits (0 = no effect).
118 effect its content.
141 assotiated interrupt inactive. (0-no effect)
/linux-4.1.27/drivers/net/wireless/zd1211rw/
H A Dzd_rf.h60 * HW_OverWritePhyRegFromE2P() routine from ever taking effect. */
/linux-4.1.27/arch/x86/include/asm/
H A Dswitch_to.h106 * has no effect.
H A Dbitops.h91 * If it's called on the same region of memory simultaneously, the effect
166 * If it's called on the same region of memory simultaneously, the effect
/linux-4.1.27/arch/x86/kernel/
H A Dioport.c103 * and changing them has no effect. SYSCALL_DEFINE1()
H A Dverify_cpu.S27 * On Intel, the XD_DISABLE flag will be cleared as a side-effect.
/linux-4.1.27/arch/x86/lib/
H A Dinsn.c79 * to point to the (first) opcode. No effect if @insn->prefixes.got
200 * Sets @insn->opcode.value = opcode1. No effect if @insn->opcode.got
252 * (prefixes and opcode(s)). No effect if @insn->modrm.got is already 1.
290 * ModRM byte. No effect if @insn->x86_64 is 0.
/linux-4.1.27/arch/sparc/kernel/
H A Dled.c88 * otherwise calls such as on will have no persistent effect led_proc_write()
/linux-4.1.27/arch/tile/include/arch/
H A Dtrio_shm.h94 * bit. The net effect is that the GEN bit being written into new
/linux-4.1.27/arch/um/os-Linux/
H A Dutil.c79 * has no effect within UML's kernel threads.
/linux-4.1.27/arch/mips/dec/
H A Dioasic-irq.c77 * a side effect of actions taken by the handler, then they are reissued.
/linux-4.1.27/drivers/usb/chipidea/
H A Dci_hdrc_pci.c114 * Reverses the effect of ci_hdrc_pci_probe(),
/linux-4.1.27/kernel/trace/
H A Dtrace_clock.c63 * 32-bit systems. But the window is tiny, and the effect if
/linux-4.1.27/sound/isa/gus/
H A Dgus_io.c461 printk(KERN_INFO " -%i- GFA1 effect address = 0x%x\n", voice, snd_gf1_i_read_addr(gus, 0x11, ctrl & 4)); snd_gf1_print_voice_registers()
462 printk(KERN_INFO " -%i- GFA1 effect volume = 0x%x\n", voice, snd_gf1_i_read16(gus, 0x16)); snd_gf1_print_voice_registers()
463 printk(KERN_INFO " -%i- GFA1 effect volume final = 0x%x\n", voice, snd_gf1_i_read16(gus, 0x1d)); snd_gf1_print_voice_registers()
464 printk(KERN_INFO " -%i- GFA1 effect acumulator = 0x%x\n", voice, snd_gf1_i_read8(gus, 0x14)); snd_gf1_print_voice_registers()
H A Dgus_main.c138 int effect, snd_gus_create()
218 gus->gf1.effect = effect ? 1 : 0; snd_gus_create()
132 snd_gus_create(struct snd_card *card, unsigned long port, int irq, int dma1, int dma2, int timer_dev, int voices, int pcm_channels, int effect, struct snd_gus_card **rgus) snd_gus_create() argument
/linux-4.1.27/sound/pci/emu10k1/
H A Dp16v.h110 #define CAPTURE_P16V_VOLUME2 0x15 /* High:Has no effect on capture volume */
203 /* 0x41,42 take values from 0 - 0xffffffff, but have no effect on playback */
287 /* All other bits do not effect playback */
290 /* All bits do not effect playback */
/linux-4.1.27/drivers/rtc/
H A Drtc-sysfs.c229 * is its side effect: waking from a system state like suspend-to-RAM or
230 * suspend-to-disk. So: no attribute unless that side effect is possible.
/linux-4.1.27/drivers/staging/sm750fb/
H A Dddk750_display.c61 * Note: Modifying the plane bit will take effect on the setDisplayControl()
116 * Note: Modifying the plane bit will take effect on the next setDisplayControl()
/linux-4.1.27/arch/metag/tbx/
H A Dtbidefr.S38 * (ack's the bgnd exceptions as a side-effect)
114 * (ack's the interrupt exceptions as a side-effect)
H A Dtbisoft.S44 * effect into the __TBIJump logic. ArgsB passes via __TBIJump to the
/linux-4.1.27/arch/cris/arch-v10/kernel/
H A Dtime.c80 * and a 3-bit key value. The effect of writing to the R_WATCHDOG register is
86 * stopped 0 X No effect.
/linux-4.1.27/arch/tile/include/uapi/arch/
H A Dsim.h55 * calls have no useful effect.
485 * Note that this has no effect if run in an environment without
509 * Note that this has no effect if run in an environment without
H A Dsim_def.h204 * will only take effect when the classifier blast programmer is run.
212 * section takes effect when the classifier blast programmer is run.
/linux-4.1.27/arch/ia64/include/asm/
H A Dbitops.h60 * If it's called on the same region of memory simultaneously, the effect
142 * If it's called on the same region of memory simultaneously, the effect
182 * If it's called on the same region of memory simultaneously, the effect
/linux-4.1.27/drivers/iommu/
H A Dio-pgtable.h20 * @tlb_sync: Ensure any queue TLB invalidation has taken effect.
/linux-4.1.27/drivers/net/phy/
H A Dmdio-moxart.c140 /* Setting PHY_IGNORE_INTERRUPT here even if it has no effect, moxart_mdio_probe()
/linux-4.1.27/drivers/media/radio/
H A Dradio-typhoon.c20 * volume control has no effect, since volume control only influences
/linux-4.1.27/drivers/mfd/
H A Dlp3943.c23 * Internal two PWM channels are used for LED dimming effect.
/linux-4.1.27/drivers/misc/
H A Datmel_tclib.c70 * This reverses the effect of atmel_tc_alloc(), invalidating the resource
/linux-4.1.27/drivers/net/irda/
H A Dtekram-sir.c116 * 6. wait at least 50 us, new setting (baud rate, etc) takes effect here
H A Dtoim3232-sir.c229 * 6. should take effect immediately (although probably worth waiting)
330 * high, but it seems to have the same effect.
H A Dma600-sir.c159 * 5. wait at least 10 ms, new setting (baud rate, etc) takes effect here
/linux-4.1.27/drivers/scsi/
H A Dqlogicfas408.h49 For this to have an effect, FASTCLK must also be 1 */
/linux-4.1.27/drivers/scsi/aic7xxx/
H A Dcam.h94 AC_TRANSFER_NEG = 0x200,/* New transfer settings in effect */
/linux-4.1.27/drivers/sh/intc/
H A Dinternals.h108 /* same effect on other architectures */ activate_irq()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Dreg.h147 state of other bits (0 = no effect).
157 state of other bits (0 = no effect).
168 effect its content.
191 assotiated interrupt inactive. (0-no effect)
/linux-4.1.27/drivers/phy/
H A Dphy-hix5hd2-sata.c108 /* ensure PHYCTRL setting takes effect */ hix5hd2_sata_phy_init()
/linux-4.1.27/arch/x86/kernel/cpu/mtrr/
H A Dcyrix.c147 * Note that wbinvd flushes the TLBs as a side-effect prepare_set()
/linux-4.1.27/arch/x86/math-emu/
H A Dpoly_tan.c144 have negligible effect in later calculations poly_tan()
/linux-4.1.27/arch/sparc/include/asm/
H A Dpgtsrmmu.h68 * 2) exec and write will only give the desired effect
H A Dross.h79 * effect.
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_agp.c142 /* and restore bustmaster bit (gives effect of resetting AGP) */ nouveau_agp_reset()
/linux-4.1.27/arch/microblaze/kernel/
H A Dentry-nommu.S256 nop /* make sure IE bit is in effect */
257 clear_bip /* once IE is in effect it is safe to clear BIP */
347 nop /* make sure IE bit is in effect */
348 clear_bip /* once IE is in effect it is safe to clear BIP */
/linux-4.1.27/drivers/usb/host/
H A Dohci-omap3.c156 * Reverses the effect of ohci_hcd_omap3_probe(), first invoking
H A Dohci-sa1111.c231 * Reverses the effect of ohci_hcd_sa1111_probe(), first invoking
H A Dehci-omap.c257 * Reverses the effect of usb_ehci_hcd_omap_probe(), first invoking
H A Dehci-pmcmsp.c233 * Reverses the effect of usb_hcd_msp_probe(), first invoking
/linux-4.1.27/include/net/
H A Dinet_ecn.h116 * meaning both changes have no effect on skb->csum if/when CHECKSUM_COMPLETE
/linux-4.1.27/include/uapi/asm-generic/
H A Dfcntl.h73 * This has the nice side-effect that we can simply test for O_DSYNC
/linux-4.1.27/include/uapi/sound/
H A Dasound_fm.h46 unsigned char vibrato; /* vibrato effect */
H A Dsfnt_info.h88 /* wave table envelope & effect parameters to control EMU8000 */
/linux-4.1.27/ipc/
H A Dipc_sysctl.c86 pr_info_once("writing to auto_msgmni has no effect"); proc_ipc_auto_msgmni()
/linux-4.1.27/arch/powerpc/platforms/ps3/
H A Dsetup.c76 * irq on an unmasked plug exists. MSR[EE] has no effect. ps3_power_save()
/linux-4.1.27/arch/sh/boards/mach-sdk7786/
H A Dsetup.c162 * Given that the legacy clocks have the side-effect of shutting the CPU
/linux-4.1.27/arch/mips/sgi-ip27/
H A Dip27-irq.c80 * same intr. This effect is mostly seen for intercpu intrs.
/linux-4.1.27/arch/powerpc/include/asm/
H A Dpte-44x.h47 * - CACHE COHERENT bit (M) has no effect on original PPC440 cores,
/linux-4.1.27/arch/powerpc/kernel/
H A Dcrash_dump.c45 * does a branch to (32 MB - 4). The net effect is that when we create_trampoline()
H A Dsyscalls.c133 * userspace. That also has the effect of restoring the non-volatile sys_switch_endian()
H A Dirq.c149 * Any HV call will have this side effect. __check_irq_replay()
300 * when the latter has the side effect of re-enabling interrupts
334 * are about to hard enable as well as a side effect prep_irq_for_idle()
H A Dhead_booke.h276 * doesn't turn off DE automatically). We simulate the effect \
329 * doesn't turn off DE automatically). We simulate the effect \
/linux-4.1.27/arch/hexagon/include/asm/
H A Duaccess.h65 * be resumed instead of the faulting instruction, so as to effect
/linux-4.1.27/arch/m68k/coldfire/
H A Dintc-5272.c77 * The act of masking the interrupt also has a side effect of 'ack'ing
/linux-4.1.27/arch/arm/mach-omap1/
H A Dfpga.c127 * interrupts are acknowledged as a side-effect of reading the interrupt
/linux-4.1.27/arch/arc/include/asm/
H A Dpgalloc.h26 * =sweet side effect is avoiding calls to ugly page_address( ) from the
/linux-4.1.27/net/core/
H A Dlink_watch.c183 /* Limit wrap-around effect on delay. */ __linkwatch_run_queue()
/linux-4.1.27/include/asm-generic/
H A Dbug.h203 * A simple "0" would cause gcc to give a "statement has no effect"
/linux-4.1.27/drivers/atm/
H A Didt77105.c125 istat = GET(ISTAT); /* side effect: clears all interrupt status bits */ idt77105_restart_timer_func()
216 istat = GET(ISTAT); /* side effect: clears all interrupt status bits */ idt77105_int()
/linux-4.1.27/fs/xfs/
H A Dxfs_linux.h258 /* Side effect free 64 bit mod operation */ xfs_do_mod()
302 /* Side effect free 64 bit mod operation */ xfs_do_mod()
/linux-4.1.27/drivers/gpu/drm/gma500/
H A Dmdfld_intel_display.c71 /* Wait for for the pipe disable to take effect. */ mdfldWaitForPipeDisable()
99 /* Wait for for the pipe enable to take effect. */ mdfldWaitForPipeEnable()
271 /* Wait for for the pipe disable to take effect. */ mdfld_disable_crtc()
377 /* Wait for for the pipe enable to take effect. */ mdfld_crtc_dpms()
457 /* Wait for for the pipe disable to take effect. */ mdfld_crtc_dpms()
1016 /* Wait for for the pipe enable to take effect. */ mdfld_crtc_mode_set()
/linux-4.1.27/drivers/input/joystick/
H A Dxpad.c782 static int xpad_play_effect(struct input_dev *dev, void *data, struct ff_effect *effect) xpad_play_effect() argument
786 if (effect->type == FF_RUMBLE) { xpad_play_effect()
787 __u16 strong = effect->u.rumble.strong_magnitude; xpad_play_effect()
788 __u16 weak = effect->u.rumble.weak_magnitude; xpad_play_effect()
837 xpad->odata[3] = 0x08; /* continuous effect */ xpad_play_effect()
/linux-4.1.27/arch/ia64/kernel/
H A Dsignal.c379 * Force the interruption function mask to zero. This has no effect when a setup_frame()
381 * ignored), but it has the desirable effect of making it possible to deliver a setup_frame()
383 * load faults). Furthermore, it has no negative effect on the getting the user's setup_frame()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
H A Dhw.h292 * bit6: seems to have some effect on CR09 (double scan, VBS_9) nv_lock_vga_crtc_shadow()
346 * for changes to the CRTC CURCTL regs to take effect, whether changing nv_fix_nv40_hw_cursor()
/linux-4.1.27/drivers/gpu/drm/qxl/
H A Dqxl_dev.h682 uint8_t effect; member in struct:qxl_compat_drawable
709 uint8_t effect; member in struct:qxl_drawable
/linux-4.1.27/net/ipv4/
H A Dsyncookies.c76 * when syncookies are in effect and tcp timestamps are enabled we encode
241 * when syncookies are in effect and tcp timestamps are enabled we stored
/linux-4.1.27/net/irda/ircomm/
H A Dircomm_core.c240 * deliver it first. The side effect is that the control channel ircomm_connect_indication()
357 * deliver it first. The side effect is that the control channel ircomm_process_data()
/linux-4.1.27/sound/drivers/opl3/
H A Dopl3_synth.c479 /* Set amplitude modulation (tremolo) effect */ snd_opl3_set_voice()
482 /* Set vibrato effect */ snd_opl3_set_voice()
/linux-4.1.27/drivers/irqchip/
H A Dirq-bcm2835.c36 * enable/disable registers has no effect.
/linux-4.1.27/drivers/leds/
H A Dled-class-flash.c319 /* Setting a torch brightness needs to have immediate effect */ led_classdev_flash_register()
/linux-4.1.27/drivers/hwmon/
H A Dsmsc47b397.c350 /* Sets global pdev as a side effect */ smsc47b397_init()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-parport-light.c246 /* Sets global pdev as a side effect */ i2c_parport_init()
/linux-4.1.27/drivers/mtd/chips/
H A Dcfi_util.c193 effect here. cfi_varsize_frob()
/linux-4.1.27/drivers/media/i2c/smiapp/
H A Dsmiapp-quirk.c63 /* Below 24 gain doesn't have effect at all, */ jt8ew9_limits()
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-vbi.c209 * line. This has a side effect of making the header big endian _cx18_process_vbi_data()
/linux-4.1.27/drivers/media/pci/cx23885/
H A Dcx23885-417.c332 /* Transition CS/WR to effect write transaction across bus. */ mc417_register_write()
425 /* Transition RD to effect read transaction across bus. mc417_register_read()
490 /* Transition CS/WR to effect write transaction across bus. */ mc417_memory_write()
583 /* Transition RD to effect read transaction across bus. */ mc417_memory_read()
/linux-4.1.27/drivers/media/usb/pvrusb2/
H A Dpvrusb2-devattr.h151 effect. */
/linux-4.1.27/drivers/remoteproc/
H A Domap_remoteproc.c137 * there is no functional effect whatsoever. omap_rproc_start()
/linux-4.1.27/drivers/oprofile/
H A Doprofilefs.c68 * other effect." (man 2 write)
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
H A Dmv88e1xxx.c167 /* restart autoneg for change to take effect */ mv88e1xxx_autoneg_enable()
/linux-4.1.27/drivers/gpio/
H A Dgpio-sch.c133 * effect when GPIO is programmed as input. sch_gpio_direction_out()
/linux-4.1.27/arch/xtensa/lib/
H A Dstrncpy_user.S153 # the effect of adding 3 in .Lz3 code
/linux-4.1.27/drivers/usb/core/
H A Dusb.c773 * Reverse the effect of this call with usb_buffer_unmap().
847 * Reverses the effect of usb_buffer_map().
899 * Reverse the effect of this call with usb_buffer_unmap_sg().
963 * Reverses the effect of usb_buffer_map_sg().
/linux-4.1.27/drivers/w1/slaves/
H A Dw1_ds2408.c191 /* (the direct effect of the write above) */ output_write()
/linux-4.1.27/drivers/watchdog/
H A Domap_wdt.c138 * effect. omap_wdt_start()
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dopal-wrappers.S90 * effect of the rfid.
/linux-4.1.27/arch/powerpc/sysdev/
H A Dppc4xx_cpm.c113 /* go to wait state so that CPM0_ER[CPU] can take effect */ cpm_idle_sleep()
H A Duic.c110 * a level irq will have no effect if the interrupt uic_mask_ack_irq()

Completed in 5370 milliseconds

12345