Home
last modified time | relevance | path

Searched refs:ishtp_device (Results 1 – 16 of 16) sorted by relevance

/drivers/hid/intel-ish-hid/ishtp/
Dbus.h16 struct ishtp_device;
39 struct ishtp_device *ishtp_dev;
48 int ishtp_bus_new_client(struct ishtp_device *dev);
49 void ishtp_remove_all_clients(struct ishtp_device *dev);
54 int ishtp_send_msg(struct ishtp_device *dev,
60 int ishtp_write_message(struct ishtp_device *dev,
68 void ishtp_bus_remove_all_clients(struct ishtp_device *ishtp_dev,
71 void ishtp_recv(struct ishtp_device *dev);
72 void ishtp_reset_handler(struct ishtp_device *dev);
73 void ishtp_reset_compl_handler(struct ishtp_device *dev);
[all …]
Dishtp-dev.h110 int (*hw_reset)(struct ishtp_device *dev);
111 int (*ipc_reset)(struct ishtp_device *dev);
112 uint32_t (*ipc_get_header)(struct ishtp_device *dev, int length,
114 int (*write)(struct ishtp_device *dev,
117 uint32_t (*ishtp_read_hdr)(const struct ishtp_device *dev);
118 int (*ishtp_read)(struct ishtp_device *dev, unsigned char *buffer,
120 uint32_t (*get_fw_status)(struct ishtp_device *dev);
121 void (*sync_fw_clock)(struct ishtp_device *dev);
122 bool (*dma_no_cache_snooping)(struct ishtp_device *dev);
128 struct ishtp_device { struct
[all …]
Dclient.h38 struct ishtp_device *dev;
112 int ishtp_can_client_connect(struct ishtp_device *ishtp_dev, guid_t *uuid);
113 int ishtp_fw_cl_by_id(struct ishtp_device *dev, uint8_t client_id);
114 void ishtp_cl_send_msg(struct ishtp_device *dev, struct ishtp_cl *cl);
115 void recv_ishtp_cl_msg(struct ishtp_device *dev,
128 void recv_ishtp_cl_msg_dma(struct ishtp_device *dev, void *msg,
130 void ishtp_cl_alloc_dma_buf(struct ishtp_device *dev);
131 void ishtp_cl_free_dma_buf(struct ishtp_device *dev);
132 void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev,
134 void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev,
Dhbm.h13 struct ishtp_device;
294 int ishtp_hbm_start_req(struct ishtp_device *dev);
295 int ishtp_hbm_start_wait(struct ishtp_device *dev);
296 int ishtp_hbm_cl_flow_control_req(struct ishtp_device *dev,
298 int ishtp_hbm_cl_disconnect_req(struct ishtp_device *dev, struct ishtp_cl *cl);
299 int ishtp_hbm_cl_connect_req(struct ishtp_device *dev, struct ishtp_cl *cl);
300 void ishtp_hbm_enum_clients_req(struct ishtp_device *dev);
302 void recv_hbm(struct ishtp_device *dev, struct ishtp_msg_hdr *ishtp_hdr);
303 void recv_fixed_cl_msg(struct ishtp_device *dev,
305 void ishtp_hbm_dispatch(struct ishtp_device *dev,
[all …]
Dhbm.c23 static void ishtp_hbm_fw_cl_allocate(struct ishtp_device *dev) in ishtp_hbm_fw_cl_allocate()
92 int ishtp_hbm_start_wait(struct ishtp_device *dev) in ishtp_hbm_start_wait()
127 int ishtp_hbm_start_req(struct ishtp_device *dev) in ishtp_hbm_start_req()
164 void ishtp_hbm_enum_clients_req(struct ishtp_device *dev) in ishtp_hbm_enum_clients_req()
189 static int ishtp_hbm_prop_req(struct ishtp_device *dev) in ishtp_hbm_prop_req()
239 static void ishtp_hbm_stop_req(struct ishtp_device *dev) in ishtp_hbm_stop_req()
261 int ishtp_hbm_cl_flow_control_req(struct ishtp_device *dev, in ishtp_hbm_cl_flow_control_req()
313 int ishtp_hbm_cl_disconnect_req(struct ishtp_device *dev, struct ishtp_cl *cl) in ishtp_hbm_cl_disconnect_req()
332 static void ishtp_hbm_cl_disconnect_res(struct ishtp_device *dev, in ishtp_hbm_cl_disconnect_res()
358 int ishtp_hbm_cl_connect_req(struct ishtp_device *dev, struct ishtp_cl *cl) in ishtp_hbm_cl_connect_req()
[all …]
Dbus.c36 void ishtp_recv(struct ishtp_device *dev) in ishtp_recv()
84 int ishtp_send_msg(struct ishtp_device *dev, struct ishtp_msg_hdr *hdr, in ishtp_send_msg()
113 int ishtp_write_message(struct ishtp_device *dev, struct ishtp_msg_hdr *hdr, in ishtp_write_message()
128 int ishtp_fw_cl_by_uuid(struct ishtp_device *dev, const guid_t *uuid) in ishtp_fw_cl_by_uuid()
149 struct ishtp_fw_client *ishtp_fw_cl_get_client(struct ishtp_device *dev, in ishtp_fw_cl_get_client()
188 int ishtp_fw_cl_by_id(struct ishtp_device *dev, uint8_t client_id) in ishtp_fw_cl_by_id()
411 static struct ishtp_cl_device *ishtp_bus_add_device(struct ishtp_device *dev, in ishtp_bus_add_device()
643 int ishtp_bus_new_client(struct ishtp_device *dev) in ishtp_bus_new_client()
715 void ishtp_bus_remove_all_clients(struct ishtp_device *ishtp_dev, in ishtp_bus_remove_all_clients()
784 void ishtp_reset_handler(struct ishtp_device *dev) in ishtp_reset_handler()
[all …]
Dclient.c85 static void ishtp_cl_init(struct ishtp_cl *cl, struct ishtp_device *dev) in ishtp_cl_init()
142 struct ishtp_device *dev; in ishtp_cl_free()
173 struct ishtp_device *dev; in ishtp_cl_link()
224 struct ishtp_device *dev; in ishtp_cl_unlink()
266 struct ishtp_device *dev; in ishtp_cl_disconnect()
320 struct ishtp_device *dev; in ishtp_cl_is_other_connecting()
353 struct ishtp_device *dev; in ishtp_cl_connect()
446 struct ishtp_device *dev; in ishtp_cl_read_start()
530 struct ishtp_device *dev; in ishtp_cl_send()
641 struct ishtp_device *dev = (cl ? cl->dev : NULL); in ipc_tx_send()
[all …]
Ddma-if.c24 void ishtp_cl_alloc_dma_buf(struct ishtp_device *dev) in ishtp_cl_alloc_dma_buf()
66 void ishtp_cl_free_dma_buf(struct ishtp_device *dev) in ishtp_cl_free_dma_buf()
98 void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev, in ishtp_cl_get_dma_send_buf()
144 void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev, in ishtp_cl_release_dma_acked_mem()
Dinit.c52 void ishtp_device_init(struct ishtp_device *dev) in ishtp_device_init()
90 int ishtp_start(struct ishtp_device *dev) in ishtp_start()
/drivers/hid/intel-ish-hid/ipc/
Dipc.c19 static struct ishtp_device *ishtp_dev;
30 static inline uint32_t ish_reg_read(const struct ishtp_device *dev, in ish_reg_read()
46 static inline void ish_reg_write(struct ishtp_device *dev, in ish_reg_write()
63 static inline uint32_t _ish_read_fw_sts_reg(struct ishtp_device *dev) in _ish_read_fw_sts_reg()
76 static bool check_generated_interrupt(struct ishtp_device *dev) in check_generated_interrupt()
104 static bool ish_is_input_ready(struct ishtp_device *dev) in ish_is_input_ready()
118 static void set_host_ready(struct ishtp_device *dev) in set_host_ready()
161 static bool ishtp_fw_is_ready(struct ishtp_device *dev) in ishtp_fw_is_ready()
175 static void ish_set_host_rdy(struct ishtp_device *dev) in ish_set_host_rdy()
189 static void ish_clr_host_rdy(struct ishtp_device *dev) in ish_clr_host_rdy()
[all …]
Dhw-ish.h83 struct ishtp_device *ish_dev_init(struct pci_dev *pdev);
84 int ish_hw_start(struct ishtp_device *dev);
85 void ish_device_disable(struct ishtp_device *dev);
86 int ish_disable_dma(struct ishtp_device *dev);
87 void ish_set_host_ready(struct ishtp_device *dev);
Dpci-ish.c56 void ish_event_tracer(struct ishtp_device *dev, const char *format, ...) in ish_event_tracer()
80 static int ish_init(struct ishtp_device *dev) in ish_init()
176 struct ishtp_device *ishtp; in ish_probe()
249 struct ishtp_device *ishtp_dev = pci_get_drvdata(pdev); in ish_remove()
272 struct ishtp_device *dev = pci_get_drvdata(pdev); in ish_resume_handler()
316 struct ishtp_device *dev = pci_get_drvdata(pdev); in ish_suspend()
375 struct ishtp_device *dev = pci_get_drvdata(pdev); in ish_resume()
/drivers/hid/intel-ish-hid/
Dishtp-hid-client.c23 #define cl_data_to_dev(client_data) ishtp_device(client_data->cl_device)
528 dev_info(ishtp_device(client_data->cl_device), in ishtp_enum_enum_devices()
641 struct ishtp_device *dev; in hid_ishtp_cl_init()
760 dev_dbg(ishtp_device(client_data->cl_device), "%s\n", __func__); in hid_ishtp_cl_reset_handler()
817 client_data = devm_kzalloc(ishtp_device(cl_device), in hid_ishtp_cl_probe()
867 dev_dbg(ishtp_device(cl_device), "%s\n", __func__); in hid_ishtp_cl_remove()
Dishtp-fw-loader.c239 #define cl_data_to_dev(client_data) ishtp_device((client_data)->cl_device)
929 dev_err(ishtp_device(cl_device), "Reset Failed\n"); in reset_handler()
951 client_data = devm_kzalloc(ishtp_device(cl_device), in loader_ishtp_cl_probe()
Dishtp-hid.c233 hid->dev.parent = ishtp_device(client_data->cl_device); in ishtp_hid_probe()
/drivers/platform/chrome/
Dcros_ec_ishtp.c71 #define cl_data_to_dev(client_data) ishtp_device((client_data)->cl_device)
375 struct ishtp_device *dev; in cros_ish_init()
644 devm_kzalloc(ishtp_device(cl_device), in cros_ec_ishtp_probe()