Lines Matching refs:cobalt
82 cobalt_i2c_regs(struct cobalt *cobalt, unsigned idx) in cobalt_i2c_regs() argument
88 (cobalt->bar1 + COBALT_I2C_0_BASE); in cobalt_i2c_regs()
91 (cobalt->bar1 + COBALT_I2C_1_BASE); in cobalt_i2c_regs()
94 (cobalt->bar1 + COBALT_I2C_2_BASE); in cobalt_i2c_regs()
97 (cobalt->bar1 + COBALT_I2C_3_BASE); in cobalt_i2c_regs()
100 (cobalt->bar1 + COBALT_I2C_HSMA_BASE); in cobalt_i2c_regs()
305 int cobalt_i2c_init(struct cobalt *cobalt) in cobalt_i2c_init() argument
319 cobalt_i2c_regs(cobalt, i); in cobalt_i2c_init()
320 struct i2c_adapter *adap = &cobalt->i2c_adap[i]; in cobalt_i2c_init()
349 cobalt->i2c_data[i].cobalt = cobalt; in cobalt_i2c_init()
350 cobalt->i2c_data[i].regs = regs; in cobalt_i2c_init()
353 adap->algo_data = &cobalt->i2c_data[i]; in cobalt_i2c_init()
356 " #%d-%d", cobalt->instance, i); in cobalt_i2c_init()
357 i2c_set_adapdata(adap, &cobalt->v4l2_dev); in cobalt_i2c_init()
358 adap->dev.parent = &cobalt->pci_dev->dev; in cobalt_i2c_init()
366 i2c_del_adapter(&cobalt->i2c_adap[i]); in cobalt_i2c_init()
374 void cobalt_i2c_exit(struct cobalt *cobalt) in cobalt_i2c_exit() argument
381 cobalt_err("unregistered bus %s\n", cobalt->i2c_adap[i].name); in cobalt_i2c_exit()
382 i2c_del_adapter(&cobalt->i2c_adap[i]); in cobalt_i2c_exit()