Lines Matching refs:outbuf
190 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_pf_index()
195 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_pf_index()
196 sizeof(outbuf), &outlen); in efx_ef10_get_pf_index()
199 if (outlen < sizeof(outbuf)) in efx_ef10_get_pf_index()
202 nic_data->pf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_PF); in efx_ef10_get_pf_index()
209 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_vf_index()
214 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_vf_index()
215 sizeof(outbuf), &outlen); in efx_ef10_get_vf_index()
218 if (outlen < sizeof(outbuf)) in efx_ef10_get_vf_index()
221 nic_data->vf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_VF); in efx_ef10_get_vf_index()
228 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CAPABILITIES_V4_OUT_LEN); in efx_ef10_init_datapath_caps()
236 outbuf, sizeof(outbuf), &outlen); in efx_ef10_init_datapath_caps()
246 MCDI_DWORD(outbuf, GET_CAPABILITIES_OUT_FLAGS1); in efx_ef10_init_datapath_caps()
249 nic_data->datapath_caps2 = MCDI_DWORD(outbuf, in efx_ef10_init_datapath_caps()
251 nic_data->piobuf_size = MCDI_WORD(outbuf, in efx_ef10_init_datapath_caps()
261 MCDI_WORD(outbuf, GET_CAPABILITIES_OUT_RX_DPCPU_FW_ID); in efx_ef10_init_datapath_caps()
263 MCDI_WORD(outbuf, GET_CAPABILITIES_OUT_TX_DPCPU_FW_ID); in efx_ef10_init_datapath_caps()
273 u8 vi_window_mode = MCDI_BYTE(outbuf, in efx_ef10_init_datapath_caps()
302 efx->num_mac_stats = MCDI_WORD(outbuf, in efx_ef10_init_datapath_caps()
320 MCDI_DECLARE_BUF(outbuf, MC_CMD_LICENSING_V3_OUT_LEN); in efx_ef10_read_licensed_features()
328 outbuf, sizeof(outbuf), &outlen); in efx_ef10_read_licensed_features()
332 nic_data->licensed_features = MCDI_QWORD(outbuf, in efx_ef10_read_licensed_features()
338 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CLOCK_OUT_LEN); in efx_ef10_get_sysclk_freq()
342 outbuf, sizeof(outbuf), NULL); in efx_ef10_get_sysclk_freq()
345 rc = MCDI_DWORD(outbuf, GET_CLOCK_OUT_SYS_FREQ); in efx_ef10_get_sysclk_freq()
426 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_LEN); in efx_ef10_get_timer_config()
434 outbuf, sizeof(outbuf), NULL); in efx_ef10_get_timer_config()
437 efx_ef10_process_timer_config(efx, outbuf); in efx_ef10_get_timer_config()
461 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_MAC_ADDRESSES_OUT_LEN); in efx_ef10_get_mac_address_pf()
468 outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_pf()
475 MCDI_PTR(outbuf, GET_MAC_ADDRESSES_OUT_MAC_ADDR_BASE)); in efx_ef10_get_mac_address_pf()
482 MCDI_DECLARE_BUF(outbuf, MC_CMD_VPORT_GET_MAC_ADDRESSES_OUT_LENMAX); in efx_ef10_get_mac_address_vf()
489 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_vf()
496 num_addrs = MCDI_DWORD(outbuf, in efx_ef10_get_mac_address_vf()
502 MCDI_PTR(outbuf, VPORT_GET_MAC_ADDRESSES_OUT_MACADDR)); in efx_ef10_get_mac_address_vf()
836 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_free_vis()
839 outbuf, sizeof(outbuf), &outlen); in efx_ef10_free_vis()
845 efx_mcdi_display_error(efx, MC_CMD_FREE_VIS, 0, outbuf, outlen, in efx_ef10_free_vis()
875 MCDI_DECLARE_BUF(outbuf, MC_CMD_ALLOC_PIOBUF_OUT_LEN); in efx_ef10_alloc_piobufs()
884 outbuf, sizeof(outbuf), &outlen); in efx_ef10_alloc_piobufs()
891 0, outbuf, outlen, rc); in efx_ef10_alloc_piobufs()
899 MCDI_DWORD(outbuf, ALLOC_PIOBUF_OUT_PIOBUF_HANDLE); in efx_ef10_alloc_piobufs()
1124 MCDI_DECLARE_BUF(outbuf, MC_CMD_VADAPTOR_QUERY_OUT_LEN); in efx_ef10_vadaptor_query()
1134 outbuf, sizeof(outbuf), &outlen); in efx_ef10_vadaptor_query()
1138 if (outlen < sizeof(outbuf)) { in efx_ef10_vadaptor_query()
1145 *port_flags = MCDI_DWORD(outbuf, VADAPTOR_QUERY_OUT_PORT_FLAGS); in efx_ef10_vadaptor_query()
1148 MCDI_DWORD(outbuf, VADAPTOR_QUERY_OUT_VADAPTOR_FLAGS); in efx_ef10_vadaptor_query()
1151 MCDI_DWORD(outbuf, in efx_ef10_vadaptor_query()
1262 MCDI_DECLARE_BUF(outbuf, MC_CMD_ALLOC_VIS_OUT_LEN); in efx_ef10_alloc_vis()
1270 outbuf, sizeof(outbuf), &outlen); in efx_ef10_alloc_vis()
1278 MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_BASE)); in efx_ef10_alloc_vis()
1280 nic_data->vi_base = MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_BASE); in efx_ef10_alloc_vis()
1281 nic_data->n_allocated_vis = MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_COUNT); in efx_ef10_alloc_vis()
2173 efx_ef10_mcdi_read_response(struct efx_nic *efx, efx_dword_t *outbuf, in efx_ef10_mcdi_read_response() argument
2179 memcpy(outbuf, pdu + offset, outlen); in efx_ef10_mcdi_read_response()
2532 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_tx_fini()
2541 outbuf, sizeof(outbuf), &outlen); in efx_ef10_tx_fini()
2550 outbuf, outlen, rc); in efx_ef10_tx_fini()
2671 MCDI_DECLARE_BUF(outbuf, MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_LEN); in efx_ef10_get_rss_flags()
2681 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_rss_flags()
2686 *flags = MCDI_DWORD(outbuf, RSS_CONTEXT_GET_FLAGS_OUT_FLAGS); in efx_ef10_get_rss_flags()
2723 MCDI_DECLARE_BUF(outbuf, MC_CMD_RSS_CONTEXT_ALLOC_OUT_LEN); in efx_ef10_alloc_rss_context()
2752 outbuf, sizeof(outbuf), &outlen); in efx_ef10_alloc_rss_context()
2759 ctx->context_id = MCDI_DWORD(outbuf, RSS_CONTEXT_ALLOC_OUT_RSS_CONTEXT_ID); in efx_ef10_alloc_rss_context()
3131 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_rx_fini()
3140 outbuf, sizeof(outbuf), &outlen); in efx_ef10_rx_fini()
3149 outbuf, outlen, rc); in efx_ef10_rx_fini()
3222 int rc, efx_dword_t *outbuf, in efx_ef10_rx_defer_refill_complete() argument
3239 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_ev_fini()
3247 outbuf, sizeof(outbuf), &outlen); in efx_ef10_ev_fini()
3256 outbuf, outlen, rc); in efx_ef10_ev_fini()
3264 MCDI_DECLARE_BUF(outbuf, MC_CMD_INIT_EVQ_V2_OUT_LEN); in efx_ef10_ev_init()
3321 outbuf, sizeof(outbuf), &outlen); in efx_ef10_ev_init()
3327 MCDI_DWORD(outbuf, INIT_EVQ_V2_OUT_FLAGS)); in efx_ef10_ev_init()
4200 MCDI_DECLARE_BUF(outbuf, MC_CMD_FILTER_OP_EXT_OUT_LEN); in efx_ef10_filter_push()
4205 outbuf, sizeof(outbuf), NULL); in efx_ef10_filter_push()
4207 *handle = MCDI_QWORD(outbuf, FILTER_OP_OUT_HANDLE); in efx_ef10_filter_push()
4914 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PARSER_DISP_INFO_OUT_LENMAX); in efx_ef10_filter_table_probe_matches()
4925 inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), in efx_ef10_filter_table_probe_matches()
4936 outbuf, in efx_ef10_filter_table_probe_matches()
5954 MCDI_DECLARE_BUF(outbuf, MC_CMD_POLL_BIST_OUT_LEN); in efx_ef10_poll_bist()
5959 outbuf, sizeof(outbuf), &outlen); in efx_ef10_poll_bist()
5966 result = MCDI_DWORD(outbuf, POLL_BIST_OUT_RESULT); in efx_ef10_poll_bist()
6057 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_METADATA_OUT_LENMAX); in efx_ef10_mtd_probe_partition()
6098 outbuf, sizeof(outbuf), &outlen); in efx_ef10_mtd_probe_partition()
6103 if (MCDI_DWORD(outbuf, NVRAM_METADATA_OUT_FLAGS) & in efx_ef10_mtd_probe_partition()
6105 part->fw_subtype = MCDI_DWORD(outbuf, in efx_ef10_mtd_probe_partition()
6124 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX); in efx_ef10_mtd_probe()
6135 outbuf, sizeof(outbuf), &outlen); in efx_ef10_mtd_probe()
6141 n_parts_total = MCDI_DWORD(outbuf, NVRAM_PARTITIONS_OUT_NUM_PARTITIONS); in efx_ef10_mtd_probe()
6152 type = MCDI_ARRAY_DWORD(outbuf, NVRAM_PARTITIONS_OUT_TYPE_ID, in efx_ef10_mtd_probe()
6340 MCDI_DECLARE_BUF(outbuf, MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_OUT_LEN); in efx_ef10_set_udp_tnl_ports()
6392 inbuf, inlen, outbuf, sizeof(outbuf), &outlen); in efx_ef10_set_udp_tnl_ports()
6407 } else if (MCDI_DWORD(outbuf, SET_TUNNEL_ENCAP_UDP_PORTS_OUT_FLAGS) & in efx_ef10_set_udp_tnl_ports()