Lines Matching defs:op
27 static int saa7146_i2c_msg_prepare(const struct i2c_msg *m, int num, __le32 *op)
42 /* we assume that op points to a memory of at least SAA7146_I2C_MEM bytes
50 memset(op,0,sizeof(__le32)*mem);
60 op[h1] |= cpu_to_le32( (u8)addr << ((3-h2)*8));
61 op[h1] |= cpu_to_le32(SAA7146_I2C_START << ((3-h2)*2));
68 op[h1] |= cpu_to_le32( (u32)((u8)m[i].buf[j]) << ((3-h2)*8));
69 op[h1] |= cpu_to_le32( SAA7146_I2C_CONT << ((3-h2)*2));
78 if ( SAA7146_I2C_CONT == (0x3 & (le32_to_cpu(op[h1]) >> ((3-h2)*2))) ) {
79 op[h1] &= ~cpu_to_le32(0x2 << ((3-h2)*2));
80 op[h1] |= cpu_to_le32(SAA7146_I2C_STOP << ((3-h2)*2));
87 static int saa7146_i2c_msg_cleanup(const struct i2c_msg *m, int num, __le32 *op)
100 m[i].buf[j] = (le32_to_cpu(op[op_count/3]) >> ((3-(op_count%3))*8));