sdk/linux_kernel_drivers/xocl/xocl_exec.c
/**
 * cu_masks() - Number of command packet cu_masks
 *
 * @xcmd: Command object
 * Return: Total number of CU masks in command packet
 */
Number of command packet cu_masks
@xcmd: Command object
Return: Total number of CU masks in command packet
Number of command packet cu_masks @xcmd : Command object Return : Total number of CU masks in command packet
inline u32
cu_masks(struct xocl_cmd *xcmd)
{
	struct ert_start_kernel_cmd *sk;
	if (opcode(xcmd)!=ERT_START_KERNEL)
		return 0;
	sk = (struct ert_start_kernel_cmd *)xcmd->packet;
	return 1 + sk->extra_cu_masks;
}
inline u32 cu_masks ( struct xocl_cmd * xcmd ) { struct ert_start_kernel_cmd * sk ; if ( opcode ( xcmd ) != ERT_START_KERNEL ) return 0 ; sk = ( struct ert_start_kernel_cmd * ) xcmd -> packet ; return 1 + sk -> extra_cu_masks ; }
cu_masks() - Number of command packet cu_masks
 @xcmd: Command object
 Return: Total number of CU masks in command packet
cu_masks () - Number of command packet cu_masks @xcmd : Command object Return : Total number of CU masks in command packet