Home
last modified time | relevance | path

Searched refs:free_end (Results 1 – 2 of 2) sorted by relevance

/drivers/staging/comedi/
Ddrivers.c600 unsigned int free_end; in comedi_buf_write_n_available() local
606 free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_n_available()
607 nbytes = free_end - async->buf_write_alloc_count; in comedi_buf_write_n_available()
621 unsigned int free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_alloc() local
623 if ((int)(async->buf_write_alloc_count + nbytes - free_end) > 0) in comedi_buf_write_alloc()
624 nbytes = free_end - async->buf_write_alloc_count; in comedi_buf_write_alloc()
638 unsigned int free_end = async->buf_read_count + async->prealloc_bufsz; in comedi_buf_write_alloc_strict() local
640 if ((int)(async->buf_write_alloc_count + nbytes - free_end) > 0) in comedi_buf_write_alloc_strict()
/drivers/mtd/onenand/
Donenand_base.c1046 int free_end = free->offset + free->length; in onenand_transfer_auto_oob() local
1047 if (free->offset < readend && free_end > readcol) { in onenand_transfer_auto_oob()
1049 int ed = min_t(int,free_end,readend); in onenand_transfer_auto_oob()
1841 int free_end = free->offset + free->length; in onenand_fill_auto_oob() local
1842 if (free->offset < writeend && free_end > writecol) { in onenand_fill_auto_oob()
1844 int ed = min_t(int,free_end,writeend); in onenand_fill_auto_oob()