Home
last modified time | relevance | path

Searched refs:bufpos (Results 1 – 2 of 2) sorted by relevance

/drivers/gpu/drm/msm/
Dmsm_perf.c41 int buftot, bufpos; member
125 perf->bufpos = 0; in refill_buf()
139 if (perf->bufpos >= perf->buftot) { in perf_read()
145 n = min((int)sz, perf->buftot - perf->bufpos); in perf_read()
146 if (copy_to_user(buf, &perf->buf[perf->bufpos], n)) { in perf_read()
151 perf->bufpos += n; in perf_read()
180 perf->bufpos = 0; in perf_open()
/drivers/char/xillybus/
Dxillybus_core.c682 int howmany = 0, bufpos = 0, bufidx = 0, bufferdone = 0; in xillybus_read() local
704 bufpos = channel->wr_host_buf_pos; in xillybus_read()
707 - bufpos; in xillybus_read()
751 if (bufpos == 0) /* Position zero means it's virgin */ in xillybus_read()
761 + bufpos, howmany)) in xillybus_read()
1195 int howmany = 0, bufpos = 0, bufidx = 0, bufferdone = 0; in xillybus_write() local
1214 bufpos = channel->rd_host_buf_pos; in xillybus_write()
1215 howmany = channel->rd_buf_size - bufpos; in xillybus_write()
1225 ((bufpos >> channel->log2_element_size) == 0))) { in xillybus_write()
1244 end_offset_plus1 = bufpos >> in xillybus_write()
[all …]