Lines Matching refs:mds
18 static void clear_exclusive(void *mds) in clear_exclusive() argument
20 clear_exclusive_cxl_commands(mds, exclusive_cmds); in clear_exclusive()
68 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_nvdimm_probe() local
73 set_exclusive_cxl_commands(mds, exclusive_cmds); in cxl_nvdimm_probe()
74 rc = devm_add_action_or_reset(dev, clear_exclusive, mds); in cxl_nvdimm_probe()
103 static int cxl_pmem_get_config_size(struct cxl_memdev_state *mds, in cxl_pmem_get_config_size() argument
111 .config_size = mds->lsa_size, in cxl_pmem_get_config_size()
113 mds->payload_size - sizeof(struct cxl_mbox_set_lsa), in cxl_pmem_get_config_size()
119 static int cxl_pmem_get_config_data(struct cxl_memdev_state *mds, in cxl_pmem_get_config_data() argument
144 rc = cxl_internal_send_cmd(mds, &mbox_cmd); in cxl_pmem_get_config_data()
150 static int cxl_pmem_set_config_data(struct cxl_memdev_state *mds, in cxl_pmem_set_config_data() argument
180 rc = cxl_internal_send_cmd(mds, &mbox_cmd); in cxl_pmem_set_config_data()
198 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_pmem_nvdimm_ctl() local
205 return cxl_pmem_get_config_size(mds, buf, buf_len); in cxl_pmem_nvdimm_ctl()
207 return cxl_pmem_get_config_data(mds, buf, buf_len); in cxl_pmem_nvdimm_ctl()
209 return cxl_pmem_set_config_data(mds, buf, buf_len); in cxl_pmem_nvdimm_ctl()