Lines Matching defs:byte

234 #define MLXBF_I2C_MASTER_SEND_PEC_SHIFT   20 /* Send PEC byte when set to 1 */
251 /* Slave's byte count >128 bytes. */
290 #define MLXBF_I2C_SLAVE_SEND_PEC_SHIFT 21 /* Send PEC byte shift. */
641 * Copy data bytes from 4-byte aligned source buffer.
644 * as required by the underlying hardware. Enable byte swapping
662 u8 byte, offset;
669 * set by the underlying hardware. Enable byte swapping while
690 for (byte = 0; byte < (length & mask); byte++) {
691 data[offset + byte] = data32 & GENMASK(7, 0);
717 /* Zero PEC byte. */
719 /* Zero byte count. */
772 /* Set first byte. */
782 * then write command byte and set the optional SMBus specific
818 data_len = write_len + 1; /* Add one byte of the slave address. */
820 * Note that data_len cannot be 0. Indeed, the slave address byte
954 * Skip the first data byte, which corresponds to the number of bytes
961 /* Set the number of byte to read. This will be used by userspace. */
1042 *data_len = length; /* including PEC byte. */
1574 u8 reg, reg_cnt, byte, addr_tmp;
1594 * the byte order consistent with the value read in order to
1598 for (byte = 0; byte < 4; byte++) {
1609 slave_reg &= ~(MLXBF_I2C_SMBUS_SLAVE_ADDR_MASK << (byte * 8));
1610 slave_reg |= (slave->addr << (byte * 8));
1611 slave_reg |= MLXBF_I2C_SMBUS_SLAVE_ADDR_EN_BIT << (byte * 8);
1619 priv->slave[(reg * 4) + byte] = slave;
1624 /* Parse next byte. */
1634 u8 addr_tmp, reg, reg_cnt, byte;
1659 for (byte = 0; byte < 4; byte++) {
1667 slave_reg &= ~(GENMASK(7, 0) << (byte * 8));
1672 priv->slave[(reg * 4) + byte] = NULL;
1677 /* Parse next byte. */
1861 * Send byte to 'external' smbus master. This function is executed when
1873 * Read the first byte received from the external master to
1874 * determine the slave address. This byte is located in the
1896 * So, write the internal address byte first, and then, send the
1965 u8 value, byte, addr;
1990 for (byte = 1; byte < recv_bytes; byte++) {
1991 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",