Lines Matching refs:cl_device

74 #define cl_data_to_dev(client_data) ishtp_device((client_data)->cl_device)
125 struct ishtp_cl_device *cl_device; member
349 static void ish_event_cb(struct ishtp_cl_device *cl_device) in ish_event_cb() argument
352 struct ishtp_cl *cros_ish_cl = ishtp_get_drvdata(cl_device); in ish_event_cb()
414 ishtp_register_event_cb(client_data->cl_device, ish_event_cb); in cros_ish_init()
595 struct ishtp_cl_device *cl_device; in reset_handler() local
603 cl_device = client_data->cl_device; in reset_handler()
610 cros_ish_cl = ishtp_cl_allocate(cl_device); in reset_handler()
616 ishtp_set_drvdata(cl_device, cros_ish_cl); in reset_handler()
644 static int cros_ec_ishtp_probe(struct ishtp_cl_device *cl_device) in cros_ec_ishtp_probe() argument
649 devm_kzalloc(ishtp_device(cl_device), in cros_ec_ishtp_probe()
657 cros_ish_cl = ishtp_cl_allocate(cl_device); in cros_ec_ishtp_probe()
663 ishtp_set_drvdata(cl_device, cros_ish_cl); in cros_ec_ishtp_probe()
666 client_data->cl_device = cl_device; in cros_ec_ishtp_probe()
679 ishtp_get_device(cl_device); in cros_ec_ishtp_probe()
697 ishtp_put_device(cl_device); in cros_ec_ishtp_probe()
711 static void cros_ec_ishtp_remove(struct ishtp_cl_device *cl_device) in cros_ec_ishtp_remove() argument
713 struct ishtp_cl *cros_ish_cl = ishtp_get_drvdata(cl_device); in cros_ec_ishtp_remove()
719 ishtp_put_device(cl_device); in cros_ec_ishtp_remove()
728 static int cros_ec_ishtp_reset(struct ishtp_cl_device *cl_device) in cros_ec_ishtp_reset() argument
730 struct ishtp_cl *cros_ish_cl = ishtp_get_drvdata(cl_device); in cros_ec_ishtp_reset()
746 struct ishtp_cl_device *cl_device = ishtp_dev_to_cl_device(device); in cros_ec_ishtp_suspend() local
747 struct ishtp_cl *cros_ish_cl = ishtp_get_drvdata(cl_device); in cros_ec_ishtp_suspend()
761 struct ishtp_cl_device *cl_device = ishtp_dev_to_cl_device(device); in cros_ec_ishtp_resume() local
762 struct ishtp_cl *cros_ish_cl = ishtp_get_drvdata(cl_device); in cros_ec_ishtp_resume()