Lines Matching refs:cxlm
22 static void clear_exclusive(void *cxlm) in clear_exclusive() argument
24 clear_exclusive_cxl_commands(cxlm, exclusive_cmds); in clear_exclusive()
37 struct cxl_mem *cxlm = cxlmd->cxlm; in cxl_nvdimm_probe() local
52 set_exclusive_cxl_commands(cxlm, exclusive_cmds); in cxl_nvdimm_probe()
53 rc = devm_add_action_or_reset(dev, clear_exclusive, cxlm); in cxl_nvdimm_probe()
83 static int cxl_pmem_get_config_size(struct cxl_mem *cxlm, in cxl_pmem_get_config_size() argument
91 .config_size = cxlm->lsa_size, in cxl_pmem_get_config_size()
92 .max_xfer = cxlm->payload_size, in cxl_pmem_get_config_size()
98 static int cxl_pmem_get_config_data(struct cxl_mem *cxlm, in cxl_pmem_get_config_data() argument
115 rc = cxl_mem_mbox_send_cmd(cxlm, CXL_MBOX_OP_GET_LSA, &get_lsa, in cxl_pmem_get_config_data()
123 static int cxl_pmem_set_config_data(struct cxl_mem *cxlm, in cxl_pmem_set_config_data() argument
147 rc = cxl_mem_mbox_send_cmd(cxlm, CXL_MBOX_OP_SET_LSA, set_lsa, in cxl_pmem_set_config_data()
167 struct cxl_mem *cxlm = cxlmd->cxlm; in cxl_pmem_nvdimm_ctl() local
174 return cxl_pmem_get_config_size(cxlm, buf, buf_len); in cxl_pmem_nvdimm_ctl()
176 return cxl_pmem_get_config_data(cxlm, buf, buf_len); in cxl_pmem_nvdimm_ctl()
178 return cxl_pmem_set_config_data(cxlm, buf, buf_len); in cxl_pmem_nvdimm_ctl()