src/dpdk/drivers/net/ixgbe/ixgbe_bypass.c
static void
ixgbe_bypass_set_time(struct ixgbe_adapter *adapter)
{
	u32 mask, value;
	u32 sec;
	struct ixgbe_hw *hw = &adapter->hw;

	sec = 0;

	/*
	 * Send the FW our current time and turn on time_valid and
	 * timer_reset bits.
	 */
	mask = BYPASS_CTL1_TIME_M |
	       BYPASS_CTL1_VALID_M |
	       BYPASS_CTL1_OFFTRST_M;
	value = (sec & BYPASS_CTL1_TIME_M) |
		BYPASS_CTL1_VALID |
		BYPASS_CTL1_OFFTRST;

	FUNC_PTR_OR_RET(adapter->bps.ops.bypass_set);

	/* Store FW reset time (in seconds from epoch). */
	adapter->bps.reset_tm = time(NULL);

	/* reset FW timer. */
	adapter->bps.ops.bypass_set(hw, BYPASS_PAGE_CTL1, mask, value);
}
/**
 *  ixgbe_bypass_set_time - Set bypass FW time epoc.
 *
 *  @hw: pointer to hardware structure
 *
 *  This function with sync the FW date stamp with that of the
 *  system clock.
 **/
Set bypass FW time epoc.
@hw: pointer to hardware structure

This function with sync the FW date stamp with that of the
system clock.
Set bypass FW time epoc . @hw : pointer to hardware structure This function with sync the FW date stamp with that of the system clock .
static void
ixgbe_bypass_set_time(struct ixgbe_adapter *adapter)
{
	u32 mask, value;
	u32 sec;
	struct ixgbe_hw *hw = &adapter->hw;
	sec = 0;
	mask = BYPASS_CTL1_TIME_M |
	       BYPASS_CTL1_VALID_M |
	       BYPASS_CTL1_OFFTRST_M;
	value = (sec & BYPASS_CTL1_TIME_M) |
		BYPASS_CTL1_VALID |
		BYPASS_CTL1_OFFTRST;
	FUNC_PTR_OR_RET(adapter->bps.ops.bypass_set);
	adapter->bps.reset_tm = time(NULL);
	adapter->bps.ops.bypass_set(hw, BYPASS_PAGE_CTL1, mask, value);
}
static void ixgbe_bypass_set_time ( struct ixgbe_adapter * adapter ) { u32 mask , value ; u32 sec ; struct ixgbe_hw * hw = & adapter -> hw ; sec = 0 ; mask = BYPASS_CTL1_TIME_M | BYPASS_CTL1_VALID_M | BYPASS_CTL1_OFFTRST_M ; value = ( sec & BYPASS_CTL1_TIME_M ) | BYPASS_CTL1_VALID | BYPASS_CTL1_OFFTRST ; FUNC_PTR_OR_RET ( adapter -> bps . ops . bypass_set ) ; adapter -> bps . reset_tm = time ( NULL ) ; adapter -> bps . ops . bypass_set ( hw , BYPASS_PAGE_CTL1 , mask , value ) ; }
ixgbe_bypass_set_time - Set bypass FW time epoc.
ixgbe_bypass_set_time - Set bypass FW time epoc .
/*
	 * Send the FW our current time and turn on time_valid and
	 * timer_reset bits.
	 */ /* Store FW reset time (in seconds from epoch). */ /* reset FW timer. */