Lines Matching defs:gobuf
345 static inline void store_byte(struct go7007_buffer *gobuf, u8 byte)
347 if (gobuf != NULL && gobuf->bytesused < GO7007_BUF_SIZE) {
348 unsigned int pgidx = gobuf->offset >> PAGE_SHIFT;
349 unsigned int pgoff = gobuf->offset & ~PAGE_MASK;
351 *((u8 *)page_address(gobuf->pages[pgidx]) + pgoff) = byte;
352 ++gobuf->offset;
353 ++gobuf->bytesused;
362 struct go7007_buffer *gobuf;
379 list_for_each_entry(gobuf, &go->stream, stream)
380 if (gobuf->state == BUF_STATE_QUEUED) {
381 gobuf->seq = go->next_seq;
382 do_gettimeofday(&gobuf->timestamp);
383 go->active_buf = gobuf;