Lines Matching defs:cxlhdm
633 struct cxl_hdm *cxlhdm = devm_kzalloc(&port->dev, sizeof(*cxlhdm), GFP_KERNEL);
636 if (!cxlhdm)
639 cxlhdm->port = port;
640 cxlhdm->interleave_mask = ~0U;
641 cxlhdm->iw_cap_mask = ~0UL;
642 dev_set_drvdata(dev, cxlhdm);
643 return cxlhdm;
850 static int mock_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm,
853 struct cxl_port *port = cxlhdm->port;
925 struct cxl_hdm *cxlhdm;
927 cxlhdm = mock_cxl_setup_hdm(port, NULL);
928 if (IS_ERR(cxlhdm)) {
929 if (PTR_ERR(cxlhdm) != -ENODEV)
931 return PTR_ERR(cxlhdm);
934 return mock_cxl_enumerate_decoders(cxlhdm, NULL);