Lines Matching refs:set_effect
161 struct pidff_usage set_effect[sizeof(pidff_set_effect)];
180 /* Special fields in set_effect */
311 pidff->set_effect[PID_EFFECT_BLOCK_INDEX].value[0] =
315 pidff->set_effect[PID_DURATION].value[0] = effect->replay.length;
316 pidff->set_effect[PID_TRIGGER_BUTTON].value[0] = effect->trigger.button;
317 pidff->set_effect[PID_TRIGGER_REPEAT_INT].value[0] =
319 pidff->set_effect[PID_GAIN].value[0] =
320 pidff->set_effect[PID_GAIN].field->logical_maximum;
321 pidff->set_effect[PID_DIRECTION_ENABLE].value[0] = 1;
325 pidff->set_effect[PID_START_DELAY].value[0] = effect->replay.delay;
332 * Test if the values used in set_effect have changed
736 pidff->set_effect[PID_EFFECT_BLOCK_INDEX].value[0] =
739 pidff->set_effect[PID_DURATION].value[0] = 0;
740 pidff->set_effect[PID_TRIGGER_BUTTON].value[0] = 0;
741 pidff->set_effect[PID_TRIGGER_REPEAT_INT].value[0] = 0;
742 pidff_set(&pidff->set_effect[PID_GAIN], magnitude);
743 pidff->set_effect[PID_DIRECTION_ENABLE].value[0] = 1;
744 pidff->set_effect[PID_START_DELAY].value[0] = 0;
1075 if (PIDFF_FIND_FIELDS(set_effect, PID_SET_EFFECT, 1)) {
1077 "hid-pidff: unknown set_effect report layout\n");