Lines Matching refs:retbuf
49 #define _CXL_LOOP_HCALL(call, rc, retbuf, fn, ...) \ argument
54 memset(retbuf, 0, sizeof(retbuf)); \
56 rc = call(fn, retbuf, __VA_ARGS__, token); \
57 token = retbuf[0]; \
135 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_attach_process() local
138 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_ATTACH_CA_PROCESS, unit_address, virt_to_phys(element)); in cxl_h_attach_process()
141 trace_cxl_hcall_attach(unit_address, virt_to_phys(element), retbuf[0], retbuf[1], retbuf[2], rc); in cxl_h_attach_process()
144 retbuf[0], retbuf[1], retbuf[2]); in cxl_h_attach_process()
149 *process_token = retbuf[0]; in cxl_h_attach_process()
151 *mmio_addr = retbuf[1]; in cxl_h_attach_process()
153 *mmio_size = retbuf[2]; in cxl_h_attach_process()
176 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_detach_process() local
179 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_DETACH_CA_PROCESS, unit_address, process_token); in cxl_h_detach_process()
208 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in cxl_h_control_function() local
211 CXL_H9_WAIT_UNTIL_DONE(rc, retbuf, H_CONTROL_CA_FUNCTION, unit_address, op, p1, p2, p3, p4); in cxl_h_control_function()
213 unit_address, OP_STR_AFU(op), p1, p2, p3, p4, retbuf[0], rc); in cxl_h_control_function()
214 trace_cxl_hcall_control_function(unit_address, OP_STR_AFU(op), p1, p2, p3, p4, retbuf[0], rc); in cxl_h_control_function()
221 *out = retbuf[0]; in cxl_h_control_function()
441 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_control_faults() local
444 memset(retbuf, 0, sizeof(retbuf)); in cxl_h_control_faults()
446 rc = plpar_hcall(H_CONTROL_CA_FAULTS, retbuf, unit_address, in cxl_h_control_faults()
451 rc, retbuf[0]); in cxl_h_control_faults()
453 control_mask, reset_mask, retbuf[0], rc); in cxl_h_control_faults()
481 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in cxl_h_control_facility() local
484 CXL_H9_WAIT_UNTIL_DONE(rc, retbuf, H_CONTROL_CA_FACILITY, unit_address, op, p1, p2, p3, p4); in cxl_h_control_facility()
486 unit_address, OP_STR_CONTROL_ADAPTER(op), p1, p2, p3, p4, retbuf[0], rc); in cxl_h_control_facility()
487 …trace_cxl_hcall_control_facility(unit_address, OP_STR_CONTROL_ADAPTER(op), p1, p2, p3, p4, retbuf[… in cxl_h_control_facility()
492 *out = retbuf[0]; in cxl_h_control_facility()
562 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_download_facility() local
570 memset(retbuf, 0, sizeof(retbuf)); in cxl_h_download_facility()
572 rc = plpar_hcall(H_DOWNLOAD_CA_FACILITY, retbuf, in cxl_h_download_facility()
575 token = retbuf[0]; in cxl_h_download_facility()
593 unit_address, OP_STR_DOWNLOAD_ADAPTER(op), list_address, num, retbuf[0], rc); in cxl_h_download_facility()
594 …all_download_facility(unit_address, OP_STR_DOWNLOAD_ADAPTER(op), list_address, num, retbuf[0], rc); in cxl_h_download_facility()
611 *out = retbuf[0]; in cxl_h_download_facility()