@@ -518,14 +518,14 @@ EXPORT_SYMBOL_NS_GPL(cxl_hdm_decode_init, CXL);
518
518
FIELD_PREP(CXL_DOE_TABLE_ACCESS_ENTRY_HANDLE, (entry_handle)))
519
519
520
520
static int cxl_cdat_get_length (struct device * dev ,
521
- struct pci_doe_mb * cdat_doe ,
521
+ struct pci_doe_mb * doe_mb ,
522
522
size_t * length )
523
523
{
524
524
__le32 request = CDAT_DOE_REQ (0 );
525
525
__le32 response [2 ];
526
526
int rc ;
527
527
528
- rc = pci_doe (cdat_doe , PCI_DVSEC_VENDOR_ID_CXL ,
528
+ rc = pci_doe (doe_mb , PCI_DVSEC_VENDOR_ID_CXL ,
529
529
CXL_DOE_PROTOCOL_TABLE_ACCESS ,
530
530
& request , sizeof (request ),
531
531
& response , sizeof (response ));
@@ -543,7 +543,7 @@ static int cxl_cdat_get_length(struct device *dev,
543
543
}
544
544
545
545
static int cxl_cdat_read_table (struct device * dev ,
546
- struct pci_doe_mb * cdat_doe ,
546
+ struct pci_doe_mb * doe_mb ,
547
547
void * cdat_table , size_t * cdat_length )
548
548
{
549
549
size_t length = * cdat_length + sizeof (__le32 );
@@ -557,7 +557,7 @@ static int cxl_cdat_read_table(struct device *dev,
557
557
size_t entry_dw ;
558
558
int rc ;
559
559
560
- rc = pci_doe (cdat_doe , PCI_DVSEC_VENDOR_ID_CXL ,
560
+ rc = pci_doe (doe_mb , PCI_DVSEC_VENDOR_ID_CXL ,
561
561
CXL_DOE_PROTOCOL_TABLE_ACCESS ,
562
562
& request , sizeof (request ),
563
563
data , length );
@@ -617,7 +617,7 @@ void read_cdat_data(struct cxl_port *port)
617
617
{
618
618
struct device * uport = port -> uport_dev ;
619
619
struct device * dev = & port -> dev ;
620
- struct pci_doe_mb * cdat_doe ;
620
+ struct pci_doe_mb * doe_mb ;
621
621
struct pci_dev * pdev = NULL ;
622
622
struct cxl_memdev * cxlmd ;
623
623
size_t cdat_length ;
@@ -638,16 +638,16 @@ void read_cdat_data(struct cxl_port *port)
638
638
if (!pdev )
639
639
return ;
640
640
641
- cdat_doe = pci_find_doe_mailbox (pdev , PCI_DVSEC_VENDOR_ID_CXL ,
642
- CXL_DOE_PROTOCOL_TABLE_ACCESS );
643
- if (!cdat_doe ) {
641
+ doe_mb = pci_find_doe_mailbox (pdev , PCI_DVSEC_VENDOR_ID_CXL ,
642
+ CXL_DOE_PROTOCOL_TABLE_ACCESS );
643
+ if (!doe_mb ) {
644
644
dev_dbg (dev , "No CDAT mailbox\n" );
645
645
return ;
646
646
}
647
647
648
648
port -> cdat_available = true;
649
649
650
- if (cxl_cdat_get_length (dev , cdat_doe , & cdat_length )) {
650
+ if (cxl_cdat_get_length (dev , doe_mb , & cdat_length )) {
651
651
dev_dbg (dev , "No CDAT length\n" );
652
652
return ;
653
653
}
@@ -656,7 +656,7 @@ void read_cdat_data(struct cxl_port *port)
656
656
if (!cdat_buf )
657
657
return ;
658
658
659
- rc = cxl_cdat_read_table (dev , cdat_doe , cdat_buf , & cdat_length );
659
+ rc = cxl_cdat_read_table (dev , doe_mb , cdat_buf , & cdat_length );
660
660
if (rc )
661
661
goto err ;
662
662
0 commit comments