Home
last modified time | relevance | path

Searched full:cdx (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/cdx/
H A Dcdx.h3 * Header file for the CDX Bus
11 #include <linux/cdx/cdx_bus.h>
14 * struct cdx_dev_params - CDX device parameters
15 * @cdx: CDX controller associated with the device
16 * @parent: Associated CDX Bus device
17 * @vendor: Vendor ID for CDX device
18 * @device: Device ID for CDX device
19 * @subsys_vendor: Sub vendor ID for CDX device
20 * @subsys_device: Sub device ID for CDX device
21 * @bus_num: Bus number for this CDX device
[all …]
H A DMakefile3 # Makefile for CDX
10 obj-$(CONFIG_CDX_BUS) += cdx.o controller/
/linux/include/linux/cdx/
H A Dcdx_bus.h3 * CDX bus public interface
21 /* Forward declaration for CDX controller */
46 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,
57 * CDX_DEVICE - macro used to describe a specific CDX device
58 * @vend: the 16 bit CDX Vendor ID
59 * @dev: the 16 bit CDX Device ID
70 * CDX_DEVICE_DRIVER_OVERRIDE - macro used to describe a CDX device with
[all …]
H A Dmcdi.h14 #include "linux/cdx/bitfield.h"
51 * struct cdx_mcdi - CDX MCDI Firmware interface, to interact
52 * with CDX controller.
72 void (*mcdi_request)(struct cdx_mcdi *cdx,
75 unsigned int (*mcdi_rpc_timeout)(struct cdx_mcdi *cdx, unsigned int cmd);
78 typedef void cdx_mcdi_async_completer(struct cdx_mcdi *cdx,
133 * @cdx: The associated NIC
147 struct cdx_mcdi *cdx; member
172 void cdx_mcdi_finish(struct cdx_mcdi *cdx);
173 int cdx_mcdi_init(struct cdx_mcdi *cdx);
[all …]
H A Dedac_cdx_pcol.h11 #include <linux/cdx/mcdi.h>
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-cdx1 What: /sys/bus/cdx/rescan
6 and devices on the CDX bus. Any new devices are scanned and
12 # echo 1 > /sys/bus/cdx/rescan
14 What: /sys/bus/cdx/devices/.../vendor
18 Vendor ID for this CDX device, in hexadecimal. Vendor ID is
22 What: /sys/bus/cdx/devices/.../device
26 Device ID for this CDX device, in hexadecimal. Device ID is
31 What: /sys/bus/cdx/devices/.../subsystem_vendor
35 Subsystem Vendor ID for this CDX device, in hexadecimal.
39 What: /sys/bus/cdx/devices/.../subsystem_device
[all …]
/linux/drivers/cdx/controller/
H A Dmcdi_functions.h3 * Header file for MCDI FW interaction for CDX bus.
11 #include <linux/cdx/mcdi.h>
13 #include "../cdx.h"
18 * @cdx: pointer to MCDI interface.
23 int cdx_mcdi_get_num_buses(struct cdx_mcdi *cdx);
28 * @cdx: pointer to MCDI interface.
33 int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num);
38 * @cdx: pointer to MCDI interface.
47 int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx,
52 * cdx_mcdi_bus_enable - Enable CDX bus represented by bus_num
[all …]
H A Dmcdi.c26 #include <linux/cdx/bitfield.h>
28 #include <linux/cdx/mcdi.h>
31 static void cdx_mcdi_cancel_cmd(struct cdx_mcdi *cdx, struct cdx_mcdi_cmd *cmd);
32 static void cdx_mcdi_wait_for_cleanup(struct cdx_mcdi *cdx);
33 static int cdx_mcdi_rpc_async_internal(struct cdx_mcdi *cdx,
49 static void cdx_mcdi_mode_fail(struct cdx_mcdi *cdx, struct list_head *cleanup_list);
50 static void _cdx_mcdi_display_error(struct cdx_mcdi *cdx, unsigned int cmd,
95 static unsigned long cdx_mcdi_rpc_timeout(struct cdx_mcdi *cdx, unsigned int cmd) in cdx_mcdi_rpc_timeout() argument
97 if (!cdx->mcdi_ops->mcdi_rpc_timeout) in cdx_mcdi_rpc_timeout()
100 return cdx->mcdi_ops->mcdi_rpc_timeout(cdx, cmd); in cdx_mcdi_rpc_timeout()
[all …]
H A Dmcdi_functions.c10 int cdx_mcdi_get_num_buses(struct cdx_mcdi *cdx) in cdx_mcdi_get_num_buses() argument
16 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_BUSES, NULL, 0, in cdx_mcdi_get_num_buses()
27 int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num) in cdx_mcdi_get_num_devs() argument
36 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_DEVICES, inbuf, sizeof(inbuf), in cdx_mcdi_get_num_devs()
47 int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx, in cdx_mcdi_get_dev_config() argument
61 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG, inbuf, sizeof(inbuf), in cdx_mcdi_get_dev_config()
137 int cdx_mcdi_bus_enable(struct cdx_mcdi *cdx, u8 bus_num) in cdx_mcdi_bus_enable() argument
143 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_UP, inbuf, sizeof(inbuf), in cdx_mcdi_bus_enable()
149 int cdx_mcdi_bus_disable(struct cdx_mcdi *cdx, u8 bus_num) in cdx_mcdi_bus_disable() argument
155 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_DOWN, inbuf, sizeof(inbuf), in cdx_mcdi_bus_disable()
[all …]
H A Dcdx_controller.h3 * Header file for the CDX Controller
11 #include <linux/cdx/cdx_bus.h>
14 void cdx_rpmsg_post_probe(struct cdx_controller *cdx);
16 void cdx_rpmsg_pre_remove(struct cdx_controller *cdx);
H A Dmcdid.h26 static inline struct cdx_mcdi_iface *cdx_mcdi_if(struct cdx_mcdi *cdx) in cdx_mcdi_if() argument
28 return cdx->mcdi ? &cdx->mcdi->iface : NULL; in cdx_mcdi_if()
31 int cdx_mcdi_rpc_async(struct cdx_mcdi *cdx, unsigned int cmd,
35 int cdx_mcdi_wait_for_quiescence(struct cdx_mcdi *cdx,
H A DMakefile3 # Makefile for CDX controller drivers
8 obj-$(CONFIG_CDX_CONTROLLER) += cdx-controller.o
9 cdx-controller-objs := cdx_controller.o cdx_rpmsg.o mcdi.o mcdi_functions.o
H A Dcdx_rpmsg.c3 * Platform driver for CDX bus.
12 #include <linux/cdx/cdx_bus.h>
15 #include "../cdx.h"
190 "Failed to register cdx RPMsg driver: %d\n", ret); in cdx_setup_rpmsg()
H A Dmc_cdx_pcol.h249 * CDX bus hosts devices (functions) that are implemented using the Composable
255 * devices. This command returns the number of CDX buses present in the system.
269 * Number of CDX buses present in the system. Buses are numbered 0 to
278 * Enumerate CDX bus devices on a given bus
308 * Returns device identification and MMIO/MSI resource data for a CDX device.
467 * Asserting reset on the CDX bus causes all devices on the bus to be quiesced.
473 * reload the relevant PL region containing CDX devices if the corresponding CDX
630 * only 4 CDX devices with MSI interrupt capability are supported and all
/linux/Documentation/devicetree/bindings/bus/
H A Dxlnx,versal-net-cdx.yaml4 $id: http://devicetree.org/schemas/bus/xlnx,versal-net-cdx.yaml#
7 title: AMD CDX bus controller
10 CDX bus controller for AMD devices is implemented to dynamically
11 detect CDX bus and devices using the firmware.
12 The CDX bus manages multiple FPGA based hardware devices, which
17 All devices on the CDX bus will have a unique streamid (for IOMMU)
39 const: xlnx,versal-net-cdx
72 cdx {
73 compatible = "xlnx,versal-net-cdx";
/linux/drivers/vfio/cdx/
H A DKconfig3 # VFIO CDX configuration
9 tristate "VFIO support for CDX bus devices"
13 Driver to enable VFIO support for the devices on CDX bus.
14 This is required to make use of CDX devices present in
H A Dmain.c7 #include <linux/cdx/cdx_bus.h>
283 .name = "vfio-cdx",
334 MODULE_DEVICE_TABLE(cdx, vfio_cdx_table);
341 .name = "vfio-cdx",
349 MODULE_DESCRIPTION("VFIO for CDX devices - User Level meta-driver");
/linux/drivers/vfio/
H A DMakefile18 obj-$(CONFIG_VFIO_CDX) += cdx/
H A DKconfig97 source "drivers/vfio/cdx/Kconfig"
/linux/drivers/edac/
H A Dversalnet_edac.c7 #include <linux/cdx/edac_cdx_pcol.h>
509 static unsigned int mcdi_rpc_timeout(struct cdx_mcdi *cdx, unsigned int cmd) in mcdi_rpc_timeout() argument
514 static void mcdi_request(struct cdx_mcdi *cdx, in mcdi_request() argument
528 ret = rpmsg_send(cdx->ept, send_buf, hdr_len + sdu_len); in mcdi_request()
530 dev_err(&cdx->rpdev->dev, "Failed to send rpmsg data: %d\n", ret); in mcdi_request()
/linux/arch/nios2/
H A DMakefile32 KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_CDX_SUPPORT),-mcdx,-mno-cdx)
/linux/include/linux/
H A Dmod_devicetable.h941 * struct cdx_device_id - CDX device identifier
952 * Type of entries in the "device Id" table for CDX devices supported by
953 * a CDX device driver.
/linux/drivers/
H A DMakefile195 obj-$(CONFIG_CDX_BUS) += cdx/
/linux/scripts/mod/
H A Dfile2alias.c1324 /* Looks like: cdx:vNdN */ in do_cdx_entry()
1339 strcpy(alias, "cdx:"); in do_cdx_entry()
1345 warn("Unknown CDX driver_override alias %08X\n", in do_cdx_entry()
1463 {"cdx", SIZE_cdx_device_id, do_cdx_entry},
/linux/include/uapi/linux/
H A Dvfio.h216 #define VFIO_DEVICE_FLAGS_CDX (1 << 8) /* vfio-cdx device */
1468 * only for CDX devices.

12