Lines Matching defs:loader_ishtp_cl

209 	struct ishtp_cl *loader_ishtp_cl;
284 struct ishtp_cl *loader_ishtp_cl = client_data->loader_ishtp_cl;
299 rv = ishtp_cl_send(loader_ishtp_cl, out_msg, out_size);
324 * @loader_ishtp_cl: Client instance to get stats
330 static void process_recv(struct ishtp_cl *loader_ishtp_cl,
336 ishtp_get_client_data(loader_ishtp_cl);
447 struct ishtp_cl *loader_ishtp_cl = ishtp_get_drvdata(cl_device);
449 while ((rb_in_proc = ishtp_cl_rx_get_rb(loader_ishtp_cl)) != NULL) {
451 process_recv(loader_ishtp_cl, rb_in_proc);
750 struct ishtp_cl *loader_ishtp_cl = client_data->loader_ishtp_cl;
814 ish_hw_reset(ishtp_get_ishtp_device(loader_ishtp_cl));
833 * @loader_ishtp_cl: ISH-TP client instance
838 static int loader_init(struct ishtp_cl *loader_ishtp_cl, int reset)
843 ishtp_get_client_data(loader_ishtp_cl);
847 rv = ishtp_cl_link(loader_ishtp_cl);
854 ishtp_set_tx_ring_size(loader_ishtp_cl, LOADER_CL_TX_RING_SIZE);
855 ishtp_set_rx_ring_size(loader_ishtp_cl, LOADER_CL_RX_RING_SIZE);
858 ishtp_fw_cl_get_client(ishtp_get_ishtp_device(loader_ishtp_cl),
867 ishtp_cl_set_fw_client_id(loader_ishtp_cl,
869 ishtp_set_connection_state(loader_ishtp_cl, ISHTP_CL_CONNECTING);
871 rv = ishtp_cl_connect(loader_ishtp_cl);
884 ishtp_cl_unlink(loader_ishtp_cl);
888 static void loader_deinit(struct ishtp_cl *loader_ishtp_cl)
890 ishtp_set_connection_state(loader_ishtp_cl, ISHTP_CL_DISCONNECTING);
891 ishtp_cl_disconnect(loader_ishtp_cl);
892 ishtp_cl_unlink(loader_ishtp_cl);
893 ishtp_cl_flush_queues(loader_ishtp_cl);
896 ishtp_cl_free(loader_ishtp_cl);
903 struct ishtp_cl *loader_ishtp_cl;
909 loader_ishtp_cl = client_data->loader_ishtp_cl;
913 ishtp_cl_unlink(loader_ishtp_cl);
914 ishtp_cl_flush_queues(loader_ishtp_cl);
915 ishtp_cl_free(loader_ishtp_cl);
917 loader_ishtp_cl = ishtp_cl_allocate(cl_device);
918 if (!loader_ishtp_cl)
921 ishtp_set_drvdata(cl_device, loader_ishtp_cl);
922 ishtp_set_client_data(loader_ishtp_cl, client_data);
923 client_data->loader_ishtp_cl = loader_ishtp_cl;
926 rv = loader_init(loader_ishtp_cl, 1);
946 struct ishtp_cl *loader_ishtp_cl;
956 loader_ishtp_cl = ishtp_cl_allocate(cl_device);
957 if (!loader_ishtp_cl)
960 ishtp_set_drvdata(cl_device, loader_ishtp_cl);
961 ishtp_set_client_data(loader_ishtp_cl, client_data);
962 client_data->loader_ishtp_cl = loader_ishtp_cl;
972 rv = loader_init(loader_ishtp_cl, 0);
974 ishtp_cl_free(loader_ishtp_cl);
998 struct ishtp_cl *loader_ishtp_cl = ishtp_get_drvdata(cl_device);
1000 client_data = ishtp_get_client_data(loader_ishtp_cl);
1010 loader_deinit(loader_ishtp_cl);
1027 struct ishtp_cl *loader_ishtp_cl = ishtp_get_drvdata(cl_device);
1029 client_data = ishtp_get_client_data(loader_ishtp_cl);