Lines Matching defs:stadiaff
29 struct stadiaff_device *stadiaff =
31 struct hid_field *rumble_field = stadiaff->report->field[0];
34 spin_lock_irqsave(&stadiaff->lock, flags);
35 rumble_field->value[0] = stadiaff->strong_magnitude;
36 rumble_field->value[1] = stadiaff->weak_magnitude;
37 spin_unlock_irqrestore(&stadiaff->lock, flags);
39 hid_hw_request(stadiaff->hid, stadiaff->report, HID_REQ_SET_REPORT);
46 struct stadiaff_device *stadiaff = hid_get_drvdata(hid);
49 spin_lock_irqsave(&stadiaff->lock, flags);
50 if (!stadiaff->removed) {
51 stadiaff->strong_magnitude = effect->u.rumble.strong_magnitude;
52 stadiaff->weak_magnitude = effect->u.rumble.weak_magnitude;
53 schedule_work(&stadiaff->work);
55 spin_unlock_irqrestore(&stadiaff->lock, flags);
62 struct stadiaff_device *stadiaff;
80 stadiaff = devm_kzalloc(&hid->dev, sizeof(struct stadiaff_device),
82 if (!stadiaff)
85 hid_set_drvdata(hid, stadiaff);
93 stadiaff->removed = false;
94 stadiaff->hid = hid;
95 stadiaff->report = report;
96 INIT_WORK(&stadiaff->work, stadiaff_work);
97 spin_lock_init(&stadiaff->lock);
132 struct stadiaff_device *stadiaff = hid_get_drvdata(hid);
135 spin_lock_irqsave(&stadiaff->lock, flags);
136 stadiaff->removed = true;
137 spin_unlock_irqrestore(&stadiaff->lock, flags);
139 cancel_work_sync(&stadiaff->work);