/linux-master/arch/powerpc/platforms/pseries/ |
H A D | pmem.c | 29 static ssize_t pmem_drc_add_node(u32 drc_index) argument 34 pr_debug("Attempting to add pmem node, drc index: %x\n", drc_index); 36 rc = dlpar_acquire_drc(drc_index); 39 rc, drc_index); 43 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); 45 pr_err("configure-connector failed for drc %x\n", drc_index); 46 dlpar_release_drc(drc_index); 54 dn, rc, drc_index); 56 if (dlpar_release_drc(drc_index)) 62 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); 67 pmem_drc_remove_node(u32 drc_index) argument 107 u32 drc_index; local [all...] |
H A D | hotplug-memory.c | 123 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), 176 static int get_lmb_range(u32 drc_index, int n_lmbs, argument 185 if (lmb->drc_index == drc_index) { 212 pr_err("Failed memory block lookup for LMB 0x%x\n", lmb->drc_index); 390 lmb->drc_index); 405 dlpar_release_drc(lmb->drc_index); 421 static int dlpar_memory_remove_by_index(u32 drc_index) argument 427 pr_debug("Attempting to hot-remove LMB, drc index %x\n", drc_index); 431 if (lmb->drc_index 454 dlpar_memory_remove_by_ic(u32 lmbs_to_remove, u32 drc_index) argument 559 dlpar_memory_remove_by_index(u32 drc_index) argument 564 dlpar_memory_remove_by_ic(u32 lmbs_to_remove, u32 drc_index) argument 702 dlpar_memory_add_by_index(u32 drc_index) argument 736 dlpar_memory_add_by_ic(u32 lmbs_to_add, u32 drc_index) argument 811 u32 count, drc_index; local [all...] |
H A D | hotplug-cpu.c | 431 static bool dlpar_cpu_exists(struct device_node *parent, u32 drc_index) argument 447 if (my_drc_index == drc_index) { 457 static bool drc_info_valid_index(struct device_node *parent, u32 drc_index) argument 484 if (drc_index > drc.last_drc_index) 489 if (drc_index == index) 499 static bool valid_cpu_drc_index(struct device_node *parent, u32 drc_index) argument 505 return drc_info_valid_index(parent, drc_index); 521 if (drc == drc_index) 549 static ssize_t dlpar_cpu_add(u32 drc_index) argument 554 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index); 682 dlpar_cpu_remove(struct device_node *dn, u32 drc_index) argument 720 cpu_drc_index_to_dn(u32 drc_index) argument 738 dlpar_cpu_remove_by_index(u32 drc_index) argument 757 u32 drc_index; local 799 u32 drc_index; local 814 u32 drc_index; local [all...] |
H A D | dlpar.c | 35 __be32 drc_index; member in struct:cc_workarea 132 struct device_node *dlpar_configure_connector(__be32 drc_index, argument 154 ccwa->drc_index = drc_index; 278 int dlpar_acquire_drc(u32 drc_index) argument 282 rc = rtas_get_sensor(DR_ENTITY_SENSE, drc_index, &dr_status); 286 rc = rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_USABLE); 290 rc = rtas_set_indicator(ISOLATION_STATE, drc_index, UNISOLATE); 292 rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_UNUSABLE); 299 int dlpar_release_drc(u32 drc_index) argument 320 dlpar_unisolate_drc(u32 drc_index) argument [all...] |
H A D | pseries.h | 55 extern int dlpar_acquire_drc(u32 drc_index); 56 extern int dlpar_release_drc(u32 drc_index); 57 extern int dlpar_unisolate_drc(u32 drc_index);
|
H A D | pseries_energy.c | 34 /* Helper Routines to convert between drc_index to cpu numbers */ 81 * thread_index+1 will get the drc_index corresponding 109 static int drc_index_to_cpu(u32 drc_index) argument 139 if (drc_index > drc.last_drc_index) { 143 cpu += ((drc_index - drc.drc_index_start) / 159 * drc_index and get the core number 162 if (indexes[i + 1] == drc_index) 174 printk(KERN_WARNING "drc_index_to_cpu(%d) failed", drc_index);
|
H A D | papr_scm.c | 54 uint32_t drc_index; member in struct:papr_scm_priv 97 dev_dbg(&p->pdev->dev, "flush drc 0x%x", p->drc_index); 100 rc = plpar_hcall(H_SCM_FLUSH, ret_buf, p->drc_index, token); 116 dev_dbg(&p->pdev->dev, "flush drc 0x%x complete", p->drc_index); 141 rc = plpar_hcall(H_SCM_BIND_MEM, ret, p->drc_index, 0, 154 p->drc_index, (unsigned long)saved); 164 dev_dbg(&p->pdev->dev, "unbind drc 0x%x\n", p->drc_index); 171 p->drc_index, token); 188 p->drc_index); 202 p->drc_index, 1362 u32 drc_index, metadata_size; local [all...] |
H A D | mobility.c | 263 static int add_dt_node(struct device_node *parent_dn, __be32 drc_index) argument 268 dn = dlpar_configure_connector(drc_index, parent_dn); 325 __be32 drc_index; local 342 drc_index = *data++; 343 add_dt_node(np, drc_index);
|
/linux-master/arch/powerpc/include/asm/ |
H A D | drmem.h | 15 u32 drc_index; member in struct:drmem_lmb 62 __be32 drc_index; member in struct:of_drconf_cell_v1 76 u32 drc_index; member in struct:of_drconf_cell_v2
|
H A D | io_event_irq.h | 42 uint32_t drc_index; /* 0x04 DRC Index */ member in struct:pseries_io_event
|
H A D | rtas-types.h | 107 __be32 drc_index; member in union:pseries_hp_errorlog::__anon25
|
/linux-master/arch/powerpc/mm/ |
H A D | drmem.c | 83 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); 98 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); 208 lmb->drc_index = of_read_number(p++, 1); 245 dr_cell->drc_index = of_read_number(p++, 1); 269 lmb.drc_index = dr_cell.drc_index; 270 dr_cell.drc_index++; 327 if (lmb->drc_index ! [all...] |
/linux-master/drivers/pci/hotplug/ |
H A D | rpaphp_slot.c | 31 int drc_index, char *drc_name, int power_domain) 42 slot->index = drc_index; 30 alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_domain) argument
|
H A D | rpaphp.h | 95 struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_domain);
|