/linux-2.4.37.9/drivers/media/video/ |
D | tda9875.c | 113 static int tda9875_write(struct i2c_client *client, int subaddr, unsigned char val) in tda9875_write() argument 120 if (2 != i2c_master_send(client,buffer,2)) { in tda9875_write() 129 static int tda9875_read(struct i2c_client *client) 133 if (1 != i2c_master_recv(client,&buffer,1)) { 160 static void tda9875_set(struct i2c_client *client) in tda9875_set() argument 162 struct tda9875 *tda = i2c_get_clientdata(client); in tda9875_set() 170 tda9875_write(client, TDA9875_MVL, a); in tda9875_set() 172 tda9875_write(client, TDA9875_MVR, a); in tda9875_set() 174 tda9875_write(client, TDA9875_MBA, a); in tda9875_set() 176 tda9875_write(client, TDA9875_MTR, a); in tda9875_set() [all …]
|
D | msp3400.c | 148 static int msp3400c_reset(struct i2c_client *client) in msp3400c_reset() argument 156 { client->addr, I2C_M_IGNORE_NAK, 3, reset_off }, in msp3400c_reset() 157 { client->addr, I2C_M_IGNORE_NAK, 3, reset_on }, in msp3400c_reset() 160 { client->addr, 0, 3, write }, in msp3400c_reset() 161 { client->addr, I2C_M_RD, 2, read }, in msp3400c_reset() 164 if ( (1 != i2c_transfer(client->adapter,&reset[0],1)) || in msp3400c_reset() 165 (1 != i2c_transfer(client->adapter,&reset[1],1)) || in msp3400c_reset() 166 (2 != i2c_transfer(client->adapter,test,2)) ) { in msp3400c_reset() 174 msp3400c_read(struct i2c_client *client, int dev, int addr) in msp3400c_read() argument 181 { client->addr, 0, 3, write }, in msp3400c_read() [all …]
|
D | saa7191.c | 31 struct i2c_client *client; member 75 struct i2c_client *client; in saa7191_attach() local 77 client = kmalloc(sizeof(*client), GFP_KERNEL); in saa7191_attach() 78 if (!client) in saa7191_attach() 85 client->data = decoder; in saa7191_attach() 86 client->adapter = adap; in saa7191_attach() 87 client->addr = addr; in saa7191_attach() 88 client->driver = &i2c_driver_saa7191; in saa7191_attach() 89 strcpy(client->name, "saa7191 client"); in saa7191_attach() 90 decoder->client = client; in saa7191_attach() [all …]
|
D | tvmixer.c | 42 static int tvmixer_clients(struct i2c_client *client); 82 struct i2c_client *client = mix->dev; in tvmixer_ioctl() local 84 if (NULL == client) in tvmixer_ioctl() 90 strlcpy(info.name, i2c_clientname(client), sizeof(info.name)); in tvmixer_ioctl() 99 strlcpy(info.name, i2c_clientname(client), sizeof(info.name)); in tvmixer_ioctl() 113 client->driver->command(client,VIDIOCGAUDIO,&va); in tvmixer_ioctl() 140 client->driver->command(client,VIDIOCSAUDIO,&va); in tvmixer_ioctl() 141 client->driver->command(client,VIDIOCGAUDIO,&va); in tvmixer_ioctl() 153 client->driver->command(client,VIDIOCSAUDIO,&va); in tvmixer_ioctl() 154 client->driver->command(client,VIDIOCGAUDIO,&va); in tvmixer_ioctl() [all …]
|
D | indycam.c | 32 struct i2c_client *client; member 55 struct i2c_client *client; in indycam_attach() local 57 client = kmalloc(sizeof(*client), GFP_KERNEL); in indycam_attach() 58 if (!client) in indycam_attach() 66 client->data = camera; in indycam_attach() 67 client->adapter = adap; in indycam_attach() 68 client->addr = addr; in indycam_attach() 69 client->driver = &i2c_driver_indycam; in indycam_attach() 70 strcpy(client->name, "IndyCam client"); in indycam_attach() 71 camera->client = client; in indycam_attach() [all …]
|
D | tda7432.c | 232 static int tda7432_write(struct i2c_client *client, int subaddr, int val) in tda7432_write() argument 239 if (2 != i2c_master_send(client,buffer,2)) { in tda7432_write() 249 static int tda7432_read(struct i2c_client *client) 253 if (1 != i2c_master_recv(client,&buffer,1)) { 262 static int tda7432_set(struct i2c_client *client) in tda7432_set() argument 264 struct tda7432 *t = i2c_get_clientdata(client); in tda7432_set() 281 if (10 != i2c_master_send(client,buf,10)) { in tda7432_set() 289 static void do_tda7432_init(struct i2c_client *client) in do_tda7432_init() argument 291 struct tda7432 *t = i2c_get_clientdata(client); in do_tda7432_init() 309 tda7432_set(client); in do_tda7432_init() [all …]
|
D | tuner-3036.c | 122 struct i2c_client *client; in tuner_attach() local 131 client = kmalloc(sizeof(struct i2c_client), GFP_KERNEL); in tuner_attach() 132 if (client == NULL) in tuner_attach() 134 memcpy(client, &client_template, sizeof(struct i2c_client)); in tuner_attach() 136 printk("tuner: SAB3036 found, status %02x\n", tuner_getstatus(client)); in tuner_attach() 138 i2c_attach_client(client); in tuner_attach() 141 if (i2c_master_send(client, buffer, 2) != 2) in tuner_attach() 143 if (i2c_master_send(client, buffer+2, 2) != 2) in tuner_attach() 145 if (i2c_master_send(client, buffer+4, 2) != 2) in tuner_attach() 158 tuner_command(struct i2c_client *client, unsigned int cmd, void *arg) in tuner_command() argument [all …]
|
D | bt832.c | 50 static int bt832_detach(struct i2c_client *client); 57 struct i2c_client client; member 186 t->client = client_template; in bt832_attach() 187 t->client.data = t; in bt832_attach() 188 i2c_attach_client(&t->client); in bt832_attach() 191 if(! bt832_init(&t->client)) { in bt832_attach() 192 bt832_detach(&t->client); in bt832_attach() 222 static int bt832_detach(struct i2c_client *client) in bt832_detach() argument 224 struct bt832 *t = (struct bt832*)client->data; in bt832_detach() 227 i2c_detach_client(client); in bt832_detach() [all …]
|
D | tuner.c | 808 struct i2c_client *client; in tuner_attach() local 819 if (NULL == (client = kmalloc(sizeof(struct i2c_client), GFP_KERNEL))) in tuner_attach() 821 memcpy(client,&client_template,sizeof(struct i2c_client)); in tuner_attach() 824 kfree(client); in tuner_attach() 828 i2c_set_clientdata(client, t); in tuner_attach() 835 strlcpy(client->name, tuners[t->type].name, sizeof(client->name)); in tuner_attach() 837 i2c_attach_client(client); in tuner_attach() 839 mt2032_init(client); in tuner_attach() 869 static int tuner_detach(struct i2c_client *client) in tuner_detach() argument 871 struct tuner *t = i2c_get_clientdata(client); in tuner_detach() [all …]
|
D | saa5249.c | 104 struct i2c_client *client; member 160 struct i2c_client *client; in saa5249_attach() local 165 client=kmalloc(sizeof(*client), GFP_KERNEL); in saa5249_attach() 166 if(client==NULL) in saa5249_attach() 170 memcpy(client, &client_template, sizeof(*client)); in saa5249_attach() 174 kfree(client); in saa5249_attach() 178 strcpy(client->name, IF_NAME); in saa5249_attach() 185 client->data = vd=(struct video_device *)kmalloc(sizeof(struct video_device), GFP_KERNEL); in saa5249_attach() 189 kfree(client); in saa5249_attach() 215 kfree(client); in saa5249_attach() [all …]
|
D | tda9887.c | 46 struct i2c_client client; member 268 if (4 != (rc = i2c_master_send(&t->client,bData,4))) in tda9887_miro() 340 if (4 != (rc = i2c_master_send(&t->client,buf,4))) in tda9887_configure() 360 t->client = client_template; in tda9887_attach() 363 i2c_set_clientdata(&t->client, t); in tda9887_attach() 364 i2c_attach_client(&t->client); in tda9887_attach() 387 static int tda9887_detach(struct i2c_client *client) in tda9887_detach() argument 389 struct tda9887 *t = i2c_get_clientdata(client); in tda9887_detach() 391 i2c_detach_client(client); in tda9887_detach() 398 tda9887_command(struct i2c_client *client, unsigned int cmd, void *arg) in tda9887_command() argument [all …]
|
/linux-2.4.37.9/net/atm/ |
D | mpoa_caches.c | 26 struct mpoa_client *client) in in_cache_get() argument 30 read_lock_bh(&client->ingress_lock); in in_cache_get() 31 entry = client->in_cache; in in_cache_get() 35 read_unlock_bh(&client->ingress_lock); in in_cache_get() 40 read_unlock_bh(&client->ingress_lock); in in_cache_get() 46 struct mpoa_client *client, in in_cache_get_with_mask() argument 51 read_lock_bh(&client->ingress_lock); in in_cache_get_with_mask() 52 entry = client->in_cache; in in_cache_get_with_mask() 56 read_unlock_bh(&client->ingress_lock); in in_cache_get_with_mask() 61 read_unlock_bh(&client->ingress_lock); in in_cache_get_with_mask() [all …]
|
D | mpoa_caches.h | 33 struct mpoa_client *client); 34 in_cache_entry *(*get)(uint32_t dst_ip, struct mpoa_client *client); 36 struct mpoa_client *client, 39 struct mpoa_client *client); 42 struct mpoa_client *client ); 44 struct mpoa_client *client); 45 void (*clear_count)(struct mpoa_client *client); 46 void (*check_resolving)(struct mpoa_client *client); 47 void (*refresh)(struct mpoa_client *client); 65 eg_cache_entry *(*add_entry)(struct k_message *msg, struct mpoa_client *client); [all …]
|
/linux-2.4.37.9/drivers/acorn/char/ |
D | pcf8583.c | 73 pcf8583_detach(struct i2c_client *client) in pcf8583_detach() argument 75 i2c_detach_client(client); in pcf8583_detach() 76 kfree(client); in pcf8583_detach() 81 pcf8583_get_datetime(struct i2c_client *client, struct rtc_tm *dt) in pcf8583_get_datetime() argument 85 { client->addr, 0, 1, addr }, in pcf8583_get_datetime() 86 { client->addr, I2C_M_RD, 6, buf } in pcf8583_get_datetime() 92 ret = i2c_transfer(client->adapter, msgs, 2); in pcf8583_get_datetime() 114 pcf8583_set_datetime(struct i2c_client *client, struct rtc_tm *dt, int datetoo) in pcf8583_set_datetime() argument 120 buf[1] = DAT(client) | 0x80; in pcf8583_set_datetime() 132 ret = i2c_master_send(client, (char *)buf, len); in pcf8583_set_datetime() [all …]
|
/linux-2.4.37.9/drivers/i2c/ |
D | i2c-core.c | 220 struct i2c_client *client = adap->clients[j]; in i2c_del_adapter() local 221 if (client!=NULL) in i2c_del_adapter() 226 if ((res=client->driver->detach_client(client))) { in i2c_del_adapter() 230 adap->name, client->addr); in i2c_del_adapter() 350 struct i2c_client *client = adap->clients[j]; in i2c_del_driver() local 351 if (client != NULL && in i2c_del_driver() 352 client->driver == driver) { in i2c_del_driver() 355 client->name)); in i2c_del_driver() 357 detach_client(client))) in i2c_del_driver() 367 client->addr, in i2c_del_driver() [all …]
|
D | i2c-max1617.c | 61 struct i2c_client *client; member 84 static int max1617_read(struct i2c_client *client, unsigned char subaddr) in max1617_read() argument 86 return i2c_smbus_read_byte_data(client, subaddr); in max1617_read() 96 status = max1617_read(m->client, MAX1617_STATUS); in max1617_update() 97 remote = max1617_read(m->client, MAX1617_REMOTE); in max1617_update() 98 local = max1617_read(m->client, MAX1617_LOCAL); in max1617_update() 124 struct i2c_client *client; in max1617_attach() local 127 client = kmalloc(sizeof(*client), GFP_KERNEL); in max1617_attach() 128 if (client == NULL) in max1617_attach() 130 client->adapter = adap; in max1617_attach() [all …]
|
D | i2c-dev.c | 70 static int i2cdev_detach_client(struct i2c_client *client); 71 static int i2cdev_command(struct i2c_client *client, unsigned int cmd, 128 struct i2c_client *client = (struct i2c_client *)file->private_data; in i2cdev_read() local 143 ret = i2c_master_recv(client,tmp,count); in i2cdev_read() 155 struct i2c_client *client = (struct i2c_client *)file->private_data; in i2cdev_write() local 177 ret = i2c_master_send(client,tmp,count); in i2cdev_write() 185 struct i2c_client *client = (struct i2c_client *)file->private_data; in i2cdev_ioctl() local 203 (((client->flags & I2C_M_TEN) == 0) && arg > 0x7f)) in i2cdev_ioctl() 205 if ((cmd == I2C_SLAVE) && i2c_check_addr(client->adapter,arg)) in i2cdev_ioctl() 207 client->addr = arg; in i2cdev_ioctl() [all …]
|
/linux-2.4.37.9/net/irda/irlan/ |
D | irlan_client.c | 85 (self->client.state == IRLAN_IDLE) && in irlan_client_kick_timer_expired() 95 irda_start_timer(&self->client.kick_timer, timeout, (void *) self, in irlan_client_start_kick_timer() 116 if ((self->client.state != IRLAN_IDLE) || in irlan_client_wakeup() 207 self->client.tx_busy = FALSE; in irlan_client_ctrl_data_indication() 233 ASSERT(tsap == self->client.tsap_ctrl, return;); in irlan_client_ctrl_disconnect_indication() 236 while ((skb = skb_dequeue(&self->client.txq))) { in irlan_client_ctrl_disconnect_indication() 239 self->client.tx_busy = FALSE; in irlan_client_ctrl_disconnect_indication() 261 if (self->client.tsap_ctrl) in irlan_client_open_ctrl_tsap() 278 self->client.tsap_ctrl = tsap; in irlan_client_open_ctrl_tsap() 302 self->client.max_sdu_size = max_sdu_size; in irlan_client_ctrl_connect_confirm() [all …]
|
D | irlan_common.c | 242 init_timer(&self->client.kick_timer); in irlan_open() 247 skb_queue_head_init(&self->client.txq); in irlan_open() 273 del_timer(&self->client.kick_timer); in __irlan_close() 278 if (self->client.iriap) in __irlan_close() 279 iriap_close(self->client.iriap); in __irlan_close() 282 while ((skb = skb_dequeue(&self->client.txq))) in __irlan_close() 496 if (self->client.tsap_ctrl) { in irlan_close_tsaps() 497 irttp_disconnect_request(self->client.tsap_ctrl, NULL, in irlan_close_tsaps() 499 irttp_close_tsap(self->client.tsap_ctrl); in irlan_close_tsaps() 500 self->client.tsap_ctrl = NULL; in irlan_close_tsaps() [all …]
|
/linux-2.4.37.9/drivers/char/agp/ |
D | agpgart_fe.c | 106 static agp_segment_priv *agp_find_seg_in_client(const agp_client * client, in agp_find_seg_in_client() argument 115 seg = *(client->segments); in agp_find_seg_in_client() 116 num_segments = client->num_segments; in agp_find_seg_in_client() 118 for (i = 0; i < client->num_segments; i++) { in agp_find_seg_in_client() 129 static void agp_remove_seg_from_client(agp_client * client) in agp_remove_seg_from_client() argument 131 if (client->segments != NULL) { in agp_remove_seg_from_client() 132 if (*(client->segments) != NULL) { in agp_remove_seg_from_client() 133 kfree(*(client->segments)); in agp_remove_seg_from_client() 135 kfree(client->segments); in agp_remove_seg_from_client() 139 static void agp_add_seg_to_client(agp_client * client, in agp_add_seg_to_client() argument [all …]
|
/linux-2.4.37.9/drivers/sbus/char/ |
D | bbc_i2c.c | 153 struct bbc_i2c_client *client; in bbc_i2c_attach() local 157 client = kmalloc(sizeof(*client), GFP_KERNEL); in bbc_i2c_attach() 158 if (!client) in bbc_i2c_attach() 160 memset(client, 0, sizeof(*client)); in bbc_i2c_attach() 161 client->bp = bp; in bbc_i2c_attach() 162 client->echild = echild; in bbc_i2c_attach() 163 client->bus = echild->resource[0].start; in bbc_i2c_attach() 164 client->address = echild->resource[1].start; in bbc_i2c_attach() 168 return client; in bbc_i2c_attach() 171 void bbc_i2c_detach(struct bbc_i2c_client *client) in bbc_i2c_detach() argument [all …]
|
D | bbc_envctrl.c | 85 struct bbc_i2c_client *client; member 108 struct bbc_i2c_client *client; member 147 bbc_i2c_writeb(fp->client, fp->cpu_fan_speed, CPU_FAN_REG); in set_fan_speeds() 148 bbc_i2c_writeb(fp->client, fp->system_fan_speed, SYS_FAN_REG); in set_fan_speeds() 149 bbc_i2c_writeb(fp->client, in set_fan_speeds() 158 bbc_i2c_readb(tp->client, in get_current_temps() 162 bbc_i2c_readb(tp->client, in get_current_temps() 497 tp->client = bbc_i2c_attach(echild); in attach_one_temp() 498 if (!tp->client) { in attach_one_temp() 515 bbc_i2c_writeb(tp->client, 0x00, MAX1617_WR_CFG_BYTE); in attach_one_temp() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | i2c.h | 89 extern s32 i2c_smbus_write_quick(struct i2c_client * client, u8 value); 90 extern s32 i2c_smbus_read_byte(struct i2c_client * client); 91 extern s32 i2c_smbus_write_byte(struct i2c_client * client, u8 value); 92 extern s32 i2c_smbus_read_byte_data(struct i2c_client * client, u8 command); 93 extern s32 i2c_smbus_write_byte_data(struct i2c_client * client, 95 extern s32 i2c_smbus_read_word_data(struct i2c_client * client, u8 command); 96 extern s32 i2c_smbus_write_word_data(struct i2c_client * client, 98 extern s32 i2c_smbus_process_call(struct i2c_client * client, 101 extern s32 i2c_smbus_read_block_data(struct i2c_client * client, 103 extern s32 i2c_smbus_write_block_data(struct i2c_client * client, [all …]
|
/linux-2.4.37.9/net/irda/ |
D | irlmp.c | 872 struct irlmp_client *client; 889 client = hashbin_find(irlmp->registry, service, NULL); 919 irlmp_notify_client(irlmp_client_t *client, in irlmp_notify_client() argument 927 if (!client->disco_callback) in irlmp_notify_client() 942 if (client->hint_mask & discovery->hints.word & 0x7f7f) in irlmp_notify_client() 943 client->disco_callback(discovery, mode, client->priv); in irlmp_notify_client() 958 irlmp_client_t *client; in irlmp_discovery_confirm() local 967 client = (irlmp_client_t *) hashbin_get_first(irlmp->clients); in irlmp_discovery_confirm() 968 while (client != NULL) { in irlmp_discovery_confirm() 970 irlmp_notify_client(client, log, mode); in irlmp_discovery_confirm() [all …]
|
/linux-2.4.37.9/drivers/pcmcia/ |
D | cs.c | 377 client_t *client; in pcmcia_unregister_socket() local 401 client = s->clients; in pcmcia_unregister_socket() 403 kfree(client); in pcmcia_unregister_socket() 639 client_t *client = s->clients; in send_event() local 644 for (; client; client = client->next) { in send_event() 645 if (client->state & (CLIENT_UNBOUND|CLIENT_STALE)) in send_event() 647 if (client->EventMask & event) { in send_event() 648 ret = EVENT(client, event, priority); in send_event() 658 client_t *client; in do_shutdown() local 663 for (client = s->clients; client; client = client->next) in do_shutdown() [all …]
|