/Linux-v6.6/drivers/media/usb/au0828/ |
D | au0828-i2c.c | 26 static inline int i2c_slave_did_read_ack(struct i2c_adapter *i2c_adap) in i2c_slave_did_read_ack() argument 28 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_slave_did_read_ack() 33 static int i2c_wait_read_ack(struct i2c_adapter *i2c_adap) in i2c_wait_read_ack() argument 38 if (!i2c_slave_did_read_ack(i2c_adap)) in i2c_wait_read_ack() 49 static inline int i2c_is_read_busy(struct i2c_adapter *i2c_adap) in i2c_is_read_busy() argument 51 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_read_busy() 56 static int i2c_wait_read_done(struct i2c_adapter *i2c_adap) in i2c_wait_read_done() argument 61 if (!i2c_is_read_busy(i2c_adap)) in i2c_wait_read_done() 72 static inline int i2c_is_write_done(struct i2c_adapter *i2c_adap) in i2c_is_write_done() argument 74 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_write_done() [all …]
|
/Linux-v6.6/drivers/i2c/algos/ |
D | i2c-algo-bit.c | 152 static int i2c_outb(struct i2c_adapter *i2c_adap, unsigned char c) in i2c_outb() argument 157 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in i2c_outb() 165 bit_dbg(1, &i2c_adap->dev, in i2c_outb() 180 bit_dbg(1, &i2c_adap->dev, in i2c_outb() 190 bit_dbg(2, &i2c_adap->dev, "i2c_outb: 0x%02x %s\n", (int)c, in i2c_outb() 199 static int i2c_inb(struct i2c_adapter *i2c_adap) in i2c_inb() argument 205 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in i2c_inb() 211 bit_dbg(1, &i2c_adap->dev, in i2c_inb() 230 static int test_bus(struct i2c_adapter *i2c_adap) in test_bus() argument 232 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in test_bus() [all …]
|
D | i2c-algo-pcf.c | 205 static int pcf_sendbytes(struct i2c_adapter *i2c_adap, const char *buf, in pcf_sendbytes() argument 208 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() 238 static int pcf_readbytes(struct i2c_adapter *i2c_adap, char *buf, in pcf_readbytes() argument 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 [all …]
|
/Linux-v6.6/drivers/media/pci/cx23885/ |
D | cx23885-i2c.c | 37 static inline int i2c_slave_did_ack(struct i2c_adapter *i2c_adap) in i2c_slave_did_ack() argument 39 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_slave_did_ack() 44 static inline int i2c_is_busy(struct i2c_adapter *i2c_adap) in i2c_is_busy() argument 46 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_is_busy() 51 static int i2c_wait_done(struct i2c_adapter *i2c_adap) in i2c_wait_done() argument 56 if (!i2c_is_busy(i2c_adap)) in i2c_wait_done() 67 static int i2c_sendbytes(struct i2c_adapter *i2c_adap, in i2c_sendbytes() argument 70 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_sendbytes() 85 if (!i2c_wait_done(i2c_adap)) in i2c_sendbytes() 87 if (!i2c_slave_did_ack(i2c_adap)) in i2c_sendbytes() [all …]
|
D | cx23885-dvb.c | 1091 netup_get_card_info(&dev->i2c_bus[0].i2c_adap, &cinfo); in dvb_register_ci_mac() 1162 client_ci = i2c_new_client_device(&i2c_bus->i2c_adap, &info); in dvb_register_ci_mac() 1229 &i2c_bus->i2c_adap); in dvb_register() 1233 &i2c_bus->i2c_adap, in dvb_register() 1241 &i2c_bus->i2c_adap); in dvb_register() 1245 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register() 1255 &i2c_bus->i2c_adap); in dvb_register() 1260 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register() 1264 0x60, &dev->i2c_bus[1].i2c_adap, in dvb_register() 1275 &i2c_bus->i2c_adap); in dvb_register() [all …]
|
D | netup-eeprom.c | 18 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()
|
D | cimax2.c | 71 struct i2c_adapter *i2c_adap; member 82 static int netup_read_i2c(struct i2c_adapter *i2c_adap, u8 addr, u8 reg, in netup_read_i2c() argument 100 ret = i2c_transfer(i2c_adap, msg, 2); in netup_read_i2c() 115 static int netup_write_i2c(struct i2c_adapter *i2c_adap, u8 addr, u8 reg, in netup_write_i2c() argument 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() [all …]
|
/Linux-v6.6/drivers/media/pci/cx25821/ |
D | cx25821-i2c.c | 36 static inline int i2c_slave_did_ack(struct i2c_adapter *i2c_adap) in i2c_slave_did_ack() argument 38 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_slave_did_ack() 43 static inline int i2c_is_busy(struct i2c_adapter *i2c_adap) in i2c_is_busy() argument 45 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_is_busy() 50 static int i2c_wait_done(struct i2c_adapter *i2c_adap) in i2c_wait_done() argument 55 if (!i2c_is_busy(i2c_adap)) in i2c_wait_done() 66 static int i2c_sendbytes(struct i2c_adapter *i2c_adap, in i2c_sendbytes() argument 69 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_sendbytes() 85 if (!i2c_wait_done(i2c_adap)) in i2c_sendbytes() 88 if (!i2c_slave_did_ack(i2c_adap)) in i2c_sendbytes() [all …]
|
/Linux-v6.6/drivers/media/common/b2c2/ |
D | flexcop-i2c.c | 167 static int flexcop_master_xfer(struct i2c_adapter *i2c_adap, in flexcop_master_xfer() argument 170 struct flexcop_i2c_adapter *i2c = i2c_get_adapdata(i2c_adap); in flexcop_master_xfer() 229 strscpy(fc->fc_i2c_adap[0].i2c_adap.name, "B2C2 FlexCop I2C to demod", in flexcop_i2c_init() 230 sizeof(fc->fc_i2c_adap[0].i2c_adap.name)); in flexcop_i2c_init() 231 strscpy(fc->fc_i2c_adap[1].i2c_adap.name, "B2C2 FlexCop I2C to eeprom", in flexcop_i2c_init() 232 sizeof(fc->fc_i2c_adap[1].i2c_adap.name)); in flexcop_i2c_init() 233 strscpy(fc->fc_i2c_adap[2].i2c_adap.name, "B2C2 FlexCop I2C to tuner", in flexcop_i2c_init() 234 sizeof(fc->fc_i2c_adap[2].i2c_adap.name)); in flexcop_i2c_init() 236 i2c_set_adapdata(&fc->fc_i2c_adap[0].i2c_adap, &fc->fc_i2c_adap[0]); in flexcop_i2c_init() 237 i2c_set_adapdata(&fc->fc_i2c_adap[1].i2c_adap, &fc->fc_i2c_adap[1]); in flexcop_i2c_init() [all …]
|
/Linux-v6.6/drivers/media/pci/saa7134/ |
D | saa7134-dvb.c | 179 i2c_transfer(&dev->i2c_adap, &msg, 1); in mt352_pinnacle_tuner_set_params() 184 i2c_transfer(&dev->i2c_adap, &msg, 1); in mt352_pinnacle_tuner_set_params() 236 if (i2c_transfer(&dev->i2c_adap, &msg, 1) != 1) { in kworld_sbtvd_gate_ctrl() 244 if (i2c_transfer(&dev->i2c_adap, &msg, 1) != 1) { in kworld_sbtvd_gate_ctrl() 347 if (i2c_transfer(&dev->i2c_adap, &tuner_msg, 1) != 1) { in philips_tda6651_pll_set() 367 if (i2c_transfer(&dev->i2c_adap, &tuner_msg, 1) != 1) in philips_tu1216_init() 412 if (i2c_transfer(&dev->i2c_adap, &init_msg, 1) != 1) in philips_td1316_tuner_init() 433 if (i2c_transfer(&dev->i2c_adap, &analog_msg, 1) != 1) in philips_td1316_tuner_sleep() 450 if (i2c_transfer(&dev->i2c_adap, &init_msg, 1) != 1) in philips_europa_tuner_init() 469 i2c_transfer(&dev->i2c_adap, &analog_msg, 1); in philips_europa_tuner_sleep() [all …]
|
D | saa7134-i2c.c | 227 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() 371 if (i2c_transfer(&dev->i2c_adap, i2cgatemsg_w, 1) != 1) 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() [all …]
|
/Linux-v6.6/drivers/media/dvb-frontends/ |
D | dibx000_common.c | 40 ret = i2c_transfer(mst->i2c_adap, mst->msg, 1) != 1 ? -EREMOTEIO : 0; in dibx000_write_word() 68 if (i2c_transfer(mst->i2c_adap, mst->msg, 2) != 2) in dibx000_read_word() 182 int dibx000_i2c_set_speed(struct i2c_adapter *i2c_adap, u16 speed) in dibx000_i2c_set_speed() argument 184 struct dibx000_i2c_master *mst = i2c_get_adapdata(i2c_adap); in dibx000_i2c_set_speed() 209 static int dibx000_i2c_master_xfer_gpio12(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int n… in dibx000_i2c_master_xfer_gpio12() argument 211 struct dibx000_i2c_master *mst = i2c_get_adapdata(i2c_adap); in dibx000_i2c_master_xfer_gpio12() 231 static int dibx000_i2c_master_xfer_gpio34(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int n… in dibx000_i2c_master_xfer_gpio34() argument 233 struct dibx000_i2c_master *mst = i2c_get_adapdata(i2c_adap); in dibx000_i2c_master_xfer_gpio34() 285 static int dibx000_i2c_gated_gpio67_xfer(struct i2c_adapter *i2c_adap, in dibx000_i2c_gated_gpio67_xfer() argument 288 struct dibx000_i2c_master *mst = i2c_get_adapdata(i2c_adap); in dibx000_i2c_gated_gpio67_xfer() [all …]
|
/Linux-v6.6/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-is-i2c.c | 41 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-v6.6/drivers/media/pci/cx88/ |
D | cx88-dvb.c | 609 .i2c_adap = &dev->core->i2c_adap, in attach_xc3028() 660 fe = dvb_attach(xc4000_attach, fe0->dvb.frontend, &dev->core->i2c_adap, in attach_xc4000() 880 if (i2c_transfer(&dev->core->i2c_adap, &msg, 1) != 1) in samsung_smt_7020_tuner_set_params() 938 return (i2c_transfer(&dev->core->i2c_adap, &msg, 1) == 1) ? 0 : -EIO; in samsung_smt_7020_set_voltage() 1016 &core->i2c_adap); in dvb_register() 1019 0x61, &core->i2c_adap, in dvb_register() 1030 &core->i2c_adap); in dvb_register() 1033 0x60, &core->i2c_adap, in dvb_register() 1044 &core->i2c_adap); in dvb_register() 1047 &core->i2c_adap, 0x61, in dvb_register() [all …]
|
D | cx88-i2c.c | 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() 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-v6.6/drivers/media/usb/dvb-usb/ |
D | dvb-usb-i2c.c | 24 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-v6.6/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_eeprom.c | 92 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() 197 return __amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, in amdgpu_eeprom_xfer() 200 dev_err_ratelimited(&i2c_adap->dev, in amdgpu_eeprom_xfer() 216 r = __amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, in amdgpu_eeprom_xfer() 226 int amdgpu_eeprom_read(struct i2c_adapter *i2c_adap, in amdgpu_eeprom_read() argument 230 return amdgpu_eeprom_xfer(i2c_adap, eeprom_addr, eeprom_buf, bytes, in amdgpu_eeprom_read() 234 int amdgpu_eeprom_write(struct i2c_adapter *i2c_adap, in amdgpu_eeprom_write() argument [all …]
|
/Linux-v6.6/drivers/media/pci/saa7164/ |
D | saa7164-i2c.c | 16 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-v6.6/drivers/media/usb/cx231xx/ |
D | cx231xx-i2c.c | 72 static int cx231xx_i2c_send_bytes(struct i2c_adapter *i2c_adap, in cx231xx_i2c_send_bytes() argument 75 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_send_bytes() 183 static int cx231xx_i2c_recv_bytes(struct i2c_adapter *i2c_adap, in cx231xx_i2c_recv_bytes() argument 186 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_recv_bytes() 269 static int cx231xx_i2c_recv_bytes_with_saddr(struct i2c_adapter *i2c_adap, in cx231xx_i2c_recv_bytes_with_saddr() argument 273 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_recv_bytes_with_saddr() 333 static int cx231xx_i2c_check_for_device(struct i2c_adapter *i2c_adap, in cx231xx_i2c_check_for_device() argument 336 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_check_for_device() 360 static int cx231xx_i2c_xfer(struct i2c_adapter *i2c_adap, in cx231xx_i2c_xfer() argument 363 struct cx231xx_i2c *bus = i2c_adap->algo_data; in cx231xx_i2c_xfer() [all …]
|
/Linux-v6.6/drivers/media/pci/bt8xx/ |
D | bttv-i2c.c | 220 static int bttv_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) in bttv_i2c_xfer() argument 222 struct v4l2_device *v4l2_dev = i2c_get_adapdata(i2c_adap); in bttv_i2c_xfer() 344 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() [all …]
|
/Linux-v6.6/drivers/media/pci/ttpci/ |
D | budget.c | 223 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; in alps_bsrv2_tuner_set_params() 251 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; in alps_tdbe2_tuner_set_params() 306 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; in grundig_29504_401_tuner_set_params() 336 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; in grundig_29504_451_tuner_set_params() 368 if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; in s5h1420_tuner_set_params() 432 if ((i2c_transfer(&budget->i2c_adap, msg, 2) != 2) || (pwm == 0xff)) in read_pwm() 485 budget->dvb_frontend = dvb_attach(ves1x93_attach, &alps_bsrv2_config, &budget->i2c_adap); in frontend_init() 495 budget->dvb_frontend = dvb_attach(stv0299_attach, &alps_bsru6_config, &budget->i2c_adap); in frontend_init() 498 budget->dvb_frontend->tuner_priv = &budget->i2c_adap; in frontend_init() 510 …budget->dvb_frontend = dvb_attach(ves1820_attach, &alps_tdbe2_config, &budget->i2c_adap, read_pwm(… in frontend_init() [all …]
|
/Linux-v6.6/drivers/media/usb/stk1160/ |
D | stk1160-i2c.c | 151 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-v6.6/drivers/media/usb/em28xx/ |
D | em28xx-dvb.c | 945 cfg.i2c_adap = &dev->i2c_adap[dev->def_i2c_bus]; in em28xx_attach_xc3028() 1144 &dev->i2c_adap[dev->def_i2c_bus], in em28174_dvb_init_pctv_460e() 1155 &dev->i2c_adap[dev->def_i2c_bus], in em28174_dvb_init_pctv_460e() 1182 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_461e() 1214 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_461e() 1243 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_461e_v2() 1269 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_461e_v2() 1294 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_292e() 1330 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_terratec_t2_stick_hd() 1361 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_plex_px_bcud() [all …]
|
/Linux-v6.6/drivers/media/pci/cx18/ |
D | cx18-i2c.c | 99 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-v6.6/drivers/media/pci/solo6x10/ |
D | solo6x10-i2c.c | 40 i2c_transfer(&solo_dev->i2c_adap[id], msgs, 2); in solo_i2c_readbyte() 58 i2c_transfer(&solo_dev->i2c_adap[id], &msgs, 1); in solo_i2c_writebyte() 216 if (&solo_dev->i2c_adap[i] == adap) in solo_i2c_master_xfer() 284 struct i2c_adapter *adap = &solo_dev->i2c_adap[i]; in solo_i2c_init() 302 if (!solo_dev->i2c_adap[i].algo_data) in solo_i2c_init() 304 i2c_del_adapter(&solo_dev->i2c_adap[i]); in solo_i2c_init() 305 solo_dev->i2c_adap[i].algo_data = NULL; in solo_i2c_init() 318 if (!solo_dev->i2c_adap[i].algo_data) in solo_i2c_exit() 320 i2c_del_adapter(&solo_dev->i2c_adap[i]); in solo_i2c_exit() 321 solo_dev->i2c_adap[i].algo_data = NULL; in solo_i2c_exit()
|