Lines Matching refs:core
46 struct cx88_core *core = data; in cx8800_bit_setscl() local
49 core->i2c_state |= 0x02; in cx8800_bit_setscl()
51 core->i2c_state &= ~0x02; in cx8800_bit_setscl()
52 cx_write(MO_I2C, core->i2c_state); in cx8800_bit_setscl()
58 struct cx88_core *core = data; in cx8800_bit_setsda() local
61 core->i2c_state |= 0x01; in cx8800_bit_setsda()
63 core->i2c_state &= ~0x01; in cx8800_bit_setsda()
64 cx_write(MO_I2C, core->i2c_state); in cx8800_bit_setsda()
70 struct cx88_core *core = data; in cx8800_bit_getscl() local
79 struct cx88_core *core = data; in cx8800_bit_getsda() local
124 int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci) in cx88_i2c_init() argument
130 core->i2c_algo = cx8800_i2c_algo_template; in cx88_i2c_init()
132 core->i2c_adap.dev.parent = &pci->dev; in cx88_i2c_init()
133 strscpy(core->i2c_adap.name, core->name, sizeof(core->i2c_adap.name)); in cx88_i2c_init()
134 core->i2c_adap.owner = THIS_MODULE; in cx88_i2c_init()
135 core->i2c_algo.udelay = i2c_udelay; in cx88_i2c_init()
136 core->i2c_algo.data = core; in cx88_i2c_init()
137 i2c_set_adapdata(&core->i2c_adap, &core->v4l2_dev); in cx88_i2c_init()
138 core->i2c_adap.algo_data = &core->i2c_algo; in cx88_i2c_init()
139 core->i2c_client.adapter = &core->i2c_adap; in cx88_i2c_init()
140 strscpy(core->i2c_client.name, "cx88xx internal", I2C_NAME_SIZE); in cx88_i2c_init()
142 cx8800_bit_setscl(core, 1); in cx88_i2c_init()
143 cx8800_bit_setsda(core, 1); in cx88_i2c_init()
145 core->i2c_rc = i2c_bit_add_bus(&core->i2c_adap); in cx88_i2c_init()
146 if (core->i2c_rc == 0) { in cx88_i2c_init()
157 switch (core->boardnr) { in cx88_i2c_init()
162 i2c_transfer(core->i2c_client.adapter, &tuner_msg, 1); in cx88_i2c_init()
168 do_i2c_scan(core->name, &core->i2c_client); in cx88_i2c_init()
172 return core->i2c_rc; in cx88_i2c_init()