Lines Matching refs:outbuf

17 	MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_CFG_OUT_LEN);  in efx_mcdi_get_phy_cfg()
25 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_phy_cfg()
34 cfg->flags = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_FLAGS); in efx_mcdi_get_phy_cfg()
35 cfg->type = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_TYPE); in efx_mcdi_get_phy_cfg()
37 MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_SUPPORTED_CAP); in efx_mcdi_get_phy_cfg()
38 cfg->channel = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_CHANNEL); in efx_mcdi_get_phy_cfg()
39 cfg->port = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_PRT); in efx_mcdi_get_phy_cfg()
40 cfg->stats_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_STATS_MASK); in efx_mcdi_get_phy_cfg()
41 memcpy(cfg->name, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_NAME), in efx_mcdi_get_phy_cfg()
43 cfg->media = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MEDIA_TYPE); in efx_mcdi_get_phy_cfg()
44 cfg->mmd_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MMD_MASK); in efx_mcdi_get_phy_cfg()
45 memcpy(cfg->revision, MCDI_PTR(outbuf, GET_PHY_CFG_OUT_REVISION), in efx_mcdi_get_phy_cfg()
88 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LOOPBACK_MODES_OUT_LEN); in efx_mcdi_loopback_modes()
93 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_loopback_modes()
103 *loopback_modes = MCDI_QWORD(outbuf, GET_LOOPBACK_MODES_OUT_SUGGESTED); in efx_mcdi_loopback_modes()
403 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_LEN); in efx_mcdi_phy_poll()
411 outbuf, sizeof(outbuf), NULL); in efx_mcdi_phy_poll()
417 MCDI_DWORD(outbuf, GET_LINK_OUT_LINK_SPEED), in efx_mcdi_phy_poll()
418 MCDI_DWORD(outbuf, GET_LINK_OUT_FLAGS), in efx_mcdi_phy_poll()
419 MCDI_DWORD(outbuf, GET_LINK_OUT_FCNTL)); in efx_mcdi_phy_poll()
427 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_LEN); in efx_mcdi_phy_probe()
443 outbuf, sizeof(outbuf), NULL); in efx_mcdi_phy_probe()
460 caps = MCDI_DWORD(outbuf, GET_LINK_OUT_CAP); in efx_mcdi_phy_probe()
506 MCDI_DWORD(outbuf, GET_LINK_OUT_LINK_SPEED), in efx_mcdi_phy_probe()
507 MCDI_DWORD(outbuf, GET_LINK_OUT_FLAGS), in efx_mcdi_phy_probe()
508 MCDI_DWORD(outbuf, GET_LINK_OUT_FCNTL)); in efx_mcdi_phy_probe()
541 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_LEN); in efx_mcdi_phy_get_link_ksettings()
559 outbuf, sizeof(outbuf), NULL); in efx_mcdi_phy_get_link_ksettings()
563 MCDI_DWORD(outbuf, GET_LINK_OUT_LP_CAP), in efx_mcdi_phy_get_link_ksettings()
616 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_LINK_OUT_V2_LEN); in efx_mcdi_phy_get_fecparam()
624 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_phy_get_fecparam()
631 speed = MCDI_DWORD(outbuf, GET_LINK_OUT_V2_LINK_SPEED); in efx_mcdi_phy_get_fecparam()
634 caps = MCDI_DWORD(outbuf, GET_LINK_OUT_V2_CAP); in efx_mcdi_phy_get_fecparam()
640 active = MCDI_DWORD(outbuf, GET_LINK_OUT_V2_FEC_TYPE); in efx_mcdi_phy_get_fecparam()
711 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_STATE_OUT_LEN); in efx_mcdi_phy_test_alive()
718 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_phy_test_alive()
724 if (MCDI_DWORD(outbuf, GET_PHY_STATE_OUT_STATE) != MC_CMD_PHY_STATE_OK) in efx_mcdi_phy_test_alive()
761 MCDI_DECLARE_BUF(outbuf, MC_CMD_POLL_BIST_OUT_SFT9001_LEN); in efx_mcdi_bist()
776 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_bist()
780 status = MCDI_DWORD(outbuf, POLL_BIST_OUT_RESULT); in efx_mcdi_bist()
797 ptr = MCDI_PTR(outbuf, POLL_BIST_OUT_SFT9001_CABLE_LENGTH_A); in efx_mcdi_bist()
903 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PHY_MEDIA_INFO_OUT_LENMAX); in efx_mcdi_phy_get_module_eeprom_page()
918 outbuf, sizeof(outbuf), in efx_mcdi_phy_get_module_eeprom_page()
928 payload_len = MCDI_DWORD(outbuf, GET_PHY_MEDIA_INFO_OUT_DATALEN); in efx_mcdi_phy_get_module_eeprom_page()
932 memcpy(data, MCDI_PTR(outbuf, GET_PHY_MEDIA_INFO_OUT_DATA) + offset, in efx_mcdi_phy_get_module_eeprom_page()
1257 MCDI_DECLARE_BUF(outbuf, MC_CMD_GET_PORT_ASSIGNMENT_OUT_LEN); in efx_mcdi_port_get_number()
1261 outbuf, sizeof(outbuf), NULL); in efx_mcdi_port_get_number()
1265 return MCDI_DWORD(outbuf, GET_PORT_ASSIGNMENT_OUT_PORT); in efx_mcdi_port_get_number()