OpenCloudOS-Kernel/drivers/cxl/core
Ira Weiny 5e2411ae80 cxl/memdev: Change cxl_mem to a more descriptive name
The 'struct cxl_mem' object actually represents the state of a CXL
device within the driver. Comments indicating that 'struct cxl_mem' is a
device itself are incorrect. It is data layered on top of a CXL Memory
Expander class device. Rename it 'struct cxl_dev_state'. The 'struct'
cxl_memdev' structure represents a Linux CXL memory device object, and
it uses services and information provided by 'struct cxl_dev_state'.

Update the structure name, function names, and the kdocs to reflect the
real uses of this structure.

Some helper functions that were previously prefixed "cxl_mem_" are
renamed to just "cxl_".

Acked-by: Ben Widawsky <ben.widawsky@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20211102202901.3675568-3-ira.weiny@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2021-11-15 11:02:58 -08:00
..
Makefile cxl/mbox: Move mailbox and other non-PCI specific infrastructure to the core 2021-09-21 13:44:56 -07:00
bus.c cxl/core: Split decoder setup into alloc + add 2021-09-21 14:09:34 -07:00
core.h cxl/core: Split decoder setup into alloc + add 2021-09-21 14:09:34 -07:00
mbox.c cxl/memdev: Change cxl_mem to a more descriptive name 2021-11-15 11:02:58 -08:00
memdev.c cxl/memdev: Change cxl_mem to a more descriptive name 2021-11-15 11:02:58 -08:00
pmem.c cxl/core: Split decoder setup into alloc + add 2021-09-21 14:09:34 -07:00
regs.c cxl/registers: Fix Documentation warning 2021-09-07 11:39:02 -07:00