Lines Matching refs:loader_ishtp_cl
213 struct ishtp_cl *loader_ishtp_cl; member
289 struct ishtp_cl *loader_ishtp_cl = client_data->loader_ishtp_cl; in loader_cl_send() local
304 rv = ishtp_cl_send(loader_ishtp_cl, out_msg, out_size); in loader_cl_send()
335 static void process_recv(struct ishtp_cl *loader_ishtp_cl, in process_recv() argument
341 ishtp_get_client_data(loader_ishtp_cl); in process_recv()
452 struct ishtp_cl *loader_ishtp_cl = ishtp_get_drvdata(cl_device); in loader_cl_event_cb() local
454 while ((rb_in_proc = ishtp_cl_rx_get_rb(loader_ishtp_cl)) != NULL) { in loader_cl_event_cb()
456 process_recv(loader_ishtp_cl, rb_in_proc); in loader_cl_event_cb()
755 struct ishtp_cl *loader_ishtp_cl = client_data->loader_ishtp_cl; in load_fw_from_host() local
819 ish_hw_reset(ishtp_get_ishtp_device(loader_ishtp_cl)); in load_fw_from_host()
843 static int loader_init(struct ishtp_cl *loader_ishtp_cl, int reset) in loader_init() argument
848 ishtp_get_client_data(loader_ishtp_cl); in loader_init()
852 rv = ishtp_cl_link(loader_ishtp_cl); in loader_init()
859 ishtp_set_tx_ring_size(loader_ishtp_cl, LOADER_CL_TX_RING_SIZE); in loader_init()
860 ishtp_set_rx_ring_size(loader_ishtp_cl, LOADER_CL_RX_RING_SIZE); in loader_init()
863 ishtp_fw_cl_get_client(ishtp_get_ishtp_device(loader_ishtp_cl), in loader_init()
872 ishtp_cl_set_fw_client_id(loader_ishtp_cl, in loader_init()
874 ishtp_set_connection_state(loader_ishtp_cl, ISHTP_CL_CONNECTING); in loader_init()
876 rv = ishtp_cl_connect(loader_ishtp_cl); in loader_init()
889 ishtp_cl_unlink(loader_ishtp_cl); in loader_init()
893 static void loader_deinit(struct ishtp_cl *loader_ishtp_cl) in loader_deinit() argument
895 ishtp_set_connection_state(loader_ishtp_cl, ISHTP_CL_DISCONNECTING); in loader_deinit()
896 ishtp_cl_disconnect(loader_ishtp_cl); in loader_deinit()
897 ishtp_cl_unlink(loader_ishtp_cl); in loader_deinit()
898 ishtp_cl_flush_queues(loader_ishtp_cl); in loader_deinit()
901 ishtp_cl_free(loader_ishtp_cl); in loader_deinit()
908 struct ishtp_cl *loader_ishtp_cl; in reset_handler() local
914 loader_ishtp_cl = client_data->loader_ishtp_cl; in reset_handler()
918 ishtp_cl_unlink(loader_ishtp_cl); in reset_handler()
919 ishtp_cl_flush_queues(loader_ishtp_cl); in reset_handler()
920 ishtp_cl_free(loader_ishtp_cl); in reset_handler()
922 loader_ishtp_cl = ishtp_cl_allocate(cl_device); in reset_handler()
923 if (!loader_ishtp_cl) in reset_handler()
926 ishtp_set_drvdata(cl_device, loader_ishtp_cl); in reset_handler()
927 ishtp_set_client_data(loader_ishtp_cl, client_data); in reset_handler()
928 client_data->loader_ishtp_cl = loader_ishtp_cl; in reset_handler()
931 rv = loader_init(loader_ishtp_cl, 1); in reset_handler()
951 struct ishtp_cl *loader_ishtp_cl; in loader_ishtp_cl_probe() local
961 loader_ishtp_cl = ishtp_cl_allocate(cl_device); in loader_ishtp_cl_probe()
962 if (!loader_ishtp_cl) in loader_ishtp_cl_probe()
965 ishtp_set_drvdata(cl_device, loader_ishtp_cl); in loader_ishtp_cl_probe()
966 ishtp_set_client_data(loader_ishtp_cl, client_data); in loader_ishtp_cl_probe()
967 client_data->loader_ishtp_cl = loader_ishtp_cl; in loader_ishtp_cl_probe()
977 rv = loader_init(loader_ishtp_cl, 0); in loader_ishtp_cl_probe()
979 ishtp_cl_free(loader_ishtp_cl); in loader_ishtp_cl_probe()
1003 struct ishtp_cl *loader_ishtp_cl = ishtp_get_drvdata(cl_device); in loader_ishtp_cl_remove() local
1005 client_data = ishtp_get_client_data(loader_ishtp_cl); in loader_ishtp_cl_remove()
1015 loader_deinit(loader_ishtp_cl); in loader_ishtp_cl_remove()
1030 struct ishtp_cl *loader_ishtp_cl = ishtp_get_drvdata(cl_device); in loader_ishtp_cl_reset() local
1032 client_data = ishtp_get_client_data(loader_ishtp_cl); in loader_ishtp_cl_reset()