Searched refs:dma_adc (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/sound/oss/
H A Dswarm_cs4297a.c321 serdma_t dma_dac, dma_adc; member in struct:cs4297a_state
335 s->dma_adc.ready = 1; prog_dmabuf_adc()
680 if (init_serdma(&s->dma_adc) || dma_init()
695 s->dma_adc.descrtab[i].descr_a = V_DMA_DSCRA_A_SIZE(1) | dma_init()
696 (s->dma_adc.dma_buf_phys + i*FRAME_BYTES); dma_init()
697 s->dma_adc.descrtab[i].descr_b = 0; dma_init()
704 __raw_writeq(s->dma_adc.descrtab_phys, SS_CSR(R_SER_DMA_DSCR_BASE_RX)); dma_init()
795 oss_broken_sleep_on(&s->dma_adc.reg_wait, MAX_SCHEDULE_TIMEOUT); cs4297a_read_ac97()
889 (s->dma_adc.mapped || s->dma_adc.count <= start_adc()
890 (signed) (s->dma_adc.sbufsz - 2 * s->dma_adc.fragsize)) start_adc()
891 && s->dma_adc.ready) { start_adc()
948 d = &s->dma_adc; cs4297a_update_ptr()
1000 s_ptr = (u32 *)s->dma_adc.dma_buf; cs4297a_update_ptr()
1678 if (s->dma_adc.mapped) cs4297a_read()
1680 if (!s->dma_adc.ready && (ret = prog_dmabuf_adc(s))) cs4297a_read()
1697 count, s->dma_adc.count, cs4297a_read()
1698 s->dma_adc.swptr, s->dma_adc.hwptr)); cs4297a_read()
1704 cnt = (s->dma_adc.sb_end - s->dma_adc.sb_swptr) / 2; cs4297a_read()
1705 count_fr = s->dma_adc.count / FRAME_SAMPLE_BYTES; cs4297a_read()
1707 // dma_adc.count is the current total bytes that have not been read. cs4297a_read()
1745 oss_broken_sleep_on(&s->dma_adc.wait, MAX_SCHEDULE_TIMEOUT); cs4297a_read()
1760 s->dma_adc.sbufsz, s->dma_adc.count, cs4297a_read()
1763 if (copy_to_user (buffer, ((void *)s->dma_adc.sb_swptr), cnt_by)) cs4297a_read()
1770 printk(KERN_INFO "cs4297a: upd_rcv sw->hw %x/%x\n", s->dma_adc.swptr, s->dma_adc.hwptr)); cs4297a_read()
1771 s->dma_adc.count -= cnt_by; cs4297a_read()
1772 s->dma_adc.sb_swptr += cnt * 2; cs4297a_read()
1773 if (s->dma_adc.sb_swptr == s->dma_adc.sb_end) cs4297a_read()
1774 s->dma_adc.sb_swptr = s->dma_adc.sample_buf; cs4297a_read()
1930 poll_wait(file, &s->dma_adc.wait, wait); cs4297a_poll()
1949 if (s->dma_adc.mapped) { cs4297a_poll()
1950 if (s->dma_adc.count >= (signed) s->dma_adc.fragsize) cs4297a_poll()
1953 if (s->dma_adc.count > 0) cs4297a_poll()
1991 ((file->f_mode & FMODE_READ) && s->dma_adc.mapped); cs4297a_ioctl()
2031 s->dma_adc.count = s->dma_adc.total_bytes = cs4297a_ioctl()
2032 s->dma_adc.blocks = s->dma_dac.wakeup = 0; cs4297a_ioctl()
2033 s->dma_adc.swptr = s->dma_adc.hwptr = cs4297a_ioctl()
2035 s->dma_adc.descrtab_phys) / sizeof(serdma_descr_t)); cs4297a_ioctl()
2054 s->dma_adc.ready = 0; cs4297a_ioctl()
2073 s->dma_adc.ready = 0; cs4297a_ioctl()
2113 s->dma_adc.ready = 0; cs4297a_ioctl()
2160 if (!s->dma_adc.ready cs4297a_ioctl()
2204 if (!s->dma_adc.ready && (val = prog_dmabuf_adc(s))) cs4297a_ioctl()
2209 abinfo.fragsize = s->dma_adc.fragsize / 2; cs4297a_ioctl()
2210 abinfo.bytes = s->dma_adc.count / 2; cs4297a_ioctl()
2211 abinfo.fragstotal = s->dma_adc.numfrag; cs4297a_ioctl()
2213 abinfo.bytes >> (s->dma_adc.fragshift - 1); cs4297a_ioctl()
2215 abinfo.fragsize = s->dma_adc.fragsize; cs4297a_ioctl()
2216 abinfo.bytes = s->dma_adc.count; cs4297a_ioctl()
2217 abinfo.fragstotal = s->dma_adc.numfrag; cs4297a_ioctl()
2219 abinfo.bytes >> s->dma_adc.fragshift; cs4297a_ioctl()
2245 if(!s->dma_adc.ready && prog_dmabuf_adc(s)) cs4297a_ioctl()
2249 cinfo.bytes = s->dma_adc.total_bytes; cs4297a_ioctl()
2250 if (s->dma_adc.mapped) { cs4297a_ioctl()
2252 (cinfo.bytes >> s->dma_adc.fragshift) - cs4297a_ioctl()
2253 s->dma_adc.blocks; cs4297a_ioctl()
2254 s->dma_adc.blocks = cs4297a_ioctl()
2255 cinfo.bytes >> s->dma_adc.fragshift; cs4297a_ioctl()
2259 s->dma_adc.count / cs4297a_ioctl()
2260 2 >> (s->dma_adc.fragshift - 1); cs4297a_ioctl()
2263 s->dma_adc.count >> s->dma_adc. cs4297a_ioctl()
2267 cinfo.ptr = s->dma_adc.hwptr / 2; cs4297a_ioctl()
2269 cinfo.ptr = s->dma_adc.hwptr; cs4297a_ioctl()
2270 if (s->dma_adc.mapped) cs4297a_ioctl()
2271 s->dma_adc.count &= s->dma_adc.fragsize - 1; cs4297a_ioctl()
2308 return put_user(s->dma_adc.fragsize / 2, cs4297a_ioctl()
2311 return put_user(s->dma_adc.fragsize, (int *) arg); cs4297a_ioctl()
2319 if ((file->f_mode & FMODE_READ && s->dma_adc.subdivision) cs4297a_ioctl()
2327 s->dma_adc.subdivision = val; cs4297a_ioctl()
2400 dealloc_dmabuf(s, &s->dma_adc); cs4297a_release()
2491 s->dma_adc.ossfragshift = s->dma_adc.ossmaxfrags = cs4297a_locked_open()
2492 s->dma_adc.subdivision = 0; cs4297a_locked_open()
2586 s->dma_adc.descrtab_phys) / sizeof(serdma_descr_t)); cs4297a_interrupt()
2588 s->dma_adc.descrtab[i].descr_a &= ~M_DMA_SERRX_SOP; cs4297a_interrupt()
2590 s->dma_adc.swptr = s->dma_adc.hwptr = newptr; cs4297a_interrupt()
2591 s->dma_adc.count = 0; cs4297a_interrupt()
2592 s->dma_adc.sb_swptr = s->dma_adc.sb_hwptr = s->dma_adc.sample_buf; cs4297a_interrupt()
2666 init_waitqueue_head(&s->dma_adc.wait); cs4297a_init()
2668 init_waitqueue_head(&s->dma_adc.reg_wait); cs4297a_init()

Completed in 57 milliseconds