Home
last modified time | relevance | path

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

/linux/drivers/hid/intel-ish-hid/ishtp/
H A Dbus.h16 struct ishtp_device;
39 struct ishtp_device *ishtp_dev;
48 int ishtp_bus_new_client(struct ishtp_device *dev);
53 int ishtp_send_msg(struct ishtp_device *dev,
59 int ishtp_write_message(struct ishtp_device *dev,
67 void ishtp_bus_remove_all_clients(struct ishtp_device *ishtp_dev,
70 void ishtp_recv(struct ishtp_device *dev);
71 void ishtp_reset_handler(struct ishtp_device *dev);
72 void ishtp_reset_compl_handler(struct ishtp_device *dev);
74 int ishtp_fw_cl_by_uuid(struct ishtp_device *dev, const guid_t *cuuid);
H A 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);
146 struct ishtp_device { struct
[all …]
H A 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 …]
H A Dclient.h38 struct ishtp_device *dev;
112 int ishtp_fw_cl_by_id(struct ishtp_device *dev, uint8_t client_id);
113 void ishtp_cl_send_msg(struct ishtp_device *dev, struct ishtp_cl *cl);
114 void recv_ishtp_cl_msg(struct ishtp_device *dev,
127 void recv_ishtp_cl_msg_dma(struct ishtp_device *dev, void *msg,
129 void ishtp_cl_alloc_dma_buf(struct ishtp_device *dev);
130 void ishtp_cl_free_dma_buf(struct ishtp_device *dev);
131 void *ishtp_cl_get_dma_send_buf(struct ishtp_device *dev,
133 void ishtp_cl_release_dma_acked_mem(struct ishtp_device *dev,
H A Dhbm.c24 static void ishtp_hbm_fw_cl_allocate(struct ishtp_device *dev) in ishtp_hbm_fw_cl_allocate()
93 int ishtp_hbm_start_wait(struct ishtp_device *dev) in ishtp_hbm_start_wait()
128 int ishtp_hbm_start_req(struct ishtp_device *dev) in ishtp_hbm_start_req()
165 void ishtp_hbm_enum_clients_req(struct ishtp_device *dev) in ishtp_hbm_enum_clients_req()
190 static int ishtp_hbm_prop_req(struct ishtp_device *dev) in ishtp_hbm_prop_req()
240 static void ishtp_hbm_stop_req(struct ishtp_device *dev) in ishtp_hbm_stop_req()
262 int ishtp_hbm_cl_flow_control_req(struct ishtp_device *dev, in ishtp_hbm_cl_flow_control_req()
314 int ishtp_hbm_cl_disconnect_req(struct ishtp_device *dev, struct ishtp_cl *cl) in ishtp_hbm_cl_disconnect_req()
333 static void ishtp_hbm_cl_disconnect_res(struct ishtp_device *dev, in ishtp_hbm_cl_disconnect_res()
359 int ishtp_hbm_cl_connect_req(struct ishtp_device *dev, struct ishtp_cl *cl) in ishtp_hbm_cl_connect_req()
[all …]
H A 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()
786 void ishtp_reset_handler(struct ishtp_device *dev) in ishtp_reset_handler()
[all …]
H A Dclient.c87 static void ishtp_cl_init(struct ishtp_cl *cl, struct ishtp_device *dev) in ishtp_cl_init()
144 struct ishtp_device *dev; in ishtp_cl_free()
175 struct ishtp_device *dev; in ishtp_cl_link()
226 struct ishtp_device *dev; in ishtp_cl_unlink()
268 struct ishtp_device *dev; in ishtp_cl_disconnect()
322 struct ishtp_device *dev; in ishtp_cl_is_other_connecting()
356 struct ishtp_device *dev; in ishtp_cl_connect_to_fw()
425 struct ishtp_device *dev; in ishtp_cl_connect()
491 struct ishtp_device *dev; in ishtp_cl_establish_connection()
611 struct ishtp_device *dev; in ishtp_cl_read_start()
[all …]
H A Dloader.c64 static int loader_write_message(struct ishtp_device *dev, void *buf, int len) in loader_write_message()
87 static int loader_xfer_cmd(struct ishtp_device *dev, void *req, int req_len, in loader_xfer_cmd()
143 static void release_dma_bufs(struct ishtp_device *dev, in release_dma_bufs()
170 static int prepare_dma_bufs(struct ishtp_device *dev, in prepare_dma_bufs()
259 struct ishtp_device *ishtp = dev_get_drvdata(dev); in request_ish_firmware()
332 struct ishtp_device *dev = container_of(work, struct ishtp_device, work_fw_loader); in ishtp_loader_work()
H A 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()
H A Dinit.c54 void ishtp_device_init(struct ishtp_device *dev) in ishtp_device_init()
98 int ishtp_start(struct ishtp_device *dev) in ishtp_start()
/linux/drivers/hid/intel-ish-hid/ipc/
H A 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 …]
H A Dhw-ish.h89 struct ishtp_device *ish_dev_init(struct pci_dev *pdev);
90 int ish_hw_start(struct ishtp_device *dev);
91 void ish_device_disable(struct ishtp_device *dev);
92 int ish_disable_dma(struct ishtp_device *dev);
93 void ish_set_host_ready(struct ishtp_device *dev);
H A Dpci-ish.c78 void ish_event_tracer(struct ishtp_device *dev, const char *format, ...) in ish_event_tracer()
102 static int ish_init(struct ishtp_device *dev) in ish_init()
154 struct ishtp_device *ishtp; in ish_probe()
233 struct ishtp_device *ishtp_dev = pci_get_drvdata(pdev); in ish_remove()
269 struct ishtp_device *dev = pci_get_drvdata(pdev); in ish_resume_handler()
313 struct ishtp_device *dev = pci_get_drvdata(pdev); in ish_suspend()
372 struct ishtp_device *dev = pci_get_drvdata(pdev); in ish_resume()
/linux/include/linux/
H A Dintel-ish-client-if.h15 struct ishtp_device;
19 typedef __printf(2, 3) void (*ishtp_print_log)(struct ishtp_device *dev,
83 struct device *ishtp_device(struct ishtp_cl_device *cl_device);
85 bool ishtp_wait_resume(struct ishtp_device *dev);
107 struct ishtp_device *ishtp_get_ishtp_device(struct ishtp_cl *cl);
120 struct ishtp_fw_client *ishtp_fw_cl_get_client(struct ishtp_device *dev,
123 int ish_hw_reset(struct ishtp_device *dev);
/linux/drivers/hid/intel-ish-hid/
H A Dishtp-hid-client.c26 #define cl_data_to_dev(client_data) ishtp_device(client_data->cl_device)
531 dev_info(ishtp_device(client_data->cl_device), in ishtp_enum_enum_devices()
736 dev_dbg(ishtp_device(client_data->cl_device), "%s\n", __func__); in hid_ishtp_cl_reset_handler()
785 client_data = devm_kzalloc(ishtp_device(cl_device), in hid_ishtp_cl_probe()
835 dev_dbg(ishtp_device(cl_device), "%s\n", __func__); in hid_ishtp_cl_remove()
H A Dishtp-fw-loader.c242 #define cl_data_to_dev(client_data) ishtp_device((client_data)->cl_device)
897 dev_err(ishtp_device(cl_device), "Reset Failed\n"); in reset_handler()
919 client_data = devm_kzalloc(ishtp_device(cl_device), in loader_ishtp_cl_probe()
H A Dishtp-hid.c233 hid->dev.parent = ishtp_device(client_data->cl_device); in ishtp_hid_probe()
/linux/drivers/platform/x86/intel/
H A Dishtp_eclite.c40 #define cl_data_to_dev(opr_dev) ishtp_device((opr_dev)->cl_device)
453 struct ishtp_device *dev; in ecl_ishtp_cl_init()
560 opr_dev = devm_kzalloc(ishtp_device(cl_device), sizeof(*opr_dev), in ecl_ishtp_cl_probe()
/linux/drivers/platform/chrome/
H A Dcros_ec_ishtp.c74 #define cl_data_to_dev(client_data) ishtp_device((client_data)->cl_device)
608 devm_kzalloc(ishtp_device(cl_device), in cros_ec_ishtp_probe()