Lines Matching full:flag
370 /* pasemi_dma_alloc_flag - Allocate a flag (event) for channel synchronization
372 * Allocates a flag for use with channel synchronization (event descriptors).
373 * Returns allocated flag (0-63), < 0 on error.
391 /* pasemi_dma_free_flag - Deallocates a flag (event)
392 * @flag: Flag number to deallocate
394 * Frees up a flag so it can be reused for other purposes.
396 void pasemi_dma_free_flag(int flag) in pasemi_dma_free_flag() argument
398 BUG_ON(test_bit(flag, flags_free)); in pasemi_dma_free_flag()
399 BUG_ON(flag >= MAX_FLAGS); in pasemi_dma_free_flag()
400 set_bit(flag, flags_free); in pasemi_dma_free_flag()
405 /* pasemi_dma_set_flag - Sets a flag (event) to 1
406 * @flag: Flag number to set active
408 * Sets the flag provided to 1.
410 void pasemi_dma_set_flag(int flag) in pasemi_dma_set_flag() argument
412 BUG_ON(flag >= MAX_FLAGS); in pasemi_dma_set_flag()
413 if (flag < 32) in pasemi_dma_set_flag()
414 pasemi_write_dma_reg(PAS_DMA_TXF_SFLG0, 1 << flag); in pasemi_dma_set_flag()
416 pasemi_write_dma_reg(PAS_DMA_TXF_SFLG1, 1 << flag); in pasemi_dma_set_flag()
420 /* pasemi_dma_clear_flag - Sets a flag (event) to 0
421 * @flag: Flag number to set inactive
423 * Sets the flag provided to 0.
425 void pasemi_dma_clear_flag(int flag) in pasemi_dma_clear_flag() argument
427 BUG_ON(flag >= MAX_FLAGS); in pasemi_dma_clear_flag()
428 if (flag < 32) in pasemi_dma_clear_flag()
429 pasemi_write_dma_reg(PAS_DMA_TXF_CFLG0, 1 << flag); in pasemi_dma_clear_flag()
431 pasemi_write_dma_reg(PAS_DMA_TXF_CFLG1, 1 << flag); in pasemi_dma_clear_flag()
457 * @flag: Engine number to deallocate