Lines Matching refs:inlen
40 size_t inlen; member
152 const efx_dword_t *inbuf, size_t inlen) in efx_mcdi_send_request() argument
180 MCDI_HEADER_DATALEN, inlen, in efx_mcdi_send_request()
187 BUG_ON(inlen > MCDI_CTL_SDU_LEN_MAX_V2); in efx_mcdi_send_request()
198 MC_CMD_V2_EXTN_IN_ACTUAL_LEN, inlen); in efx_mcdi_send_request()
210 WARN_ON_ONCE(inlen % 4); in efx_mcdi_send_request()
220 for (i = 0; i < inlen / 4 && bytes < PAGE_SIZE; i++) in efx_mcdi_send_request()
229 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request()
482 async->inlen); in efx_mcdi_release()
552 efx_siena_mcdi_display_error(efx, async->cmd, async->inlen, in efx_mcdi_complete_async()
618 efx_mcdi_check_supported(struct efx_nic *efx, unsigned int cmd, size_t inlen) in efx_mcdi_check_supported() argument
625 if (inlen > MCDI_CTL_SDU_LEN_MAX_V2 || in efx_mcdi_check_supported()
627 inlen > MCDI_CTL_SDU_LEN_MAX_V1)) in efx_mcdi_check_supported()
653 size_t inlen, in _efx_mcdi_rpc_finish() argument
670 cmd, (int)inlen, mcdi->mode); in _efx_mcdi_rpc_finish()
737 efx_siena_mcdi_display_error(efx, cmd, inlen, errbuf, in _efx_mcdi_rpc_finish()
804 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc() argument
811 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc()
817 rc = efx_siena_mcdi_rpc_start(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc()
821 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc()
842 efx_mcdi_send_request(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc()
844 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, in _efx_mcdi_rpc()
862 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc_evb_retry() argument
869 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry()
887 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry()
898 efx_siena_mcdi_display_error(efx, cmd, inlen, in _efx_mcdi_rpc_evb_retry()
929 const efx_dword_t *inbuf, size_t inlen, in efx_siena_mcdi_rpc() argument
933 return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen, in efx_siena_mcdi_rpc()
946 const efx_dword_t *inbuf, size_t inlen, in efx_siena_mcdi_rpc_quiet() argument
950 return _efx_mcdi_rpc_evb_retry(efx, cmd, inbuf, inlen, outbuf, outlen, in efx_siena_mcdi_rpc_quiet()
955 const efx_dword_t *inbuf, size_t inlen) in efx_siena_mcdi_rpc_start() argument
960 rc = efx_mcdi_check_supported(efx, cmd, inlen); in efx_siena_mcdi_rpc_start()
971 efx_mcdi_send_request(efx, cmd, inbuf, inlen); in efx_siena_mcdi_rpc_start()
976 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc_async() argument
985 rc = efx_mcdi_check_supported(efx, cmd, inlen); in _efx_mcdi_rpc_async()
992 async = kmalloc(sizeof(*async) + ALIGN(max(inlen, outlen), 4), in _efx_mcdi_rpc_async()
998 async->inlen = inlen; in _efx_mcdi_rpc_async()
1003 memcpy(async + 1, inbuf, inlen); in _efx_mcdi_rpc_async()
1015 efx_mcdi_send_request(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc_async()
1051 const efx_dword_t *inbuf, size_t inlen, size_t outlen, in efx_siena_mcdi_rpc_async() argument
1055 return _efx_mcdi_rpc_async(efx, cmd, inbuf, inlen, outlen, complete, in efx_siena_mcdi_rpc_async()
1060 const efx_dword_t *inbuf, size_t inlen, in efx_siena_mcdi_rpc_async_quiet() argument
1065 return _efx_mcdi_rpc_async(efx, cmd, inbuf, inlen, outlen, complete, in efx_siena_mcdi_rpc_async_quiet()
1070 size_t inlen, efx_dword_t *outbuf, size_t outlen, in efx_siena_mcdi_rpc_finish() argument
1073 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in efx_siena_mcdi_rpc_finish()
1078 size_t inlen, efx_dword_t *outbuf, in efx_siena_mcdi_rpc_finish_quiet() argument
1081 return _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in efx_siena_mcdi_rpc_finish_quiet()
1086 size_t inlen, efx_dword_t *outbuf, in efx_siena_mcdi_display_error() argument
1097 cmd, inlen, rc, code, err_arg); in efx_siena_mcdi_display_error()