Searched refs:cxlm (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/cxl/core/ |
A D | mbox.c | 170 rc = cxlm->mbox_send(cxlm, &mbox_cmd); in cxl_mem_mbox_send_cmd() 420 rc = cxlm->mbox_send(cxlm, &mbox_cmd); in handle_mailbox_cmd_from_user() 450 struct cxl_mem *cxlm = cxlmd->cxlm; in cxl_send_cmd() local 706 cxlm->total_bytes, cxlm->volatile_only_bytes, in cxl_mem_identify() 722 cxlm->ram_range.end = cxlm->volatile_only_bytes - 1; in cxl_mem_create_range_info() 723 cxlm->pmem_range.start = cxlm->volatile_only_bytes; in cxl_mem_create_range_info() 724 cxlm->pmem_range.end = cxlm->volatile_only_bytes + in cxl_mem_create_range_info() 745 cxlm->ram_range.end = cxlm->active_volatile_bytes - 1; in cxl_mem_create_range_info() 747 cxlm->pmem_range.start = cxlm->active_volatile_bytes; in cxl_mem_create_range_info() 759 cxlm = devm_kzalloc(dev, sizeof(*cxlm), GFP_KERNEL); in cxl_mem_create() [all …]
|
A D | memdev.c | 40 struct cxl_mem *cxlm = cxlmd->cxlm; in firmware_version_show() local 50 struct cxl_mem *cxlm = cxlmd->cxlm; in payload_max_show() local 60 struct cxl_mem *cxlm = cxlmd->cxlm; in label_storage_size_show() local 70 struct cxl_mem *cxlm = cxlmd->cxlm; in ram_size_show() local 83 struct cxl_mem *cxlm = cxlmd->cxlm; in pmem_size_show() local 149 bitmap_or(cxlm->exclusive_cmds, cxlm->exclusive_cmds, cmds, in set_exclusive_cxl_commands() 163 bitmap_andnot(cxlm->exclusive_cmds, cxlm->exclusive_cmds, cmds, in clear_exclusive_cxl_commands() 174 cxlmd->cxlm = NULL; in cxl_memdev_shutdown() 207 dev->parent = cxlm->dev; in cxl_memdev_alloc() 242 if (cxlmd->cxlm) in cxl_memdev_ioctl() [all …]
|
/linux/drivers/cxl/ |
A D | pci.c | 48 if (!cxl_doorbell_busy(cxlm)) in cxl_pci_mbox_wait_for_doorbell() 63 struct device *dev = cxlm->dev; in cxl_pci_mbox_timeout() 271 rc = cxl_pci_mbox_get(cxlm); in cxl_pci_mbox_send() 276 cxl_pci_mbox_put(cxlm); in cxl_pci_mbox_send() 286 cxlm->payload_size = in cxl_pci_setup_mailbox() 296 cxlm->payload_size = min_t(size_t, cxlm->payload_size, SZ_1M); in cxl_pci_setup_mailbox() 299 cxlm->payload_size); in cxl_pci_setup_mailbox() 304 cxlm->payload_size); in cxl_pci_setup_mailbox() 478 struct cxl_mem *cxlm; in cxl_pci_probe() local 493 if (IS_ERR(cxlm)) in cxl_pci_probe() [all …]
|
A D | pmem.c | 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() 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() 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() [all …]
|
A D | cxlmem.h | 42 struct cxl_mem *cxlm; member 51 struct cxl_memdev *devm_cxl_add_memdev(struct cxl_mem *cxlm); 145 int (*mbox_send)(struct cxl_mem *cxlm, struct cxl_mbox_cmd *cmd); 256 int cxl_mem_mbox_send_cmd(struct cxl_mem *cxlm, u16 opcode, void *in, 258 int cxl_mem_identify(struct cxl_mem *cxlm); 259 int cxl_mem_enumerate_cmds(struct cxl_mem *cxlm); 260 int cxl_mem_create_range_info(struct cxl_mem *cxlm); 262 void set_exclusive_cxl_commands(struct cxl_mem *cxlm, unsigned long *cmds); 263 void clear_exclusive_cxl_commands(struct cxl_mem *cxlm, unsigned long *cmds);
|
/linux/tools/testing/cxl/test/ |
A D | mem.c | 67 if (length > cxlm->payload_size) in mock_get_log() 169 rc = mock_get_log(cxlm, cmd); in cxl_mock_mbox_send() 172 rc = mock_id(cxlm, cmd); in cxl_mock_mbox_send() 175 rc = mock_get_lsa(cxlm, cmd); in cxl_mock_mbox_send() 178 rc = mock_set_lsa(cxlm, cmd); in cxl_mock_mbox_send() 199 struct cxl_mem *cxlm; in cxl_mock_mem_probe() local 211 cxlm = cxl_mem_create(dev); in cxl_mock_mem_probe() 212 if (IS_ERR(cxlm)) in cxl_mock_mem_probe() 213 return PTR_ERR(cxlm); in cxl_mock_mem_probe() 216 cxlm->payload_size = SZ_4K; in cxl_mock_mem_probe() [all …]
|
Completed in 11 milliseconds