Lines Matching refs:fifobar
73 static int fifo_enqueue(struct ilo_hwinfo *hw, char *fifobar, int entry) in fifo_enqueue() argument
75 struct fifo *fifo_q = FIFOBARTOHANDLE(fifobar); in fifo_enqueue()
80 if (!(fifo_q->fifobar[(fifo_q->tail + 1) & fifo_q->imask] in fifo_enqueue()
82 fifo_q->fifobar[fifo_q->tail & fifo_q->imask] |= in fifo_enqueue()
92 static int fifo_dequeue(struct ilo_hwinfo *hw, char *fifobar, int *entry) in fifo_dequeue() argument
94 struct fifo *fifo_q = FIFOBARTOHANDLE(fifobar); in fifo_dequeue()
100 c = fifo_q->fifobar[fifo_q->head & fifo_q->imask]; in fifo_dequeue()
105 fifo_q->fifobar[fifo_q->head & fifo_q->imask] = in fifo_dequeue()
115 static int fifo_check_recv(struct ilo_hwinfo *hw, char *fifobar) in fifo_check_recv() argument
117 struct fifo *fifo_q = FIFOBARTOHANDLE(fifobar); in fifo_check_recv()
123 c = fifo_q->fifobar[fifo_q->head & fifo_q->imask]; in fifo_check_recv()
134 char *fifobar; in ilo_pkt_enqueue() local
138 fifobar = ccb->ccb_u1.send_fifobar; in ilo_pkt_enqueue()
140 fifobar = ccb->ccb_u3.recv_fifobar; in ilo_pkt_enqueue()
143 return fifo_enqueue(hw, fifobar, entry); in ilo_pkt_enqueue()
149 char *fifobar, *desc; in ilo_pkt_dequeue() local
154 fifobar = ccb->ccb_u1.send_fifobar; in ilo_pkt_dequeue()
157 fifobar = ccb->ccb_u3.recv_fifobar; in ilo_pkt_dequeue()
161 ret = fifo_dequeue(hw, fifobar, &entry); in ilo_pkt_dequeue()
177 char *fifobar = ccb->ccb_u3.recv_fifobar; in ilo_pkt_recv() local
179 return fifo_check_recv(hw, fifobar); in ilo_pkt_recv()
229 fifo_q->fifobar[i] = 0; in fifo_setup()