Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dpmem.c30 static ssize_t pmem_drc_add_node(u32 drc_index) in pmem_drc_add_node() argument
35 pr_debug("Attempting to add pmem node, drc index: %x\n", drc_index); in pmem_drc_add_node()
37 rc = dlpar_acquire_drc(drc_index); in pmem_drc_add_node()
40 rc, drc_index); in pmem_drc_add_node()
44 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); in pmem_drc_add_node()
46 pr_err("configure-connector failed for drc %x\n", drc_index); in pmem_drc_add_node()
47 dlpar_release_drc(drc_index); in pmem_drc_add_node()
55 dn, rc, drc_index); in pmem_drc_add_node()
57 if (dlpar_release_drc(drc_index)) in pmem_drc_add_node()
63 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_add_node()
[all …]
Dhotplug-cpu.c331 static bool dlpar_cpu_exists(struct device_node *parent, u32 drc_index) in dlpar_cpu_exists() argument
347 if (my_drc_index == drc_index) { in dlpar_cpu_exists()
357 static bool drc_info_valid_index(struct device_node *parent, u32 drc_index) in drc_info_valid_index() argument
384 if (drc_index > drc.last_drc_index) in drc_info_valid_index()
389 if (drc_index == index) in drc_info_valid_index()
399 static bool valid_cpu_drc_index(struct device_node *parent, u32 drc_index) in valid_cpu_drc_index() argument
405 return drc_info_valid_index(parent, drc_index); in valid_cpu_drc_index()
421 if (drc == drc_index) in valid_cpu_drc_index()
428 static ssize_t dlpar_cpu_add(u32 drc_index) in dlpar_cpu_add() argument
433 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index); in dlpar_cpu_add()
[all …]
Dhotplug-memory.c171 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in update_lmb_associativity_index()
224 static int get_lmb_range(u32 drc_index, int n_lmbs, in get_lmb_range() argument
233 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_remove_by_ic(u32 lmbs_to_remove, u32 drc_index) in dlpar_memory_remove_by_ic() argument
[all …]
Ddlpar.c35 __be32 drc_index; member
132 struct device_node *dlpar_configure_connector(__be32 drc_index, in dlpar_configure_connector() argument
154 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 …]
Dpapr_scm.c92 uint32_t drc_index; member
140 rc = plpar_hcall(H_SCM_BIND_MEM, ret, p->drc_index, 0, in drc_pmem_bind()
153 p->drc_index, (unsigned long)saved); in drc_pmem_bind()
163 dev_dbg(&p->pdev->dev, "unbind drc 0x%x\n", p->drc_index); in drc_pmem_unbind()
170 p->drc_index, token); in drc_pmem_unbind()
187 p->drc_index); in drc_pmem_unbind()
201 p->drc_index, 0); in drc_pmem_query_n_bind()
208 p->drc_index, p->blocks - 1); in drc_pmem_query_n_bind()
217 dev_dbg(&p->pdev->dev, "bound drc 0x%x to 0x%lx\n", p->drc_index, start_addr); in drc_pmem_query_n_bind()
272 rc = plpar_hcall(H_SCM_PERFORMANCE_STATS, ret, p->drc_index, in drc_pmem_query_stats()
[all …]
Dpseries_energy.c109 static int drc_index_to_cpu(u32 drc_index) in drc_index_to_cpu() argument
139 if (drc_index > drc.last_drc_index) { in drc_index_to_cpu()
143 cpu += ((drc_index - drc.drc_index_start) / in drc_index_to_cpu()
162 if (indexes[i + 1] == drc_index) in drc_index_to_cpu()
174 printk(KERN_WARNING "drc_index_to_cpu(%d) failed", drc_index); in drc_index_to_cpu()
Dmobility.c234 static int add_dt_node(struct device_node *parent_dn, __be32 drc_index) in add_dt_node() argument
239 dn = dlpar_configure_connector(drc_index, parent_dn); in add_dt_node()
296 __be32 drc_index; in pseries_devicetree_update() local
313 drc_index = *data++; in pseries_devicetree_update()
314 add_dt_node(np, drc_index); in pseries_devicetree_update()
Dpseries.h56 extern int dlpar_acquire_drc(u32 drc_index);
57 extern int dlpar_release_drc(u32 drc_index);
/kernel/linux/linux-5.10/arch/powerpc/mm/
Ddrmem.c82 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in drmem_update_dt_v1()
97 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in init_drconf_v2_cell()
201 lmb->drc_index = of_read_number(p++, 1); in read_drconf_v1_cell()
238 dr_cell->drc_index = of_read_number(p++, 1); in read_drconf_v2_cell()
262 lmb.drc_index = dr_cell.drc_index; in __walk_drmem_v2_lmbs()
263 dr_cell.drc_index++; in __walk_drmem_v2_lmbs()
433 lmb->drc_index = dr_cell.drc_index; in init_drmem_v2_lmbs()
434 dr_cell.drc_index++; in init_drmem_v2_lmbs()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Ddrmem.h15 u32 drc_index; member
59 __be32 drc_index; member
73 u32 drc_index; member
Dio_event_irq.h42 uint32_t drc_index; /* 0x04 DRC Index */ member
Drtas-types.h117 __be32 drc_index; member
/kernel/linux/linux-5.10/drivers/pci/hotplug/
Drpaphp_slot.c30 int drc_index, char *drc_name, int power_domain) in alloc_slot_struct() argument
41 slot->index = drc_index; in alloc_slot_struct()
Drpaphp.h95 struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_dom…