Lines Matching refs:header
48 static void memcpy_torb(struct scif_rb *rb, void *header, in memcpy_torb() argument
53 if (header + size >= rb->rb_base + rb->size) { in memcpy_torb()
55 size1 = (u32)(rb->rb_base + rb->size - header); in memcpy_torb()
57 memcpy_toio((void __iomem __force *)header, msg, size1); in memcpy_torb()
61 memcpy_toio((void __iomem __force *)header, msg, size); in memcpy_torb()
66 static void memcpy_fromrb(struct scif_rb *rb, void *header, in memcpy_fromrb() argument
71 if (header + size >= rb->rb_base + rb->size) { in memcpy_fromrb()
73 size1 = (u32)(rb->rb_base + rb->size - header); in memcpy_fromrb()
75 memcpy_fromio(msg, (void __iomem __force *)header, size1); in memcpy_fromrb()
79 memcpy_fromio(msg, (void __iomem __force *)header, size); in memcpy_fromrb()
113 void *header; in scif_rb_write() local
117 header = rb->rb_base + rb->current_write_offset; in scif_rb_write()
118 memcpy_torb(rb, header, msg, size); in scif_rb_write()
164 void *header = NULL; in scif_rb_get() local
167 header = rb->rb_base + rb->current_read_offset; in scif_rb_get()
168 return header; in scif_rb_get()
182 void *header = NULL; in scif_rb_get_next() local
185 header = scif_rb_get(rb, size); in scif_rb_get_next()
186 if (header) { in scif_rb_get_next()
192 memcpy_fromrb(rb, header, msg, size); in scif_rb_get_next()