Searched refs:set_lsa (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/cxl/ |
D | pmem.c | 154 struct cxl_mbox_set_lsa *set_lsa; in cxl_pmem_set_config_data() local 165 set_lsa = in cxl_pmem_set_config_data() 166 kvzalloc(struct_size(set_lsa, data, cmd->in_length), GFP_KERNEL); in cxl_pmem_set_config_data() 167 if (!set_lsa) in cxl_pmem_set_config_data() 170 *set_lsa = (struct cxl_mbox_set_lsa) { in cxl_pmem_set_config_data() 173 memcpy(set_lsa->data, cmd->in_buf, cmd->in_length); in cxl_pmem_set_config_data() 176 .payload_in = set_lsa, in cxl_pmem_set_config_data() 177 .size_in = struct_size(set_lsa, data, cmd->in_length), in cxl_pmem_set_config_data() 187 kvfree(set_lsa); in cxl_pmem_set_config_data()
|
/Linux-v6.6/tools/testing/cxl/test/ |
D | mem.c | 954 struct cxl_mbox_set_lsa *set_lsa = cmd->payload_in; in mock_set_lsa() local 958 if (sizeof(*set_lsa) > cmd->size_in) in mock_set_lsa() 960 offset = le32_to_cpu(set_lsa->offset); in mock_set_lsa() 961 length = cmd->size_in - sizeof(*set_lsa); in mock_set_lsa() 965 memcpy(lsa + offset, &set_lsa->data[0], length); in mock_set_lsa()
|