Lines Matching defs:fifo
81 /* select a fifo and remember which one for reuse */
84 fifo_select(struct IsdnCardState *cs, u_char fifo)
86 if (fifo == cs->hw.hfcsx.last_fifo)
90 byteout(cs->hw.hfcsx.base, fifo);
93 byteout(cs->hw.hfcsx.base, fifo);
98 /* reset the specified fifo to defaults. */
99 /* If its a send fifo init needed markers */
102 reset_fifo(struct IsdnCardState *cs, u_char fifo)
104 fifo_select(cs, fifo); /* first select the fifo */
113 /* write_fifo writes the skb contents to the desired fifo */
118 write_fifo(struct IsdnCardState *cs, struct sk_buff *skb, u_char fifo, int trans_max)
125 if (fifo & 1) return(0); /* no write fifo */
127 fifo_select(cs, fifo);
128 if (fifo & 4) {
159 msp += (((fifo >> 1) & 3) * (MAX_B_FRAMES+1));
168 debugl1(cs, "hfcsx_write_fifo %d more as %d frames",fifo,f_msk-1);
176 fifo, f1, f2, z1);
184 fifo, skb->len, count);
187 debugl1(cs, "hfcsx_write_fifo %d no fifo mem", fifo);
203 /* read_fifo reads data to an skb from the desired fifo */
208 read_fifo(struct IsdnCardState *cs, u_char fifo, int trans_max)
213 if (!(fifo & 1)) return(NULL); /* no read fifo */
214 fifo_select(cs, fifo);
215 if (fifo & 4) {
260 fifo, f1, f2, z1, z2);
269 fifo, count);
273 debugl1(cs, "hfcsx_read_fifo %d paket inv. len %d ", fifo , count);
275 count--; /* empty fifo */
292 debugl1(cs, "hfcsx_read_fifo %d crc error", fifo);
1452 cs->hw.hfcsx.fifo = 255;
1515 cs->hw.hfcsx.b_fifo_size = 0; /* fifo size still unknown */