Lines Matching refs:cs_state

238 struct cs_state {  struct
334 struct cs_state *states[2];
744 static unsigned int cs_set_dac_rate(struct cs_state * state, unsigned int rate) in cs_set_dac_rate()
799 static unsigned int cs_set_adc_rate(struct cs_state * state, unsigned int rate) in cs_set_adc_rate()
912 static void cs_play_setup(struct cs_state *state) in cs_play_setup()
982 static void cs_rec_setup(struct cs_state *state) in cs_rec_setup()
1007 static inline unsigned cs_get_dma_addr(struct cs_state *state) in cs_get_dma_addr()
1039 static void resync_dma_ptrs(struct cs_state *state) in resync_dma_ptrs()
1054 static inline void __stop_adc(struct cs_state *state) in __stop_adc()
1067 static void stop_adc(struct cs_state *state) in stop_adc()
1078 static void start_adc(struct cs_state *state) in start_adc()
1105 static inline void __stop_dac(struct cs_state *state) in __stop_dac()
1118 static void stop_dac(struct cs_state *state) in stop_dac()
1129 static void start_dac(struct cs_state *state) in start_dac()
1162 static int alloc_dmabuf(struct cs_state *state) in alloc_dmabuf()
1244 static void dealloc_dmabuf(struct cs_state *state) in dealloc_dmabuf()
1273 static int __prog_dmabuf(struct cs_state *state) in __prog_dmabuf()
1454 static int prog_dmabuf(struct cs_state *state) in prog_dmabuf()
1465 static void cs_clear_tail(struct cs_state *state) in cs_clear_tail()
1469 static int drain_dac(struct cs_state *state, int nonblock) in drain_dac()
1536 struct cs_state *state; in cs_update_ptr()
1680 struct cs_state *recstate = card->channel[0].state; in cs_interrupt()
1681 struct cs_state *playstate = card->channel[1].state; in cs_interrupt()
2041 struct cs_state *s, in cs_copy_to_user()
2095 struct cs_state *state; in cs_read()
2106 state = (struct cs_state *)card->states[0]; in cs_read()
2204 struct cs_state *state; in cs_write()
2214 state = (struct cs_state *)card->states[1]; in cs_write()
2331 struct cs_state *state; in cs_poll()
2404 struct cs_state *state; in cs_mmap()
2485 struct cs_state *state; in cs_ioctl()
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()
3196 struct cs_state *state = NULL; in cs_open()
3229 state = card->states[0] = (struct cs_state *) in cs_open()
3230 kmalloc(sizeof(struct cs_state), GFP_KERNEL); in cs_open()
3233 memset(state, 0, sizeof(struct cs_state)); in cs_open()
3300 state = card->states[1] = (struct cs_state *) in cs_open()
3301 kmalloc(sizeof(struct cs_state), GFP_KERNEL); in cs_open()
3304 memset(state, 0, sizeof(struct cs_state)); in cs_open()
3378 struct cs_state *state; in cs_release()