Home
last modified time | relevance | path

Searched refs:i2c_adap (Results 1 – 25 of 201) sorted by relevance

123456789

/linux-6.3-rc2/drivers/media/usb/au0828/
A Dau0828-i2c.c61 if (!i2c_is_read_busy(i2c_adap)) in i2c_wait_read_done()
84 if (i2c_is_write_done(i2c_adap)) in i2c_wait_write_done()
107 if (!i2c_is_busy(i2c_adap)) in i2c_wait_done()
162 if (!i2c_wait_done(i2c_adap)) in i2c_sendbytes()
165 if (i2c_wait_read_ack(i2c_adap)) in i2c_sendbytes()
200 if (!i2c_wait_done(i2c_adap)) in i2c_sendbytes()
267 if (!i2c_wait_done(i2c_adap)) in i2c_readbytes()
365 sizeof(dev->i2c_adap.name)); in au0828_i2c_register()
368 dev->i2c_adap.algo_data = dev; in au0828_i2c_register()
374 i2c_add_adapter(&dev->i2c_adap); in au0828_i2c_register()
[all …]
/linux-6.3-rc2/drivers/i2c/algos/
A Di2c-algo-bit.c165 bit_dbg(1, &i2c_adap->dev, in i2c_outb()
180 bit_dbg(1, &i2c_adap->dev, in i2c_outb()
211 bit_dbg(1, &i2c_adap->dev, in i2c_inb()
295 adap->post_xfer(i2c_adap); in test_bus()
304 adap->post_xfer(i2c_adap); in test_bus()
337 bit_dbg(1, &i2c_adap->dev, in try_address()
414 inval = i2c_inb(i2c_adap); in readbytes()
430 acknak(i2c_adap, 0); in readbytes()
431 dev_err(&i2c_adap->dev, in readbytes()
484 dev_err(&i2c_adap->dev, in bit_doAddress()
[all …]
A Di2c-algo-pcf.c208 struct i2c_algo_pcf_data *adap = i2c_adap->algo_data; in pcf_sendbytes()
212 DEB2(dev_dbg(&i2c_adap->dev, "i2c_write: writing %2.2X\n", in pcf_sendbytes()
221 dev_err(&i2c_adap->dev, "i2c_write: error - timeout.\n"); in pcf_sendbytes()
226 dev_err(&i2c_adap->dev, "i2c_write: error - no ack.\n"); in pcf_sendbytes()
242 struct i2c_algo_pcf_data *adap = i2c_adap->algo_data; in pcf_readbytes()
253 dev_err(&i2c_adap->dev, "pcf_readbytes timed out.\n"); in pcf_readbytes()
259 dev_err(&i2c_adap->dev, "i2c_read: i2c_inb, No ack.\n"); in pcf_readbytes()
294 static int pcf_xfer(struct i2c_adapter *i2c_adap, in pcf_xfer() argument
298 struct i2c_algo_pcf_data *adap = i2c_adap->algo_data; in pcf_xfer()
355 ret = pcf_readbytes(i2c_adap, pmsg->buf, pmsg->len, in pcf_xfer()
[all …]
/linux-6.3-rc2/drivers/media/pci/cx23885/
A Dcx23885-i2c.c56 if (!i2c_is_busy(i2c_adap)) in i2c_wait_done()
85 if (!i2c_wait_done(i2c_adap)) in i2c_sendbytes()
87 if (!i2c_slave_did_ack(i2c_adap)) in i2c_sendbytes()
109 if (!i2c_wait_done(i2c_adap)) in i2c_sendbytes()
131 if (!i2c_wait_done(i2c_adap)) in i2c_sendbytes()
164 if (!i2c_wait_done(i2c_adap)) in i2c_readbytes()
191 if (!i2c_wait_done(i2c_adap)) in i2c_readbytes()
310 sizeof(bus->i2c_adap.name)); in cx23885_i2c_register()
312 bus->i2c_adap.algo_data = bus; in cx23885_i2c_register()
314 i2c_add_adapter(&bus->i2c_adap); in cx23885_i2c_register()
[all …]
A Dcx23885-dvb.c1341 .i2c_adap = &i2c_bus->i2c_adap, in dvb_register()
1361 &i2c_bus->i2c_adap); in dvb_register()
1375 &i2c_bus->i2c_adap); in dvb_register()
1393 .i2c_adap = &dev->i2c_bus[1].i2c_adap, in dvb_register()
1435 .i2c_adap = &i2c_bus->i2c_adap, in dvb_register()
1483 &i2c_bus->i2c_adap); in dvb_register()
1487 .i2c_adap = &dev->i2c_bus[1].i2c_adap, in dvb_register()
1574 &i2c_bus->i2c_adap); in dvb_register()
1626 &i2c_bus->i2c_adap); in dvb_register()
1638 &i2c_bus->i2c_adap); in dvb_register()
[all …]
A Dnetup-eeprom.c18 int netup_eeprom_read(struct i2c_adapter *i2c_adap, u8 addr) in netup_eeprom_read() argument
42 ret = i2c_transfer(i2c_adap, msg, 2); in netup_eeprom_read()
52 int netup_eeprom_write(struct i2c_adapter *i2c_adap, u8 addr, u8 data) in netup_eeprom_write() argument
70 ret = i2c_transfer(i2c_adap, msg, 1); in netup_eeprom_write()
81 void netup_get_card_info(struct i2c_adapter *i2c_adap, in netup_get_card_info() argument
86 cinfo->rev = netup_eeprom_read(i2c_adap, 63); in netup_get_card_info()
89 cinfo->port[0].mac[j] = netup_eeprom_read(i2c_adap, i); in netup_get_card_info()
92 cinfo->port[1].mac[j] = netup_eeprom_read(i2c_adap, i); in netup_get_card_info()
A Dcimax2.c71 struct i2c_adapter *i2c_adap; member
100 ret = i2c_transfer(i2c_adap, msg, 2); in netup_read_i2c()
137 ret = i2c_transfer(i2c_adap, &msg, 1); in netup_write_i2c()
182 ret = netup_read_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_op_cam()
190 ret = netup_write_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_op_cam()
272 ret = netup_write_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_slot_reset()
281 ret = netup_write_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_slot_reset()
307 ret = netup_write_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_set_irq()
326 netup_read_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_ci_slot_ts_ctl()
349 ret = netup_read_i2c(state->i2c_adap, state->ci_i2c_addr, in netup_read_ci_status()
[all …]
/linux-6.3-rc2/drivers/media/pci/cx25821/
A Dcx25821-i2c.c55 if (!i2c_is_busy(i2c_adap)) in i2c_wait_done()
85 if (!i2c_wait_done(i2c_adap)) in i2c_sendbytes()
88 if (!i2c_slave_did_ack(i2c_adap)) in i2c_sendbytes()
110 retval = i2c_wait_done(i2c_adap); in i2c_sendbytes()
136 retval = i2c_wait_done(i2c_adap); in i2c_sendbytes()
175 if (!i2c_wait_done(i2c_adap)) in i2c_readbytes()
177 if (!i2c_slave_did_ack(i2c_adap)) in i2c_readbytes()
299 strscpy(bus->i2c_adap.name, bus->dev->name, sizeof(bus->i2c_adap.name)); in cx25821_i2c_register()
301 bus->i2c_adap.algo_data = bus; in cx25821_i2c_register()
303 i2c_add_adapter(&bus->i2c_adap); in cx25821_i2c_register()
[all …]
/linux-6.3-rc2/drivers/media/common/b2c2/
A Dflexcop-i2c.c230 sizeof(fc->fc_i2c_adap[0].i2c_adap.name)); in flexcop_i2c_init()
232 sizeof(fc->fc_i2c_adap[1].i2c_adap.name)); in flexcop_i2c_init()
234 sizeof(fc->fc_i2c_adap[2].i2c_adap.name)); in flexcop_i2c_init()
240 fc->fc_i2c_adap[0].i2c_adap.algo = in flexcop_i2c_init()
241 fc->fc_i2c_adap[1].i2c_adap.algo = in flexcop_i2c_init()
243 fc->fc_i2c_adap[0].i2c_adap.algo_data = in flexcop_i2c_init()
244 fc->fc_i2c_adap[1].i2c_adap.algo_data = in flexcop_i2c_init()
245 fc->fc_i2c_adap[2].i2c_adap.algo_data = NULL; in flexcop_i2c_init()
246 fc->fc_i2c_adap[0].i2c_adap.dev.parent = in flexcop_i2c_init()
247 fc->fc_i2c_adap[1].i2c_adap.dev.parent = in flexcop_i2c_init()
[all …]
/linux-6.3-rc2/drivers/media/pci/saa7134/
A Dsaa7134-dvb.c1275 &dev->i2c_adap); in dvb_init()
1565 &dev->i2c_adap); in dvb_init()
1608 &dev->i2c_adap); in dvb_init()
1639 &dev->i2c_adap); in dvb_init()
1675 &dev->i2c_adap); in dvb_init()
1736 &dev->i2c_adap); in dvb_init()
1746 &dev->i2c_adap); in dvb_init()
1755 &dev->i2c_adap); in dvb_init()
1787 &dev->i2c_adap); in dvb_init()
1791 &dev->i2c_adap, in dvb_init()
[all …]
A Dsaa7134-i2c.c227 static int saa7134_i2c_xfer(struct i2c_adapter *i2c_adap, in saa7134_i2c_xfer() argument
230 struct saa7134_dev *dev = i2c_adap->algo_data; in saa7134_i2c_xfer()
364 ret = i2c_transfer(&dev->i2c_adap, i2cgatemsg_r, 2); in saa7134_i2c_eeprom_md7134_gate()
433 dev->i2c_adap = saa7134_adap_template; in saa7134_i2c_register()
434 dev->i2c_adap.dev.parent = &dev->pci->dev; in saa7134_i2c_register()
435 strscpy(dev->i2c_adap.name, dev->name, sizeof(dev->i2c_adap.name)); in saa7134_i2c_register()
436 dev->i2c_adap.algo_data = dev; in saa7134_i2c_register()
437 i2c_set_adapdata(&dev->i2c_adap, &dev->v4l2_dev); in saa7134_i2c_register()
438 i2c_add_adapter(&dev->i2c_adap); in saa7134_i2c_register()
441 dev->i2c_client.adapter = &dev->i2c_adap; in saa7134_i2c_register()
[all …]
/linux-6.3-rc2/drivers/media/platform/samsung/exynos4-is/
A Dfimc-is-i2c.c41 struct i2c_adapter *i2c_adap; in fimc_is_i2c_probe() local
54 i2c_adap = &isp_i2c->adapter; in fimc_is_i2c_probe()
55 i2c_adap->dev.of_node = node; in fimc_is_i2c_probe()
56 i2c_adap->dev.parent = &pdev->dev; in fimc_is_i2c_probe()
57 strscpy(i2c_adap->name, "exynos4x12-isp-i2c", sizeof(i2c_adap->name)); in fimc_is_i2c_probe()
58 i2c_adap->owner = THIS_MODULE; in fimc_is_i2c_probe()
59 i2c_adap->algo = &fimc_is_i2c_algorithm; in fimc_is_i2c_probe()
60 i2c_adap->class = I2C_CLASS_SPD; in fimc_is_i2c_probe()
65 ret = i2c_add_adapter(i2c_adap); in fimc_is_i2c_probe()
77 pm_suspend_ignore_children(&i2c_adap->dev, false); in fimc_is_i2c_probe()
/linux-6.3-rc2/drivers/media/dvb-frontends/
A Ddibx000_common.c68 if (i2c_transfer(mst->i2c_adap, mst->msg, 2) != 2) in dibx000_read_word()
417 i2c_transfer(mst->i2c_adap, &m, 1); in dibx000_reset_i2c_master()
424 static int i2c_adapter_init(struct i2c_adapter *i2c_adap, in i2c_adapter_init() argument
428 strscpy(i2c_adap->name, name, sizeof(i2c_adap->name)); in i2c_adapter_init()
429 i2c_adap->algo = algo; in i2c_adapter_init()
430 i2c_adap->algo_data = NULL; in i2c_adapter_init()
431 i2c_set_adapdata(i2c_adap, mst); in i2c_adapter_init()
432 if (i2c_add_adapter(i2c_adap) < 0) in i2c_adapter_init()
438 struct i2c_adapter *i2c_adap, u8 i2c_addr) in dibx000_init_i2c_master() argument
454 mst->i2c_adap = i2c_adap; in dibx000_init_i2c_master()
[all …]
/linux-6.3-rc2/drivers/media/pci/cx88/
A Dcx88-dvb.c609 .i2c_adap = &dev->core->i2c_adap, in attach_xc3028()
1074 &dev->core->i2c_adap, in dvb_register()
1195 &core->i2c_adap); in dvb_register()
1355 &core->i2c_adap, in dvb_register()
1367 .i2c_adap = &core->i2c_adap, in dvb_register()
1434 &core->i2c_adap, in dvb_register()
1488 &core->i2c_adap); in dvb_register()
1503 &core->i2c_adap)) in dvb_register()
1520 &core->i2c_adap); in dvb_register()
1557 &core->i2c_adap)) in dvb_register()
[all …]
A Dcx88-i2c.c132 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()
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()
145 core->i2c_rc = i2c_bit_add_bus(&core->i2c_adap); in cx88_i2c_init()
/linux-6.3-rc2/drivers/media/usb/dvb-usb/
A Ddvb-usb-i2c.c24 strscpy(d->i2c_adap.name, d->desc->name, sizeof(d->i2c_adap.name)); in dvb_usb_i2c_init()
25 d->i2c_adap.algo = d->props.i2c_algo; in dvb_usb_i2c_init()
26 d->i2c_adap.algo_data = NULL; in dvb_usb_i2c_init()
27 d->i2c_adap.dev.parent = &d->udev->dev; in dvb_usb_i2c_init()
29 i2c_set_adapdata(&d->i2c_adap, d); in dvb_usb_i2c_init()
31 ret = i2c_add_adapter(&d->i2c_adap); in dvb_usb_i2c_init()
46 i2c_del_adapter(&d->i2c_adap); in dvb_usb_i2c_exit()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_eeprom.c92 static int __amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr, in __amdgpu_eeprom_xfer() argument
151 r = i2c_transfer(i2c_adap, msgs, ARRAY_SIZE(msgs)); in __amdgpu_eeprom_xfer()
181 static int amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr, in amdgpu_eeprom_xfer() argument
184 const struct i2c_adapter_quirks *quirks = i2c_adap->quirks; in amdgpu_eeprom_xfer()
195 return __amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, in amdgpu_eeprom_xfer()
198 dev_err_ratelimited(&i2c_adap->dev, in amdgpu_eeprom_xfer()
216 r = __amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, in amdgpu_eeprom_xfer()
227 int amdgpu_eeprom_read(struct i2c_adapter *i2c_adap, in amdgpu_eeprom_read() argument
231 return amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, eeprom_buf, bytes, in amdgpu_eeprom_read()
235 int amdgpu_eeprom_write(struct i2c_adapter *i2c_adap, in amdgpu_eeprom_write() argument
[all …]
/linux-6.3-rc2/drivers/media/pci/saa7164/
A Dsaa7164-i2c.c16 static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) in i2c_xfer() argument
18 struct saa7164_i2c *bus = i2c_adap->algo_data; in i2c_xfer()
87 bus->i2c_adap = saa7164_i2c_adap_template; in saa7164_i2c_register()
90 bus->i2c_adap.dev.parent = &dev->pci->dev; in saa7164_i2c_register()
92 strscpy(bus->i2c_adap.name, bus->dev->name, in saa7164_i2c_register()
93 sizeof(bus->i2c_adap.name)); in saa7164_i2c_register()
95 bus->i2c_adap.algo_data = bus; in saa7164_i2c_register()
96 i2c_set_adapdata(&bus->i2c_adap, bus); in saa7164_i2c_register()
97 i2c_add_adapter(&bus->i2c_adap); in saa7164_i2c_register()
99 bus->i2c_client.adapter = &bus->i2c_adap; in saa7164_i2c_register()
[all …]
/linux-6.3-rc2/drivers/media/usb/cx231xx/
A Dcx231xx-i2c.c75 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_send_bytes()
186 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_recv_bytes()
273 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_recv_bytes_with_saddr()
521 bus->i2c_adap = cx231xx_adap_template; in cx231xx_i2c_register()
522 bus->i2c_adap.dev.parent = dev->dev; in cx231xx_i2c_register()
524 snprintf(bus->i2c_adap.name, sizeof(bus->i2c_adap.name), "%s-%d", bus->dev->name, bus->nr); in cx231xx_i2c_register()
526 bus->i2c_adap.algo_data = bus; in cx231xx_i2c_register()
544 i2c_del_adapter(&bus->i2c_adap); in cx231xx_i2c_unregister()
585 return &dev->i2c_bus[0].i2c_adap; in cx231xx_get_i2c_adap()
587 return &dev->i2c_bus[1].i2c_adap; in cx231xx_get_i2c_adap()
[all …]
/linux-6.3-rc2/drivers/media/pci/bt8xx/
A Dbttv-i2c.c344 strscpy(btv->c.i2c_adap.name, "bt878", in init_bttv_i2c()
345 sizeof(btv->c.i2c_adap.name)); in init_bttv_i2c()
346 btv->c.i2c_adap.algo = &bttv_algo; in init_bttv_i2c()
353 strscpy(btv->c.i2c_adap.name, "bttv", in init_bttv_i2c()
354 sizeof(btv->c.i2c_adap.name)); in init_bttv_i2c()
358 btv->c.i2c_adap.algo_data = &btv->i2c_algo; in init_bttv_i2c()
360 btv->c.i2c_adap.owner = THIS_MODULE; in init_bttv_i2c()
362 btv->c.i2c_adap.dev.parent = &btv->c.pci->dev; in init_bttv_i2c()
363 snprintf(btv->c.i2c_adap.name, sizeof(btv->c.i2c_adap.name), in init_bttv_i2c()
368 btv->i2c_client.adapter = &btv->c.i2c_adap; in init_bttv_i2c()
[all …]
/linux-6.3-rc2/drivers/media/pci/ttpci/
A Dbudget.c498 budget->dvb_frontend->tuner_priv = &budget->i2c_adap; in frontend_init()
532 budget->dvb_frontend->tuner_priv = &budget->i2c_adap; in frontend_init()
608 if (dvb_attach(lnbp21_attach, fe, &budget->i2c_adap, in frontend_init()
631 &budget->i2c_adap, 0) == NULL) in frontend_init()
634 &budget->i2c_adap, 0, 0) == NULL) { in frontend_init()
652 &budget->i2c_adap, in frontend_init()
660 &budget->i2c_adap); in frontend_init()
683 &budget->i2c_adap, in frontend_init()
705 &budget->i2c_adap, in frontend_init()
714 &budget->i2c_adap); in frontend_init()
[all …]
/linux-6.3-rc2/drivers/media/usb/stk1160/
A Dstk1160-i2c.c151 static int stk1160_i2c_xfer(struct i2c_adapter *i2c_adap, in stk1160_i2c_xfer() argument
154 struct stk1160 *dev = i2c_adap->algo_data; in stk1160_i2c_xfer()
251 dev->i2c_adap = adap_template; in stk1160_i2c_register()
252 dev->i2c_adap.dev.parent = dev->dev; in stk1160_i2c_register()
253 strscpy(dev->i2c_adap.name, "stk1160", sizeof(dev->i2c_adap.name)); in stk1160_i2c_register()
254 dev->i2c_adap.algo_data = dev; in stk1160_i2c_register()
256 i2c_set_adapdata(&dev->i2c_adap, &dev->v4l2_dev); in stk1160_i2c_register()
258 rc = i2c_add_adapter(&dev->i2c_adap); in stk1160_i2c_register()
265 dev->i2c_client.adapter = &dev->i2c_adap; in stk1160_i2c_register()
282 i2c_del_adapter(&dev->i2c_adap); in stk1160_i2c_unregister()
/linux-6.3-rc2/drivers/media/usb/em28xx/
A Dem28xx-dvb.c945 cfg.i2c_adap = &dev->i2c_adap[dev->def_i2c_bus]; in em28xx_attach_xc3028()
1640 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1650 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1661 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1665 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1681 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1694 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1701 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1855 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1874 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
[all …]
/linux-6.3-rc2/drivers/media/pci/cx18/
A Dcx18-i2c.c99 struct i2c_adapter *adap = &cx->i2c_adap[bus]; in cx18_i2c_register()
230 cx->i2c_adap[i] = cx18_i2c_adap_template; in init_cx18_i2c()
231 cx->i2c_adap[i].algo_data = &cx->i2c_algo[i]; in init_cx18_i2c()
232 sprintf(cx->i2c_adap[i].name + strlen(cx->i2c_adap[i].name), in init_cx18_i2c()
234 i2c_set_adapdata(&cx->i2c_adap[i], &cx->v4l2_dev); in init_cx18_i2c()
235 cx->i2c_adap[i].dev.parent = &cx->pci_dev->dev; in init_cx18_i2c()
274 err = i2c_bit_add_bus(&cx->i2c_adap[0]); in init_cx18_i2c()
277 err = i2c_bit_add_bus(&cx->i2c_adap[1]); in init_cx18_i2c()
283 i2c_del_adapter(&cx->i2c_adap[0]); in init_cx18_i2c()
298 i2c_del_adapter(&cx->i2c_adap[i]); in exit_cx18_i2c()
/linux-6.3-rc2/drivers/media/tuners/
A Dtea5761.h12 extern int tea5761_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr);
15 struct i2c_adapter* i2c_adap,
18 static inline int tea5761_autodetection(struct i2c_adapter* i2c_adap, in tea5761_autodetection() argument
27 struct i2c_adapter* i2c_adap, in tea5761_attach() argument

Completed in 58 milliseconds

123456789