Lines Matching refs:TWIN
498 if(!TWIN(dev) || !(COMX_CHANNEL(TWIN(dev))->init_status & in MIXCOM_open()
588 if(hw->channel==0 && (!(TWIN(dev)) || in MIXCOM_close()
589 !(COMX_CHANNEL(TWIN(dev))->init_status & HW_OPEN))) { in MIXCOM_close()
598 if(hw->channel==1 && !(COMX_CHANNEL(TWIN(dev))->init_status & HW_OPEN)) { in MIXCOM_close()
599 if(COMX_CHANNEL(TWIN(dev))->init_status & IRQ_ALLOCATED) { in MIXCOM_close()
600 mixcom_board_off(TWIN(dev)); in MIXCOM_close()
601 free_irq(TWIN(dev)->irq, TWIN(dev)); in MIXCOM_close()
602 release_region(TWIN(dev)->base_addr, MIXCOM_IO_EXTENT); in MIXCOM_close()
603 COMX_CHANNEL(TWIN(dev))->init_status &= ~IRQ_ALLOCATED; in MIXCOM_close()
629 if(hw->channel==1 && !(COMX_CHANNEL(TWIN(dev))->init_status & HW_OPEN)) { in MIXCOM_close()
630 for (procfile=COMX_CHANNEL(TWIN(dev))->procdir->subdir; in MIXCOM_close()
727 if (!TWIN(twin) || TWIN(twin)==dev) { in mixcom_twin_check()
739 if(TWIN(dev) && TWIN(TWIN(dev))) { in setup_twin()
740 TWIN(TWIN(dev))=NULL; in setup_twin()
742 if ((TWIN(dev) = mixcom_twin_check(dev)) != NULL) { in setup_twin()
743 if (TWIN(TWIN(dev)) && TWIN(TWIN(dev)) != dev) { in setup_twin()
744 TWIN(dev)=NULL; in setup_twin()
746 TWIN(TWIN(dev))=dev; in setup_twin()
916 if(hw->channel==0 && TWIN(dev)) { in MIXCOM_exit()
920 if(hw->channel==1 && TWIN(dev)) { in MIXCOM_exit()
921 TWIN(TWIN(dev))=NULL; in MIXCOM_exit()