Lines Matching refs:port
130 dcons_init_port(int port, int offset, int size, struct dcons_buf *buf,
136 dc = &sc[port];
146 dc->o.ptr = &buf->optr[port];
147 dc->i.ptr = &buf->iptr[port];
149 buf->osize[port] = htonl(osize);
150 buf->isize[port] = htonl(size - osize);
151 buf->ooffset[port] = htonl(offset);
152 buf->ioffset[port] = htonl(offset + osize);
153 buf->optr[port] = DCONS_MAKE_PTR(&dc->o);
154 buf->iptr[port] = DCONS_MAKE_PTR(&dc->i);
162 int port, s;
169 for (port = 0; port < DCONS_NPORT; port ++) {
170 dc = &sc[port];
171 dc->o.size = ntohl(buf->osize[port]);
172 dc->i.size = ntohl(buf->isize[port]);
173 dc->o.buf = (char *)buf + ntohl(buf->ooffset[port]);
174 dc->i.buf = (char *)buf + ntohl(buf->ioffset[port]);
175 dc->o.gen = ntohl(buf->optr[port]) >> DCONS_GEN_SHIFT;
176 dc->i.gen = ntohl(buf->iptr[port]) >> DCONS_GEN_SHIFT;
177 dc->o.pos = ntohl(buf->optr[port]) & DCONS_POS_MASK;
178 dc->i.pos = ntohl(buf->iptr[port]) & DCONS_POS_MASK;
179 dc->o.ptr = &buf->optr[port];
180 dc->i.ptr = &buf->iptr[port];
202 size1 = size0 * 3 / 4; /* console port buffer */