Lines Matching refs:cl_device
26 #define cl_data_to_dev(client_data) ishtp_device(client_data->cl_device)
531 dev_info(ishtp_device(client_data->cl_device), in ishtp_enum_enum_devices()
688 ishtp_register_event_cb(client_data->cl_device, ish_cl_event_cb); in hid_ishtp_cl_init()
752 struct ishtp_cl_device *cl_device; in hid_ishtp_cl_reset_handler() local
759 cl_device = client_data->cl_device; in hid_ishtp_cl_reset_handler()
763 dev_dbg(ishtp_device(client_data->cl_device), "%s\n", __func__); in hid_ishtp_cl_reset_handler()
767 hid_ishtp_cl = ishtp_cl_allocate(cl_device); in hid_ishtp_cl_reset_handler()
771 ishtp_set_drvdata(cl_device, hid_ishtp_cl); in hid_ishtp_cl_reset_handler()
811 static int hid_ishtp_cl_probe(struct ishtp_cl_device *cl_device) in hid_ishtp_cl_probe() argument
817 if (!cl_device) in hid_ishtp_cl_probe()
820 client_data = devm_kzalloc(ishtp_device(cl_device), in hid_ishtp_cl_probe()
826 hid_ishtp_cl = ishtp_cl_allocate(cl_device); in hid_ishtp_cl_probe()
830 ishtp_set_drvdata(cl_device, hid_ishtp_cl); in hid_ishtp_cl_probe()
833 client_data->cl_device = cl_device; in hid_ishtp_cl_probe()
842 ishtp_hid_print_trace = ishtp_trace_callback(cl_device); in hid_ishtp_cl_probe()
849 ishtp_get_device(cl_device); in hid_ishtp_cl_probe()
862 static void hid_ishtp_cl_remove(struct ishtp_cl_device *cl_device) in hid_ishtp_cl_remove() argument
864 struct ishtp_cl *hid_ishtp_cl = ishtp_get_drvdata(cl_device); in hid_ishtp_cl_remove()
870 dev_dbg(ishtp_device(cl_device), "%s\n", __func__); in hid_ishtp_cl_remove()
873 ishtp_put_device(cl_device); in hid_ishtp_cl_remove()
890 static int hid_ishtp_cl_reset(struct ishtp_cl_device *cl_device) in hid_ishtp_cl_reset() argument
892 struct ishtp_cl *hid_ishtp_cl = ishtp_get_drvdata(cl_device); in hid_ishtp_cl_reset()
913 struct ishtp_cl_device *cl_device = ishtp_dev_to_cl_device(device); in hid_ishtp_cl_suspend() local
914 struct ishtp_cl *hid_ishtp_cl = ishtp_get_drvdata(cl_device); in hid_ishtp_cl_suspend()
934 struct ishtp_cl_device *cl_device = ishtp_dev_to_cl_device(device); in hid_ishtp_cl_resume() local
935 struct ishtp_cl *hid_ishtp_cl = ishtp_get_drvdata(cl_device); in hid_ishtp_cl_resume()