Lines Matching refs:cb
36 buf->chan->cb->buf_unmapped(buf, vma->vm_file); in relay_file_mmap_close()
113 buf->chan->cb->buf_mapped(buf, filp); in relay_mmap_buf()
372 buf->chan->cb->subbuf_start(buf, buf->data, NULL, 0); in __relay_reset()
426 dentry = chan->cb->create_buf_file(tmpname, chan->parent, in relay_create_buf_file()
486 buf->chan->cb->remove_buf_file(buf->dentry); in relay_close_buf()
491 struct rchan_callbacks *cb) in setup_callbacks() argument
493 if (!cb) { in setup_callbacks()
494 chan->cb = &default_channel_callbacks; in setup_callbacks()
498 if (!cb->subbuf_start) in setup_callbacks()
499 cb->subbuf_start = subbuf_start_default_callback; in setup_callbacks()
500 if (!cb->buf_mapped) in setup_callbacks()
501 cb->buf_mapped = buf_mapped_default_callback; in setup_callbacks()
502 if (!cb->buf_unmapped) in setup_callbacks()
503 cb->buf_unmapped = buf_unmapped_default_callback; in setup_callbacks()
504 if (!cb->create_buf_file) in setup_callbacks()
505 cb->create_buf_file = create_buf_file_default_callback; in setup_callbacks()
506 if (!cb->remove_buf_file) in setup_callbacks()
507 cb->remove_buf_file = remove_buf_file_default_callback; in setup_callbacks()
508 chan->cb = cb; in setup_callbacks()
573 struct rchan_callbacks *cb, in relay_open() argument
598 setup_callbacks(chan, cb); in relay_open()
757 if (!buf->chan->cb->subbuf_start(buf, new, old, buf->prev_padding)) { in relay_switch_subbuf()