n_subbufs 371 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c size_t n_subbufs, subbuf_size; n_subbufs 386 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c n_subbufs = 8; n_subbufs 390 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c subbuf_size, n_subbufs, n_subbufs 63 include/linux/relay.h size_t n_subbufs; /* number of sub-buffers per buffer */ n_subbufs 172 include/linux/relay.h size_t n_subbufs, n_subbufs 166 kernel/relay.c if (chan->n_subbufs > KMALLOC_MAX_SIZE / sizeof(size_t *)) n_subbufs 172 kernel/relay.c buf->padding = kmalloc_array(chan->n_subbufs, sizeof(size_t *), n_subbufs 258 kernel/relay.c return (ready >= buf->chan->n_subbufs) ? 1 : 0; n_subbufs 370 kernel/relay.c for (i = 0; i < buf->chan->n_subbufs; i++) n_subbufs 566 kernel/relay.c size_t n_subbufs, n_subbufs 574 kernel/relay.c if (!(subbuf_size && n_subbufs)) n_subbufs 576 kernel/relay.c if (subbuf_size > UINT_MAX / n_subbufs) n_subbufs 590 kernel/relay.c chan->n_subbufs = n_subbufs; n_subbufs 592 kernel/relay.c chan->alloc_size = PAGE_ALIGN(subbuf_size * n_subbufs); n_subbufs 756 kernel/relay.c old_subbuf = buf->subbufs_produced % buf->chan->n_subbufs; n_subbufs 779 kernel/relay.c new_subbuf = buf->subbufs_produced % buf->chan->n_subbufs; n_subbufs 823 kernel/relay.c if (!buf || subbufs_consumed > chan->n_subbufs) n_subbufs 970 kernel/relay.c size_t n_subbufs = buf->chan->n_subbufs; n_subbufs 984 kernel/relay.c read_subbuf = buf->subbufs_consumed % n_subbufs; n_subbufs 988 kernel/relay.c if ((read_subbuf == buf->subbufs_produced % n_subbufs) && n_subbufs 1002 kernel/relay.c size_t n_subbufs = buf->chan->n_subbufs; n_subbufs 1016 kernel/relay.c if (unlikely(produced - consumed >= n_subbufs)) { n_subbufs 1017 kernel/relay.c consumed = produced - n_subbufs + 1; n_subbufs 1022 kernel/relay.c produced = (produced % n_subbufs) * subbuf_size + buf->offset; n_subbufs 1023 kernel/relay.c consumed = (consumed % n_subbufs) * subbuf_size + buf->bytes_consumed; n_subbufs 1026 kernel/relay.c produced += n_subbufs * subbuf_size; n_subbufs 1079 kernel/relay.c size_t n_subbufs = buf->chan->n_subbufs; n_subbufs 1080 kernel/relay.c size_t consumed = buf->subbufs_consumed % n_subbufs; n_subbufs 1089 kernel/relay.c read_subbuf = (read_subbuf + 1) % n_subbufs; n_subbufs 1108 kernel/relay.c size_t n_subbufs = buf->chan->n_subbufs; n_subbufs 1116 kernel/relay.c if (end_pos >= subbuf_size * n_subbufs)