Lines Matching refs:retval
213 int retval; in pdc_add_valid() local
217 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid()
220 return retval; in pdc_add_valid()
234 int retval; in pdc_chassis_info() local
240 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info()
246 return retval; in pdc_chassis_info()
258 int retval = 0; in pdc_pat_chassis_send_log() local
265 retval = mem_pdc_call(PDC_PAT_CHASSIS_LOG, PDC_PAT_CHASSIS_WRITE_LOG, __pa(&state), __pa(&data)); in pdc_pat_chassis_send_log()
268 return retval; in pdc_pat_chassis_send_log()
278 int retval = 0; in pdc_chassis_disp() local
282 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_DISP, disp); in pdc_chassis_disp()
285 return retval; in pdc_chassis_disp()
294 int retval = 0; in pdc_chassis_warn() local
298 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_WARN, __pa(pdc_result)); in pdc_chassis_warn()
302 return retval; in pdc_chassis_warn()
352 int retval; in pdc_iodc_read() local
356 retval = mem_pdc_call(PDC_IODC, PDC_IODC_READ, __pa(pdc_result), hpa, in pdc_iodc_read()
363 return retval; in pdc_iodc_read()
379 int retval; in pdc_system_map_find_mods() local
383 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_MODULE, __pa(pdc_result), in pdc_system_map_find_mods()
391 return retval; in pdc_system_map_find_mods()
406 int retval; in pdc_system_map_find_addrs() local
410 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_ADDRESS, __pa(pdc_result), in pdc_system_map_find_addrs()
417 return retval; in pdc_system_map_find_addrs()
428 int retval; in pdc_model_info() local
432 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_INFO, __pa(pdc_result), 0); in pdc_model_info()
437 return retval; in pdc_model_info()
450 int retval; in pdc_model_sysmodel() local
454 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_SYSMODEL, __pa(pdc_result), in pdc_model_sysmodel()
458 if (retval == PDC_OK) { in pdc_model_sysmodel()
465 return retval; in pdc_model_sysmodel()
480 int retval; in pdc_model_versions() local
484 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_VERSIONS, __pa(pdc_result), id); in pdc_model_versions()
489 return retval; in pdc_model_versions()
501 int retval; in pdc_model_cpuid() local
506 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CPU_ID, __pa(pdc_result), 0); in pdc_model_cpuid()
511 return retval; in pdc_model_cpuid()
523 int retval; in pdc_model_capabilities() local
528 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CAPABILITIES, __pa(pdc_result), 0); in pdc_model_capabilities()
533 return retval; in pdc_model_capabilities()
544 int retval; in pdc_cache_info() local
548 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_INFO, __pa(pdc_result), 0); in pdc_cache_info()
553 return retval; in pdc_cache_info()
564 int retval; in pdc_spaceid_bits() local
569 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_RET_SPID, __pa(pdc_result), 0); in pdc_spaceid_bits()
574 return retval; in pdc_spaceid_bits()
586 int retval; in pdc_btlb_info() local
590 retval = mem_pdc_call(PDC_BLOCK_TLB, PDC_BTLB_INFO, __pa(pdc_result), 0); in pdc_btlb_info()
594 if(retval < 0) { in pdc_btlb_info()
597 return retval; in pdc_btlb_info()
615 int retval; in pdc_mem_map_hpa() local
620 retval = mem_pdc_call(PDC_MEM_MAP, PDC_MEM_MAP_HPA, __pa(pdc_result), in pdc_mem_map_hpa()
625 return retval; in pdc_mem_map_hpa()
638 int retval; in pdc_lan_station_id() local
642 retval = mem_pdc_call(PDC_LAN_STATION_ID, PDC_LAN_STATION_ID_READ, in pdc_lan_station_id()
644 if (retval < 0) { in pdc_lan_station_id()
652 return retval; in pdc_lan_station_id()
668 int retval; in pdc_stable_read() local
672 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_READ, staddr, in pdc_stable_read()
678 return retval; in pdc_stable_read()
694 int retval; in pdc_stable_write() local
700 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_WRITE, staddr, in pdc_stable_write()
704 return retval; in pdc_stable_write()
719 int retval; in pdc_stable_get_size() local
723 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_RETURN_SIZE, __pa(pdc_result)); in pdc_stable_get_size()
727 return retval; in pdc_stable_get_size()
739 int retval; in pdc_stable_verify_contents() local
743 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_VERIFY_CONTENTS); in pdc_stable_verify_contents()
746 return retval; in pdc_stable_verify_contents()
758 int retval; in pdc_stable_initialize() local
762 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_INITIALIZE); in pdc_stable_initialize()
765 return retval; in pdc_stable_initialize()
785 int retval; in pdc_get_initiator() local
794 retval = mem_pdc_call(PDC_INITIATOR, PDC_GET_INITIATOR, in pdc_get_initiator()
796 if (retval < PDC_OK) in pdc_get_initiator()
830 return (retval >= PDC_OK); in pdc_get_initiator()
846 int retval; in pdc_pci_irt_size() local
850 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_GET_INT_TBL_SIZE, in pdc_pci_irt_size()
856 return retval; in pdc_pci_irt_size()
870 int retval; in pdc_pci_irt() local
877 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_GET_INT_TBL, in pdc_pci_irt()
881 return retval; in pdc_pci_irt()
896 int retval;
902 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_READ_CONFIG,
906 return retval ? ~0 : (unsigned int) pdc_result[0];
920 int retval;
925 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_WRITE_CONFIG,
930 return retval;
942 int retval; in pdc_tod_read() local
946 retval = mem_pdc_call(PDC_TOD, PDC_TOD_READ, __pa(pdc_result), 0); in pdc_tod_read()
951 return retval; in pdc_tod_read()
964 int retval; in pdc_tod_set() local
968 retval = mem_pdc_call(PDC_TOD, PDC_TOD_WRITE, sec, usec); in pdc_tod_set()
971 return retval; in pdc_tod_set()
979 int retval; in pdc_mem_mem_table() local
983 retval = mem_pdc_call(PDC_MEM, PDC_MEM_TABLE, __pa(pdc_result), __pa(pdc_result2), entries); in pdc_mem_mem_table()
989 return retval; in pdc_mem_mem_table()
999 int retval; in pdc_do_firm_test_reset() local
1003 retval = mem_pdc_call(PDC_BROADCAST_RESET, PDC_DO_FIRM_TEST_RESET, in pdc_do_firm_test_reset()
1007 return retval; in pdc_do_firm_test_reset()
1017 int retval; in pdc_do_reset() local
1021 retval = mem_pdc_call(PDC_BROADCAST_RESET, PDC_DO_RESET); in pdc_do_reset()
1024 return retval; in pdc_do_reset()
1035 int retval; in pdc_soft_power_info() local
1041 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_INFO, __pa(pdc_result), 0); in pdc_soft_power_info()
1042 if (retval == PDC_OK) { in pdc_soft_power_info()
1048 return retval; in pdc_soft_power_info()
1064 int retval; in pdc_soft_power_button() local
1068 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_ENABLE, __pa(pdc_result), sw_control); in pdc_soft_power_button()
1071 return retval; in pdc_soft_power_button()
1206 int retval; in pdc_sti_call() local
1210 retval = real32_call(func, flags, inptr, outputr, glob_cfg); in pdc_sti_call()
1213 return retval; in pdc_sti_call()
1227 int retval; in pdc_pat_cell_get_number() local
1231 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_GET_NUMBER, __pa(pdc_result)); in pdc_pat_cell_get_number()
1235 return retval; in pdc_pat_cell_get_number()
1252 int retval; in pdc_pat_cell_module() local
1257 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_MODULE, __pa(pdc_result), in pdc_pat_cell_module()
1259 if(!retval) { in pdc_pat_cell_module()
1265 return retval; in pdc_pat_cell_module()
1277 int retval; in pdc_pat_cpu_get_number() local
1281 retval = mem_pdc_call(PDC_PAT_CPU, PDC_PAT_CPU_GET_NUMBER, in pdc_pat_cpu_get_number()
1286 return retval; in pdc_pat_cpu_get_number()
1299 int retval; in pdc_pat_get_irt_size() local
1303 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_GET_PCI_ROUTING_TABLE_SIZE, in pdc_pat_get_irt_size()
1308 return retval; in pdc_pat_get_irt_size()
1320 int retval; in pdc_pat_get_irt() local
1324 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_GET_PCI_ROUTING_TABLE, in pdc_pat_get_irt()
1328 return retval; in pdc_pat_get_irt()
1342 int retval; in pdc_pat_pd_get_addr_map() local
1346 retval = mem_pdc_call(PDC_PAT_PD, PDC_PAT_PD_GET_ADDR_MAP, __pa(pdc_result), in pdc_pat_pd_get_addr_map()
1352 return retval; in pdc_pat_pd_get_addr_map()
1364 int retval; in pdc_pat_io_pci_cfg_read() local
1368 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_PCI_CONFIG_READ, in pdc_pat_io_pci_cfg_read()
1377 return retval; in pdc_pat_io_pci_cfg_read()
1390 int retval; in pdc_pat_io_pci_cfg_write() local
1394 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_PCI_CONFIG_WRITE, in pdc_pat_io_pci_cfg_write()
1398 return retval; in pdc_pat_io_pci_cfg_write()