Lines Matching defs:op
28 static int saa7146_i2c_msg_prepare(const struct i2c_msg *m, int num, __le32 *op)
43 /* we assume that op points to a memory of at least
52 memset(op,0,sizeof(__le32)*mem);
59 op[h1] |= cpu_to_le32( (u8)addr << ((3-h2)*8));
60 op[h1] |= cpu_to_le32(SAA7146_I2C_START << ((3-h2)*2));
67 op[h1] |= cpu_to_le32( (u32)((u8)m[i].buf[j]) << ((3-h2)*8));
68 op[h1] |= cpu_to_le32( SAA7146_I2C_CONT << ((3-h2)*2));
77 if ( SAA7146_I2C_CONT == (0x3 & (le32_to_cpu(op[h1]) >> ((3-h2)*2))) ) {
78 op[h1] &= ~cpu_to_le32(0x2 << ((3-h2)*2));
79 op[h1] |= cpu_to_le32(SAA7146_I2C_STOP << ((3-h2)*2));
90 static int saa7146_i2c_msg_cleanup(const struct i2c_msg *m, int num, __le32 *op)
103 m[i].buf[j] = (le32_to_cpu(op[op_count/3]) >> ((3-(op_count%3))*8));