Searched refs:prealloc_bufsz (Results 1 – 9 of 9) sorted by relevance
/drivers/staging/comedi/ |
D | comedi_buf.c | 71 async->prealloc_bufsz = 0; in __comedi_buf_free() 203 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc() 221 async->prealloc_bufsz = new_size; in comedi_buf_alloc() 251 unsigned int free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_n_unalloc() 259 unsigned int free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_n_available() 317 buf_end = async->prealloc_bufsz - async->munge_ptr; in comedi_buf_munge() 335 async->munge_ptr %= async->prealloc_bufsz; in comedi_buf_munge() 377 if (async->buf_write_ptr >= async->prealloc_bufsz) in comedi_buf_write_free() 378 async->buf_write_ptr %= async->prealloc_bufsz; in comedi_buf_write_free() 488 async->buf_read_ptr %= async->prealloc_bufsz; in comedi_buf_read_free() [all …]
|
D | comedi_fops.c | 378 s->index, async->prealloc_bufsz); in resize_async_buffer() 455 size = s->async->prealloc_bufsz / 1024; in read_buffer_kb_show() 568 size = s->async->prealloc_bufsz / 1024; in write_buffer_kb_show() 910 bc.size = async->prealloc_bufsz; in do_bufconfig_ioctl() 1730 if (!async->prealloc_bufsz) { in do_cmd_ioctl() 2219 if (size > async->prealloc_bufsz) { in comedi_mmap() 2393 if (async->buf_write_ptr + m > async->prealloc_bufsz) in comedi_write() 2394 m = async->prealloc_bufsz - async->buf_write_ptr; in comedi_write() 2395 comedi_buf_write_alloc(s, async->prealloc_bufsz); in comedi_write() 2524 n1 = min(n, async->prealloc_bufsz - rp); in comedi_read()
|
D | comedidev.h | 354 unsigned int prealloc_bufsz; member
|
/drivers/staging/comedi/drivers/ |
D | mite.c | 313 if (async->prealloc_bufsz == 0) in mite_buf_change() 316 n_links = async->prealloc_bufsz >> PAGE_SHIFT; in mite_buf_change() 520 comedi_buf_write_alloc(s, async->prealloc_bufsz); in mite_sync_input_dma() 557 comedi_buf_read_alloc(s, async->prealloc_bufsz); in mite_sync_output_dma()
|
D | addi_apci_3120.c | 252 if (dmalen0 > s->async->prealloc_bufsz) in apci3120_setup_dma() 253 dmalen0 = s->async->prealloc_bufsz; in apci3120_setup_dma() 254 if (dmalen1 > s->async->prealloc_bufsz) in apci3120_setup_dma() 255 dmalen1 = s->async->prealloc_bufsz; in apci3120_setup_dma()
|
D | adl_pci9118.c | 810 if (dmalen0 > s->async->prealloc_bufsz) { in pci9118_ai_setup_dma() 812 dmalen0 = s->async->prealloc_bufsz & ~3L; in pci9118_ai_setup_dma() 814 if (dmalen1 > s->async->prealloc_bufsz) { in pci9118_ai_setup_dma() 816 dmalen1 = s->async->prealloc_bufsz & ~3L; in pci9118_ai_setup_dma()
|
D | ni_pcidio.c | 350 comedi_buf_write_alloc(s, s->async->prealloc_bufsz); in setup_mite_dma() 763 memset(s->async->prealloc_buf, 0xaa, s->async->prealloc_bufsz); in ni_pcidio_change()
|
D | ni_tiocmd.c | 122 comedi_buf_write_alloc(s, async->prealloc_bufsz); in ni_tio_input_cmd()
|
D | ni_mio_common.c | 1552 comedi_buf_write_alloc(s, s->async->prealloc_bufsz); in ni_ai_setup_MITE_dma() 1586 comedi_buf_read_alloc(s, s->async->prealloc_bufsz); in ni_ao_setup_MITE_dma() 3407 comedi_buf_read_alloc(s, s->async->prealloc_bufsz); in ni_cdo_inttrig()
|