Lines Matching refs:inbuf
185 MCDI_DECLARE_BUF(inbuf, MC_CMD_LICENSING_V3_IN_LEN); in efx_ef10_read_licensed_features()
191 MCDI_SET_DWORD(inbuf, LICENSING_V3_IN_OP, in efx_ef10_read_licensed_features()
193 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_LICENSING_V3, inbuf, sizeof(inbuf), in efx_ef10_read_licensed_features()
347 MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_GET_MAC_ADDRESSES_IN_LEN); in efx_ef10_get_mac_address_vf()
352 MCDI_SET_DWORD(inbuf, VPORT_GET_MAC_ADDRESSES_IN_VPORT_ID, in efx_ef10_get_mac_address_vf()
354 rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_GET_MAC_ADDRESSES, inbuf, in efx_ef10_get_mac_address_vf()
355 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_vf()
718 MCDI_DECLARE_BUF(inbuf, MC_CMD_FREE_PIOBUF_IN_LEN); in efx_ef10_free_piobufs()
725 MCDI_SET_DWORD(inbuf, FREE_PIOBUF_IN_PIOBUF_HANDLE, in efx_ef10_free_piobufs()
727 rc = efx_mcdi_rpc(efx, MC_CMD_FREE_PIOBUF, inbuf, sizeof(inbuf), in efx_ef10_free_piobufs()
777 MCDI_DECLARE_BUF(inbuf, MC_CMD_LINK_PIOBUF_IN_LEN); in efx_ef10_link_piobufs()
788 MCDI_SET_DWORD(inbuf, LINK_PIOBUF_IN_PIOBUF_HANDLE, in efx_ef10_link_piobufs()
790 MCDI_SET_DWORD(inbuf, LINK_PIOBUF_IN_TXQ_INSTANCE, in efx_ef10_link_piobufs()
793 inbuf, MC_CMD_LINK_PIOBUF_IN_LEN, in efx_ef10_link_piobufs()
836 MCDI_SET_DWORD(inbuf, in efx_ef10_link_piobufs()
839 MCDI_SET_DWORD(inbuf, in efx_ef10_link_piobufs()
843 inbuf, MC_CMD_LINK_PIOBUF_IN_LEN, in efx_ef10_link_piobufs()
877 MCDI_SET_DWORD(inbuf, UNLINK_PIOBUF_IN_TXQ_INSTANCE, in efx_ef10_link_piobufs()
880 inbuf, MC_CMD_UNLINK_PIOBUF_IN_LEN, in efx_ef10_link_piobufs()
988 MCDI_DECLARE_BUF(inbuf, MC_CMD_VADAPTOR_QUERY_IN_LEN); in efx_ef10_vadaptor_query()
995 MCDI_SET_DWORD(inbuf, VADAPTOR_QUERY_IN_UPSTREAM_PORT_ID, in efx_ef10_vadaptor_query()
998 rc = efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_QUERY, inbuf, sizeof(inbuf), in efx_ef10_vadaptor_query()
1024 MCDI_DECLARE_BUF(inbuf, MC_CMD_VADAPTOR_ALLOC_IN_LEN); in efx_ef10_vadaptor_alloc()
1026 MCDI_SET_DWORD(inbuf, VADAPTOR_ALLOC_IN_UPSTREAM_PORT_ID, port_id); in efx_ef10_vadaptor_alloc()
1027 return efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vadaptor_alloc()
1033 MCDI_DECLARE_BUF(inbuf, MC_CMD_VADAPTOR_FREE_IN_LEN); in efx_ef10_vadaptor_free()
1035 MCDI_SET_DWORD(inbuf, VADAPTOR_FREE_IN_UPSTREAM_PORT_ID, port_id); in efx_ef10_vadaptor_free()
1036 return efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_FREE, inbuf, sizeof(inbuf), in efx_ef10_vadaptor_free()
1043 MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_ADD_MAC_ADDRESS_IN_LEN); in efx_ef10_vport_add_mac()
1045 MCDI_SET_DWORD(inbuf, VPORT_ADD_MAC_ADDRESS_IN_VPORT_ID, port_id); in efx_ef10_vport_add_mac()
1046 ether_addr_copy(MCDI_PTR(inbuf, VPORT_ADD_MAC_ADDRESS_IN_MACADDR), mac); in efx_ef10_vport_add_mac()
1048 return efx_mcdi_rpc(efx, MC_CMD_VPORT_ADD_MAC_ADDRESS, inbuf, in efx_ef10_vport_add_mac()
1049 sizeof(inbuf), NULL, 0, NULL); in efx_ef10_vport_add_mac()
1055 MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_DEL_MAC_ADDRESS_IN_LEN); in efx_ef10_vport_del_mac()
1057 MCDI_SET_DWORD(inbuf, VPORT_DEL_MAC_ADDRESS_IN_VPORT_ID, port_id); in efx_ef10_vport_del_mac()
1058 ether_addr_copy(MCDI_PTR(inbuf, VPORT_DEL_MAC_ADDRESS_IN_MACADDR), mac); in efx_ef10_vport_del_mac()
1060 return efx_mcdi_rpc(efx, MC_CMD_VPORT_DEL_MAC_ADDRESS, inbuf, in efx_ef10_vport_del_mac()
1061 sizeof(inbuf), NULL, 0, NULL); in efx_ef10_vport_del_mac()
1896 MCDI_DECLARE_BUF(inbuf, MC_CMD_MAC_STATS_IN_LEN); in efx_ef10_try_update_nic_stats_vf()
1919 MCDI_SET_QWORD(inbuf, MAC_STATS_IN_DMA_ADDR, stats_buf.dma_addr); in efx_ef10_try_update_nic_stats_vf()
1920 MCDI_POPULATE_DWORD_1(inbuf, MAC_STATS_IN_CMD, in efx_ef10_try_update_nic_stats_vf()
1922 MCDI_SET_DWORD(inbuf, MAC_STATS_IN_DMA_LEN, dma_len); in efx_ef10_try_update_nic_stats_vf()
1923 MCDI_SET_DWORD(inbuf, MAC_STATS_IN_PORT_ID, EVB_PORT_ID_ASSIGNED); in efx_ef10_try_update_nic_stats_vf()
1925 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_MAC_STATS, inbuf, sizeof(inbuf), in efx_ef10_try_update_nic_stats_vf()
1932 sizeof(inbuf), NULL, 0, rc); in efx_ef10_try_update_nic_stats_vf()
1996 MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_EVQ_TMR_IN_LEN); in efx_ef10_push_irq_moderation()
1999 MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_INSTANCE, in efx_ef10_push_irq_moderation()
2001 MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_TMR_LOAD_REQ_NS, ns); in efx_ef10_push_irq_moderation()
2002 MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_TMR_RELOAD_REQ_NS, ns); in efx_ef10_push_irq_moderation()
2003 MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_TMR_MODE, mode); in efx_ef10_push_irq_moderation()
2006 inbuf, sizeof(inbuf), 0, NULL, 0); in efx_ef10_push_irq_moderation()
2194 MCDI_DECLARE_BUF(inbuf, MC_CMD_TRIGGER_INTERRUPT_IN_LEN); in efx_ef10_irq_test_generate()
2202 MCDI_SET_DWORD(inbuf, TRIGGER_INTERRUPT_IN_INTR_LEVEL, efx->irq_level); in efx_ef10_irq_test_generate()
2204 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_ef10_irq_test_generate()
2619 MCDI_DECLARE_BUF(inbuf, MC_CMD_DRIVER_EVENT_IN_LEN); in efx_ef10_rx_defer_refill()
2626 MCDI_SET_DWORD(inbuf, DRIVER_EVENT_IN_EVQ, channel->channel); in efx_ef10_rx_defer_refill()
2631 memcpy(MCDI_PTR(inbuf, DRIVER_EVENT_IN_DATA), &event.u64[0], in efx_ef10_rx_defer_refill()
2635 inbuf, sizeof(inbuf), 0, in efx_ef10_rx_defer_refill()
3186 MCDI_DECLARE_BUF(inbuf, MC_CMD_DRIVER_EVENT_IN_LEN); in efx_ef10_ev_test_generate()
3195 MCDI_SET_DWORD(inbuf, DRIVER_EVENT_IN_EVQ, channel->channel); in efx_ef10_ev_test_generate()
3200 memcpy(MCDI_PTR(inbuf, DRIVER_EVENT_IN_DATA), &event.u64[0], in efx_ef10_ev_test_generate()
3203 rc = efx_mcdi_rpc(efx, MC_CMD_DRIVER_EVENT, inbuf, sizeof(inbuf), in efx_ef10_ev_test_generate()
3288 MCDI_DECLARE_BUF(inbuf, MC_CMD_VADAPTOR_SET_MAC_IN_LEN); in efx_ef10_set_mac_address()
3323 ether_addr_copy(MCDI_PTR(inbuf, VADAPTOR_SET_MAC_IN_MACADDR), in efx_ef10_set_mac_address()
3325 MCDI_SET_DWORD(inbuf, VADAPTOR_SET_MAC_IN_UPSTREAM_PORT_ID, in efx_ef10_set_mac_address()
3327 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VADAPTOR_SET_MAC, inbuf, in efx_ef10_set_mac_address()
3328 sizeof(inbuf), NULL, 0, NULL); in efx_ef10_set_mac_address()
3351 sizeof(inbuf), NULL, 0, rc); in efx_ef10_set_mac_address()
3370 MCDI_DECLARE_BUF(inbuf, MC_CMD_START_BIST_IN_LEN); in efx_ef10_start_bist()
3372 MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_type); in efx_ef10_start_bist()
3373 return efx_mcdi_rpc(efx, MC_CMD_START_BIST, inbuf, sizeof(inbuf), in efx_ef10_start_bist()
3486 MCDI_DECLARE_BUF(inbuf, MC_CMD_NVRAM_METADATA_IN_LEN); in efx_ef10_mtd_probe_partition()
3526 MCDI_SET_DWORD(inbuf, NVRAM_METADATA_IN_TYPE, type); in efx_ef10_mtd_probe_partition()
3527 rc = efx_mcdi_rpc(efx, MC_CMD_NVRAM_METADATA, inbuf, sizeof(inbuf), in efx_ef10_mtd_probe_partition()
3618 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_TIME_EVENT_SUBSCRIBE_LEN); in efx_ef10_rx_enable_timestamping()
3627 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_TIME_EVENT_SUBSCRIBE); in efx_ef10_rx_enable_timestamping()
3628 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ef10_rx_enable_timestamping()
3629 MCDI_SET_DWORD(inbuf, PTP_IN_TIME_EVENT_SUBSCRIBE_QUEUE, in efx_ef10_rx_enable_timestamping()
3633 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_ef10_rx_enable_timestamping()
3645 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_TIME_EVENT_UNSUBSCRIBE_LEN); in efx_ef10_rx_disable_timestamping()
3658 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_TIME_EVENT_UNSUBSCRIBE); in efx_ef10_rx_disable_timestamping()
3659 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ef10_rx_disable_timestamping()
3660 MCDI_SET_DWORD(inbuf, PTP_IN_TIME_EVENT_UNSUBSCRIBE_CONTROL, in efx_ef10_rx_disable_timestamping()
3662 MCDI_SET_DWORD(inbuf, PTP_IN_TIME_EVENT_UNSUBSCRIBE_QUEUE, in efx_ef10_rx_disable_timestamping()
3666 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_ef10_rx_disable_timestamping()
3774 MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_TUNNEL_ENCAP_UDP_PORTS_IN_LENMAX); in efx_ef10_set_udp_tnl_ports()
3806 *_MCDI_ARRAY_DWORD(inbuf, in efx_ef10_set_udp_tnl_ports()
3821 *_MCDI_DWORD(inbuf, SET_TUNNEL_ENCAP_UDP_PORTS_IN_FLAGS) = in efx_ef10_set_udp_tnl_ports()
3827 inbuf, inlen, outbuf, sizeof(outbuf), &outlen); in efx_ef10_set_udp_tnl_ports()