• Home
  • Raw
  • Download

Lines Matching refs:i2c_adap

75 static int cx231xx_i2c_send_bytes(struct i2c_adapter *i2c_adap,  in cx231xx_i2c_send_bytes()  argument
78 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_send_bytes()
186 static int cx231xx_i2c_recv_bytes(struct i2c_adapter *i2c_adap, in cx231xx_i2c_recv_bytes() argument
189 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_recv_bytes()
272 static int cx231xx_i2c_recv_bytes_with_saddr(struct i2c_adapter *i2c_adap, in cx231xx_i2c_recv_bytes_with_saddr() argument
276 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_recv_bytes_with_saddr()
336 static int cx231xx_i2c_check_for_device(struct i2c_adapter *i2c_adap, in cx231xx_i2c_check_for_device() argument
339 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_check_for_device()
362 static int cx231xx_i2c_xfer(struct i2c_adapter *i2c_adap, in cx231xx_i2c_xfer() argument
365 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_xfer()
381 rc = cx231xx_i2c_check_for_device(i2c_adap, &msgs[i]); in cx231xx_i2c_xfer()
390 rc = cx231xx_i2c_recv_bytes(i2c_adap, &msgs[i]); in cx231xx_i2c_xfer()
408 rc = cx231xx_i2c_recv_bytes_with_saddr(i2c_adap, in cx231xx_i2c_xfer()
422 rc = cx231xx_i2c_send_bytes(i2c_adap, &msgs[i]); in cx231xx_i2c_xfer()
511 bus->i2c_adap = cx231xx_adap_template; in cx231xx_i2c_register()
513 bus->i2c_adap.dev.parent = &dev->udev->dev; in cx231xx_i2c_register()
515 strlcpy(bus->i2c_adap.name, bus->dev->name, sizeof(bus->i2c_adap.name)); in cx231xx_i2c_register()
517 bus->i2c_adap.algo_data = bus; in cx231xx_i2c_register()
518 i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev); in cx231xx_i2c_register()
519 i2c_add_adapter(&bus->i2c_adap); in cx231xx_i2c_register()
521 bus->i2c_client.adapter = &bus->i2c_adap; in cx231xx_i2c_register()
539 i2c_del_adapter(&bus->i2c_adap); in cx231xx_i2c_unregister()