Lines Matching refs:msg
99 static int dvbsky_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], in dvbsky_i2c_xfer() argument
117 if (msg[0].len > 60) { in dvbsky_i2c_xfer()
120 msg[0].len); in dvbsky_i2c_xfer()
124 if (msg[0].flags & I2C_M_RD) { in dvbsky_i2c_xfer()
128 obuf[2] = msg[0].len; in dvbsky_i2c_xfer()
129 obuf[3] = msg[0].addr; in dvbsky_i2c_xfer()
131 ibuf, msg[0].len + 1); in dvbsky_i2c_xfer()
133 memcpy(msg[0].buf, &ibuf[1], msg[0].len); in dvbsky_i2c_xfer()
137 obuf[1] = msg[0].addr; in dvbsky_i2c_xfer()
138 obuf[2] = msg[0].len; in dvbsky_i2c_xfer()
139 memcpy(&obuf[3], msg[0].buf, msg[0].len); in dvbsky_i2c_xfer()
141 msg[0].len + 3, ibuf, 1); in dvbsky_i2c_xfer()
144 if ((msg[0].len > 60) || (msg[1].len > 60)) { in dvbsky_i2c_xfer()
147 msg[0].len, msg[1].len); in dvbsky_i2c_xfer()
153 obuf[1] = msg[0].len; in dvbsky_i2c_xfer()
154 obuf[2] = msg[1].len; in dvbsky_i2c_xfer()
155 obuf[3] = msg[0].addr; in dvbsky_i2c_xfer()
156 memcpy(&obuf[4], msg[0].buf, msg[0].len); in dvbsky_i2c_xfer()
158 msg[0].len + 4, ibuf, msg[1].len + 1); in dvbsky_i2c_xfer()
160 memcpy(msg[1].buf, &ibuf[1], msg[1].len); in dvbsky_i2c_xfer()
237 struct i2c_msg msg[] = { in dvbsky_read_mac_addr() local
251 if (i2c_transfer(&d->i2c_adap, msg, 2) == 2) in dvbsky_read_mac_addr()