Lines Matching refs:unit_address
135 long cxl_h_attach_process(u64 unit_address, in cxl_h_attach_process() argument
142 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_ATTACH_CA_PROCESS, unit_address, virt_to_phys(element)); in cxl_h_attach_process()
144 unit_address, virt_to_phys(element), rc); in cxl_h_attach_process()
145 trace_cxl_hcall_attach(unit_address, virt_to_phys(element), retbuf[0], retbuf[1], retbuf[2], rc); in cxl_h_attach_process()
178 long cxl_h_detach_process(u64 unit_address, u64 process_token) in cxl_h_detach_process() argument
183 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_DETACH_CA_PROCESS, unit_address, process_token); in cxl_h_detach_process()
184 _PRINT_MSG(rc, "cxl_h_detach_process(%#.16llx, 0x%.8llx): %li\n", unit_address, process_token, rc); in cxl_h_detach_process()
185 trace_cxl_hcall_detach(unit_address, process_token, rc); in cxl_h_detach_process()
209 static long cxl_h_control_function(u64 unit_address, u64 op, in cxl_h_control_function() argument
215 CXL_H9_WAIT_UNTIL_DONE(rc, retbuf, H_CONTROL_CA_FUNCTION, unit_address, op, p1, p2, p3, p4); in cxl_h_control_function()
217 unit_address, OP_STR_AFU(op), p1, p2, p3, p4, retbuf[0], rc); in cxl_h_control_function()
218 trace_cxl_hcall_control_function(unit_address, OP_STR_AFU(op), p1, p2, p3, p4, retbuf[0], rc); in cxl_h_control_function()
248 long cxl_h_reset_afu(u64 unit_address) in cxl_h_reset_afu() argument
250 return cxl_h_control_function(unit_address, in cxl_h_reset_afu()
261 long cxl_h_suspend_process(u64 unit_address, u64 process_token) in cxl_h_suspend_process() argument
263 return cxl_h_control_function(unit_address, in cxl_h_suspend_process()
274 long cxl_h_resume_process(u64 unit_address, u64 process_token) in cxl_h_resume_process() argument
276 return cxl_h_control_function(unit_address, in cxl_h_resume_process()
287 long cxl_h_read_error_state(u64 unit_address, u64 *state) in cxl_h_read_error_state() argument
289 return cxl_h_control_function(unit_address, in cxl_h_read_error_state()
302 long cxl_h_get_afu_err(u64 unit_address, u64 offset, in cxl_h_get_afu_err() argument
305 return cxl_h_control_function(unit_address, in cxl_h_get_afu_err()
322 long cxl_h_get_config(u64 unit_address, u64 cr_num, u64 offset, in cxl_h_get_config() argument
325 return cxl_h_control_function(unit_address, in cxl_h_get_config()
336 long cxl_h_terminate_process(u64 unit_address, u64 process_token) in cxl_h_terminate_process() argument
338 return cxl_h_control_function(unit_address, in cxl_h_terminate_process()
353 long cxl_h_collect_vpd(u64 unit_address, u64 record, u64 list_address, in cxl_h_collect_vpd() argument
356 return cxl_h_control_function(unit_address, in cxl_h_collect_vpd()
365 long cxl_h_get_fn_error_interrupt(u64 unit_address, u64 *reg) in cxl_h_get_fn_error_interrupt() argument
367 return cxl_h_control_function(unit_address, in cxl_h_get_fn_error_interrupt()
377 long cxl_h_ack_fn_error_interrupt(u64 unit_address, u64 value) in cxl_h_ack_fn_error_interrupt() argument
379 return cxl_h_control_function(unit_address, in cxl_h_ack_fn_error_interrupt()
389 long cxl_h_get_error_log(u64 unit_address, u64 value) in cxl_h_get_error_log() argument
391 return cxl_h_control_function(unit_address, in cxl_h_get_error_log()
401 long cxl_h_collect_int_info(u64 unit_address, u64 process_token, in cxl_h_collect_int_info() argument
409 unit_address, process_token); in cxl_h_collect_int_info()
411 unit_address, process_token, rc); in cxl_h_collect_int_info()
412 trace_cxl_hcall_collect_int_info(unit_address, process_token, rc); in cxl_h_collect_int_info()
442 long cxl_h_control_faults(u64 unit_address, u64 process_token, in cxl_h_control_faults() argument
450 rc = plpar_hcall(H_CONTROL_CA_FAULTS, retbuf, unit_address, in cxl_h_control_faults()
454 unit_address, process_token, control_mask, reset_mask, in cxl_h_control_faults()
456 trace_cxl_hcall_control_faults(unit_address, process_token, in cxl_h_control_faults()
482 static long cxl_h_control_facility(u64 unit_address, u64 op, in cxl_h_control_facility() argument
488 CXL_H9_WAIT_UNTIL_DONE(rc, retbuf, H_CONTROL_CA_FACILITY, unit_address, op, p1, p2, p3, p4); in cxl_h_control_facility()
490 unit_address, OP_STR_CONTROL_ADAPTER(op), p1, p2, p3, p4, retbuf[0], rc); in cxl_h_control_facility()
491 …trace_cxl_hcall_control_facility(unit_address, OP_STR_CONTROL_ADAPTER(op), p1, p2, p3, p4, retbuf[… in cxl_h_control_facility()
519 long cxl_h_reset_adapter(u64 unit_address) in cxl_h_reset_adapter() argument
521 return cxl_h_control_facility(unit_address, in cxl_h_reset_adapter()
534 long cxl_h_collect_vpd_adapter(u64 unit_address, u64 list_address, in cxl_h_collect_vpd_adapter() argument
537 return cxl_h_control_facility(unit_address, in cxl_h_collect_vpd_adapter()
562 static long cxl_h_download_facility(u64 unit_address, u64 op, in cxl_h_download_facility() argument
577 unit_address, op, list_address, num, in cxl_h_download_facility()
597 unit_address, OP_STR_DOWNLOAD_ADAPTER(op), list_address, num, retbuf[0], rc); in cxl_h_download_facility()
598 …trace_cxl_hcall_download_facility(unit_address, OP_STR_DOWNLOAD_ADAPTER(op), list_address, num, re… in cxl_h_download_facility()
627 long cxl_h_download_adapter_image(u64 unit_address, in cxl_h_download_adapter_image() argument
631 return cxl_h_download_facility(unit_address, in cxl_h_download_adapter_image()
640 long cxl_h_validate_adapter_image(u64 unit_address, in cxl_h_validate_adapter_image() argument
644 return cxl_h_download_facility(unit_address, in cxl_h_validate_adapter_image()