Lines Matching defs:byte

242 #define MLXBF_I2C_MASTER_SEND_PEC_SHIFT   20 /* Send PEC byte shift. */
258 /* Slave's byte count >128 bytes. */
295 #define MLXBF_I2C_SLAVE_SEND_PEC_SHIFT 21 /* Send PEC byte shift. */
626 * Copy data bytes from 4-byte aligned source buffer.
629 * as required by the underlying hardware. Enable byte swapping
643 u8 byte, offset;
650 * set by the underlying hardware. Enable byte swapping while
665 for (byte = 0; byte < (length & mask); byte++) {
666 data[offset + byte] = data32 & GENMASK(7, 0);
692 /* Zero PEC byte. */
694 /* Zero byte count. */
747 /* Set first byte. */
757 * then write command byte and set the optional SMBus specific
793 data_len = write_len + 1; /* Add one byte of the slave address. */
795 * Note that data_len cannot be 0. Indeed, the slave address byte
929 * Skip the first data byte, which corresponds to the number of bytes
936 /* Set the number of byte to read. This will be used by userspace. */
1017 *data_len = length; /* including PEC byte. */
1555 u8 reg, reg_cnt, byte, addr_tmp, reg_avail, byte_avail;
1577 * the byte order consistent with the value read in order to
1581 for (byte = 0; byte < 4; byte++) {
1592 byte_avail = byte;
1608 /* Parse next byte. */
1622 byte = byte_avail;
1624 slave_reg_avail &= ~(slave_addr_mask << (byte * 8));
1625 slave_reg_avail |= addr << (byte * 8);
1630 slave_reg |= (1 << MLXBF_I2C_SMBUS_SLAVE_ADDR_EN_BIT) << (byte * 8);
1665 * the byte order consistent with the value read in order to
1681 /* Parse next byte. */
1861 /* Send byte to 'external' smbus master. */
1865 u8 write_size, pec_en, addr, byte, value, byte_cnt, desc_size;
1874 byte = 0;
1880 * These bytes are the slave address byte and the internal register
1890 byte = (data32 >> 8) & GENMASK(7, 0);
1904 * following the slave address byte. So, write that byte first,
1909 value = byte;
1971 u8 value, byte, addr;
1994 for (byte = 1; byte < recv_bytes; byte++) {
1995 value = data_desc[byte];
2092 read ? &data->byte : &command, read,
2094 dev_dbg(&adap->dev, "smbus %s byte, slave 0x%02x.\n",
2099 mlxbf_i2c_smbus_data_byte_func(&request, &command, &data->byte,
2101 dev_dbg(&adap->dev, "smbus %s byte data at 0x%02x, slave 0x%02x.\n",