Lines Matching refs:cfg
293 struct bcm5974_config cfg; /* device configuration */ member
308 const struct bcm5974_config *c = &dev->cfg; in get_tp_finger()
507 const struct bcm5974_config *cfg; in bcm5974_get_config() local
509 for (cfg = bcm5974_config_table; cfg->ansi; ++cfg) in bcm5974_get_config()
510 if (cfg->ansi == id || cfg->iso == id || cfg->jis == id) in bcm5974_get_config()
511 return cfg; in bcm5974_get_config()
531 const struct bcm5974_config *cfg) in setup_events_to_report() argument
540 set_abs(input_dev, ABS_MT_TOUCH_MAJOR, &cfg->w); in setup_events_to_report()
541 set_abs(input_dev, ABS_MT_TOUCH_MINOR, &cfg->w); in setup_events_to_report()
543 set_abs(input_dev, ABS_MT_WIDTH_MAJOR, &cfg->w); in setup_events_to_report()
544 set_abs(input_dev, ABS_MT_WIDTH_MINOR, &cfg->w); in setup_events_to_report()
546 set_abs(input_dev, ABS_MT_ORIENTATION, &cfg->o); in setup_events_to_report()
548 set_abs(input_dev, ABS_MT_POSITION_X, &cfg->x); in setup_events_to_report()
549 set_abs(input_dev, ABS_MT_POSITION_Y, &cfg->y); in setup_events_to_report()
554 if (cfg->caps & HAS_INTEGRATED_BUTTON) in setup_events_to_report()
600 const struct bcm5974_config *cfg, in report_synaptics_data() argument
609 abs_p = clamp_val(256 * p / cfg->p.max, 0, 255); in report_synaptics_data()
610 abs_w = clamp_val(16 * w / cfg->w.max, 0, 15); in report_synaptics_data()
621 const struct bcm5974_config *c = &dev->cfg; in report_tp_state()
663 const struct bcm5974_config *c = &dev->cfg; in bcm5974_wellspring_mode()
668 if (dev->cfg.tp_type == TYPE3) in bcm5974_wellspring_mode()
912 const struct bcm5974_config *cfg; in bcm5974_probe() local
918 cfg = bcm5974_get_config(udev); in bcm5974_probe()
931 dev->cfg = *cfg; in bcm5974_probe()
935 if (cfg->tp_type == TYPE1) { in bcm5974_probe()
947 dev->cfg.bt_datalen, GFP_KERNEL, in bcm5974_probe()
954 dev->cfg.tp_datalen, GFP_KERNEL, in bcm5974_probe()
961 usb_rcvintpipe(udev, cfg->bt_ep), in bcm5974_probe()
962 dev->bt_data, dev->cfg.bt_datalen, in bcm5974_probe()
966 usb_rcvintpipe(udev, cfg->tp_ep), in bcm5974_probe()
967 dev->tp_data, dev->cfg.tp_datalen, in bcm5974_probe()
978 input_dev->id.version = cfg->caps; in bcm5974_probe()
986 setup_events_to_report(input_dev, cfg); in bcm5974_probe()
998 usb_free_coherent(dev->udev, dev->cfg.tp_datalen, in bcm5974_probe()
1002 usb_free_coherent(dev->udev, dev->cfg.bt_datalen, in bcm5974_probe()
1022 usb_free_coherent(dev->udev, dev->cfg.tp_datalen, in bcm5974_disconnect()
1025 usb_free_coherent(dev->udev, dev->cfg.bt_datalen, in bcm5974_disconnect()