Home
last modified time | relevance | path

Searched refs:algo_data (Results 1 – 25 of 103) sorted by relevance

12345

/linux/drivers/video/fbdev/core/
H A Dfb_ddc.c56 struct i2c_algo_bit_data *algo_data = adapter->algo_data; in fb_ddc_read() local
60 algo_data->setscl(algo_data->data, 1); in fb_ddc_read()
66 algo_data->setsda(algo_data->data, 1); in fb_ddc_read()
69 algo_data->setscl(algo_data->data, 1); in fb_ddc_read()
70 if (algo_data->getscl) { in fb_ddc_read()
73 if (algo_data->getscl(algo_data->data)) in fb_ddc_read()
79 udelay(algo_data->udelay); in fb_ddc_read()
82 algo_data->setsda(algo_data->data, 0); in fb_ddc_read()
84 algo_data->setscl(algo_data->data, 0); in fb_ddc_read()
86 algo_data->setsda(algo_data->data, 1); in fb_ddc_read()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-icy.c125 struct i2c_algo_pcf_data *algo_data; in icy_probe() local
135 algo_data = devm_kzalloc(&z->dev, sizeof(*algo_data), GFP_KERNEL); in icy_probe()
136 if (!algo_data) in icy_probe()
143 i2c->adapter.algo_data = algo_data; in icy_probe()
156 algo_data->data = i2c; in icy_probe()
157 algo_data->setpcf = icy_pcf_setpcf; in icy_probe()
158 algo_data->getpcf = icy_pcf_getpcf; in icy_probe()
159 algo_data->getown = icy_pcf_getown; in icy_probe()
160 algo_data->getclock = icy_pcf_getclock; in icy_probe()
161 algo_data->waitforpin = icy_pcf_waitforpin; in icy_probe()
H A Di2c-cgbc.c118 struct i2c_algo_cgbc_data *algo_data = adap->algo_data; in cgbc_i2c_get_status() local
121 u8 cmd = CGBC_I2C_CMD_STAT | algo_data->bus_id; in cgbc_i2c_get_status()
135 struct i2c_algo_cgbc_data *algo_data = adap->algo_data; in cgbc_i2c_set_frequency() local
147 cmd[0] = CGBC_I2C_CMD_SPEED | algo_data->bus_id; in cgbc_i2c_set_frequency()
173 algo_data->read_maxtime_us = (BITS_PER_BYTE + 1) * CGBC_I2C_READ_MAX_LEN in cgbc_i2c_set_frequency()
203 struct i2c_algo_cgbc_data *algo_data = adap->algo_data; in cgbc_i2c_xfer_msg() local
213 .bus_id = algo_data->bus_id, in cgbc_i2c_xfer_msg()
271 2 * algo_data->read_maxtime_us, false, adap); in cgbc_i2c_xfer_msg()
275 cmd_data = CGBC_I2C_CMD_DATA | algo_data->bus_id; in cgbc_i2c_xfer_msg()
349 .algo_data = &cgbc_i2c_algo_data[0],
[all …]
H A Di2c-parport.c118 struct i2c_algo_bit_data algo_data; member
313 adapter->algo_data = parport_algo_data; in i2c_parport_attach()
316 adapter->algo_data.getscl = NULL; in i2c_parport_attach()
317 adapter->algo_data.udelay = 50; /* ~10 kbps */ in i2c_parport_attach()
319 adapter->algo_data.data = port; in i2c_parport_attach()
320 adapter->adapter.algo_data = &adapter->algo_data; in i2c_parport_attach()
H A Di2c-sibyte.c31 struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data; in smbus_xfer()
124 struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data; in i2c_sibyte_add_bus()
147 .algo_data = &sibyte_board_data[0],
155 .algo_data = &sibyte_board_data[1],
H A Di2c-robotfuzz-osif.c39 struct osif_priv *priv = adapter->algo_data; in osif_usb_read()
50 struct osif_priv *priv = adapter->algo_data; in osif_usb_write()
60 struct osif_priv *priv = adapter->algo_data; in osif_xfer()
147 priv->adapter.algo_data = priv; in osif_probe()
H A Di2c-fsi.c332 struct fsi_i2c_port *port = adap->algo_data; in fsi_i2c_get_scl()
343 struct fsi_i2c_port *port = adap->algo_data; in fsi_i2c_set_scl()
355 struct fsi_i2c_port *port = adap->algo_data; in fsi_i2c_get_sda()
366 struct fsi_i2c_port *port = adap->algo_data; in fsi_i2c_set_sda()
379 struct fsi_i2c_port *port = adap->algo_data; in fsi_i2c_prepare_recovery()
394 struct fsi_i2c_port *port = adap->algo_data; in fsi_i2c_unprepare_recovery()
611 struct fsi_i2c_port *port = adap->algo_data; in fsi_i2c_xfer()
723 port->adapter.algo_data = port; in fsi_i2c_probe()
H A Di2c-tiny-usb.c174 struct i2c_tiny_usb *dev = (struct i2c_tiny_usb *)adapter->algo_data; in usb_read()
194 struct i2c_tiny_usb *dev = (struct i2c_tiny_usb *)adapter->algo_data; in usb_write()
250 dev->adapter.algo_data = dev; in i2c_tiny_usb_probe()
H A Di2c-pasemi-core.c119 struct pasemi_smbus *smbus = adapter->algo_data; in pasemi_i2c_xfer_msg()
167 struct pasemi_smbus *smbus = adapter->algo_data; in pasemi_i2c_xfer()
184 struct pasemi_smbus *smbus = adapter->algo_data; in pasemi_smb_xfer()
352 smbus->adapter.algo_data = smbus; in pasemi_i2c_common_probe()
/linux/drivers/video/fbdev/mb862xx/
H A Dmb862xx-i2c.c19 struct mb862xxfb_par *par = adap->algo_data; in mb862xx_i2c_wait_event()
34 struct mb862xxfb_par *par = adap->algo_data; in mb862xx_i2c_do_address()
47 struct mb862xxfb_par *par = adap->algo_data; in mb862xx_i2c_write_byte()
58 struct mb862xxfb_par *par = adap->algo_data; in mb862xx_i2c_read_byte()
69 struct mb862xxfb_par *par = adap->algo_data; in mb862xx_i2c_stop()
106 struct mb862xxfb_par *par = adap->algo_data; in mb862xx_xfer()
156 mb862xx_i2c_adapter.algo_data = par; in mb862xx_i2c_init()
/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10-i2c.c209 struct solo_dev *solo_dev = adap->algo_data; in solo_i2c_master_xfer()
289 adap->algo_data = solo_dev; in solo_i2c_init()
295 adap->algo_data = NULL; in solo_i2c_init()
302 if (!solo_dev->i2c_adap[i].algo_data) 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()
321 solo_dev->i2c_adap[i].algo_data = NULL; in solo_i2c_exit()
/linux/drivers/media/usb/au0828/
H A Dau0828-i2c.c28 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_slave_did_read_ack()
51 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_read_busy()
74 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_write_done()
97 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_busy()
123 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_sendbytes()
212 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_readbytes()
368 dev->i2c_adap.algo_data = dev; in au0828_i2c_register()
/linux/drivers/i2c/algos/
H A Di2c-algo-bit.c157 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in i2c_outb()
205 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in i2c_inb()
232 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in test_bus()
322 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in try_address()
387 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in acknak()
408 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in readbytes()
470 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in bit_doAddress()
524 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in bit_xfer()
604 struct i2c_algo_bit_data *adap = i2c_adap->algo_data; in bit_xfer_atomic()
638 struct i2c_algo_bit_data *bit_adap = adap->algo_data; in __i2c_bit_add_bus()
H A Di2c-algo-pcf.c208 struct i2c_algo_pcf_data *adap = i2c_adap->algo_data; in pcf_sendbytes()
242 struct i2c_algo_pcf_data *adap = i2c_adap->algo_data; in pcf_readbytes()
298 struct i2c_algo_pcf_data *adap = i2c_adap->algo_data; in pcf_xfer()
400 struct i2c_algo_pcf_data *pcf_adap = adap->algo_data; in i2c_pcf_add_bus()
/linux/drivers/i2c/
H A Di2c-atr.c195 struct i2c_atr_chan *chan = adap->algo_data; in i2c_atr_master_xfer()
223 struct i2c_atr_chan *chan = adap->algo_data; in i2c_atr_smbus_xfer()
240 struct i2c_atr_chan *chan = adap->algo_data; in i2c_atr_functionality()
248 struct i2c_atr_chan *chan = adapter->algo_data; in i2c_atr_lock_bus()
256 struct i2c_atr_chan *chan = adapter->algo_data; in i2c_atr_trylock_bus()
264 struct i2c_atr_chan *chan = adapter->algo_data; in i2c_atr_unlock_bus()
319 struct i2c_atr_chan *chan = adapter->algo_data; in i2c_atr_attach_client()
361 struct i2c_atr_chan *chan = adapter->algo_data; in i2c_atr_detach_client()
603 chan->adap.algo_data = chan; in i2c_atr_add_adapter()
674 chan = adap->algo_data; in i2c_atr_del_adapter()
/linux/drivers/media/pci/cx25821/
H A Dcx25821-i2c.c38 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_slave_did_ack()
45 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_is_busy()
69 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_sendbytes()
163 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_readbytes()
226 struct cx25821_i2c *bus = i2c_adap->algo_data; in i2c_xfer()
301 bus->i2c_adap.algo_data = bus; in cx25821_i2c_register()
/linux/drivers/gpu/drm/gma500/
H A Dcdv_intel_dp.c65 struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data; in i2c_algo_dp_aux_transaction() local
68 ret = (*algo_data->aux_ch)(adapter, mode, in i2c_algo_dp_aux_transaction()
85 struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data; in i2c_algo_dp_aux_address() local
92 algo_data->address = address; in i2c_algo_dp_aux_address()
93 algo_data->running = true; in i2c_algo_dp_aux_address()
104 struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data; in i2c_algo_dp_aux_stop() local
111 if (algo_data->running) { in i2c_algo_dp_aux_stop()
113 algo_data->running = false; in i2c_algo_dp_aux_stop()
124 struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data; in i2c_algo_dp_aux_put_byte() local
126 if (!algo_data->running) in i2c_algo_dp_aux_put_byte()
[all …]
H A Dintel_gmbus.c198 gpio->adapter.algo_data = &gpio->algo; in intel_gpio_create()
253 struct drm_psb_private *dev_priv = adapter->algo_data; in gmbus_xfer()
420 bus->adapter.algo_data = dev_priv; in gma_intel_setup_gmbus()
467 struct drm_psb_private *dev_priv = adapter->algo_data; in gma_intel_gmbus_force_bit()
/linux/drivers/media/pci/cx23885/
H A Dcx23885-i2c.c39 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_slave_did_ack()
46 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_is_busy()
70 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_sendbytes()
151 struct cx23885_i2c *bus = i2c_adap->algo_data; in i2c_readbytes()
312 bus->i2c_adap.algo_data = bus; in cx23885_i2c_register()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dbus.c169 struct i2c_algo_bit_data *algo = bus->i2c.algo_data; in nvkm_i2c_bus_probe()
184 struct i2c_algo_bit_data *algo = bus->i2c.algo_data; in nvkm_i2c_bus_probe()
201 kfree(bus->i2c.algo_data); in nvkm_i2c_bus_del()
246 bus->i2c.algo_data = bit; in nvkm_i2c_bus_ctor()
/linux/drivers/media/pci/saa7164/
H A Dsaa7164-i2c.c18 struct saa7164_i2c *bus = i2c_adap->algo_data; in i2c_xfer()
95 bus->i2c_adap.algo_data = bus; in saa7164_i2c_register()
/linux/drivers/media/pci/cobalt/
H A Dcobalt-i2c.c233 struct cobalt_i2c_data *data = adap->algo_data; in cobalt_xfer()
295 .algo_data = NULL, /* filled from template */
353 adap->algo_data = &cobalt->i2c_data[i]; in cobalt_i2c_init()
/linux/drivers/media/common/b2c2/
H A Dflexcop-i2c.c243 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()
/linux/drivers/media/usb/stk1160/
H A Dstk1160-i2c.c154 struct stk1160 *dev = i2c_adap->algo_data; in stk1160_i2c_xfer()
254 dev->i2c_adap.algo_data = dev; in stk1160_i2c_register()
/linux/drivers/media/usb/dvb-usb/
H A Ddvb-usb-i2c.c26 d->i2c_adap.algo_data = NULL; in dvb_usb_i2c_init()

12345