FreeBSD/sys/dev/nxge/xgehal/xgehal-device.c
/**
 * xge_hal_rts_rth_clr - Clear RTS hashing.
 * @hldev: HAL device handle.
 *
 * This function is used to clear all RTS hashing related stuff.
 * It brings the adapter out from enhanced mode to classic mode.
 * It also clears RTS_RTH_CFG register i.e clears hash type, function etc.
 *
 * See also: xge_hal_rts_rth_set(), xge_hal_rts_rth_itable_set().
 */
Clear RTS hashing.
@hldev: HAL device handle.

This function is used to clear all RTS hashing related stuff.
It brings the adapter out from enhanced mode to classic mode.
It also clears RTS_RTH_CFG register i.e clears hash type, function etc.


Clear RTS hashing . @hldev : HAL device handle . This function is used to clear all RTS hashing related stuff . It brings the adapter out from enhanced mode to classic mode . It also clears RTS_RTH_CFG register i . e clears hash type function etc .
void
xge_hal_rts_rth_clr(xge_hal_device_t *hldev)
{
	xge_hal_pci_bar0_t *bar0 = (xge_hal_pci_bar0_t *)(void *)hldev->bar0;
	u64 val64;
	val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0,
	                  &bar0->rts_ctrl);
	val64 &=  ~XGE_HAL_RTS_CTRL_ENHANCED_MODE;
	xge_os_pio_mem_write64(hldev->pdev, hldev->regh0,
	               val64, &bar0->rts_ctrl);
	val64 = 0;
	xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64,
	               &bar0->rts_rth_cfg);
}
void xge_hal_rts_rth_clr ( xge_hal_device_t * hldev ) { xge_hal_pci_bar0_t * bar0 = ( xge_hal_pci_bar0_t * ) ( void * ) hldev -> bar0 ; u64 val64 ; val64 = xge_os_pio_mem_read64 ( hldev -> pdev , hldev -> regh0 , & bar0 -> rts_ctrl ) ; val64 &= ~ XGE_HAL_RTS_CTRL_ENHANCED_MODE ; xge_os_pio_mem_write64 ( hldev -> pdev , hldev -> regh0 , val64 , & bar0 -> rts_ctrl ) ; val64 = 0 ; xge_os_pio_mem_write64 ( hldev -> pdev , hldev -> regh0 , val64 , & bar0 -> rts_rth_cfg ) ; }
xge_hal_rts_rth_clr - Clear RTS hashing.
xge_hal_rts_rth_clr - Clear RTS hashing .
/*
	 * Set the receive traffic steering mode from default(classic)
	 * to enhanced.
	 */