Lines Matching refs:bank
567 struct trident_pcm_bank *bank = &card->banks[channel >> 5]; in trident_enable_voice_irq() local
568 u32 reg, addr = bank->addresses->aint_en; in trident_enable_voice_irq()
584 struct trident_pcm_bank *bank = &card->banks[channel >> 5]; in trident_disable_voice_irq() local
585 u32 reg, addr = bank->addresses->aint_en; in trident_disable_voice_irq()
592 outl(mask, TRID_REG(card, bank->addresses->aint)); in trident_disable_voice_irq()
604 struct trident_pcm_bank *bank = &card->banks[channel >> 5]; in trident_start_voice() local
605 u32 addr = bank->addresses->start; in trident_start_voice()
623 struct trident_pcm_bank *bank = &card->banks[channel >> 5]; in trident_stop_voice() local
624 u32 addr = bank->addresses->stop; in trident_stop_voice()
641 struct trident_pcm_bank *bank = &card->banks[channel]; in trident_get_interrupt_mask() local
642 u32 addr = bank->addresses->aint; in trident_get_interrupt_mask()
662 struct trident_pcm_bank *bank = &card->banks[channel >> 5]; in trident_ack_channel_interrupt() local
663 u32 reg, addr = bank->addresses->aint; in trident_ack_channel_interrupt()
678 struct trident_pcm_bank *bank; in trident_alloc_pcm_channel() local
681 bank = &card->banks[BANK_B]; in trident_alloc_pcm_channel()
684 if (!(bank->bitmap & (1 << idx))) { in trident_alloc_pcm_channel()
685 struct trident_channel *channel = &bank->channels[idx]; in trident_alloc_pcm_channel()
686 bank->bitmap |= 1 << idx; in trident_alloc_pcm_channel()
699 int bank; in trident_free_pcm_channel() local
712 bank = channel >> 5; in trident_free_pcm_channel()
715 card->banks[bank].bitmap &= ~(1 << (channel)); in trident_free_pcm_channel()
720 struct trident_pcm_bank *bank; in cyber_alloc_pcm_channel() local
727 bank = &card->banks[BANK_A]; in cyber_alloc_pcm_channel()
730 if (!(bank->bitmap & (1 << idx))) { in cyber_alloc_pcm_channel()
731 struct trident_channel *channel = &bank->channels[idx]; in cyber_alloc_pcm_channel()
732 bank->bitmap |= 1 << idx; in cyber_alloc_pcm_channel()
3443 int bank; in ali_free_pcm_channel() local
3448 bank = channel >> 5; in ali_free_pcm_channel()
3451 card->banks[bank].bitmap &= ~(1 << (channel)); in ali_free_pcm_channel()
3459 struct trident_pcm_bank *bank; in ali_allocate_other_states_resources() local
3462 bank = &card->banks[BANK_A]; in ali_allocate_other_states_resources()
3467 if (!(bank->bitmap & (1 << ali_multi_channels_5_1[state_count]))) { in ali_allocate_other_states_resources()
3468 bank->bitmap |= (1 << ali_multi_channels_5_1[state_count]); in ali_allocate_other_states_resources()
3469 channel = &bank->channels[ali_multi_channels_5_1[state_count]]; in ali_allocate_other_states_resources()
3609 struct trident_pcm_bank *bank; in ali_alloc_pcm_channel() local
3612 bank = &card->banks[BANK_A]; in ali_alloc_pcm_channel()
3616 if (!(bank->bitmap & (1 << idx))) { in ali_alloc_pcm_channel()
3617 struct trident_channel *channel = &bank->channels[idx]; in ali_alloc_pcm_channel()
3618 bank->bitmap |= 1 << idx; in ali_alloc_pcm_channel()
3625 if (!(bank->bitmap & (1 << idx))) { in ali_alloc_pcm_channel()
3626 struct trident_channel *channel = &bank->channels[idx]; in ali_alloc_pcm_channel()
3627 bank->bitmap |= 1 << idx; in ali_alloc_pcm_channel()
3640 struct trident_pcm_bank *bank; in ali_alloc_rec_pcm_channel() local
3647 bank = &card->banks[BANK_A]; in ali_alloc_rec_pcm_channel()
3649 if (!(bank->bitmap & (1 << idx))) { in ali_alloc_rec_pcm_channel()
3650 struct trident_channel *channel = &bank->channels[idx]; in ali_alloc_rec_pcm_channel()
3651 bank->bitmap |= 1 << idx; in ali_alloc_rec_pcm_channel()