Home
last modified time | relevance | path

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

/kernel/
Drelay.c166 if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t)) in relay_create_buf()
172 buf->padding = kmalloc_array(chan->n_subbufs, sizeof(size_t), in relay_create_buf()
259 return (ready >= buf->chan->n_subbufs) ? 1 : 0; in relay_buf_full()
371 for (i = 0; i < buf->chan->n_subbufs; i++) in __relay_reset()
567 size_t n_subbufs, in relay_open() argument
575 if (!(subbuf_size && n_subbufs)) in relay_open()
577 if (subbuf_size > UINT_MAX / n_subbufs) in relay_open()
591 chan->n_subbufs = n_subbufs; in relay_open()
593 chan->alloc_size = PAGE_ALIGN(subbuf_size * n_subbufs); in relay_open()
757 old_subbuf = buf->subbufs_produced % buf->chan->n_subbufs; in relay_switch_subbuf()
[all …]