Lines Matching refs:camdd_buf
126 struct camdd_buf *src_buf;
215 struct camdd_buf { struct
234 STAILQ_ENTRY(camdd_buf) links; argument
235 STAILQ_ENTRY(camdd_buf) work_links;
246 STAILQ_HEAD(,camdd_buf) src_list; argument
247 STAILQ_ENTRY(camdd_buf) src_links;
342 STAILQ_HEAD(,camdd_buf) free_queue;
348 STAILQ_HEAD(,camdd_buf) free_indirect_queue;
353 STAILQ_HEAD(,camdd_buf) active_queue;
361 STAILQ_HEAD(,camdd_buf) pending_queue;
373 STAILQ_HEAD(,camdd_buf) run_queue;
380 STAILQ_HEAD(,camdd_buf) reorder_queue;
389 STAILQ_HEAD(,camdd_buf) work_queue;
395 STAILQ_HEAD(,camdd_buf) peer_done_queue;
406 STAILQ_HEAD(,camdd_buf) peer_work_queue;
443 static struct camdd_buf *camdd_alloc_buf(struct camdd_dev *dev,
445 void camdd_release_buf(struct camdd_buf *buf);
446 struct camdd_buf *camdd_get_buf(struct camdd_dev *dev, camdd_buf_type buf_type);
447 int camdd_buf_sg_create(struct camdd_buf *buf, int iovec,
450 uint32_t camdd_buf_get_len(struct camdd_buf *buf);
451 void camdd_buf_add_child(struct camdd_buf *buf, struct camdd_buf *child_buf);
475 int camdd_queue_peer_buf(struct camdd_dev *dev, struct camdd_buf *buf);
476 int camdd_complete_peer_buf(struct camdd_dev *dev, struct camdd_buf *peer_buf);
477 void camdd_peer_done(struct camdd_buf *buf);
478 void camdd_complete_buf(struct camdd_dev *dev, struct camdd_buf *buf,
484 int camdd_queue(struct camdd_dev *dev, struct camdd_buf *read_buf);
645 static struct camdd_buf *
648 struct camdd_buf *buf = NULL; in camdd_alloc_buf()
700 camdd_release_buf(struct camdd_buf *buf) in camdd_release_buf()
746 struct camdd_buf *
749 struct camdd_buf *buf = NULL; in camdd_get_buf()
794 camdd_buf_sg_create(struct camdd_buf *buf, int iovec, uint32_t sector_size, in camdd_buf_sg_create()
797 struct camdd_buf *tmp_buf; in camdd_buf_sg_create()
918 camdd_buf_get_len(struct camdd_buf *buf) in camdd_buf_get_len()
938 camdd_buf_add_child(struct camdd_buf *buf, struct camdd_buf *child_buf) in camdd_buf_add_child()
1679 struct camdd_buf *buf;
1954 camdd_queue_peer_buf(struct camdd_dev *dev, struct camdd_buf *buf)
1957 STAILQ_HEAD(, camdd_buf) local_queue;
1958 struct camdd_buf *buf1, *buf2;
2079 STAILQ_REMOVE(&local_queue, buf1, camdd_buf,
2139 STAILQ_REMOVE(&dev->peer_work_queue, buf1, camdd_buf,
2156 camdd_complete_peer_buf(struct camdd_dev *dev, struct camdd_buf *peer_buf)
2207 camdd_peer_done(struct camdd_buf *buf)
2220 STAILQ_REMOVE(&dev->peer_work_queue, buf, camdd_buf, links);
2234 camdd_complete_buf(struct camdd_dev *dev, struct camdd_buf *buf,
2250 struct camdd_buf *tmp_buf, *next_buf;
2254 struct camdd_buf *src_buf;
2258 camdd_buf, src_links);
2307 struct camdd_buf *buf;
2328 STAILQ_REMOVE(&dev->active_queue, buf, camdd_buf, links);
2388 struct camdd_buf *buf;
2401 STAILQ_REMOVE(&dev->run_queue, buf, camdd_buf, links);
2421 STAILQ_REMOVE(&dev->run_queue, buf, camdd_buf, links);
2576 struct camdd_buf *buf2;
2600 struct camdd_buf *buf = NULL;
2627 STAILQ_REMOVE(&dev->run_queue, buf, camdd_buf, links);
2792 camdd_queue(struct camdd_dev *dev, struct camdd_buf *read_buf)
2794 struct camdd_buf *buf = NULL;
2960 STAILQ_REMOVE(&dev->pending_queue, buf, camdd_buf,
2989 STAILQ_REMOVE(&dev->pending_queue, buf, camdd_buf, links);
3011 struct camdd_buf *idb;
3042 STAILQ_REMOVE(&dev->pending_queue, buf, camdd_buf,
3057 struct camdd_buf *new_buf;