Home
last modified time | relevance | path

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

/Linux-v6.1/arch/powerpc/platforms/pseries/
Dpmem.c29 static ssize_t pmem_drc_add_node(u32 drc_index) in pmem_drc_add_node() argument
34 pr_debug("Attempting to add pmem node, drc index: %x\n", drc_index); in pmem_drc_add_node()
36 rc = dlpar_acquire_drc(drc_index); in pmem_drc_add_node()
39 rc, drc_index); in pmem_drc_add_node()
43 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); in pmem_drc_add_node()
45 pr_err("configure-connector failed for drc %x\n", drc_index); in pmem_drc_add_node()
46 dlpar_release_drc(drc_index); in pmem_drc_add_node()
54 dn, rc, drc_index); in pmem_drc_add_node()
56 if (dlpar_release_drc(drc_index)) in pmem_drc_add_node()
62 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_add_node()
[all …]
Dhotplug-memory.c170 lmb_node = dlpar_configure_connector(cpu_to_be32(lmb->drc_index), in update_lmb_associativity_index()
223 static int get_lmb_range(u32 drc_index, int n_lmbs, in get_lmb_range() argument
232 if (lmb->drc_index == drc_index) { in get_lmb_range()
452 lmb->drc_index); in dlpar_memory_remove_by_count()
467 dlpar_release_drc(lmb->drc_index); in dlpar_memory_remove_by_count()
483 static int dlpar_memory_remove_by_index(u32 drc_index) in dlpar_memory_remove_by_index() argument
489 pr_debug("Attempting to hot-remove LMB, drc index %x\n", drc_index); in dlpar_memory_remove_by_index()
493 if (lmb->drc_index == drc_index) { in dlpar_memory_remove_by_index()
497 dlpar_release_drc(lmb->drc_index); in dlpar_memory_remove_by_index()
515 static int dlpar_memory_remove_by_ic(u32 lmbs_to_remove, u32 drc_index) in dlpar_memory_remove_by_ic() argument
[all …]
Dhotplug-cpu.c422 static bool dlpar_cpu_exists(struct device_node *parent, u32 drc_index) in dlpar_cpu_exists() argument
438 if (my_drc_index == drc_index) { in dlpar_cpu_exists()
448 static bool drc_info_valid_index(struct device_node *parent, u32 drc_index) in drc_info_valid_index() argument
475 if (drc_index > drc.last_drc_index) in drc_info_valid_index()
480 if (drc_index == index) in drc_info_valid_index()
490 static bool valid_cpu_drc_index(struct device_node *parent, u32 drc_index) in valid_cpu_drc_index() argument
496 return drc_info_valid_index(parent, drc_index); in valid_cpu_drc_index()
512 if (drc == drc_index) in valid_cpu_drc_index()
540 static ssize_t dlpar_cpu_add(u32 drc_index) in dlpar_cpu_add() argument
545 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index); in dlpar_cpu_add()
[all …]
Ddlpar.c34 __be32 drc_index; member
131 struct device_node *dlpar_configure_connector(__be32 drc_index, in dlpar_configure_connector() argument
153 ccwa->drc_index = drc_index; in dlpar_configure_connector()
287 int dlpar_acquire_drc(u32 drc_index) in dlpar_acquire_drc() argument
291 rc = rtas_get_sensor(DR_ENTITY_SENSE, drc_index, &dr_status); in dlpar_acquire_drc()
295 rc = rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_USABLE); in dlpar_acquire_drc()
299 rc = rtas_set_indicator(ISOLATION_STATE, drc_index, UNISOLATE); in dlpar_acquire_drc()
301 rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_UNUSABLE); in dlpar_acquire_drc()
308 int dlpar_release_drc(u32 drc_index) in dlpar_release_drc() argument
312 rc = rtas_get_sensor(DR_ENTITY_SENSE, drc_index, &dr_status); in dlpar_release_drc()
[all …]
Dpapr_scm.c93 uint32_t drc_index; member
136 dev_dbg(&p->pdev->dev, "flush drc 0x%x", p->drc_index); in papr_scm_pmem_flush()
139 rc = plpar_hcall(H_SCM_FLUSH, ret_buf, p->drc_index, token); in papr_scm_pmem_flush()
155 dev_dbg(&p->pdev->dev, "flush drc 0x%x complete", p->drc_index); in papr_scm_pmem_flush()
180 rc = plpar_hcall(H_SCM_BIND_MEM, ret, p->drc_index, 0, in drc_pmem_bind()
193 p->drc_index, (unsigned long)saved); in drc_pmem_bind()
203 dev_dbg(&p->pdev->dev, "unbind drc 0x%x\n", p->drc_index); in drc_pmem_unbind()
210 p->drc_index, token); in drc_pmem_unbind()
227 p->drc_index); in drc_pmem_unbind()
241 p->drc_index, 0); in drc_pmem_query_n_bind()
[all …]
Dpseries.h55 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);
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.c271 static int add_dt_node(struct device_node *parent_dn, __be32 drc_index) in add_dt_node() argument
276 dn = dlpar_configure_connector(drc_index, parent_dn); in add_dt_node()
333 __be32 drc_index; in pseries_devicetree_update() local
350 drc_index = *data++; in pseries_devicetree_update()
351 add_dt_node(np, drc_index); in pseries_devicetree_update()
/Linux-v6.1/arch/powerpc/mm/
Ddrmem.c83 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in drmem_update_dt_v1()
98 dr_cell->drc_index = cpu_to_be32(lmb->drc_index); in init_drconf_v2_cell()
208 lmb->drc_index = of_read_number(p++, 1); in read_drconf_v1_cell()
245 dr_cell->drc_index = of_read_number(p++, 1); in read_drconf_v2_cell()
269 lmb.drc_index = dr_cell.drc_index; in __walk_drmem_v2_lmbs()
270 dr_cell.drc_index++; in __walk_drmem_v2_lmbs()
327 if (lmb->drc_index != updated_lmb->drc_index) in update_lmb()
479 lmb->drc_index = dr_cell.drc_index; in init_drmem_v2_lmbs()
480 dr_cell.drc_index++; in init_drmem_v2_lmbs()
/Linux-v6.1/arch/powerpc/include/asm/
Ddrmem.h15 u32 drc_index; member
62 __be32 drc_index; member
76 u32 drc_index; member
Dio_event_irq.h42 uint32_t drc_index; /* 0x04 DRC Index */ member
Drtas-types.h109 __be32 drc_index; member
/Linux-v6.1/drivers/pci/hotplug/
Drpaphp_slot.c31 int drc_index, char *drc_name, int power_domain) in alloc_slot_struct() argument
42 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…