Lines Matching refs:cobalt
94 cobalt_i2c_regs(struct cobalt *cobalt, unsigned idx) in cobalt_i2c_regs() argument
100 (cobalt->bar1 + COBALT_I2C_0_BASE); in cobalt_i2c_regs()
103 (cobalt->bar1 + COBALT_I2C_1_BASE); in cobalt_i2c_regs()
106 (cobalt->bar1 + COBALT_I2C_2_BASE); in cobalt_i2c_regs()
109 (cobalt->bar1 + COBALT_I2C_3_BASE); in cobalt_i2c_regs()
112 (cobalt->bar1 + COBALT_I2C_HSMA_BASE); in cobalt_i2c_regs()
317 int cobalt_i2c_init(struct cobalt *cobalt) in cobalt_i2c_init() argument
331 cobalt_i2c_regs(cobalt, i); in cobalt_i2c_init()
332 struct i2c_adapter *adap = &cobalt->i2c_adap[i]; in cobalt_i2c_init()
361 cobalt->i2c_data[i].cobalt = cobalt; in cobalt_i2c_init()
362 cobalt->i2c_data[i].regs = regs; in cobalt_i2c_init()
365 adap->algo_data = &cobalt->i2c_data[i]; in cobalt_i2c_init()
368 " #%d-%d", cobalt->instance, i); in cobalt_i2c_init()
369 i2c_set_adapdata(adap, &cobalt->v4l2_dev); in cobalt_i2c_init()
370 adap->dev.parent = &cobalt->pci_dev->dev; in cobalt_i2c_init()
378 i2c_del_adapter(&cobalt->i2c_adap[i]); in cobalt_i2c_init()
386 void cobalt_i2c_exit(struct cobalt *cobalt) in cobalt_i2c_exit() argument
393 cobalt_err("unregistered bus %s\n", cobalt->i2c_adap[i].name); in cobalt_i2c_exit()
394 i2c_del_adapter(&cobalt->i2c_adap[i]); in cobalt_i2c_exit()