Lines Matching defs:in
26 #include <linux/in.h>
122 s->req[0].in = 0;
123 s->req[1].in = 0;
124 s->rsp[0].in = 0;
125 s->rsp[1].in = 0;
145 sw_cq->in = sbus_readb(s->regs + RESP + qno);
147 (sw_cq->in - sw_cq->out) & sw_cq->last))
176 if (sw_cq->out == sw_cq->in) {
177 sw_cq->in = sbus_readb(s->regs + RESP + qno);
178 if (sw_cq->out == sw_cq->in) {
187 sw_cq->in = sbus_readb(s->regs + RESP + qno);
188 if (sw_cq->out == sw_cq->in)
203 if (((s->req[1].in + 1) & s->req[1].last) != (s->req[1].out))
223 sw_cq->in = sbus_readb(s->regs + RESP + qno);
224 SOD (("socal_unsolicited, %d packets arrived, in %d\n",
225 (sw_cq->in - sw_cq->out) & sw_cq->last, sw_cq->in))
226 while (sw_cq->in != sw_cq->out) {
240 u8 in;
248 in = sw_cq->in;
249 if (in < sw_cq->out)
250 in += sw_cq->last + 1;
251 if (in < sw_cq->out + 2) {
260 sw_cq->in = sbus_readb(s->regs + RESP + qno);
261 in = sw_cq->in;
262 if (in < sw_cq->out)
263 in += sw_cq->last + 1;
264 if (in < sw_cq->out + 2) /* Nothing came, let us wait */
348 if (sw_cq->out == sw_cq->in) {
349 sw_cq->in = sbus_readb(s->regs + RESP + qno);
350 if (sw_cq->out == sw_cq->in) {
359 sw_cq->in = sbus_readb(s->regs + RESP + qno);
414 cq_next_in = (sw_cq->in + 1) & sw_cq->last;
419 qno, sw_cq->in,
428 request = sw_cq->pool + sw_cq->in;
547 if (++sw_cq->in > sw_cq->last) {
548 sw_cq->in = 0;
552 SOD(("Putting %08x into cmd\n", SOCAL_CMD_RSP_QALL | (sw_cq->in << 24) | (SOCAL_CMD_REQ_Q0 << qno)))
554 sbus_writel(SOCAL_CMD_RSP_QALL | (sw_cq->in << 24) | (SOCAL_CMD_REQ_Q0 << qno),