Lines Matching refs:outbuf
90 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_FUNCTION_INFO_OUT_LEN); in efx_ef10_get_vf_index()
95 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_vf_index()
96 sizeof(outbuf), &outlen); in efx_ef10_get_vf_index()
99 if (outlen < sizeof(outbuf)) in efx_ef10_get_vf_index()
102 nic_data->vf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_VF); in efx_ef10_get_vf_index()
109 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CAPABILITIES_V4_OUT_LEN); in efx_ef10_init_datapath_caps()
117 outbuf, sizeof(outbuf), &outlen); in efx_ef10_init_datapath_caps()
127 MCDI_DWORD(outbuf, GET_CAPABILITIES_OUT_FLAGS1); in efx_ef10_init_datapath_caps()
130 nic_data->datapath_caps2 = MCDI_DWORD(outbuf, in efx_ef10_init_datapath_caps()
132 nic_data->piobuf_size = MCDI_WORD(outbuf, in efx_ef10_init_datapath_caps()
142 MCDI_WORD(outbuf, GET_CAPABILITIES_OUT_RX_DPCPU_FW_ID); in efx_ef10_init_datapath_caps()
144 MCDI_WORD(outbuf, GET_CAPABILITIES_OUT_TX_DPCPU_FW_ID); in efx_ef10_init_datapath_caps()
154 u8 vi_window_mode = MCDI_BYTE(outbuf, in efx_ef10_init_datapath_caps()
168 efx->num_mac_stats = MCDI_WORD(outbuf, in efx_ef10_init_datapath_caps()
186 MCDI_DECLARE_BUF(outbuf, MC_CMD_LICENSING_V3_OUT_LEN); in efx_ef10_read_licensed_features()
194 outbuf, sizeof(outbuf), &outlen); in efx_ef10_read_licensed_features()
198 nic_data->licensed_features = MCDI_QWORD(outbuf, in efx_ef10_read_licensed_features()
204 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_CLOCK_OUT_LEN); in efx_ef10_get_sysclk_freq()
208 outbuf, sizeof(outbuf), NULL); in efx_ef10_get_sysclk_freq()
211 rc = MCDI_DWORD(outbuf, GET_CLOCK_OUT_SYS_FREQ); in efx_ef10_get_sysclk_freq()
292 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_EVQ_TMR_PROPERTIES_OUT_LEN); in efx_ef10_get_timer_config()
300 outbuf, sizeof(outbuf), NULL); in efx_ef10_get_timer_config()
303 efx_ef10_process_timer_config(efx, outbuf); in efx_ef10_get_timer_config()
327 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_MAC_ADDRESSES_OUT_LEN); in efx_ef10_get_mac_address_pf()
334 outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_pf()
341 MCDI_PTR(outbuf, GET_MAC_ADDRESSES_OUT_MAC_ADDR_BASE)); in efx_ef10_get_mac_address_pf()
348 MCDI_DECLARE_BUF(outbuf, MC_CMD_VPORT_GET_MAC_ADDRESSES_OUT_LENMAX); in efx_ef10_get_mac_address_vf()
355 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_vf()
362 num_addrs = MCDI_DWORD(outbuf, in efx_ef10_get_mac_address_vf()
368 MCDI_PTR(outbuf, VPORT_GET_MAC_ADDRESSES_OUT_MACADDR)); in efx_ef10_get_mac_address_vf()
738 MCDI_DECLARE_BUF(outbuf, MC_CMD_ALLOC_PIOBUF_OUT_LEN); in efx_ef10_alloc_piobufs()
747 outbuf, sizeof(outbuf), &outlen); in efx_ef10_alloc_piobufs()
754 0, outbuf, outlen, rc); in efx_ef10_alloc_piobufs()
762 MCDI_DWORD(outbuf, ALLOC_PIOBUF_OUT_PIOBUF_HANDLE); in efx_ef10_alloc_piobufs()
989 MCDI_DECLARE_BUF(outbuf, MC_CMD_VADAPTOR_QUERY_OUT_LEN); in efx_ef10_vadaptor_query()
999 outbuf, sizeof(outbuf), &outlen); in efx_ef10_vadaptor_query()
1003 if (outlen < sizeof(outbuf)) { in efx_ef10_vadaptor_query()
1010 *port_flags = MCDI_DWORD(outbuf, VADAPTOR_QUERY_OUT_PORT_FLAGS); in efx_ef10_vadaptor_query()
1013 MCDI_DWORD(outbuf, VADAPTOR_QUERY_OUT_VADAPTOR_FLAGS); in efx_ef10_vadaptor_query()
1016 MCDI_DWORD(outbuf, in efx_ef10_vadaptor_query()
2082 efx_ef10_mcdi_read_response(struct efx_nic *efx, efx_dword_t *outbuf, in efx_ef10_mcdi_read_response() argument
2088 memcpy(outbuf, pdu + offset, outlen); in efx_ef10_mcdi_read_response()
2651 int rc, efx_dword_t *outbuf, in efx_ef10_rx_defer_refill_complete() argument
3399 MCDI_DECLARE_BUF(outbuf, MC_CMD_POLL_BIST_OUT_LEN); in efx_ef10_poll_bist()
3404 outbuf, sizeof(outbuf), &outlen); in efx_ef10_poll_bist()
3411 result = MCDI_DWORD(outbuf, POLL_BIST_OUT_RESULT); in efx_ef10_poll_bist()
3502 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_METADATA_OUT_LENMAX); in efx_ef10_mtd_probe_partition()
3543 outbuf, sizeof(outbuf), &outlen); in efx_ef10_mtd_probe_partition()
3548 if (MCDI_DWORD(outbuf, NVRAM_METADATA_OUT_FLAGS) & in efx_ef10_mtd_probe_partition()
3550 part->fw_subtype = MCDI_DWORD(outbuf, in efx_ef10_mtd_probe_partition()
3569 MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX); in efx_ef10_mtd_probe()
3580 outbuf, sizeof(outbuf), &outlen); in efx_ef10_mtd_probe()
3586 n_parts_total = MCDI_DWORD(outbuf, NVRAM_PARTITIONS_OUT_NUM_PARTITIONS); in efx_ef10_mtd_probe()
3597 type = MCDI_ARRAY_DWORD(outbuf, NVRAM_PARTITIONS_OUT_TYPE_ID, in efx_ef10_mtd_probe()
3790 MCDI_DECLARE_BUF(outbuf, MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_OUT_LEN); in efx_ef10_set_udp_tnl_ports()
3842 inbuf, inlen, outbuf, sizeof(outbuf), &outlen); in efx_ef10_set_udp_tnl_ports()
3857 } else if (MCDI_DWORD(outbuf, SET_TUNNEL_ENCAP_UDP_PORTS_OUT_FLAGS) & in efx_ef10_set_udp_tnl_ports()