Lines Matching refs:byte
404 /* Write a single byte to the i2c bus and wait for the slave to ACK */
405 static int ivtv_sendbyte(struct ivtv *itv, unsigned char byte)
409 IVTV_DEBUG_HI_I2C("write %x\n",byte);
410 for (i = 0; i < 8; ++i, byte<<=1) {
416 bit = (byte>>7)&1;
436 /* Read a byte from the i2c bus and send a NACK if applicable (i.e. for the
437 final byte) */
438 static int ivtv_readbyte(struct ivtv *itv, unsigned char *byte, int nack)
442 *byte = 0;
454 *byte = ((*byte)<<1)|ivtv_getsda(itv);
464 IVTV_DEBUG_HI_I2C("read %x\n",*byte);