Home
last modified time | relevance | path

Searched refs:drc_index (Results 1 – 12 of 12) sorted by relevance

/arch/powerpc/platforms/pseries/
Dpmem.c31 static ssize_t pmem_drc_add_node(u32 drc_index) in pmem_drc_add_node() argument
36 pr_debug("Attempting to add pmem node, drc index: %x\n", drc_index); in pmem_drc_add_node()
38 rc = dlpar_acquire_drc(drc_index); in pmem_drc_add_node()
41 rc, drc_index); in pmem_drc_add_node()
45 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); in pmem_drc_add_node()
47 pr_err("configure-connector failed for drc %x\n", drc_index); in pmem_drc_add_node()
48 dlpar_release_drc(drc_index); in pmem_drc_add_node()
56 dn, rc, drc_index); in pmem_drc_add_node()
58 if (dlpar_release_drc(drc_index)) in pmem_drc_add_node()
64 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_add_node()
[all …]
Dhotplug-memory.c168 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in update_lmb_associativity_index()
221 static int get_lmb_range(u32 drc_index, int n_lmbs, in get_lmb_range() argument
230 if (lmb->drc_index == drc_index) { in get_lmb_range()
453 lmb->drc_index); in dlpar_memory_remove_by_count()
464 dlpar_release_drc(lmb->drc_index); in dlpar_memory_remove_by_count()
476 static int dlpar_memory_remove_by_index(u32 drc_index) in dlpar_memory_remove_by_index() argument
482 pr_info("Attempting to hot-remove LMB, drc index %x\n", drc_index); in dlpar_memory_remove_by_index()
486 if (lmb->drc_index == drc_index) { in dlpar_memory_remove_by_index()
490 dlpar_release_drc(lmb->drc_index); in dlpar_memory_remove_by_index()
508 static int dlpar_memory_readd_by_index(u32 drc_index) in dlpar_memory_readd_by_index() argument
[all …]
Dhotplug-cpu.c384 static bool dlpar_cpu_exists(struct device_node *parent, u32 drc_index) in dlpar_cpu_exists() argument
400 if (my_drc_index == drc_index) { in dlpar_cpu_exists()
410 static bool valid_cpu_drc_index(struct device_node *parent, u32 drc_index) in valid_cpu_drc_index() argument
424 if (drc == drc_index) in valid_cpu_drc_index()
431 static ssize_t dlpar_cpu_add(u32 drc_index) in dlpar_cpu_add() argument
436 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index); in dlpar_cpu_add()
444 if (dlpar_cpu_exists(parent, drc_index)) { in dlpar_cpu_add()
446 pr_warn("CPU with drc index %x already exists\n", drc_index); in dlpar_cpu_add()
450 if (!valid_cpu_drc_index(parent, drc_index)) { in dlpar_cpu_add()
452 pr_warn("Cannot find CPU (drc index %x) to add.\n", drc_index); in dlpar_cpu_add()
[all …]
Ddlpar.c35 __be32 drc_index; member
133 struct device_node *dlpar_configure_connector(__be32 drc_index, in dlpar_configure_connector() argument
155 ccwa->drc_index = drc_index; in dlpar_configure_connector()
289 int dlpar_acquire_drc(u32 drc_index) in dlpar_acquire_drc() argument
294 DR_ENTITY_SENSE, drc_index); in dlpar_acquire_drc()
298 rc = rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_USABLE); in dlpar_acquire_drc()
302 rc = rtas_set_indicator(ISOLATION_STATE, drc_index, UNISOLATE); in dlpar_acquire_drc()
304 rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_UNUSABLE); in dlpar_acquire_drc()
311 int dlpar_release_drc(u32 drc_index) in dlpar_release_drc() argument
316 DR_ENTITY_SENSE, drc_index); in dlpar_release_drc()
[all …]
Dpapr_scm.c28 uint32_t drc_index; member
60 rc = plpar_hcall(H_SCM_BIND_MEM, ret, p->drc_index, 0, in drc_pmem_bind()
72 dev_dbg(&p->pdev->dev, "bound drc 0x%x to %pR\n", p->drc_index, &p->res); in drc_pmem_bind()
82 dev_dbg(&p->pdev->dev, "unbind drc 0x%x\n", p->drc_index); in drc_pmem_unbind()
89 p->drc_index, token); in drc_pmem_unbind()
106 p->drc_index); in drc_pmem_unbind()
120 p->drc_index, 0); in drc_pmem_query_n_bind()
127 p->drc_index, p->blocks - 1); in drc_pmem_query_n_bind()
136 dev_dbg(&p->pdev->dev, "bound drc 0x%x to %pR\n", p->drc_index, &p->res); in drc_pmem_query_n_bind()
172 ret = plpar_hcall(H_SCM_READ_METADATA, data, p->drc_index, in papr_scm_meta_get()
[all …]
Dmobility.c223 static int add_dt_node(__be32 parent_phandle, __be32 drc_index) in add_dt_node() argument
233 dn = dlpar_configure_connector(drc_index, parent_dn); in add_dt_node()
265 hp_elog._drc_u.drc_index = phandle; in prrn_update_node()
300 __be32 drc_index; in pseries_devicetree_update() local
314 drc_index = *data++; in pseries_devicetree_update()
315 add_dt_node(phandle, drc_index); in pseries_devicetree_update()
Dpseries_energy.c110 static int drc_index_to_cpu(u32 drc_index) in drc_index_to_cpu() argument
142 if (drc_index > drc.last_drc_index) { in drc_index_to_cpu()
146 cpu += ((drc_index - drc.drc_index_start) / in drc_index_to_cpu()
165 if (indexes[i + 1] == drc_index) in drc_index_to_cpu()
177 printk(KERN_WARNING "drc_index_to_cpu(%d) failed", drc_index); in drc_index_to_cpu()
Dpseries.h56 extern int dlpar_acquire_drc(u32 drc_index);
57 extern int dlpar_release_drc(u32 drc_index);
/arch/powerpc/mm/
Ddrmem.c80 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in drmem_update_dt_v1()
95 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in init_drconf_v2_cell()
198 lmb->drc_index = of_read_number(p++, 1); in read_drconf_v1_cell()
231 dr_cell->drc_index = of_read_number(p++, 1); in read_drconf_v2_cell()
256 lmb.drc_index = dr_cell.drc_index; in __walk_drmem_v2_lmbs()
257 dr_cell.drc_index++; in __walk_drmem_v2_lmbs()
408 lmb->drc_index = dr_cell.drc_index; in init_drmem_v2_lmbs()
409 dr_cell.drc_index++; in init_drmem_v2_lmbs()
/arch/powerpc/include/asm/
Ddrmem.h13 u32 drc_index; member
46 __be32 drc_index; member
60 u32 drc_index; member
Dio_event_irq.h42 uint32_t drc_index; /* 0x04 DRC Index */ member
Drtas.h319 __be32 drc_index; member