Lines Matching refs:msg
68 gb_i2c_fill_transfer_op(struct gb_i2c_transfer_op *op, struct i2c_msg *msg) in gb_i2c_fill_transfer_op() argument
70 u16 flags = gb_i2c_transfer_op_flags_map(msg->flags); in gb_i2c_fill_transfer_op()
72 op->addr = cpu_to_le16(msg->addr); in gb_i2c_fill_transfer_op()
74 op->size = cpu_to_le16(msg->len); in gb_i2c_fill_transfer_op()
85 struct i2c_msg *msg; in gb_i2c_operation_create() local
104 msg = msgs; in gb_i2c_operation_create()
105 for (i = 0; i < msg_count; i++, msg++) in gb_i2c_operation_create()
106 if (msg->flags & I2C_M_RD) in gb_i2c_operation_create()
107 data_in_size += (u32)msg->len; in gb_i2c_operation_create()
109 data_out_size += (u32)msg->len; in gb_i2c_operation_create()
125 msg = msgs; in gb_i2c_operation_create()
127 gb_i2c_fill_transfer_op(op++, msg++); in gb_i2c_operation_create()
134 msg = msgs; in gb_i2c_operation_create()
136 if (!(msg->flags & I2C_M_RD)) { in gb_i2c_operation_create()
137 memcpy(data, msg->buf, msg->len); in gb_i2c_operation_create()
138 data += msg->len; in gb_i2c_operation_create()
140 msg++; in gb_i2c_operation_create()
149 struct i2c_msg *msg = msgs; in gb_i2c_decode_response() local
157 if (msg->flags & I2C_M_RD) { in gb_i2c_decode_response()
158 memcpy(msg->buf, data, msg->len); in gb_i2c_decode_response()
159 data += msg->len; in gb_i2c_decode_response()
161 msg++; in gb_i2c_decode_response()