Lines Matching refs:outbuf

502 	efx_dword_t *outbuf;  in efx_mcdi_complete_async()  local
541 outbuf = (efx_dword_t *)(async + 1); in efx_mcdi_complete_async()
542 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in efx_mcdi_complete_async()
553 async->complete(efx, async->cookie, rc, outbuf, in efx_mcdi_complete_async()
650 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument
710 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in _efx_mcdi_rpc_finish()
801 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument
807 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
817 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc()
841 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc()
859 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_evb_retry() argument
866 outbuf, outlen, outlen_actual, true, &raw_rc); in _efx_mcdi_rpc_evb_retry()
884 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc_evb_retry()
895 outbuf, outlen, rc); in _efx_mcdi_rpc_evb_retry()
926 efx_dword_t *outbuf, size_t outlen, in efx_mcdi_rpc() argument
929 return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen, in efx_mcdi_rpc()
943 efx_dword_t *outbuf, size_t outlen, in efx_mcdi_rpc_quiet() argument
946 return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen, in efx_mcdi_rpc_quiet()
1064 efx_dword_t *outbuf, size_t outlen, in efx_mcdi_rpc_finish() argument
1067 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in efx_mcdi_rpc_finish()
1072 efx_dword_t *outbuf, size_t outlen, in efx_mcdi_rpc_finish_quiet() argument
1075 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in efx_mcdi_rpc_finish_quiet()
1080 size_t inlen, efx_dword_t *outbuf, in efx_mcdi_display_error() argument
1086 code = MCDI_DWORD(outbuf, ERR_CODE); in efx_mcdi_display_error()
1088 err_arg = MCDI_DWORD(outbuf, ERR_ARG); in efx_mcdi_display_error()
1404 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_VERSION_OUT_LEN); in efx_mcdi_print_fwver()
1412 outbuf, sizeof(outbuf), &outlength); in efx_mcdi_print_fwver()
1420 ver_words = (__le16 *)MCDI_PTR(outbuf, GET_VERSION_OUT_VERSION); in efx_mcdi_print_fwver()
1449 MCDI_DECLARE_BUF(outbuf, MC_CMD_DRV_ATTACH_EXT_OUT_LEN); in efx_mcdi_drv_attach()
1459 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_drv_attach()
1471 sizeof(inbuf), outbuf, sizeof(outbuf), in efx_mcdi_drv_attach()
1476 outbuf, outlen, rc); in efx_mcdi_drv_attach()
1487 MCDI_DWORD(outbuf, in efx_mcdi_drv_attach()
1505 *was_attached = MCDI_DWORD(outbuf, DRV_ATTACH_OUT_OLD_STATE); in efx_mcdi_drv_attach()
1516 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_BOARD_CFG_OUT_LENMAX); in efx_mcdi_get_board_cfg()
1527 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_board_cfg()
1539 MCDI_PTR(outbuf, GET_BOARD_CFG_OUT_MAC_ADDR_BASE_PORT1) : in efx_mcdi_get_board_cfg()
1540 MCDI_PTR(outbuf, GET_BOARD_CFG_OUT_MAC_ADDR_BASE_PORT0)); in efx_mcdi_get_board_cfg()
1547 outbuf, GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST, i); in efx_mcdi_get_board_cfg()
1553 *capabilities = MCDI_DWORD(outbuf, in efx_mcdi_get_board_cfg()
1556 *capabilities = MCDI_DWORD(outbuf, in efx_mcdi_get_board_cfg()
1592 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_TYPES_OUT_LEN); in efx_mcdi_nvram_types()
1599 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_nvram_types()
1607 *nvram_types_out = MCDI_DWORD(outbuf, NVRAM_TYPES_OUT_TYPES); in efx_mcdi_nvram_types()
1620 efx_dword_t *outbuf = kzalloc(MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX_MCDI2, in efx_new_mcdi_nvram_types() local
1625 if (!outbuf) in efx_new_mcdi_nvram_types()
1631 outbuf, MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX_MCDI2, &outlen); in efx_new_mcdi_nvram_types()
1635 *number = MCDI_DWORD(outbuf, NVRAM_PARTITIONS_OUT_NUM_PARTITIONS); in efx_new_mcdi_nvram_types()
1637 memcpy(nvram_types, MCDI_PTR(outbuf, NVRAM_PARTITIONS_OUT_TYPE_ID), in efx_new_mcdi_nvram_types()
1641 kfree(outbuf); in efx_new_mcdi_nvram_types()
1650 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_INFO_OUT_LEN); in efx_mcdi_nvram_info()
1657 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_nvram_info()
1665 *size_out = MCDI_DWORD(outbuf, NVRAM_INFO_OUT_SIZE); in efx_mcdi_nvram_info()
1666 *erase_size_out = MCDI_DWORD(outbuf, NVRAM_INFO_OUT_ERASESIZE); in efx_mcdi_nvram_info()
1667 *protected_out = !!(MCDI_DWORD(outbuf, NVRAM_INFO_OUT_FLAGS) & in efx_mcdi_nvram_info()
1679 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_TEST_OUT_LEN); in efx_mcdi_nvram_test()
1685 outbuf, sizeof(outbuf), NULL); in efx_mcdi_nvram_test()
1689 switch (MCDI_DWORD(outbuf, NVRAM_TEST_OUT_RESULT)) { in efx_mcdi_nvram_test()
1768 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_ASSERTS_OUT_LEN); in efx_mcdi_read_assertion()
1785 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_read_assertion()
1792 MC_CMD_GET_ASSERTS_IN_LEN, outbuf, in efx_mcdi_read_assertion()
1800 flags = MCDI_DWORD(outbuf, GET_ASSERTS_OUT_GLOBAL_FLAGS); in efx_mcdi_read_assertion()
1813 MCDI_DWORD(outbuf, GET_ASSERTS_OUT_SAVED_PC_OFFS), in efx_mcdi_read_assertion()
1814 MCDI_DWORD(outbuf, GET_ASSERTS_OUT_THREAD_OFFS)); in efx_mcdi_read_assertion()
1822 MCDI_ARRAY_DWORD(outbuf, GET_ASSERTS_OUT_GP_REGS_OFFS, in efx_mcdi_read_assertion()
1947 MCDI_DECLARE_BUF(outbuf, MC_CMD_WOL_FILTER_SET_OUT_LEN); in efx_mcdi_wol_filter_set()
1957 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_wol_filter_set()
1966 *id_out = (int)MCDI_DWORD(outbuf, WOL_FILTER_SET_OUT_FILTER_ID); in efx_mcdi_wol_filter_set()
1987 MCDI_DECLARE_BUF(outbuf, MC_CMD_WOL_FILTER_GET_OUT_LEN); in efx_mcdi_wol_filter_get_magic()
1992 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_wol_filter_get_magic()
2001 *id_out = (int)MCDI_DWORD(outbuf, WOL_FILTER_GET_OUT_FILTER_ID); in efx_mcdi_wol_filter_get_magic()
2068 MCDI_DECLARE_BUF(outbuf, MC_CMD_WORKAROUND_EXT_OUT_LEN); in efx_mcdi_set_workaround()
2076 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_set_workaround()
2084 *flags = MCDI_DWORD(outbuf, WORKAROUND_EXT_OUT_FLAGS); in efx_mcdi_set_workaround()
2094 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_WORKAROUNDS_OUT_LEN); in efx_mcdi_get_workarounds()
2099 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_workarounds()
2109 *impl_out = MCDI_DWORD(outbuf, GET_WORKAROUNDS_OUT_IMPLEMENTED); in efx_mcdi_get_workarounds()
2112 *enabled_out = MCDI_DWORD(outbuf, GET_WORKAROUNDS_OUT_ENABLED); in efx_mcdi_get_workarounds()
2176 efx_dword_t *outbuf; in efx_mcdi_nvram_metadata() local
2181 outbuf = kzalloc(MC_CMD_NVRAM_METADATA_OUT_LENMAX_MCDI2, GFP_KERNEL); in efx_mcdi_nvram_metadata()
2182 if (!outbuf) in efx_mcdi_nvram_metadata()
2188 sizeof(inbuf), outbuf, in efx_mcdi_nvram_metadata()
2198 flags = MCDI_DWORD(outbuf, NVRAM_METADATA_OUT_FLAGS); in efx_mcdi_nvram_metadata()
2209 MCDI_PTR(outbuf, NVRAM_METADATA_OUT_DESCRIPTION), in efx_mcdi_nvram_metadata()
2219 *subtype = MCDI_DWORD(outbuf, NVRAM_METADATA_OUT_SUBTYPE); in efx_mcdi_nvram_metadata()
2226 version[0] = MCDI_WORD(outbuf, NVRAM_METADATA_OUT_VERSION_W); in efx_mcdi_nvram_metadata()
2227 version[1] = MCDI_WORD(outbuf, NVRAM_METADATA_OUT_VERSION_X); in efx_mcdi_nvram_metadata()
2228 version[2] = MCDI_WORD(outbuf, NVRAM_METADATA_OUT_VERSION_Y); in efx_mcdi_nvram_metadata()
2229 version[3] = MCDI_WORD(outbuf, NVRAM_METADATA_OUT_VERSION_Z); in efx_mcdi_nvram_metadata()
2239 kfree(outbuf); in efx_mcdi_nvram_metadata()
2269 MCDI_DECLARE_BUF(outbuf, in efx_mcdi_nvram_read()
2281 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_nvram_read()
2285 memcpy(buffer, MCDI_PTR(outbuf, NVRAM_READ_OUT_READ_BUFFER), length); in efx_mcdi_nvram_read()
2329 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_UPDATE_FINISH_V2_OUT_LEN); in efx_mcdi_nvram_update_finish()
2340 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_nvram_update_finish()
2342 rc2 = MCDI_DWORD(outbuf, NVRAM_UPDATE_FINISH_V2_OUT_RESULT_CODE); in efx_mcdi_nvram_update_finish()