Lines Matching refs:rdata
569 struct mt_report_data *rdata; in mt_allocate_report_data() local
573 rdata = devm_kzalloc(&td->hdev->dev, sizeof(*rdata), GFP_KERNEL); in mt_allocate_report_data()
574 if (!rdata) in mt_allocate_report_data()
577 rdata->report = report; in mt_allocate_report_data()
578 rdata->application = mt_find_application(td, report->application); in mt_allocate_report_data()
580 if (!rdata->application) { in mt_allocate_report_data()
581 devm_kfree(&td->hdev->dev, rdata); in mt_allocate_report_data()
593 rdata->is_mt_collection = true; in mt_allocate_report_data()
597 list_add_tail(&rdata->list, &td->reports); in mt_allocate_report_data()
599 return rdata; in mt_allocate_report_data()
605 struct mt_report_data *tmp, *rdata = NULL; in mt_find_report_data() local
609 rdata = tmp; in mt_find_report_data()
614 if (!rdata) in mt_find_report_data()
615 rdata = mt_allocate_report_data(td, report); in mt_find_report_data()
617 return rdata; in mt_find_report_data()
1114 struct mt_report_data *rdata) in mt_touch_report() argument
1117 struct hid_report *report = rdata->report; in mt_touch_report()
1118 struct mt_application *app = rdata->application; in mt_touch_report()
1266 struct mt_report_data *rdata; in mt_input_mapping() local
1268 rdata = mt_find_report_data(td, field->report); in mt_input_mapping()
1269 if (!rdata) { in mt_input_mapping()
1274 application = rdata->application; in mt_input_mapping()
1318 if (rdata->is_mt_collection) in mt_input_mapping()
1331 struct mt_report_data *rdata; in mt_input_mapped() local
1333 rdata = mt_find_report_data(td, field->report); in mt_input_mapped()
1334 if (rdata && rdata->is_mt_collection) { in mt_input_mapped()
1347 struct mt_report_data *rdata; in mt_event() local
1349 rdata = mt_find_report_data(td, field->report); in mt_event()
1350 if (rdata && rdata->is_mt_collection) in mt_event()
1360 struct mt_report_data *rdata; in mt_report() local
1365 rdata = mt_find_report_data(td, report); in mt_report()
1366 if (rdata && rdata->is_mt_collection) in mt_report()
1367 return mt_touch_report(hid, rdata); in mt_report()
1511 struct mt_report_data *rdata; in mt_input_configured() local
1518 rdata = mt_find_report_data(td, report); in mt_input_configured()
1519 if (!rdata) { in mt_input_configured()
1524 mt_application = rdata->application; in mt_input_configured()
1526 if (rdata->is_mt_collection) { in mt_input_configured()