Lines Matching defs:byte
410 /* Write a single byte to the i2c bus and wait for the slave to ACK */
411 static int ivtv_sendbyte(struct ivtv *itv, unsigned char byte)
415 IVTV_DEBUG_HI_I2C("write %x\n",byte);
416 for (i = 0; i < 8; ++i, byte<<=1) {
422 bit = (byte>>7)&1;
442 /* Read a byte from the i2c bus and send a NACK if applicable (i.e. for the
443 final byte) */
444 static int ivtv_readbyte(struct ivtv *itv, unsigned char *byte, int nack)
448 *byte = 0;
460 *byte = ((*byte)<<1)|ivtv_getsda(itv);
470 IVTV_DEBUG_HI_I2C("read %x\n",*byte);