Lines Matching refs:nibble
142 * CPiA-specific low-level parport functions for nibble uploads
161 unsigned char nibble;
164 * after every second nibble to signal that more
169 * which expects to find nFault LO after every second nibble.
173 * nDataAvail before the first nibble is sent.
179 DBG("%s: No more nibble data (%d bytes)\n",
201 /* Read a nibble. */
202 nibble = parport_read_status (port) >> 3;
203 nibble &= ~8;
204 if ((nibble & 0x10) == 0)
205 nibble |= 8;
206 nibble &= 0xf;
222 /* Second nibble */
223 byte |= nibble << 4;
226 byte = nibble;
230 /* Read the last nibble without checking data avail. */
250 * nonstandard variant of nibble mode which allows the same (mediocre)
253 * (Standard nibble mode only send 4 bits per cycle)
266 unsigned char nibble[2], byte = 0;
289 /* Read lower nibble */
290 nibble[0] = parport_read_status (port) >>3;
305 /* Read upper nibble */
306 nibble[1] = parport_read_status (port) >>3;
310 nibble[j] &= ~8;
311 if ((nibble[j] & 0x10) == 0)
312 nibble[j] |= 8;
313 nibble[j] &= 0xf;
315 byte = (nibble[0] |(nibble[1] << 4));
446 /* support for CPiA variant nibble reads */
500 /* support for CPiA variant "nibble stream" reads */