Lines Matching refs:pdc_result
77 extern unsigned long pdc_result[NUM_PDC_RESULT];
162 __pa(pdc_result), 0); in set_firmware_width_unlocked()
163 convert_to_wide(pdc_result); in set_firmware_width_unlocked()
164 if (pdc_result[0] != NARROW_FIRMWARE) in set_firmware_width_unlocked()
248 retval = mem_pdc_call(PDC_INSTR, 0UL, __pa(pdc_result)); in pdc_instr()
249 convert_to_wide(pdc_result); in pdc_instr()
250 *instr = pdc_result[0]; in pdc_instr()
270 memcpy(&pdc_result, chassis_info, sizeof(*chassis_info)); in pdc_chassis_info()
273 __pa(pdc_result), __pa(pdc_result2), len); in pdc_chassis_info()
274 memcpy(chassis_info, pdc_result, sizeof(*chassis_info)); in pdc_chassis_info()
364 __pa(pdc_result)); in pdc_pat_get_PDC_entrypoint()
365 *pdc_entry = pdc_result[0]; in pdc_pat_get_PDC_entrypoint()
380 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_WARN, __pa(pdc_result)); in pdc_chassis_warn()
381 *warn = pdc_result[0]; in pdc_chassis_warn()
391 ret = mem_pdc_call(PDC_COPROC, PDC_COPROC_CFG, __pa(pdc_result)); in pdc_coproc_cfg_unlocked()
392 convert_to_wide(pdc_result); in pdc_coproc_cfg_unlocked()
393 pdc_coproc_info->ccr_functional = pdc_result[0]; in pdc_coproc_cfg_unlocked()
394 pdc_coproc_info->ccr_present = pdc_result[1]; in pdc_coproc_cfg_unlocked()
395 pdc_coproc_info->revision = pdc_result[17]; in pdc_coproc_cfg_unlocked()
396 pdc_coproc_info->model = pdc_result[18]; in pdc_coproc_cfg_unlocked()
438 retval = mem_pdc_call(PDC_IODC, PDC_IODC_READ, __pa(pdc_result), hpa, in pdc_iodc_read()
440 convert_to_wide(pdc_result); in pdc_iodc_read()
441 *actcnt = pdc_result[0]; in pdc_iodc_read()
465 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_MODULE, __pa(pdc_result), in pdc_system_map_find_mods()
467 convert_to_wide(pdc_result); in pdc_system_map_find_mods()
468 memcpy(pdc_mod_info, pdc_result, sizeof(*pdc_mod_info)); in pdc_system_map_find_mods()
492 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_ADDRESS, __pa(pdc_result), in pdc_system_map_find_addrs()
494 convert_to_wide(pdc_result); in pdc_system_map_find_addrs()
495 memcpy(pdc_addr_info, pdc_result, sizeof(*pdc_addr_info)); in pdc_system_map_find_addrs()
514 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_INFO, __pa(pdc_result), 0); in pdc_model_info()
515 convert_to_wide(pdc_result); in pdc_model_info()
516 memcpy(model, pdc_result, sizeof(*model)); in pdc_model_info()
536 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_SYSMODEL, __pa(pdc_result), in pdc_model_sysmodel()
538 convert_to_wide(pdc_result); in pdc_model_sysmodel()
541 name[pdc_result[0]] = '\0'; /* add trailing '\0' */ in pdc_model_sysmodel()
566 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_VERSIONS, __pa(pdc_result), id); in pdc_model_versions()
567 convert_to_wide(pdc_result); in pdc_model_versions()
568 *versions = pdc_result[0]; in pdc_model_versions()
587 pdc_result[0] = 0; /* preset zero (call may not be implemented!) */ in pdc_model_cpuid()
588 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CPU_ID, __pa(pdc_result), 0); in pdc_model_cpuid()
589 convert_to_wide(pdc_result); in pdc_model_cpuid()
590 *cpu_id = pdc_result[0]; in pdc_model_cpuid()
609 pdc_result[0] = 0; /* preset zero (call may not be implemented!) */ in pdc_model_capabilities()
610 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CAPABILITIES, __pa(pdc_result), 0); in pdc_model_capabilities()
611 convert_to_wide(pdc_result); in pdc_model_capabilities()
613 *capabilities = pdc_result[0]; in pdc_model_capabilities()
640 convert_to_wide(pdc_result); in pdc_model_platform_info()
658 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_INFO, __pa(pdc_result), 0); in pdc_cache_info()
659 convert_to_wide(pdc_result); in pdc_cache_info()
660 memcpy(cache_info, pdc_result, sizeof(*cache_info)); in pdc_cache_info()
678 pdc_result[0] = 0; in pdc_spaceid_bits()
679 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_RET_SPID, __pa(pdc_result), 0); in pdc_spaceid_bits()
680 convert_to_wide(pdc_result); in pdc_spaceid_bits()
681 *space_bits = pdc_result[0]; in pdc_spaceid_bits()
700 retval = mem_pdc_call(PDC_BLOCK_TLB, PDC_BTLB_INFO, __pa(pdc_result), 0); in pdc_btlb_info()
701 memcpy(btlb, pdc_result, sizeof(*btlb)); in pdc_btlb_info()
730 retval = mem_pdc_call(PDC_MEM_MAP, PDC_MEM_MAP_HPA, __pa(pdc_result), in pdc_mem_map_hpa()
732 memcpy(address, pdc_result, sizeof(*address)); in pdc_mem_map_hpa()
753 __pa(pdc_result), hpa); in pdc_lan_station_id()
758 memcpy(lan_addr, pdc_result, PDC_LAN_STATION_ID_SIZE); in pdc_lan_station_id()
783 __pa(pdc_result), count); in pdc_stable_read()
784 convert_to_wide(pdc_result); in pdc_stable_read()
785 memcpy(memaddr, pdc_result, count); in pdc_stable_read()
808 memcpy(pdc_result, memaddr, count); in pdc_stable_write()
809 convert_to_wide(pdc_result); in pdc_stable_write()
811 __pa(pdc_result), count); in pdc_stable_write()
833 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_RETURN_SIZE, __pa(pdc_result)); in pdc_stable_get_size()
834 *size = pdc_result[0]; in pdc_stable_get_size()
905 __pa(pdc_result), __pa(hwpath)); in pdc_get_initiator()
909 if (pdc_result[0] < 16) { in pdc_get_initiator()
910 initiator->host_id = pdc_result[0]; in pdc_get_initiator()
919 switch (pdc_result[1]) { in pdc_get_initiator()
930 initiator->width = pdc_result[4]; in pdc_get_initiator()
931 initiator->mode = pdc_result[5]; in pdc_get_initiator()
961 __pa(pdc_result), hpa); in pdc_pci_irt_size()
962 convert_to_wide(pdc_result); in pdc_pci_irt_size()
963 *num_entries = pdc_result[0]; in pdc_pci_irt_size()
986 pdc_result[0] = num_entries; in pdc_pci_irt()
988 __pa(pdc_result), hpa, __pa(tbl)); in pdc_pci_irt()
1010 pdc_result[0] = 0;
1011 pdc_result[1] = 0;
1013 __pa(pdc_result), hpa, cfg_addr&~3UL, 4UL);
1016 return retval ? ~0 : (unsigned int) pdc_result[0];
1034 pdc_result[0] = 0;
1036 __pa(pdc_result), hpa,
1056 retval = mem_pdc_call(PDC_TOD, PDC_TOD_READ, __pa(pdc_result), 0); in pdc_tod_read()
1057 convert_to_wide(pdc_result); in pdc_tod_read()
1058 memcpy(tod, pdc_result, sizeof(*tod)); in pdc_tod_read()
1071 retval = mem_pdc_call(PDC_MEM, PDC_MEM_MEMINFO, __pa(pdc_result), 0); in pdc_mem_pdt_info()
1072 convert_to_wide(pdc_result); in pdc_mem_pdt_info()
1073 memcpy(rinfo, pdc_result, sizeof(*rinfo)); in pdc_mem_pdt_info()
1086 retval = mem_pdc_call(PDC_MEM, PDC_MEM_READ_PDT, __pa(pdc_result), in pdc_mem_pdt_read_entries()
1089 convert_to_wide(pdc_result); in pdc_mem_pdt_read_entries()
1090 memcpy(pret, pdc_result, sizeof(*pret)); in pdc_mem_pdt_read_entries()
1116 retval = mem_pdc_call(PDC_PIM, PDC_PIM_TOC, __pa(pdc_result), in pdc_pim_toc11()
1132 retval = mem_pdc_call(PDC_PIM, PDC_PIM_TOC, __pa(pdc_result), in pdc_pim_toc20()
1166 retval = mem_pdc_call(PDC_MEM, PDC_MEM_TABLE, __pa(pdc_result), __pa(pdc_result2), entries); in pdc_mem_mem_table()
1167 convert_to_wide(pdc_result); in pdc_mem_mem_table()
1168 memcpy(r_addr, pdc_result, sizeof(*r_addr)); in pdc_mem_mem_table()
1224 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_INFO, __pa(pdc_result), 0); in pdc_soft_power_info()
1226 convert_to_wide(pdc_result); in pdc_soft_power_info()
1227 *power_reg = f_extend(pdc_result[0]); in pdc_soft_power_info()
1251 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_ENABLE, __pa(pdc_result), sw_control); in pdc_soft_power_button()
1330 __pa(pdc_result), 0, __pa(iodc_dbuf), i, 0); in pdc_iodc_print()
1358 __pa(pdc_result), 0, __pa(iodc_dbuf), 1, 0); in pdc_iodc_getc()
1362 status = *(int *)&pdc_result; in pdc_iodc_getc()
1400 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_GET_NUMBER, __pa(pdc_result)); in pdc_pat_cell_get_number()
1401 memcpy(cell_info, pdc_result, sizeof(*cell_info)); in pdc_pat_cell_get_number()
1426 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_MODULE, __pa(pdc_result), in pdc_pat_cell_module()
1429 *actcnt = pdc_result[0]; in pdc_pat_cell_module()
1456 __pa(pdc_result), __pa(&result), *actcnt, in pdc_pat_cell_info()
1459 *actcnt = pdc_result[0]; in pdc_pat_cell_info()
1481 __pa(&pdc_result), hpa); in pdc_pat_cpu_get_number()
1482 memcpy(cpu_info, pdc_result, sizeof(*cpu_info)); in pdc_pat_cpu_get_number()
1503 __pa(pdc_result), cell_num); in pdc_pat_get_irt_size()
1504 *num_entries = pdc_result[0]; in pdc_pat_get_irt_size()
1545 retval = mem_pdc_call(PDC_PAT_PD, PDC_PAT_PD_GET_ADDR_MAP, __pa(pdc_result), in pdc_pat_pd_get_addr_map()
1547 *actual_len = pdc_result[0]; in pdc_pat_pd_get_addr_map()
1569 __pa(pdc_result)); in pdc_pat_pd_get_pdc_revisions()
1571 *legacy_rev = pdc_result[0]; in pdc_pat_pd_get_pdc_revisions()
1572 *pat_rev = pdc_result[1]; in pdc_pat_pd_get_pdc_revisions()
1573 *pdc_cap = pdc_result[2]; in pdc_pat_pd_get_pdc_revisions()
1595 __pa(pdc_result), pci_addr, pci_size); in pdc_pat_io_pci_cfg_read()
1597 case 1: *(u8 *) mem_addr = (u8) pdc_result[0]; break; in pdc_pat_io_pci_cfg_read()
1598 case 2: *(u16 *)mem_addr = (u16) pdc_result[0]; break; in pdc_pat_io_pci_cfg_read()
1599 case 4: *(u32 *)mem_addr = (u32) pdc_result[0]; break; in pdc_pat_io_pci_cfg_read()
1639 __pa(&pdc_result)); in pdc_pat_mem_pdt_info()
1641 memcpy(rinfo, &pdc_result, sizeof(*rinfo)); in pdc_pat_mem_pdt_info()
1662 __pa(&pdc_result), cell); in pdc_pat_mem_pdt_cell_info()
1664 memcpy(rinfo, &pdc_result, sizeof(*rinfo)); in pdc_pat_mem_pdt_cell_info()
1686 __pa(&pdc_result), parisc_cell_num, in pdc_pat_mem_read_cell_pdt()
1691 entries = min(pdc_result[0], max_entries); in pdc_pat_mem_read_cell_pdt()
1697 WARN_ON(retval == PDC_OK && pdc_result[0] > max_entries); in pdc_pat_mem_read_cell_pdt()
1718 __pa(&pdc_result), __pa(pdt_entries_ptr), in pdc_pat_mem_read_pd_pdt()
1722 entries = min(pdc_result[0], count); in pdc_pat_mem_read_pd_pdt()
1747 __pa(&pdc_result), phys_addr); in pdc_pat_mem_get_dimm_phys_location()
1750 memcpy(pret, &pdc_result, sizeof(*pret)); in pdc_pat_mem_get_dimm_phys_location()