Lines Matching refs:cur_ptr
57 void __iomem *cur_ptr; member
94 if (cd->cur_ptr <= cd->end_of_data) in dpaa2_console_size()
95 size = cd->end_of_data - cd->cur_ptr; in dpaa2_console_size()
97 size = (cd->end_addr - cd->cur_ptr) + in dpaa2_console_size()
150 cd->cur_ptr = cd->end_of_data + 1; in dpaa2_generic_console_open()
152 cd->cur_ptr = cd->start_addr; in dpaa2_generic_console_open()
196 size_t bytes_end = cd->end_addr - cd->cur_ptr; in dpaa2_console_read()
204 if (cd->end_of_data == cd->cur_ptr) in dpaa2_console_read()
215 memcpy_fromio(kbuf, cd->cur_ptr, bytes_end); in dpaa2_console_read()
221 cd->cur_ptr = cd->start_addr; in dpaa2_console_read()
226 memcpy_fromio(kbuf, cd->cur_ptr, bytes); in dpaa2_console_read()
231 cd->cur_ptr += bytes; in dpaa2_console_read()