sclp_mem
struct sclp_mem *sclp_mem = container_of(kobj, struct sclp_mem, kobj);
return sysfs_emit(buf, "%u\n", READ_ONCE(sclp_mem->config));
struct sclp_mem *sclp_mem;
sclp_mem = container_of(kobj, struct sclp_mem, kobj);
addr = sclp_mem->id * block_size;
if (sclp_mem->config)
sclp_mem->memmap_on_memory ?
WRITE_ONCE(sclp_mem->config, 1);
if (!sclp_mem->config)
if (sclp_mem->early_shadow_mapped) {
sclp_mem->early_shadow_mapped = 0;
WRITE_ONCE(sclp_mem->config, 0);
struct sclp_mem *sclp_mem = container_of(kobj, struct sclp_mem, kobj);
return sysfs_emit(buf, "%u\n", READ_ONCE(sclp_mem->memmap_on_memory));
struct sclp_mem *sclp_mem;
sclp_mem = container_of(kobj, struct sclp_mem, kobj);
mem = find_memory_block(pfn_to_section_nr(PFN_DOWN(sclp_mem->id * block_size)));
WRITE_ONCE(sclp_mem->memmap_on_memory, value);
static int sclp_create_mem(struct sclp_mem *sclp_mem, struct kset *kset,
sclp_mem->memmap_on_memory = memmap_on_memory;
sclp_mem->config = config;
sclp_mem->early_shadow_mapped = config;
sclp_mem->id = id;
kobject_init(&sclp_mem->kobj, &ktype);
rc = kobject_add(&sclp_mem->kobj, &kset->kobj, "memory%d", id);
return sysfs_create_group(&sclp_mem->kobj, &sclp_mem_attr_group);
struct sclp_mem *sclp_mems;
static int __init sclp_create_standby_mems_merged(struct sclp_mem *sclp_mems,
static int __init sclp_create_standby_mems(struct sclp_mem *sclp_mems, struct kset *kset)
struct sclp_mem *sclp_mems;
sclp_mems = kzalloc_objs(struct sclp_mem, max_sclp_mems);
struct sclp_mem *sclp_mems;