Home
last modified time | relevance | path

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

/illumos-gate/usr/src/boot/libsa/
H A Dlseek.c69 off_t bufpos, filepos, target; in lseek() local
108 bufpos = filepos - f->f_ralen; in lseek()
114 target = bufpos + offset; in lseek()
120 if (bufpos <= target && target < filepos) { in lseek()
121 f->f_raoffset += target - bufpos; in lseek()
122 f->f_ralen -= target - bufpos; in lseek()
/illumos-gate/usr/src/uts/sun4u/io/
H A Drmc_comm_dp.c803 pkt->bufpos = 2; in rmc_comm_dp_drecv()
815 pkt->buf[pkt->bufpos++] = *pkt->inbuf; in rmc_comm_dp_drecv()
818 if (pkt->bufpos >= sizeof (dp_header_t)) { in rmc_comm_dp_drecv()
822 } else if ((pkt->bufpos >= sizeof (bp_msg_t)) && in rmc_comm_dp_drecv()
839 "bufpos=%d\n", pkt->bufpos)); in rmc_comm_dp_drecv()
853 pkt->buf[pkt->bufpos++] = *pkt->inbuf; in rmc_comm_dp_drecv()
856 if (pkt->bufpos >= sizeof (dp_header_t)) { in rmc_comm_dp_drecv()
858 } else if ((pkt->bufpos >= sizeof (bp_msg_t)) && in rmc_comm_dp_drecv()
867 max = pkt->full_length - pkt->bufpos; in rmc_comm_dp_drecv()
877 bcopy(pkt->inbuf, pkt->buf + pkt->bufpos, in rmc_comm_dp_drecv()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dgetline.c852 static int gl_buffer_char(GetLine *gl, char c, int bufpos);
857 static int gl_buffer_string(GetLine *gl, const char *s, int n, int bufpos);
7491 int bufpos; /* The buffer index being checked. */ in gl_nth_word_end_forward() local
7498 bufpos = gl->buff_curpos + 1; in gl_nth_word_end_forward()
7504 if(bufpos >= gl->ntotal) in gl_nth_word_end_forward()
7509 for(i=0; i<n && bufpos<gl->ntotal; i++) { in gl_nth_word_end_forward()
7513 for( ; bufpos<gl->ntotal && !gl_is_word_char((int)gl->line[bufpos]); in gl_nth_word_end_forward()
7514 bufpos++) in gl_nth_word_end_forward()
7519 for( ; bufpos<gl->ntotal && gl_is_word_char((int)gl->line[bufpos]); in gl_nth_word_end_forward()
7520 bufpos++) in gl_nth_word_end_forward()
[all …]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Drmc_comm_dp.h92 int16_t bufpos; /* Position in buffer. */ member
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinet6_opt.c41 #define bufpos(p) ((p) - (uint8_t *)extbuf) macro
/illumos-gate/usr/src/uts/common/sys/usb/clients/audio/usb_ac/
H A Dusb_ac.h152 caddr_t bufpos; /* buffer position */ member
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ac/
H A Dusb_ac.c4741 src = &engp->bufpos; in usb_eng_bufio()
4745 dst = &engp->bufpos; in usb_eng_bufio()
4754 if (engp->bufpos + sz >= engp->bufendp) { in usb_eng_bufio()
4755 cpsz = (size_t)engp->bufendp - (size_t)engp->bufpos; in usb_eng_bufio()
4760 engp->bufpos = engp->bufp; in usb_eng_bufio()
4768 engp->bufpos += cpsz; in usb_eng_bufio()
5488 engp->bufpos = engp->bufp; in usb_engine_open()
5548 engp->bufpos = NULL; in usb_engine_close()