Lines Matching refs:flag
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()
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()
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()