Home
last modified time | relevance | path

Searched refs:cdx_mcdi (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/cdx/controller/
H A Dcdx_rpmsg.c26 int cdx_rpmsg_send(struct cdx_mcdi *cdx_mcdi, in cdx_rpmsg_send() argument
40 ret = rpmsg_send(cdx_mcdi->ept, send_buf, hdr_len + sdu_len); in cdx_rpmsg_send()
50 struct cdx_mcdi *cdx_mcdi; in cdx_attach_to_rproc() local
57 cdx_mcdi = cdx_c->priv; in cdx_attach_to_rproc()
79 cdx_mcdi->r5_rproc = rp; in cdx_attach_to_rproc()
88 struct cdx_mcdi *cdx_mcdi; in cdx_detach_to_r5() local
91 cdx_mcdi = cdx_c->priv; in cdx_detach_to_r5()
93 rproc_detach(cdx_mcdi->r5_rproc); in cdx_detach_to_r5()
94 rproc_put(cdx_mcdi->r5_rproc); in cdx_detach_to_r5()
101 struct cdx_mcdi *cdx_mcdi = cdx_c->priv; in cdx_rpmsg_cb() local
[all …]
H A Dcdx_controller.c19 static unsigned int cdx_mcdi_rpc_timeout(struct cdx_mcdi *cdx, unsigned int cmd) in cdx_mcdi_rpc_timeout()
24 static void cdx_mcdi_request(struct cdx_mcdi *cdx, in cdx_mcdi_request()
96 struct cdx_mcdi *cdx_mcdi = cdx->priv; in cdx_scan_devices() local
101 ret = cdx_mcdi_get_num_buses(cdx_mcdi); in cdx_scan_devices()
119 ret = cdx_mcdi_get_num_devs(cdx_mcdi, bus_num); in cdx_scan_devices()
131 ret = cdx_mcdi_get_dev_config(cdx_mcdi, bus_num, in cdx_scan_devices()
168 struct cdx_mcdi *cdx_mcdi; in xlnx_cdx_probe() local
171 cdx_mcdi = kzalloc(sizeof(*cdx_mcdi), GFP_KERNEL); in xlnx_cdx_probe()
172 if (!cdx_mcdi) in xlnx_cdx_probe()
176 cdx_mcdi->mcdi_ops = &mcdi_ops; in xlnx_cdx_probe()
[all …]
H A Dmcdi_functions.h22 int cdx_mcdi_get_num_buses(struct cdx_mcdi *cdx);
32 int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num);
46 int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx,
57 int cdx_mcdi_bus_enable(struct cdx_mcdi *cdx, u8 bus_num);
66 int cdx_mcdi_bus_disable(struct cdx_mcdi *cdx, u8 bus_num);
85 int cdx_mcdi_write_msi(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num,
96 int cdx_mcdi_reset_device(struct cdx_mcdi *cdx,
109 int cdx_mcdi_bus_master_enable(struct cdx_mcdi *cdx, u8 bus_num,
122 int cdx_mcdi_msi_enable(struct cdx_mcdi *cdx, u8 bus_num,
H A Dmcdi.h71 struct cdx_mcdi { struct
83 void (*mcdi_request)(struct cdx_mcdi *cdx, argument
86 unsigned int (*mcdi_rpc_timeout)(struct cdx_mcdi *cdx, unsigned int cmd);
89 typedef void cdx_mcdi_async_completer(struct cdx_mcdi *cdx,
158 struct cdx_mcdi *cdx;
183 static inline struct cdx_mcdi_iface *cdx_mcdi_if(struct cdx_mcdi *cdx) in cdx_mcdi_if()
188 int cdx_mcdi_init(struct cdx_mcdi *cdx);
189 void cdx_mcdi_finish(struct cdx_mcdi *cdx);
191 void cdx_mcdi_process_cmd(struct cdx_mcdi *cdx, struct cdx_dword *outbuf, int len);
192 int cdx_mcdi_rpc(struct cdx_mcdi *cdx, unsigned int cmd,
[all …]
H A Dmcdi.c30 static void cdx_mcdi_cancel_cmd(struct cdx_mcdi *cdx, struct cdx_mcdi_cmd *cmd);
31 static void cdx_mcdi_wait_for_cleanup(struct cdx_mcdi *cdx);
32 static int cdx_mcdi_rpc_async_internal(struct cdx_mcdi *cdx,
48 static void cdx_mcdi_mode_fail(struct cdx_mcdi *cdx, struct list_head *cleanup_list);
49 static void _cdx_mcdi_display_error(struct cdx_mcdi *cdx, unsigned int cmd,
94 static unsigned long cdx_mcdi_rpc_timeout(struct cdx_mcdi *cdx, unsigned int cmd) in cdx_mcdi_rpc_timeout()
102 int cdx_mcdi_init(struct cdx_mcdi *cdx) in cdx_mcdi_init()
132 void cdx_mcdi_finish(struct cdx_mcdi *cdx) in cdx_mcdi_finish()
159 static void cdx_mcdi_wait_for_cleanup(struct cdx_mcdi *cdx) in cdx_mcdi_wait_for_cleanup()
170 int cdx_mcdi_wait_for_quiescence(struct cdx_mcdi *cdx, in cdx_mcdi_wait_for_quiescence()
[all …]
H A Dmcdi_functions.c11 int cdx_mcdi_get_num_buses(struct cdx_mcdi *cdx) in cdx_mcdi_get_num_buses()
28 int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num) in cdx_mcdi_get_num_devs()
48 int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx, in cdx_mcdi_get_dev_config()
138 int cdx_mcdi_bus_enable(struct cdx_mcdi *cdx, u8 bus_num) in cdx_mcdi_bus_enable()
150 int cdx_mcdi_bus_disable(struct cdx_mcdi *cdx, u8 bus_num) in cdx_mcdi_bus_disable()
162 int cdx_mcdi_write_msi(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num, in cdx_mcdi_write_msi()
180 int cdx_mcdi_reset_device(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num) in cdx_mcdi_reset_device()
194 static int cdx_mcdi_ctrl_flag_get(struct cdx_mcdi *cdx, u8 bus_num, in cdx_mcdi_ctrl_flag_get()
217 static int cdx_mcdi_ctrl_flag_set(struct cdx_mcdi *cdx, u8 bus_num, in cdx_mcdi_ctrl_flag_set()
245 int cdx_mcdi_bus_master_enable(struct cdx_mcdi *cdx, u8 bus_num, in cdx_mcdi_bus_master_enable()
[all …]
H A Dcdx_controller.h18 int cdx_rpmsg_send(struct cdx_mcdi *cdx_mcdi,
22 void cdx_rpmsg_read_resp(struct cdx_mcdi *cdx_mcdi,