Lines Matching refs:num
208 …tic int dibx000_i2c_master_xfer_gpio12(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) in dibx000_i2c_master_xfer_gpio12() argument
215 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio12()
227 return num; in dibx000_i2c_master_xfer_gpio12()
230 …tic int dibx000_i2c_master_xfer_gpio34(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) in dibx000_i2c_master_xfer_gpio34() argument
237 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio34()
249 return num; in dibx000_i2c_master_xfer_gpio34()
285 struct i2c_msg msg[], int num) in dibx000_i2c_gated_gpio67_xfer() argument
290 if (num > 32) { in dibx000_i2c_gated_gpio67_xfer()
292 __func__, num); in dibx000_i2c_gated_gpio67_xfer()
303 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_gpio67_xfer()
311 memcpy(&mst->msg[1], msg, sizeof(struct i2c_msg) * num); in dibx000_i2c_gated_gpio67_xfer()
315 mst->msg[num + 1].addr = mst->i2c_addr; in dibx000_i2c_gated_gpio67_xfer()
316 mst->msg[num + 1].buf = &mst->i2c_write_buffer[4]; in dibx000_i2c_gated_gpio67_xfer()
317 mst->msg[num + 1].len = 4; in dibx000_i2c_gated_gpio67_xfer()
319 ret = (i2c_transfer(mst->i2c_adap, mst->msg, 2 + num) == 2 + num ? in dibx000_i2c_gated_gpio67_xfer()
320 num : -EIO); in dibx000_i2c_gated_gpio67_xfer()
332 struct i2c_msg msg[], int num) in dibx000_i2c_gated_tuner_xfer() argument
337 if (num > 32) { in dibx000_i2c_gated_tuner_xfer()
339 __func__, num); in dibx000_i2c_gated_tuner_xfer()
349 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_tuner_xfer()
357 memcpy(&mst->msg[1], msg, sizeof(struct i2c_msg) * num); in dibx000_i2c_gated_tuner_xfer()
361 mst->msg[num + 1].addr = mst->i2c_addr; in dibx000_i2c_gated_tuner_xfer()
362 mst->msg[num + 1].buf = &mst->i2c_write_buffer[4]; in dibx000_i2c_gated_tuner_xfer()
363 mst->msg[num + 1].len = 4; in dibx000_i2c_gated_tuner_xfer()
365 ret = (i2c_transfer(mst->i2c_adap, mst->msg, 2 + num) == 2 + num ? in dibx000_i2c_gated_tuner_xfer()
366 num : -EIO); in dibx000_i2c_gated_tuner_xfer()