Lines Matching refs:cur_ptr
58 void __iomem *cur_ptr; member
95 if (cd->cur_ptr <= cd->end_of_data) in dpaa2_console_size()
96 size = cd->end_of_data - cd->cur_ptr; in dpaa2_console_size()
98 size = (cd->end_addr - cd->cur_ptr) + in dpaa2_console_size()
151 cd->cur_ptr = cd->end_of_data + 1; in dpaa2_generic_console_open()
153 cd->cur_ptr = cd->start_addr; in dpaa2_generic_console_open()
197 size_t bytes_end = cd->end_addr - cd->cur_ptr; in dpaa2_console_read()
205 if (cd->end_of_data == cd->cur_ptr) in dpaa2_console_read()
216 memcpy_fromio(kbuf, cd->cur_ptr, bytes_end); in dpaa2_console_read()
222 cd->cur_ptr = cd->start_addr; in dpaa2_console_read()
227 memcpy_fromio(kbuf, cd->cur_ptr, bytes); in dpaa2_console_read()
232 cd->cur_ptr += bytes; in dpaa2_console_read()