Lines Matching defs:bm
2446 struct comedi_buf_map *bm;
2448 bm = area->vm_private_data;
2449 comedi_buf_map_get(bm);
2454 struct comedi_buf_map *bm;
2456 bm = area->vm_private_data;
2457 comedi_buf_map_put(bm);
2463 struct comedi_buf_map *bm = vma->vm_private_data;
2471 return comedi_buf_map_access(bm, offset, buf, len, write);
2486 struct comedi_buf_map *bm = NULL;
2543 bm = comedi_buf_map_from_subdev_get(s);
2544 if (!bm || n_pages > bm->n_pages) {
2548 if (bm->dma_dir != DMA_NONE) {
2557 buf = &bm->page_list[i];
2560 retval = dma_mmap_coherent(bm->dma_hw_dev, vma,
2574 buf = &bm->page_list[i];
2598 vma->vm_private_data = bm;
2605 comedi_buf_map_put(bm); /* put reference to buf map - okay if NULL */
2653 struct comedi_buf_map *bm = s->async->buf_map;
2654 struct comedi_buf_page *buf_page_list = bm->page_list;
2671 if (page == bm->n_pages)
2681 struct comedi_buf_map *bm = s->async->buf_map;
2682 struct comedi_buf_page *buf_page_list = bm->page_list;
2699 if (page == bm->n_pages)