• Home
  • Raw
  • Download

Lines Matching refs:ms

62 	struct ms_data *ms = hid_get_drvdata(hdev);  in ms_report_fixup()  local
63 unsigned long quirks = ms->quirks; in ms_report_fixup()
186 struct ms_data *ms = hid_get_drvdata(hdev); in ms_input_mapping() local
187 unsigned long quirks = ms->quirks; in ms_input_mapping()
213 struct ms_data *ms = hid_get_drvdata(hdev); in ms_input_mapped() local
214 unsigned long quirks = ms->quirks; in ms_input_mapped()
225 struct ms_data *ms = hid_get_drvdata(hdev); in ms_event() local
226 unsigned long quirks = ms->quirks; in ms_event()
283 struct ms_data *ms = container_of(work, struct ms_data, ff_worker); in ms_ff_worker() local
284 struct hid_device *hdev = ms->hdev; in ms_ff_worker()
285 struct xb1s_ff_report *r = ms->output_report_dmabuf; in ms_ff_worker()
299 r->magnitude[MAGNITUDE_STRONG] = ms->strong; /* left actuator */ in ms_ff_worker()
300 r->magnitude[MAGNITUDE_WEAK] = ms->weak; /* right actuator */ in ms_ff_worker()
311 struct ms_data *ms = hid_get_drvdata(hid); in ms_play_effect() local
319 ms->strong = ((u32) effect->u.rumble.strong_magnitude * 100) / U16_MAX; in ms_play_effect()
320 ms->weak = ((u32) effect->u.rumble.weak_magnitude * 100) / U16_MAX; in ms_play_effect()
322 schedule_work(&ms->ff_worker); in ms_play_effect()
330 struct ms_data *ms = hid_get_drvdata(hdev); in ms_init_ff() local
339 if (!(ms->quirks & MS_QUIRK_FF)) in ms_init_ff()
342 ms->hdev = hdev; in ms_init_ff()
343 INIT_WORK(&ms->ff_worker, ms_ff_worker); in ms_init_ff()
345 ms->output_report_dmabuf = devm_kzalloc(&hdev->dev, in ms_init_ff()
348 if (ms->output_report_dmabuf == NULL) in ms_init_ff()
357 struct ms_data *ms = hid_get_drvdata(hdev); in ms_remove_ff() local
359 if (!(ms->quirks & MS_QUIRK_FF)) in ms_remove_ff()
362 cancel_work_sync(&ms->ff_worker); in ms_remove_ff()
368 struct ms_data *ms; in ms_probe() local
371 ms = devm_kzalloc(&hdev->dev, sizeof(*ms), GFP_KERNEL); in ms_probe()
372 if (ms == NULL) in ms_probe()
375 ms->quirks = quirks; in ms_probe()
377 hid_set_drvdata(hdev, ms); in ms_probe()