Lines Matching defs:loader_ishtp_cl

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