Home
last modified time | relevance | path

Searched refs:cdx (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/drivers/cdx/controller/
Dcdx_controller.c19 static unsigned int cdx_mcdi_rpc_timeout(struct cdx_mcdi *cdx, unsigned int cmd) in cdx_mcdi_rpc_timeout() argument
24 static void cdx_mcdi_request(struct cdx_mcdi *cdx, in cdx_mcdi_request() argument
28 if (cdx_rpmsg_send(cdx, hdr, hdr_len, sdu, sdu_len)) in cdx_mcdi_request()
29 dev_err(&cdx->rpdev->dev, "Failed to send rpmsg data\n"); in cdx_mcdi_request()
37 static int cdx_bus_enable(struct cdx_controller *cdx, u8 bus_num) in cdx_bus_enable() argument
39 return cdx_mcdi_bus_enable(cdx->priv, bus_num); in cdx_bus_enable()
42 static int cdx_bus_disable(struct cdx_controller *cdx, u8 bus_num) in cdx_bus_disable() argument
44 return cdx_mcdi_bus_disable(cdx->priv, bus_num); in cdx_bus_disable()
47 void cdx_rpmsg_post_probe(struct cdx_controller *cdx) in cdx_rpmsg_post_probe() argument
50 if (cdx_register_controller(cdx)) in cdx_rpmsg_post_probe()
[all …]
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() argument
96 if (!cdx->mcdi_ops->mcdi_rpc_timeout) in cdx_mcdi_rpc_timeout()
99 return cdx->mcdi_ops->mcdi_rpc_timeout(cdx, cmd); in cdx_mcdi_rpc_timeout()
102 int cdx_mcdi_init(struct cdx_mcdi *cdx) in cdx_mcdi_init() argument
107 cdx->mcdi = kzalloc(sizeof(*cdx->mcdi), GFP_KERNEL); in cdx_mcdi_init()
[all …]
Dmcdi_functions.c11 int cdx_mcdi_get_num_buses(struct cdx_mcdi *cdx) in cdx_mcdi_get_num_buses() argument
17 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_BUSES, NULL, 0, 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() argument
37 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_DEVICES, inbuf, sizeof(inbuf), in cdx_mcdi_get_num_devs()
48 int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx, in cdx_mcdi_get_dev_config() argument
62 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG, inbuf, sizeof(inbuf), in cdx_mcdi_get_dev_config()
138 int cdx_mcdi_bus_enable(struct cdx_mcdi *cdx, u8 bus_num) in cdx_mcdi_bus_enable() argument
144 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_UP, inbuf, sizeof(inbuf), in cdx_mcdi_bus_enable()
150 int cdx_mcdi_bus_disable(struct cdx_mcdi *cdx, u8 bus_num) in cdx_mcdi_bus_disable() argument
156 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_DOWN, inbuf, sizeof(inbuf), in cdx_mcdi_bus_disable()
[all …]
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,
Dmcdi.h83 void (*mcdi_request)(struct cdx_mcdi *cdx,
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; member
183 static inline struct cdx_mcdi_iface *cdx_mcdi_if(struct cdx_mcdi *cdx) in cdx_mcdi_if() argument
185 return cdx->mcdi ? &cdx->mcdi->iface : NULL; 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 …]
DMakefile8 obj-$(CONFIG_CDX_CONTROLLER) += cdx-controller.o
9 cdx-controller-objs := cdx_controller.o cdx_rpmsg.o mcdi.o mcdi_functions.o
Dcdx_controller.h14 void cdx_rpmsg_post_probe(struct cdx_controller *cdx);
16 void cdx_rpmsg_pre_remove(struct cdx_controller *cdx);
/linux-6.12.1/drivers/cdx/
Dcdx.c98 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_dev_reset() local
109 ret = cdx->ops->dev_configure(cdx, cdx_dev->bus_num, in cdx_dev_reset()
150 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_unregister_device() local
154 if (cdx_dev->enabled && cdx->ops->bus_disable) in cdx_unregister_device()
155 cdx->ops->bus_disable(cdx, cdx_dev->bus_num); in cdx_unregister_device()
227 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_set_master() local
233 if (cdx->ops->dev_configure) in cdx_set_master()
234 ret = cdx->ops->dev_configure(cdx, cdx_dev->bus_num, in cdx_set_master()
243 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_clear_master() local
249 if (cdx->ops->dev_configure) in cdx_clear_master()
[all …]
Dcdx_msi.c43 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_msi_write_irq_unlock() local
64 if (cdx->ops->dev_configure) in cdx_msi_write_irq_unlock()
65 cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, &dev_config); in cdx_msi_write_irq_unlock()
70 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_enable_msi() local
75 if (cdx->ops->dev_configure) { in cdx_enable_msi()
76 return cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, in cdx_enable_msi()
86 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_disable_msi() local
91 if (cdx->ops->dev_configure) in cdx_disable_msi()
92 cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, &dev_config); in cdx_disable_msi()
125 struct device *parent = cdx_dev->cdx->dev; in cdx_msi_prepare()
Dcdx.h32 struct cdx_controller *cdx; member
56 int cdx_register_controller(struct cdx_controller *cdx);
62 void cdx_unregister_controller(struct cdx_controller *cdx);
84 struct device *cdx_bus_add(struct cdx_controller *cdx, u8 bus_num);
DMakefile10 obj-$(CONFIG_CDX_BUS) += cdx.o controller/
DKconfig19 source "drivers/cdx/controller/Kconfig"
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-bus-cdx1 What: /sys/bus/cdx/rescan
12 # echo 1 > /sys/bus/cdx/rescan
14 What: /sys/bus/cdx/devices/.../vendor
22 What: /sys/bus/cdx/devices/.../device
31 What: /sys/bus/cdx/devices/.../subsystem_vendor
39 What: /sys/bus/cdx/devices/.../subsystem_device
47 What: /sys/bus/cdx/devices/.../class
54 What: /sys/bus/cdx/devices/.../revision
61 What: /sys/bus/cdx/devices/.../enable
72 # echo 1 > /sys/bus/cdx/.../enable
[all …]
/linux-6.12.1/include/linux/cdx/
Dcdx_bus.h46 typedef int (*cdx_bus_enable_cb)(struct cdx_controller *cdx, u8 bus_num);
48 typedef int (*cdx_bus_disable_cb)(struct cdx_controller *cdx, u8 bus_num);
50 typedef int (*cdx_scan_cb)(struct cdx_controller *cdx);
52 typedef int (*cdx_dev_configure_cb)(struct cdx_controller *cdx,
148 struct cdx_controller *cdx; member
/linux-6.12.1/drivers/vfio/cdx/
DMakefile6 obj-$(CONFIG_VFIO_CDX) += vfio-cdx.o
8 vfio-cdx-objs := main.o intr.o
Dmain.c334 MODULE_DEVICE_TABLE(cdx, vfio_cdx_table);
/linux-6.12.1/drivers/vfio/
DMakefile18 obj-$(CONFIG_VFIO_CDX) += cdx/
DKconfig97 source "drivers/vfio/cdx/Kconfig"
/linux-6.12.1/arch/nios2/
DMakefile32 KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_CDX_SUPPORT),-mcdx,-mno-cdx)
/linux-6.12.1/drivers/
DMakefile194 obj-$(CONFIG_CDX_BUS) += cdx/
DKconfig244 source "drivers/cdx/Kconfig"
/linux-6.12.1/
DMAINTAINERS986 F: Documentation/devicetree/bindings/bus/xlnx,versal-net-cdx.yaml
987 F: drivers/cdx/*
988 F: include/linux/cdx/*
24263 F: drivers/vfio/cdx/*