Lines Matching refs:mds

136 	struct cxl_memdev_state *mds;  member
329 cxl_mem_get_event_records(mes->mds, mes->ev_status); in cxl_mock_event_trigger()
489 static int mock_get_log(struct cxl_memdev_state *mds, struct cxl_mbox_cmd *cmd) in mock_get_log() argument
499 if (length > mds->payload_size) in mock_get_log()
1264 static int cxl_mock_mbox_send(struct cxl_memdev_state *mds, in cxl_mock_mbox_send() argument
1267 struct cxl_dev_state *cxlds = &mds->cxlds; in cxl_mock_mbox_send()
1280 rc = mock_get_log(mds, cmd); in cxl_mock_mbox_send()
1388 struct cxl_memdev_state *mds; in cxl_mock_mem_probe() local
1414 mds = cxl_memdev_state_create(dev); in cxl_mock_mem_probe()
1415 if (IS_ERR(mds)) in cxl_mock_mem_probe()
1416 return PTR_ERR(mds); in cxl_mock_mem_probe()
1418 mds->mbox_send = cxl_mock_mbox_send; in cxl_mock_mem_probe()
1419 mds->payload_size = SZ_4K; in cxl_mock_mem_probe()
1420 mds->event.buf = (struct cxl_get_event_payload *) mdata->event_buf; in cxl_mock_mem_probe()
1422 cxlds = &mds->cxlds; in cxl_mock_mem_probe()
1429 rc = cxl_enumerate_cmds(mds); in cxl_mock_mem_probe()
1433 rc = cxl_poison_state_init(mds); in cxl_mock_mem_probe()
1437 rc = cxl_set_timestamp(mds); in cxl_mock_mem_probe()
1442 rc = cxl_dev_state_identify(mds); in cxl_mock_mem_probe()
1446 rc = cxl_mem_create_range_info(mds); in cxl_mock_mem_probe()
1450 mdata->mes.mds = mds; in cxl_mock_mem_probe()
1457 rc = devm_cxl_setup_fw_upload(&pdev->dev, mds); in cxl_mock_mem_probe()
1461 cxl_mem_get_event_records(mds, CXLDEV_EVENT_STATUS_ALL); in cxl_mock_mem_probe()