Lines Matching refs:retbuf
53 #define _CXL_LOOP_HCALL(call, rc, retbuf, fn, ...) \ argument
58 memset(retbuf, 0, sizeof(retbuf)); \
60 rc = call(fn, retbuf, __VA_ARGS__, token); \
61 token = retbuf[0]; \
139 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_attach_process() local
142 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_ATTACH_CA_PROCESS, unit_address, virt_to_phys(element)); 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()
148 retbuf[0], retbuf[1], retbuf[2]); in cxl_h_attach_process()
153 *process_token = retbuf[0]; in cxl_h_attach_process()
155 *mmio_addr = retbuf[1]; in cxl_h_attach_process()
157 *mmio_size = retbuf[2]; in cxl_h_attach_process()
180 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_detach_process() local
183 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_DETACH_CA_PROCESS, unit_address, process_token); in cxl_h_detach_process()
212 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in cxl_h_control_function() local
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()
225 *out = retbuf[0]; in cxl_h_control_function()
445 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_control_faults() local
448 memset(retbuf, 0, sizeof(retbuf)); in cxl_h_control_faults()
450 rc = plpar_hcall(H_CONTROL_CA_FAULTS, retbuf, unit_address, in cxl_h_control_faults()
455 rc, retbuf[0]); in cxl_h_control_faults()
457 control_mask, reset_mask, retbuf[0], rc); in cxl_h_control_faults()
485 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in cxl_h_control_facility() local
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()
496 *out = retbuf[0]; in cxl_h_control_facility()
566 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_download_facility() local
574 memset(retbuf, 0, sizeof(retbuf)); in cxl_h_download_facility()
576 rc = plpar_hcall(H_DOWNLOAD_CA_FACILITY, retbuf, in cxl_h_download_facility()
579 token = retbuf[0]; 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 …all_download_facility(unit_address, OP_STR_DOWNLOAD_ADAPTER(op), list_address, num, retbuf[0], rc); in cxl_h_download_facility()
615 *out = retbuf[0]; in cxl_h_download_facility()