Lines Matching refs:drv_data

433 	struct lg_drv_data *drv_data = hid_get_drvdata(hdev);  in lg_report_fixup()  local
435 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup()
442 if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && in lg_report_fixup()
648 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_input_mapping() local
655 if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping()
665 if ((drv_data->quirks & LG_IGNORE_DOUBLED_WHEEL) && in lg_input_mapping()
669 if ((drv_data->quirks & LG_EXPANDED_KEYMAP) && in lg_input_mapping()
685 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_input_mapped() local
687 if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && in lg_input_mapped()
691 if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || in lg_input_mapped()
725 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_event() local
727 if ((drv_data->quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) { in lg_event()
732 if (drv_data->quirks & LG_FF4) { in lg_event()
733 return lg4ff_adjust_input_event(hdev, field, usage, value, drv_data); in lg_event()
742 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_raw_event() local
744 if (drv_data->quirks & LG_FF4) in lg_raw_event()
745 return lg4ff_raw_event(hdev, report, rd, size, drv_data); in lg_raw_event()
755 struct lg_drv_data *drv_data; in lg_probe() local
771 drv_data = kzalloc(sizeof(struct lg_drv_data), GFP_KERNEL); in lg_probe()
772 if (!drv_data) { in lg_probe()
776 drv_data->quirks = id->driver_data; in lg_probe()
778 hid_set_drvdata(hdev, (void *)drv_data); in lg_probe()
780 if (drv_data->quirks & LG_NOGET) in lg_probe()
789 if (drv_data->quirks & (LG_FF | LG_FF2 | LG_FF3 | LG_FF4)) in lg_probe()
829 if (drv_data->quirks & LG_FF) in lg_probe()
831 else if (drv_data->quirks & LG_FF2) in lg_probe()
833 else if (drv_data->quirks & LG_FF3) in lg_probe()
835 else if (drv_data->quirks & LG_FF4) in lg_probe()
846 kfree(drv_data); in lg_probe()
852 struct lg_drv_data *drv_data = hid_get_drvdata(hdev); in lg_remove() local
853 if (drv_data->quirks & LG_FF4) in lg_remove()
856 kfree(drv_data); in lg_remove()