/Linux-v4.19/arch/powerpc/platforms/pseries/ |
D | hotplug-memory.c | 177 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in lookup_lmb_associativity_index() 218 lmb->drc_index); in dlpar_add_device_tree_lmb() 258 static int get_lmb_range(u32 drc_index, int n_lmbs, in get_lmb_range() argument 267 if (lmb->drc_index == drc_index) { in get_lmb_range() 487 lmb->drc_index); in dlpar_memory_remove_by_count() 498 dlpar_release_drc(lmb->drc_index); in dlpar_memory_remove_by_count() 510 static int dlpar_memory_remove_by_index(u32 drc_index) in dlpar_memory_remove_by_index() argument 516 pr_info("Attempting to hot-remove LMB, drc index %x\n", drc_index); in dlpar_memory_remove_by_index() 520 if (lmb->drc_index == drc_index) { in dlpar_memory_remove_by_index() 524 dlpar_release_drc(lmb->drc_index); in dlpar_memory_remove_by_index() [all …]
|
D | hotplug-cpu.c | 388 static bool dlpar_cpu_exists(struct device_node *parent, u32 drc_index) in dlpar_cpu_exists() argument 404 if (my_drc_index == drc_index) { in dlpar_cpu_exists() 414 static bool valid_cpu_drc_index(struct device_node *parent, u32 drc_index) in valid_cpu_drc_index() argument 428 if (drc == drc_index) in valid_cpu_drc_index() 435 static ssize_t dlpar_cpu_add(u32 drc_index) in dlpar_cpu_add() argument 440 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index); in dlpar_cpu_add() 448 if (dlpar_cpu_exists(parent, drc_index)) { in dlpar_cpu_add() 450 pr_warn("CPU with drc index %x already exists\n", drc_index); in dlpar_cpu_add() 454 if (!valid_cpu_drc_index(parent, drc_index)) { in dlpar_cpu_add() 456 pr_warn("Cannot find CPU (drc index %x) to add.\n", drc_index); in dlpar_cpu_add() [all …]
|
D | dlpar.c | 40 __be32 drc_index; member 134 struct device_node *dlpar_configure_connector(__be32 drc_index, in dlpar_configure_connector() argument 156 ccwa->drc_index = drc_index; in dlpar_configure_connector() 288 int dlpar_acquire_drc(u32 drc_index) in dlpar_acquire_drc() argument 293 DR_ENTITY_SENSE, drc_index); in dlpar_acquire_drc() 297 rc = rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_USABLE); in dlpar_acquire_drc() 301 rc = rtas_set_indicator(ISOLATION_STATE, drc_index, UNISOLATE); in dlpar_acquire_drc() 303 rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_UNUSABLE); in dlpar_acquire_drc() 310 int dlpar_release_drc(u32 drc_index) in dlpar_release_drc() argument 315 DR_ENTITY_SENSE, drc_index); in dlpar_release_drc() [all …]
|
D | mobility.c | 219 static int add_dt_node(__be32 parent_phandle, __be32 drc_index) in add_dt_node() argument 229 dn = dlpar_configure_connector(drc_index, parent_dn); in add_dt_node() 265 hp_elog->_drc_u.drc_index = phandle; in prrn_update_node() 302 __be32 drc_index; in pseries_devicetree_update() local 316 drc_index = *data++; in pseries_devicetree_update() 317 add_dt_node(phandle, drc_index); in pseries_devicetree_update()
|
D | pseries_energy.c | 104 static int drc_index_to_cpu(u32 drc_index) in drc_index_to_cpu() argument 136 if (drc_index > drc.last_drc_index) { in drc_index_to_cpu() 140 cpu += ((drc_index - drc.drc_index_start) / in drc_index_to_cpu() 159 if (indexes[i + 1] == drc_index) in drc_index_to_cpu() 171 printk(KERN_WARNING "drc_index_to_cpu(%d) failed", drc_index); in drc_index_to_cpu()
|
D | pseries.h | 59 extern int dlpar_acquire_drc(u32 drc_index); 60 extern int dlpar_release_drc(u32 drc_index);
|
/Linux-v4.19/arch/powerpc/mm/ |
D | drmem.c | 84 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in drmem_update_dt_v1() 99 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in init_drconf_v2_cell() 202 lmb->drc_index = of_read_number(p++, 1); in read_drconf_v1_cell() 235 dr_cell->drc_index = of_read_number(p++, 1); in read_drconf_v2_cell() 260 lmb.drc_index = dr_cell.drc_index; in __walk_drmem_v2_lmbs() 261 dr_cell.drc_index++; in __walk_drmem_v2_lmbs() 410 lmb->drc_index = dr_cell.drc_index; in init_drmem_v2_lmbs() 411 dr_cell.drc_index++; in init_drmem_v2_lmbs()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | drmem.h | 17 u32 drc_index; member 47 __be32 drc_index; member 61 u32 drc_index; member
|
D | io_event_irq.h | 46 uint32_t drc_index; /* 0x04 DRC Index */ member
|
D | rtas.h | 308 __be32 drc_index; member
|
/Linux-v4.19/drivers/pci/hotplug/ |
D | rpaphp_slot.c | 31 int drc_index, char *drc_name, int power_domain) in alloc_slot_struct() argument 49 slot->index = drc_index; in alloc_slot_struct()
|
D | rpaphp.h | 89 struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_dom…
|
/Linux-v4.19/drivers/misc/cxl/ |
D | flash.c | 178 __be32 *data, drc_index, phandle; in update_devicetree() local 216 drc_index = *data++; in update_devicetree()
|