sdk/linux_kernel_drivers/xocl/xocl_exec.c
/**
 * cu_idx_to_addr() - Convert CU idx into it relative bar address.
 *
 * @xdev: Device handle
 * @cu_idx: Global CU idx
 * Return: Address of CU relative to bar
 */
Convert CU idx into it relative bar address.
@xdev: Device handle
@cu_idx: Global CU idx
Return: Address of CU relative to bar
Convert CU idx into it relative bar address . @xdev : Device handle @cu_idx : Global CU idx Return : Address of CU relative to bar
inline u32
cu_idx_to_addr(struct drm_xocl_dev *xdev,unsigned int cu_idx)
{
	return (cu_idx << xdev->exec.cu_shift_offset) + xdev->exec.cu_base_addr;
}
inline u32 cu_idx_to_addr ( struct drm_xocl_dev * xdev , unsigned int cu_idx ) { return ( cu_idx << xdev -> exec . cu_shift_offset ) + xdev -> exec . cu_base_addr ; }
cu_idx_to_addr() - Convert CU idx into it relative bar address.
cu_idx_to_addr () - Convert CU idx into it relative bar address .