src/dpdk/drivers/net/cxgbe/base/t4vf_hw.c
int t4vf_fw_reset(struct adapter *adapter)
{
	struct fw_reset_cmd cmd;

	memset(&cmd, 0, sizeof(cmd));
	cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_RESET_CMD) |
				      F_FW_CMD_WRITE);
	cmd.retval_len16 = cpu_to_be32(V_FW_CMD_LEN16(FW_LEN16(cmd)));
	return t4vf_wr_mbox(adapter, &cmd, sizeof(cmd), NULL);
}
/**
 * t4vf_fw_reset - issue a reset to FW
 * @adapter: the adapter
 *
 * Issues a reset command to FW.  For a Physical Function this would
 * result in the Firmware resetting all of its state.  For a Virtual
 * Function this just resets the state associated with the VF.
 */
issue a reset to FW
@adapter: the adapter

Issues a reset command to FW.  For a Physical Function this would
result in the Firmware resetting all of its state.  For a Virtual
Function this just resets the state associated with the VF.
issue a reset to FW @adapter : the adapter Issues a reset command to FW . For a Physical Function this would result in the Firmware resetting all of its state . For a Virtual Function this just resets the state associated with the VF .
int t4vf_fw_reset(struct adapter *adapter)
{
	struct fw_reset_cmd cmd;
	memset(&cmd, 0, sizeof(cmd));
	cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_RESET_CMD) |
				      F_FW_CMD_WRITE);
	cmd.retval_len16 = cpu_to_be32(V_FW_CMD_LEN16(FW_LEN16(cmd)));
	return t4vf_wr_mbox(adapter, &cmd, sizeof(cmd), NULL);
}
int t4vf_fw_reset ( struct adapter * adapter ) { struct fw_reset_cmd cmd ; memset ( & cmd , 0 , sizeof ( cmd ) ) ; cmd . op_to_write = cpu_to_be32 ( V_FW_CMD_OP ( FW_RESET_CMD ) | F_FW_CMD_WRITE ) ; cmd . retval_len16 = cpu_to_be32 ( V_FW_CMD_LEN16 ( FW_LEN16 ( cmd ) ) ) ; return t4vf_wr_mbox ( adapter , & cmd , sizeof ( cmd ) , NULL ) ; }
t4vf_fw_reset - issue a reset to FW
 @adapter: the adapter
t4vf_fw_reset - issue a reset to FW @adapter : the adapter