Lines Matching refs:periods
123 * @periods: Current number of periods.
126 * The function slices the buffer into @periods parts (each with the size of
127 * @period_bytes), and creates @periods corresponding I/O messages.
133 unsigned int periods, unsigned int period_bytes)
138 vss->msgs = kcalloc(periods, sizeof(*vss->msgs), GFP_KERNEL);
142 vss->nmsgs = periods;
144 for (i = 0; i < periods; ++i) {
211 i = (vss->msg_last_enqueued + 1) % runtime->periods;
212 n = runtime->periods - vss->msg_count;
214 for (; n; --n, i = (i + 1) % runtime->periods) {