Lines Matching refs:length
174 size_t length);
191 size_t length) in relay_write() argument
198 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write()
199 length = relay_switch_subbuf(buf, length); in relay_write()
200 memcpy(buf->data + buf->offset, data, length); in relay_write()
201 buf->offset += length; in relay_write()
219 size_t length) in __relay_write() argument
224 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write()
225 length = relay_switch_subbuf(buf, length); in __relay_write()
226 memcpy(buf->data + buf->offset, data, length); in __relay_write()
227 buf->offset += length; in __relay_write()
242 static inline void *relay_reserve(struct rchan *chan, size_t length) in relay_reserve() argument
247 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) { in relay_reserve()
248 length = relay_switch_subbuf(buf, length); in relay_reserve()
249 if (!length) in relay_reserve()
253 buf->offset += length; in relay_reserve()
269 size_t length) in subbuf_start_reserve() argument
271 BUG_ON(length >= buf->chan->subbuf_size - 1); in subbuf_start_reserve()
272 buf->offset = length; in subbuf_start_reserve()