sdk/linux_kernel_drivers/xocl/xocl_exec.c
/**
 * release_slot_idx() - Release a slot index
 * 
 * Update slot status mask for slot index.  Notify scheduler in case
 * release is via ISR
 * 
 * @xdev: scheduler
 * @slot_idx: the slot index to release
 */
Release a slot index

Update slot status mask for slot index.  Notify scheduler in case
release is via ISR

@xdev: scheduler
@slot_idx: the slot index to release
Release a slot index Update slot status mask for slot index . Notify scheduler in case release is via ISR @xdev : scheduler @slot_idx : the slot index to release
static void
release_slot_idx(struct drm_xocl_dev *xdev, unsigned int slot_idx)
{
	unsigned int mask_idx = slot_mask_idx(slot_idx);
	unsigned int pos = slot_idx_in_mask(slot_idx);
	SCHED_DEBUGF("<-> release_slot_idx slot_status[%d]=0x%x, pos=%d\n"
		     ,mask_idx,xdev->exec.slot_status[mask_idx],pos);
	xdev->exec.slot_status[mask_idx] ^= (1<<pos);
}
static void release_slot_idx ( struct drm_xocl_dev * xdev , unsigned int slot_idx ) { unsigned int mask_idx = slot_mask_idx ( slot_idx ) ; unsigned int pos = slot_idx_in_mask ( slot_idx ) ; SCHED_DEBUGF ( " \n " , mask_idx , xdev -> exec . slot_status [ mask_idx ] , pos ) ; xdev -> exec . slot_status [ mask_idx ] ^= ( 1 << pos ) ; }
release_slot_idx() - Release a slot index
release_slot_idx () - Release a slot index