Lines Matching refs:token_cmd
735 struct ixgbe_hic_phy_token_req token_cmd; in ixgbe_get_phy_token() local
738 token_cmd.hdr.cmd = FW_PHY_TOKEN_REQ_CMD; in ixgbe_get_phy_token()
739 token_cmd.hdr.buf_len = FW_PHY_TOKEN_REQ_LEN; in ixgbe_get_phy_token()
740 token_cmd.hdr.cmd_or_resp.cmd_resv = 0; in ixgbe_get_phy_token()
741 token_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM; in ixgbe_get_phy_token()
742 token_cmd.port_number = hw->bus.lan_id; in ixgbe_get_phy_token()
743 token_cmd.command_type = FW_PHY_TOKEN_REQ; in ixgbe_get_phy_token()
744 token_cmd.pad = 0; in ixgbe_get_phy_token()
745 status = ixgbe_host_interface_command(hw, &token_cmd, sizeof(token_cmd), in ixgbe_get_phy_token()
750 if (token_cmd.hdr.cmd_or_resp.ret_status == FW_PHY_TOKEN_OK) in ixgbe_get_phy_token()
752 if (token_cmd.hdr.cmd_or_resp.ret_status != FW_PHY_TOKEN_RETRY) in ixgbe_get_phy_token()
764 struct ixgbe_hic_phy_token_req token_cmd; in ixgbe_put_phy_token() local
767 token_cmd.hdr.cmd = FW_PHY_TOKEN_REQ_CMD; in ixgbe_put_phy_token()
768 token_cmd.hdr.buf_len = FW_PHY_TOKEN_REQ_LEN; in ixgbe_put_phy_token()
769 token_cmd.hdr.cmd_or_resp.cmd_resv = 0; in ixgbe_put_phy_token()
770 token_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM; in ixgbe_put_phy_token()
771 token_cmd.port_number = hw->bus.lan_id; in ixgbe_put_phy_token()
772 token_cmd.command_type = FW_PHY_TOKEN_REL; in ixgbe_put_phy_token()
773 token_cmd.pad = 0; in ixgbe_put_phy_token()
774 status = ixgbe_host_interface_command(hw, &token_cmd, sizeof(token_cmd), in ixgbe_put_phy_token()
779 if (token_cmd.hdr.cmd_or_resp.ret_status == FW_PHY_TOKEN_OK) in ixgbe_put_phy_token()