Lines Matching refs:outbuf

503 	efx_dword_t *outbuf;  in efx_mcdi_complete_async()  local
542 outbuf = (efx_dword_t *)(async + 1); in efx_mcdi_complete_async()
543 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in efx_mcdi_complete_async()
554 async->complete(efx, async->cookie, rc, outbuf, in efx_mcdi_complete_async()
651 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument
711 efx->type->mcdi_read_response(efx, outbuf, hdr_len, in _efx_mcdi_rpc_finish()
802 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument
808 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
818 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc()
842 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc()
860 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_evb_retry() argument
867 outbuf, outlen, outlen_actual, true, &raw_rc); in _efx_mcdi_rpc_evb_retry()
885 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc_evb_retry()
896 outbuf, outlen, rc); in _efx_mcdi_rpc_evb_retry()
927 efx_dword_t *outbuf, size_t outlen, in efx_mcdi_rpc() argument
930 return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen, in efx_mcdi_rpc()
944 efx_dword_t *outbuf, size_t outlen, in efx_mcdi_rpc_quiet() argument
947 return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen, in efx_mcdi_rpc_quiet()
1065 efx_dword_t *outbuf, size_t outlen, in efx_mcdi_rpc_finish() argument
1068 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in efx_mcdi_rpc_finish()
1073 efx_dword_t *outbuf, size_t outlen, in efx_mcdi_rpc_finish_quiet() argument
1076 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in efx_mcdi_rpc_finish_quiet()
1081 size_t inlen, efx_dword_t *outbuf, in efx_mcdi_display_error() argument
1087 code = MCDI_DWORD(outbuf, ERR_CODE); in efx_mcdi_display_error()
1089 err_arg = MCDI_DWORD(outbuf, ERR_ARG); in efx_mcdi_display_error()
1411 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_VERSION_OUT_LEN); in efx_mcdi_print_fwver()
1419 outbuf, sizeof(outbuf), &outlength); in efx_mcdi_print_fwver()
1427 ver_words = (__le16 *)MCDI_PTR(outbuf, GET_VERSION_OUT_VERSION); in efx_mcdi_print_fwver()
1456 MCDI_DECLARE_BUF(outbuf, MC_CMD_DRV_ATTACH_EXT_OUT_LEN); in efx_mcdi_drv_attach()
1466 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_drv_attach()
1478 sizeof(inbuf), outbuf, sizeof(outbuf), in efx_mcdi_drv_attach()
1483 outbuf, outlen, rc); in efx_mcdi_drv_attach()
1494 MCDI_DWORD(outbuf, in efx_mcdi_drv_attach()
1512 *was_attached = MCDI_DWORD(outbuf, DRV_ATTACH_OUT_OLD_STATE); in efx_mcdi_drv_attach()
1523 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_BOARD_CFG_OUT_LENMAX); in efx_mcdi_get_board_cfg()
1534 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_board_cfg()
1546 MCDI_PTR(outbuf, GET_BOARD_CFG_OUT_MAC_ADDR_BASE_PORT1) : in efx_mcdi_get_board_cfg()
1547 MCDI_PTR(outbuf, GET_BOARD_CFG_OUT_MAC_ADDR_BASE_PORT0)); in efx_mcdi_get_board_cfg()
1554 outbuf, GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST, i); in efx_mcdi_get_board_cfg()
1560 *capabilities = MCDI_DWORD(outbuf, in efx_mcdi_get_board_cfg()
1563 *capabilities = MCDI_DWORD(outbuf, in efx_mcdi_get_board_cfg()
1599 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_TYPES_OUT_LEN); in efx_mcdi_nvram_types()
1606 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_nvram_types()
1614 *nvram_types_out = MCDI_DWORD(outbuf, NVRAM_TYPES_OUT_TYPES); in efx_mcdi_nvram_types()
1627 efx_dword_t *outbuf = kzalloc(MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX_MCDI2, in efx_new_mcdi_nvram_types() local
1632 if (!outbuf) in efx_new_mcdi_nvram_types()
1638 outbuf, MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX_MCDI2, &outlen); in efx_new_mcdi_nvram_types()
1642 *number = MCDI_DWORD(outbuf, NVRAM_PARTITIONS_OUT_NUM_PARTITIONS); in efx_new_mcdi_nvram_types()
1644 memcpy(nvram_types, MCDI_PTR(outbuf, NVRAM_PARTITIONS_OUT_TYPE_ID), in efx_new_mcdi_nvram_types()
1648 kfree(outbuf); in efx_new_mcdi_nvram_types()
1657 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_INFO_OUT_LEN); in efx_mcdi_nvram_info()
1664 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_nvram_info()
1672 *size_out = MCDI_DWORD(outbuf, NVRAM_INFO_OUT_SIZE); in efx_mcdi_nvram_info()
1673 *erase_size_out = MCDI_DWORD(outbuf, NVRAM_INFO_OUT_ERASESIZE); in efx_mcdi_nvram_info()
1674 *protected_out = !!(MCDI_DWORD(outbuf, NVRAM_INFO_OUT_FLAGS) & in efx_mcdi_nvram_info()
1686 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_TEST_OUT_LEN); in efx_mcdi_nvram_test()
1692 outbuf, sizeof(outbuf), NULL); in efx_mcdi_nvram_test()
1696 switch (MCDI_DWORD(outbuf, NVRAM_TEST_OUT_RESULT)) { in efx_mcdi_nvram_test()
1775 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_ASSERTS_OUT_LEN); in efx_mcdi_read_assertion()
1792 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_read_assertion()
1799 MC_CMD_GET_ASSERTS_IN_LEN, outbuf, in efx_mcdi_read_assertion()
1807 flags = MCDI_DWORD(outbuf, GET_ASSERTS_OUT_GLOBAL_FLAGS); in efx_mcdi_read_assertion()
1820 MCDI_DWORD(outbuf, GET_ASSERTS_OUT_SAVED_PC_OFFS), in efx_mcdi_read_assertion()
1821 MCDI_DWORD(outbuf, GET_ASSERTS_OUT_THREAD_OFFS)); in efx_mcdi_read_assertion()
1829 MCDI_ARRAY_DWORD(outbuf, GET_ASSERTS_OUT_GP_REGS_OFFS, in efx_mcdi_read_assertion()
1954 MCDI_DECLARE_BUF(outbuf, MC_CMD_WOL_FILTER_SET_OUT_LEN); in efx_mcdi_wol_filter_set()
1964 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_wol_filter_set()
1973 *id_out = (int)MCDI_DWORD(outbuf, WOL_FILTER_SET_OUT_FILTER_ID); in efx_mcdi_wol_filter_set()
1994 MCDI_DECLARE_BUF(outbuf, MC_CMD_WOL_FILTER_GET_OUT_LEN); in efx_mcdi_wol_filter_get_magic()
1999 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_wol_filter_get_magic()
2008 *id_out = (int)MCDI_DWORD(outbuf, WOL_FILTER_GET_OUT_FILTER_ID); in efx_mcdi_wol_filter_get_magic()
2075 MCDI_DECLARE_BUF(outbuf, MC_CMD_WORKAROUND_EXT_OUT_LEN); in efx_mcdi_set_workaround()
2083 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_set_workaround()
2091 *flags = MCDI_DWORD(outbuf, WORKAROUND_EXT_OUT_FLAGS); in efx_mcdi_set_workaround()
2101 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_WORKAROUNDS_OUT_LEN); in efx_mcdi_get_workarounds()
2106 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_workarounds()
2116 *impl_out = MCDI_DWORD(outbuf, GET_WORKAROUNDS_OUT_IMPLEMENTED); in efx_mcdi_get_workarounds()
2119 *enabled_out = MCDI_DWORD(outbuf, GET_WORKAROUNDS_OUT_ENABLED); in efx_mcdi_get_workarounds()
2204 MCDI_DECLARE_BUF(outbuf, in efx_mcdi_nvram_read()
2216 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_nvram_read()
2220 memcpy(buffer, MCDI_PTR(outbuf, NVRAM_READ_OUT_READ_BUFFER), length); in efx_mcdi_nvram_read()
2264 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_UPDATE_FINISH_V2_OUT_LEN); in efx_mcdi_nvram_update_finish()
2275 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_nvram_update_finish()
2277 rc2 = MCDI_DWORD(outbuf, NVRAM_UPDATE_FINISH_V2_OUT_RESULT_CODE); in efx_mcdi_nvram_update_finish()