Lines Matching refs:outbuf

193 	MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN);  in efx_ef10_get_pf_index()
198 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_pf_index()
199 sizeof(outbuf), &outlen); in efx_ef10_get_pf_index()
202 if (outlen < sizeof(outbuf)) in efx_ef10_get_pf_index()
205 nic_data->pf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_PF); in efx_ef10_get_pf_index()
212 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_vf_index()
217 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_vf_index()
218 sizeof(outbuf), &outlen); in efx_ef10_get_vf_index()
221 if (outlen < sizeof(outbuf)) in efx_ef10_get_vf_index()
224 nic_data->vf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_VF); in efx_ef10_get_vf_index()
231 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CAPABILITIES_V4_OUT_LEN); in efx_ef10_init_datapath_caps()
239 outbuf, sizeof(outbuf), &outlen); in efx_ef10_init_datapath_caps()
249 MCDI_DWORD(outbuf, GET_CAPABILITIES_OUT_FLAGS1); in efx_ef10_init_datapath_caps()
252 nic_data->datapath_caps2 = MCDI_DWORD(outbuf, in efx_ef10_init_datapath_caps()
254 nic_data->piobuf_size = MCDI_WORD(outbuf, in efx_ef10_init_datapath_caps()
264 MCDI_WORD(outbuf, GET_CAPABILITIES_OUT_RX_DPCPU_FW_ID); in efx_ef10_init_datapath_caps()
266 MCDI_WORD(outbuf, GET_CAPABILITIES_OUT_TX_DPCPU_FW_ID); in efx_ef10_init_datapath_caps()
276 u8 vi_window_mode = MCDI_BYTE(outbuf, in efx_ef10_init_datapath_caps()
305 efx->num_mac_stats = MCDI_WORD(outbuf, in efx_ef10_init_datapath_caps()
323 MCDI_DECLARE_BUF(outbuf, MC_CMD_LICENSING_V3_OUT_LEN); in efx_ef10_read_licensed_features()
331 outbuf, sizeof(outbuf), &outlen); in efx_ef10_read_licensed_features()
335 nic_data->licensed_features = MCDI_QWORD(outbuf, in efx_ef10_read_licensed_features()
341 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CLOCK_OUT_LEN); in efx_ef10_get_sysclk_freq()
345 outbuf, sizeof(outbuf), NULL); in efx_ef10_get_sysclk_freq()
348 rc = MCDI_DWORD(outbuf, GET_CLOCK_OUT_SYS_FREQ); in efx_ef10_get_sysclk_freq()
429 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_LEN); in efx_ef10_get_timer_config()
437 outbuf, sizeof(outbuf), NULL); in efx_ef10_get_timer_config()
440 efx_ef10_process_timer_config(efx, outbuf); in efx_ef10_get_timer_config()
464 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_MAC_ADDRESSES_OUT_LEN); in efx_ef10_get_mac_address_pf()
471 outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_pf()
478 MCDI_PTR(outbuf, GET_MAC_ADDRESSES_OUT_MAC_ADDR_BASE)); in efx_ef10_get_mac_address_pf()
485 MCDI_DECLARE_BUF(outbuf, MC_CMD_VPORT_GET_MAC_ADDRESSES_OUT_LENMAX); in efx_ef10_get_mac_address_vf()
492 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_vf()
499 num_addrs = MCDI_DWORD(outbuf, in efx_ef10_get_mac_address_vf()
505 MCDI_PTR(outbuf, VPORT_GET_MAC_ADDRESSES_OUT_MACADDR)); in efx_ef10_get_mac_address_vf()
839 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_free_vis()
842 outbuf, sizeof(outbuf), &outlen); in efx_ef10_free_vis()
848 efx_mcdi_display_error(efx, MC_CMD_FREE_VIS, 0, outbuf, outlen, in efx_ef10_free_vis()
878 MCDI_DECLARE_BUF(outbuf, MC_CMD_ALLOC_PIOBUF_OUT_LEN); in efx_ef10_alloc_piobufs()
887 outbuf, sizeof(outbuf), &outlen); in efx_ef10_alloc_piobufs()
894 0, outbuf, outlen, rc); in efx_ef10_alloc_piobufs()
902 MCDI_DWORD(outbuf, ALLOC_PIOBUF_OUT_PIOBUF_HANDLE); in efx_ef10_alloc_piobufs()
1127 MCDI_DECLARE_BUF(outbuf, MC_CMD_VADAPTOR_QUERY_OUT_LEN); in efx_ef10_vadaptor_query()
1137 outbuf, sizeof(outbuf), &outlen); in efx_ef10_vadaptor_query()
1141 if (outlen < sizeof(outbuf)) { in efx_ef10_vadaptor_query()
1148 *port_flags = MCDI_DWORD(outbuf, VADAPTOR_QUERY_OUT_PORT_FLAGS); in efx_ef10_vadaptor_query()
1151 MCDI_DWORD(outbuf, VADAPTOR_QUERY_OUT_VADAPTOR_FLAGS); in efx_ef10_vadaptor_query()
1154 MCDI_DWORD(outbuf, in efx_ef10_vadaptor_query()
1265 MCDI_DECLARE_BUF(outbuf, MC_CMD_ALLOC_VIS_OUT_LEN); in efx_ef10_alloc_vis()
1273 outbuf, sizeof(outbuf), &outlen); in efx_ef10_alloc_vis()
1281 MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_BASE)); in efx_ef10_alloc_vis()
1283 nic_data->vi_base = MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_BASE); in efx_ef10_alloc_vis()
1284 nic_data->n_allocated_vis = MCDI_DWORD(outbuf, ALLOC_VIS_OUT_VI_COUNT); in efx_ef10_alloc_vis()
2176 efx_ef10_mcdi_read_response(struct efx_nic *efx, efx_dword_t *outbuf, in efx_ef10_mcdi_read_response() argument
2182 memcpy(outbuf, pdu + offset, outlen); in efx_ef10_mcdi_read_response()
2535 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_tx_fini()
2544 outbuf, sizeof(outbuf), &outlen); in efx_ef10_tx_fini()
2553 outbuf, outlen, rc); in efx_ef10_tx_fini()
2674 MCDI_DECLARE_BUF(outbuf, MC_CMD_RSS_CONTEXT_GET_FLAGS_OUT_LEN); in efx_ef10_get_rss_flags()
2684 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_rss_flags()
2689 *flags = MCDI_DWORD(outbuf, RSS_CONTEXT_GET_FLAGS_OUT_FLAGS); in efx_ef10_get_rss_flags()
2726 MCDI_DECLARE_BUF(outbuf, MC_CMD_RSS_CONTEXT_ALLOC_OUT_LEN); in efx_ef10_alloc_rss_context()
2755 outbuf, sizeof(outbuf), &outlen); in efx_ef10_alloc_rss_context()
2762 ctx->context_id = MCDI_DWORD(outbuf, RSS_CONTEXT_ALLOC_OUT_RSS_CONTEXT_ID); in efx_ef10_alloc_rss_context()
3134 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_rx_fini()
3143 outbuf, sizeof(outbuf), &outlen); in efx_ef10_rx_fini()
3152 outbuf, outlen, rc); in efx_ef10_rx_fini()
3225 int rc, efx_dword_t *outbuf, in efx_ef10_rx_defer_refill_complete() argument
3242 MCDI_DECLARE_BUF_ERR(outbuf); in efx_ef10_ev_fini()
3250 outbuf, sizeof(outbuf), &outlen); in efx_ef10_ev_fini()
3259 outbuf, outlen, rc); in efx_ef10_ev_fini()
3267 MCDI_DECLARE_BUF(outbuf, MC_CMD_INIT_EVQ_V2_OUT_LEN); in efx_ef10_ev_init()
3324 outbuf, sizeof(outbuf), &outlen); in efx_ef10_ev_init()
3330 MCDI_DWORD(outbuf, INIT_EVQ_V2_OUT_FLAGS)); in efx_ef10_ev_init()
4203 MCDI_DECLARE_BUF(outbuf, MC_CMD_FILTER_OP_EXT_OUT_LEN); in efx_ef10_filter_push()
4208 outbuf, sizeof(outbuf), NULL); in efx_ef10_filter_push()
4210 *handle = MCDI_QWORD(outbuf, FILTER_OP_OUT_HANDLE); in efx_ef10_filter_push()
4917 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PARSER_DISP_INFO_OUT_LENMAX); in efx_ef10_filter_table_probe_matches()
4928 inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), in efx_ef10_filter_table_probe_matches()
4939 outbuf, in efx_ef10_filter_table_probe_matches()
5957 MCDI_DECLARE_BUF(outbuf, MC_CMD_POLL_BIST_OUT_LEN); in efx_ef10_poll_bist()
5962 outbuf, sizeof(outbuf), &outlen); in efx_ef10_poll_bist()
5969 result = MCDI_DWORD(outbuf, POLL_BIST_OUT_RESULT); in efx_ef10_poll_bist()
6051 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_METADATA_OUT_LENMAX); in efx_ef10_mtd_probe_partition()
6077 outbuf, sizeof(outbuf), &outlen); in efx_ef10_mtd_probe_partition()
6082 if (MCDI_DWORD(outbuf, NVRAM_METADATA_OUT_FLAGS) & in efx_ef10_mtd_probe_partition()
6084 part->fw_subtype = MCDI_DWORD(outbuf, in efx_ef10_mtd_probe_partition()
6100 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX); in efx_ef10_mtd_probe()
6110 outbuf, sizeof(outbuf), &outlen); in efx_ef10_mtd_probe()
6116 n_parts_total = MCDI_DWORD(outbuf, NVRAM_PARTITIONS_OUT_NUM_PARTITIONS); in efx_ef10_mtd_probe()
6127 type = MCDI_ARRAY_DWORD(outbuf, NVRAM_PARTITIONS_OUT_TYPE_ID, in efx_ef10_mtd_probe()
6313 MCDI_DECLARE_BUF(outbuf, MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_OUT_LEN); in efx_ef10_set_udp_tnl_ports()
6365 inbuf, inlen, outbuf, sizeof(outbuf), &outlen); in efx_ef10_set_udp_tnl_ports()
6380 } else if (MCDI_DWORD(outbuf, SET_TUNNEL_ENCAP_UDP_PORTS_OUT_FLAGS) & in efx_ef10_set_udp_tnl_ports()