/linux-2.4.37.9/drivers/i2c/ |
D | i2c-algo-bit.c | 68 #define setsda(adap,val) adap->setsda(adap->data, val) argument 69 #define setscl(adap,val) adap->setscl(adap->data, val) argument 70 #define getsda(adap) adap->getsda(adap->data) argument 71 #define getscl(adap) adap->getscl(adap->data) argument 73 static inline void sdalo(struct i2c_algo_bit_data *adap) in sdalo() argument 75 setsda(adap,0); in sdalo() 76 udelay(adap->udelay); in sdalo() 79 static inline void sdahi(struct i2c_algo_bit_data *adap) in sdahi() argument 81 setsda(adap,1); in sdahi() 82 udelay(adap->udelay); in sdahi() [all …]
|
D | i2c-algo-ite.c | 87 #define get_clock(adap) adap->getclock(adap->data) argument 88 #define iic_outw(adap, reg, val) adap->setiic(adap->data, reg, val) argument 89 #define iic_inw(adap, reg) adap->getiic(adap->data, reg) argument 94 static void iic_start(struct i2c_algo_iic_data *adap) in iic_start() argument 96 iic_outw(adap,ITE_I2CHCR,ITE_CMD); in iic_start() 99 static void iic_stop(struct i2c_algo_iic_data *adap) in iic_stop() argument 101 iic_outw(adap,ITE_I2CHCR,0); in iic_stop() 102 iic_outw(adap,ITE_I2CHSR,ITE_I2CHSR_TDI); in iic_stop() 105 static void iic_reset(struct i2c_algo_iic_data *adap) in iic_reset() argument 107 iic_outw(adap, PM_IBSR, iic_inw(adap, PM_IBSR) | 0x80); in iic_reset() [all …]
|
D | i2c-algo-pcf.c | 57 #define set_pcf(adap, ctl, val) adap->setpcf(adap->data, ctl, val) argument 58 #define get_pcf(adap, ctl) adap->getpcf(adap->data, ctl) argument 59 #define get_own(adap) adap->getown(adap->data) argument 60 #define get_clock(adap) adap->getclock(adap->data) argument 61 #define i2c_outb(adap, val) adap->setpcf(adap->data, 0, val) argument 62 #define i2c_inb(adap) adap->getpcf(adap->data, 0) argument 66 static void i2c_start(struct i2c_algo_pcf_data *adap) in i2c_start() argument 69 set_pcf(adap, 1, I2C_PCF_START); in i2c_start() 72 static void i2c_repstart(struct i2c_algo_pcf_data *adap) in i2c_repstart() argument 75 set_pcf(adap, 1, I2C_PCF_REPSTART); in i2c_repstart() [all …]
|
D | i2c-algo-sgi.c | 33 #define get_control() adap->getctrl(adap->data) 34 #define set_control(val) adap->setctrl(adap->data, val) 35 #define read_data() adap->rdata(adap->data) 36 #define write_data(val) adap->wdata(adap->data, val) 39 static int wait_xfer_done(struct i2c_algo_sgi_data *adap) in wait_xfer_done() argument 43 for (i = 0; i < adap->xfer_timeout; i++) { in wait_xfer_done() 52 static int wait_ack(struct i2c_algo_sgi_data *adap) in wait_ack() argument 56 if (wait_xfer_done(adap)) in wait_ack() 58 for (i = 0; i < adap->ack_timeout; i++) { in wait_ack() 67 static int force_idle(struct i2c_algo_sgi_data *adap) in force_idle() argument [all …]
|
D | i2c-algo-sibyte.c | 53 struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data; in smbus_xfer() local 57 while (csr_in32(SMB_CSR(adap, R_SMB_STATUS)) & M_SMB_BUSY) in smbus_xfer() 63 V_SMB_TT_QUICKCMD), SMB_CSR(adap, R_SMB_START)); in smbus_xfer() 68 SMB_CSR(adap, R_SMB_START)); in smbus_xfer() 71 csr_out32(V_SMB_CMD(command), SMB_CSR(adap, R_SMB_CMD)); in smbus_xfer() 73 SMB_CSR(adap, R_SMB_START)); in smbus_xfer() 77 csr_out32(V_SMB_CMD(command), SMB_CSR(adap, R_SMB_CMD)); in smbus_xfer() 80 SMB_CSR(adap, R_SMB_START)); in smbus_xfer() 83 csr_out32(V_SMB_LB(data->byte), SMB_CSR(adap, R_SMB_DATA)); in smbus_xfer() 85 SMB_CSR(adap, R_SMB_START)); in smbus_xfer() [all …]
|
D | i2c-core.c | 43 #define I2C_LOCK(adap) down(&adap->lock) argument 44 #define I2C_UNLOCK(adap) up(&adap->lock) argument 113 int i2c_add_adapter(struct i2c_adapter *adap) in i2c_add_adapter() argument 124 adap->name); in i2c_add_adapter() 129 adapters[i] = adap; in i2c_add_adapter() 134 init_MUTEX(&adap->lock); in i2c_add_adapter() 154 adap->inode = proc_entry->low_ino; in i2c_add_adapter() 165 drivers[j]->attach_adapter(adap); in i2c_add_adapter() 169 adap->name,i)); in i2c_add_adapter() 184 int i2c_del_adapter(struct i2c_adapter *adap) in i2c_del_adapter() argument [all …]
|
D | i2c-max1617.c | 67 static int max1617_probe(struct i2c_adapter *adap); 121 static int max1617_attach(struct i2c_adapter *adap, int addr, unsigned short flags, int kind) in max1617_attach() argument 130 client->adapter = adap; in max1617_attach() 159 static int max1617_probe(struct i2c_adapter *adap) in max1617_probe() argument 162 if (adap->id == (I2C_ALGO_SIBYTE | I2C_HW_SIBYTE)) in max1617_probe() 163 return i2c_probe(adap, &addr_data, &max1617_attach); in max1617_probe()
|
D | i2c-sibyte.c | 41 static void sibyte_inc_use(struct i2c_adapter *adap) in sibyte_inc_use() argument 48 static void sibyte_dec_use(struct i2c_adapter *adap) in sibyte_dec_use() argument
|
D | i2c-dev.c | 69 static int i2cdev_attach_adapter(struct i2c_adapter *adap); 427 int i2cdev_attach_adapter(struct i2c_adapter *adap) in i2cdev_attach_adapter() argument 432 if ((i = i2c_adapter_id(adap)) < 0) { in i2cdev_attach_adapter() 443 i2cdev_adaps[i] = adap; in i2cdev_attach_adapter() 450 printk(KERN_DEBUG "i2c-dev.o: Registered '%s' as minor %d\n",adap->name,i); in i2cdev_attach_adapter() 458 printk(KERN_DEBUG "i2c-dev.o: Adapter unregistered: %s\n",adap->name); in i2cdev_attach_adapter()
|
D | scx200_i2c.c | 79 static void scx200_i2c_inc_use(struct i2c_adapter *adap) in scx200_i2c_inc_use() argument 84 static void scx200_i2c_dec_use(struct i2c_adapter *adap) in scx200_i2c_dec_use() argument
|
D | i2c-velleman.c | 122 static void bit_velle_inc_use(struct i2c_adapter *adap) in bit_velle_inc_use() argument 129 static void bit_velle_dec_use(struct i2c_adapter *adap) in bit_velle_dec_use() argument
|
D | i2c-elv.c | 129 static void bit_elv_inc_use(struct i2c_adapter *adap) in bit_elv_inc_use() argument 136 static void bit_elv_dec_use(struct i2c_adapter *adap) in bit_elv_dec_use() argument
|
D | i2c-adap-ite.c | 197 static void iic_ite_inc_use(struct i2c_adapter *adap) in iic_ite_inc_use() argument 205 static void iic_ite_dec_use(struct i2c_adapter *adap) in iic_ite_dec_use() argument
|
/linux-2.4.37.9/drivers/media/video/ |
D | bt832.c | 171 static int bt832_attach(struct i2c_adapter *adap, int addr, in bt832_attach() argument 178 client_template.adapter = adap; in bt832_attach() 199 static int bt832_probe(struct i2c_adapter *adap) in bt832_probe() argument 205 switch (adap->id) { in bt832_probe() 210 adap->name,adap->id); in bt832_probe() 211 rc = i2c_probe(adap, &addr_data, bt832_attach); in bt832_probe() 215 adap->name,adap->id); in bt832_probe()
|
D | i2c-compat.h | 34 static inline void i2c_clients_command(struct i2c_adapter *adap, in i2c_clients_command() argument 40 if (NULL == adap->clients[i]) in i2c_clients_command() 42 if (NULL == adap->clients[i]->driver->command) in i2c_clients_command() 44 adap->clients[i]->driver->command(adap->clients[i],cmd,arg); in i2c_clients_command()
|
D | tda9875.c | 142 static int i2c_read_register(struct i2c_adapter *adap, int addr, int reg) in i2c_read_register() argument 152 if (2 != i2c_transfer(adap,msgs,2)) { in i2c_read_register() 229 static int tda9875_checkit(struct i2c_adapter *adap, int addr) in tda9875_checkit() argument 233 dic=i2c_read_register(adap,addr,254); in tda9875_checkit() 234 rev=i2c_read_register(adap,addr,255); in tda9875_checkit() 245 static int tda9875_attach(struct i2c_adapter *adap, int addr, in tda9875_attach() argument 259 client->adapter = adap; in tda9875_attach() 263 if(!tda9875_checkit(adap,addr)) { in tda9875_attach() 276 static int tda9875_probe(struct i2c_adapter *adap) in tda9875_probe() argument 279 if (adap->class & I2C_ADAP_CLASS_TV_ANALOG) in tda9875_probe() [all …]
|
D | indycam.c | 38 static int indycam_attach(struct i2c_adapter *adap, int addr, int kind) in indycam_attach() argument 67 client->adapter = adap; in indycam_attach() 103 static int indycam_probe(struct i2c_adapter *adap) in indycam_probe() argument 106 if (adap->id == VINO_ADAPTER) in indycam_probe() 107 return indycam_attach(adap, INDYCAM_ADDR, 0); in indycam_probe()
|
D | tuner-3036.c | 117 tuner_attach(struct i2c_adapter *adap, int addr, in tuner_attach() argument 128 client_template.adapter = adap; in tuner_attach() 175 tuner_probe(struct i2c_adapter *adap) in tuner_probe() argument 178 if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_LP)) in tuner_probe() 179 return i2c_probe(adap, &addr_data, tuner_attach); in tuner_probe()
|
D | tda9887.c | 347 static int tda9887_attach(struct i2c_adapter *adap, int addr, in tda9887_attach() argument 352 client_template.adapter = adap; in tda9887_attach() 370 static int tda9887_probe(struct i2c_adapter *adap) in tda9887_probe() argument 373 if (adap->class & I2C_ADAP_CLASS_TV_ANALOG) in tda9887_probe() 374 return i2c_probe(adap, &addr_data, tda9887_attach); in tda9887_probe() 376 switch (adap->id) { in tda9887_probe() 380 return i2c_probe(adap, &addr_data, tda9887_attach); in tda9887_probe()
|
D | tda7432.c | 316 static int tda7432_attach(struct i2c_adapter *adap, int addr, in tda7432_attach() argument 330 client->adapter = adap; in tda7432_attach() 342 static int tda7432_probe(struct i2c_adapter *adap) in tda7432_probe() argument 345 if (adap->class & I2C_ADAP_CLASS_TV_ANALOG) in tda7432_probe() 346 return i2c_probe(adap, &addr_data, tda7432_attach); in tda7432_probe() 348 if (adap->id == (I2C_ALGO_BIT | I2C_HW_B_BT848)) in tda7432_probe() 349 return i2c_probe(adap, &addr_data, tda7432_attach); in tda7432_probe()
|
D | saa7191.c | 43 static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind) in saa7191_attach() argument 86 client->adapter = adap; in saa7191_attach() 120 static int saa7191_probe(struct i2c_adapter *adap) in saa7191_probe() argument 123 if (adap->id == VINO_ADAPTER) in saa7191_probe() 124 return saa7191_attach(adap, SAA7191_ADDR, 0); in saa7191_probe()
|
D | tuner.c | 804 static int tuner_attach(struct i2c_adapter *adap, int addr, in tuner_attach() argument 814 client_template.adapter = adap; in tuner_attach() 845 static int tuner_probe(struct i2c_adapter *adap) in tuner_probe() argument 854 if (adap->class & I2C_ADAP_CLASS_TV_ANALOG) in tuner_probe() 855 return i2c_probe(adap, &addr_data, tuner_attach); in tuner_probe() 857 switch (adap->id) { in tuner_probe() 862 return i2c_probe(adap, &addr_data, tuner_attach); in tuner_probe()
|
D | tvmixer.c | 41 static int tvmixer_adapters(struct i2c_adapter *adap); 239 static int tvmixer_adapters(struct i2c_adapter *adap) in tvmixer_adapters() argument 244 if (!adap->clients[i]) in tvmixer_adapters() 246 tvmixer_clients(adap->clients[i]); in tvmixer_adapters()
|
/linux-2.4.37.9/include/linux/ |
D | i2c.h | 73 extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msg,int num); 192 int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg *msgs, 194 int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr, 341 extern int i2c_adapter_id(struct i2c_adapter *adap); 346 extern u32 i2c_get_functionality (struct i2c_adapter *adap); 349 extern int i2c_check_functionality (struct i2c_adapter *adap, u32 func);
|
/linux-2.4.37.9/drivers/acorn/char/ |
D | pcf8583.c | 38 pcf8583_attach(struct i2c_adapter *adap, int addr, unsigned short flags, in pcf8583_attach() argument 56 c->adapter = adap; in pcf8583_attach() 67 pcf8583_probe(struct i2c_adapter *adap) in pcf8583_probe() argument 69 return i2c_probe(adap, &addr_data, pcf8583_attach); in pcf8583_probe()
|