FreeBSD/sys/dev/nxge/xgehal/xgehal-device.c
/*
 * __hal_device_shared_splits_configure
 * @hldev: HAL device handle.
 *
 * TxDMA will stop Read request if the number of read split had exceeded
 * the limit set by shared_splits
 */
hal_device_shared_splits_configure
@hldev: HAL device handle.

TxDMA will stop Read request if the number of read split had exceeded
the limit set by shared_splits
hal_device_shared_splits_configure @hldev : HAL device handle . TxDMA will stop Read request if the number of read split had exceeded the limit set by shared_splits
static void
__hal_device_shared_splits_configure(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->pic_control);
	val64 |=
	XGE_HAL_PIC_CNTL_SHARED_SPLITS(hldev->config.shared_splits);
	xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, val64,
	             &bar0->pic_control);
	xge_debug_device(XGE_TRACE, "%s", "shared splits configured");
}
static void __hal_device_shared_splits_configure ( 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 -> pic_control ) ; val64 |= XGE_HAL_PIC_CNTL_SHARED_SPLITS ( hldev -> config . shared_splits ) ; xge_os_pio_mem_write64 ( hldev -> pdev , hldev -> regh0 , val64 , & bar0 -> pic_control ) ; xge_debug_device ( XGE_TRACE , " " , " " ) ; }
__hal_device_shared_splits_configure
 @hldev: HAL device handle.
__hal_device_shared_splits_configure @hldev : HAL device handle .