Lines Matching refs:states

334 	struct cs_state *states[2];  member
1542 state = card->states[0]; in cs_update_ptr()
1575 state = card->states[1]; in cs_update_ptr()
2106 state = (struct cs_state *)card->states[0]; in cs_read()
2214 state = (struct cs_state *)card->states[1]; in cs_write()
2343 state = card->states[1]; in cs_poll()
2352 state = card->states[0]; in cs_poll()
2363 state = card->states[0]; in cs_poll()
2372 state = card->states[1]; in cs_poll()
2414 state = card->states[1]; in cs_mmap()
2423 state = card->states[0]; in cs_mmap()
2445 state = card->states[1]; in cs_mmap()
2492 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2498 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2517 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2532 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2559 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2571 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2595 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2614 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2636 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2646 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2675 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2693 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2721 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2727 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2746 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2763 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2792 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2806 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2826 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2835 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2848 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2873 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2901 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2913 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2926 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2939 state = (struct cs_state *)card->states[1]; in cs_ioctl()
2956 state = (struct cs_state *)card->states[0]; in cs_ioctl()
2973 state = (struct cs_state *)card->states[1]; in cs_ioctl()
3009 state = (struct cs_state *)card->states[1]; in cs_ioctl()
3024 state = (struct cs_state *)card->states[0]; in cs_ioctl()
3026 state = (struct cs_state *)card->states[1]; in cs_ioctl()
3037 state = (struct cs_state *)card->states[0]; in cs_ioctl()
3039 state = (struct cs_state *)card->states[1]; in cs_ioctl()
3050 state = (struct cs_state *)card->states[0]; in cs_ioctl()
3052 state = (struct cs_state *)card->states[1]; in cs_ioctl()
3228 if (card->states[0] == NULL) { in cs_open()
3229 state = card->states[0] = (struct cs_state *) in cs_open()
3240 card->states[0]=NULL; in cs_open()
3246 state = card->states[0]; in cs_open()
3253 kfree (card->states[0]); in cs_open()
3254 card->states[0] = NULL;; in cs_open()
3299 if (card->states[1] == NULL) { in cs_open()
3300 state = card->states[1] = (struct cs_state *) in cs_open()
3311 card->states[1]=NULL; in cs_open()
3317 state = card->states[1]; in cs_open()
3324 kfree (card->states[1]); in cs_open()
3325 card->states[1] = NULL;; in cs_open()
3388 state = card->states[1]; in cs_release()
3406 state->card->states[state->virt] = NULL; in cs_release()
3423 state = card->states[0]; in cs_release()
3438 state->card->states[state->virt] = NULL; in cs_release()
3509 if(card->states[1]) in cs46xx_ac97_suspend()
3511 stop_dac(card->states[1]); in cs46xx_ac97_suspend()
3512 resync_dma_ptrs(card->states[1]); in cs46xx_ac97_suspend()
3514 if(card->states[0]) in cs46xx_ac97_suspend()
3516 stop_adc(card->states[0]); in cs46xx_ac97_suspend()
3517 resync_dma_ptrs(card->states[0]); in cs46xx_ac97_suspend()
3622 if(card->states[1]) in cs46xx_restart_part()
3624 dmabuf = &card->states[1]->dmabuf; in cs46xx_restart_part()
3626 resync_dma_ptrs(card->states[1]); in cs46xx_restart_part()
3628 if(__prog_dmabuf(card->states[1])) in cs46xx_restart_part()
3634 cs_set_dac_rate(card->states[1], dmabuf->rate); in cs46xx_restart_part()
3636 if(card->states[0]) in cs46xx_restart_part()
3638 dmabuf = &card->states[0]->dmabuf; in cs46xx_restart_part()
3640 resync_dma_ptrs(card->states[0]); in cs46xx_restart_part()
3642 if(__prog_dmabuf(card->states[0])) in cs46xx_restart_part()
3648 cs_set_adc_rate(card->states[0], dmabuf->rate); in cs46xx_restart_part()
3651 if(card->states[0]) in cs46xx_restart_part()
3652 start_adc(card->states[0]); in cs46xx_restart_part()
3653 if(card->states[1]) in cs46xx_restart_part()
3654 start_dac(card->states[1]); in cs46xx_restart_part()
3659 if(card->states[0]) in cs46xx_restart_part()
3660 wake_up(&card->states[0]->dmabuf.wait); in cs46xx_restart_part()
3661 if(card->states[1]) in cs46xx_restart_part()
3662 wake_up(&card->states[1]->dmabuf.wait); in cs46xx_restart_part()
3714 if(card->states[1]) in cs46xx_suspend()
3716 card->pm.dmabuf_swptr_play = card->states[1]->dmabuf.swptr; in cs46xx_suspend()
3717 card->pm.dmabuf_count_play = card->states[1]->dmabuf.count; in cs46xx_suspend()
3719 if(card->states[0]) in cs46xx_suspend()
3721 card->pm.dmabuf_swptr_capture = card->states[0]->dmabuf.swptr; in cs46xx_suspend()
3722 card->pm.dmabuf_count_capture = card->states[0]->dmabuf.count; in cs46xx_suspend()