/drivers/hwmon/ |
D | lm77.c | 270 static int lm77_detect(struct i2c_client *new_client, in lm77_detect() argument 273 struct i2c_adapter *adapter = new_client->adapter; in lm77_detect() 295 cur = i2c_smbus_read_word_data(new_client, 0); in lm77_detect() 296 conf = i2c_smbus_read_byte_data(new_client, 1); in lm77_detect() 297 hyst = i2c_smbus_read_word_data(new_client, 2); in lm77_detect() 298 crit = i2c_smbus_read_word_data(new_client, 3); in lm77_detect() 299 min = i2c_smbus_read_word_data(new_client, 4); in lm77_detect() 300 max = i2c_smbus_read_word_data(new_client, 5); in lm77_detect() 302 if (i2c_smbus_read_byte_data(new_client, i + 1) != conf in lm77_detect() 303 || i2c_smbus_read_word_data(new_client, i + 2) != hyst in lm77_detect() [all …]
|
D | lm75.c | 244 static int lm75_detect(struct i2c_client *new_client, in lm75_detect() argument 247 struct i2c_adapter *adapter = new_client->adapter; in lm75_detect() 282 conf = i2c_smbus_read_byte_data(new_client, 1); in lm75_detect() 287 if (i2c_smbus_read_byte_data(new_client, 7) == LM75A_ID) { in lm75_detect() 290 if (i2c_smbus_read_byte_data(new_client, 4) != 0xff in lm75_detect() 291 || i2c_smbus_read_byte_data(new_client, 5) != 0xff in lm75_detect() 292 || i2c_smbus_read_byte_data(new_client, 6) != 0xff) in lm75_detect() 295 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 296 os = i2c_smbus_read_byte_data(new_client, 3); in lm75_detect() 299 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() [all …]
|
D | atxp1.c | 301 static int atxp1_detect(struct i2c_client *new_client, in atxp1_detect() argument 304 struct i2c_adapter *adapter = new_client->adapter; in atxp1_detect() 312 if (!((i2c_smbus_read_byte_data(new_client, 0x3e) == 0) && in atxp1_detect() 313 (i2c_smbus_read_byte_data(new_client, 0x3f) == 0) && in atxp1_detect() 314 (i2c_smbus_read_byte_data(new_client, 0xfe) == 0) && in atxp1_detect() 315 (i2c_smbus_read_byte_data(new_client, 0xff) == 0))) in atxp1_detect() 322 temp = i2c_smbus_read_byte_data(new_client, 0x00); in atxp1_detect() 324 if (!((i2c_smbus_read_byte_data(new_client, 0x10) == temp) && in atxp1_detect() 325 (i2c_smbus_read_byte_data(new_client, 0x11) == temp))) in atxp1_detect() 342 static int atxp1_probe(struct i2c_client *new_client, in atxp1_probe() argument [all …]
|
D | lm83.c | 117 static int lm83_detect(struct i2c_client *new_client, 295 static int lm83_detect(struct i2c_client *new_client, in lm83_detect() argument 298 struct i2c_adapter *adapter = new_client->adapter; in lm83_detect() 306 if ((i2c_smbus_read_byte_data(new_client, LM83_REG_R_STATUS1) & 0xA8) || in lm83_detect() 307 (i2c_smbus_read_byte_data(new_client, LM83_REG_R_STATUS2) & 0x48) || in lm83_detect() 308 (i2c_smbus_read_byte_data(new_client, LM83_REG_R_CONFIG) & 0x41)) { in lm83_detect() 310 new_client->addr); in lm83_detect() 315 man_id = i2c_smbus_read_byte_data(new_client, LM83_REG_R_MAN_ID); in lm83_detect() 319 chip_id = i2c_smbus_read_byte_data(new_client, LM83_REG_R_CHIP_ID); in lm83_detect() 340 static int lm83_probe(struct i2c_client *new_client, in lm83_probe() argument [all …]
|
D | lm92.c | 344 static int lm92_detect(struct i2c_client *new_client, in lm92_detect() argument 347 struct i2c_adapter *adapter = new_client->adapter; in lm92_detect() 355 config = i2c_smbus_read_byte_data(new_client, LM92_REG_CONFIG); in lm92_detect() 356 man_id = i2c_smbus_read_word_data(new_client, LM92_REG_MAN_ID); in lm92_detect() 360 else if (max6635_check(new_client)) in lm92_detect() 370 static int lm92_probe(struct i2c_client *new_client, in lm92_probe() argument 382 i2c_set_clientdata(new_client, data); in lm92_probe() 387 lm92_init_client(new_client); in lm92_probe() 390 err = sysfs_create_group(&new_client->dev.kobj, &lm92_group); in lm92_probe() 394 data->hwmon_dev = hwmon_device_register(&new_client->dev); in lm92_probe() [all …]
|
D | lm73.c | 155 static int lm73_detect(struct i2c_client *new_client, in lm73_detect() argument 158 struct i2c_adapter *adapter = new_client->adapter; in lm73_detect() 169 ctrl = i2c_smbus_read_byte_data(new_client, LM73_REG_CTRL); in lm73_detect() 173 conf = i2c_smbus_read_byte_data(new_client, LM73_REG_CONF); in lm73_detect() 177 id = i2c_smbus_read_byte_data(new_client, LM73_REG_ID); in lm73_detect() 182 id = i2c_smbus_read_word_data(new_client, LM73_REG_ID); in lm73_detect()
|
D | w83l785ts.c | 179 static int w83l785ts_probe(struct i2c_client *new_client, in w83l785ts_probe() argument 191 i2c_set_clientdata(new_client, data); in w83l785ts_probe() 203 err = device_create_file(&new_client->dev, in w83l785ts_probe() 208 err = device_create_file(&new_client->dev, in w83l785ts_probe() 214 data->hwmon_dev = hwmon_device_register(&new_client->dev); in w83l785ts_probe() 223 device_remove_file(&new_client->dev, in w83l785ts_probe() 225 device_remove_file(&new_client->dev, in w83l785ts_probe()
|
D | lm95245.c | 421 static int lm95245_detect(struct i2c_client *new_client, in lm95245_detect() argument 424 struct i2c_adapter *adapter = new_client->adapter; in lm95245_detect() 429 if (i2c_smbus_read_byte_data(new_client, LM95245_REG_R_MAN_ID) in lm95245_detect() 431 || i2c_smbus_read_byte_data(new_client, LM95245_REG_R_CHIP_ID) in lm95245_detect() 459 static int lm95245_probe(struct i2c_client *new_client, in lm95245_probe() argument 471 i2c_set_clientdata(new_client, data); in lm95245_probe() 475 lm95245_init_client(new_client); in lm95245_probe() 478 err = sysfs_create_group(&new_client->dev.kobj, &lm95245_group); in lm95245_probe() 482 data->hwmon_dev = hwmon_device_register(&new_client->dev); in lm95245_probe() 491 sysfs_remove_group(&new_client->dev.kobj, &lm95245_group); in lm95245_probe()
|
D | lm95241.c | 338 static int lm95241_detect(struct i2c_client *new_client, in lm95241_detect() argument 341 struct i2c_adapter *adapter = new_client->adapter; in lm95241_detect() 348 mfg_id = i2c_smbus_read_byte_data(new_client, LM95241_REG_R_MAN_ID); in lm95241_detect() 352 chip_id = i2c_smbus_read_byte_data(new_client, LM95241_REG_R_CHIP_ID); in lm95241_detect() 388 static int lm95241_probe(struct i2c_client *new_client, in lm95241_probe() argument 400 i2c_set_clientdata(new_client, data); in lm95241_probe() 404 lm95241_init_client(new_client); in lm95241_probe() 407 err = sysfs_create_group(&new_client->dev.kobj, &lm95241_group); in lm95241_probe() 411 data->hwmon_dev = hwmon_device_register(&new_client->dev); in lm95241_probe() 420 sysfs_remove_group(&new_client->dev.kobj, &lm95241_group); in lm95241_probe()
|
D | max6642.c | 283 static int max6642_probe(struct i2c_client *new_client, in max6642_probe() argument 295 i2c_set_clientdata(new_client, data); in max6642_probe() 299 max6642_init_client(new_client); in max6642_probe() 302 err = sysfs_create_group(&new_client->dev.kobj, &max6642_group); in max6642_probe() 306 data->hwmon_dev = hwmon_device_register(&new_client->dev); in max6642_probe() 315 sysfs_remove_group(&new_client->dev.kobj, &max6642_group); in max6642_probe()
|
D | max1619.c | 264 static int max1619_probe(struct i2c_client *new_client, in max1619_probe() argument 276 i2c_set_clientdata(new_client, data); in max1619_probe() 281 max1619_init_client(new_client); in max1619_probe() 284 err = sysfs_create_group(&new_client->dev.kobj, &max1619_group); in max1619_probe() 288 data->hwmon_dev = hwmon_device_register(&new_client->dev); in max1619_probe() 297 sysfs_remove_group(&new_client->dev.kobj, &max1619_group); in max1619_probe()
|
D | adm9240.c | 603 static int adm9240_detect(struct i2c_client *new_client, in adm9240_detect() argument 606 struct i2c_adapter *adapter = new_client->adapter; in adm9240_detect() 608 int address = new_client->addr; in adm9240_detect() 615 if (i2c_smbus_read_byte_data(new_client, ADM9240_REG_I2C_ADDR) in adm9240_detect() 623 man_id = i2c_smbus_read_byte_data(new_client, ADM9240_REG_MAN_ID); in adm9240_detect() 637 die_rev = i2c_smbus_read_byte_data(new_client, ADM9240_REG_DIE_REV); in adm9240_detect() 647 static int adm9240_probe(struct i2c_client *new_client, in adm9240_probe() argument 659 i2c_set_clientdata(new_client, data); in adm9240_probe() 662 adm9240_init_client(new_client); in adm9240_probe() 665 err = sysfs_create_group(&new_client->dev.kobj, &adm9240_group); in adm9240_probe() [all …]
|
D | emc2103.c | 696 emc2103_detect(struct i2c_client *new_client, struct i2c_board_info *info) in emc2103_detect() argument 698 struct i2c_adapter *adapter = new_client->adapter; in emc2103_detect() 704 manufacturer = i2c_smbus_read_byte_data(new_client, REG_MFG_ID); in emc2103_detect() 708 product = i2c_smbus_read_byte_data(new_client, REG_PRODUCT_ID); in emc2103_detect()
|
D | w83792d.c | 988 w83792d_detect_subclients(struct i2c_client *new_client) in w83792d_detect_subclients() argument 991 int address = new_client->addr; in w83792d_detect_subclients() 993 struct i2c_adapter *adapter = new_client->adapter; in w83792d_detect_subclients() 994 struct w83792d_data *data = i2c_get_clientdata(new_client); in w83792d_detect_subclients() 1001 dev_err(&new_client->dev, "invalid subclient " in w83792d_detect_subclients() 1008 w83792d_write_value(new_client, W83792D_REG_I2C_SUBADDR, in w83792d_detect_subclients() 1013 val = w83792d_read_value(new_client, W83792D_REG_I2C_SUBADDR); in w83792d_detect_subclients() 1019 dev_err(&new_client->dev, "duplicate addresses 0x%x, " in w83792d_detect_subclients()
|
D | w83781d.c | 861 w83781d_detect_subclients(struct i2c_client *new_client) in w83781d_detect_subclients() argument 865 int address = new_client->addr; in w83781d_detect_subclients() 867 struct i2c_adapter *adapter = new_client->adapter; in w83781d_detect_subclients() 868 struct w83781d_data *data = i2c_get_clientdata(new_client); in w83781d_detect_subclients() 877 dev_err(&new_client->dev, "Invalid subclient " in w83781d_detect_subclients() 901 dev_err(&new_client->dev, in w83781d_detect_subclients() 912 dev_err(&new_client->dev, "Subclient %d " in w83781d_detect_subclients()
|
/drivers/gpu/vga/ |
D | vga_switcheroo.c | 217 static int vga_switchto_stage1(struct vga_switcheroo_client *new_client) in vga_switchto_stage1() argument 231 if (new_client->pwr_state == VGA_SWITCHEROO_OFF) in vga_switchto_stage1() 232 vga_switchon(new_client); in vga_switchto_stage1() 236 new_client->pdev->resource[PCI_ROM_RESOURCE].flags |= IORESOURCE_ROM_SHADOW; in vga_switchto_stage1() 241 static int vga_switchto_stage2(struct vga_switcheroo_client *new_client) in vga_switchto_stage2() argument 258 if (new_client->fb_info) { in vga_switchto_stage2() 261 event.info = new_client->fb_info; in vga_switchto_stage2() 266 ret = vgasr_priv.handler->switchto(new_client->id); in vga_switchto_stage2() 270 if (new_client->reprobe) in vga_switchto_stage2() 271 new_client->reprobe(new_client->pdev); in vga_switchto_stage2() [all …]
|
/drivers/char/agp/ |
D | frontend.c | 516 struct agp_client *new_client; in agp_create_client() local 518 new_client = kzalloc(sizeof(struct agp_client), GFP_KERNEL); in agp_create_client() 519 if (new_client == NULL) in agp_create_client() 522 new_client->pid = id; in agp_create_client() 523 agp_insert_client(new_client); in agp_create_client() 524 return new_client; in agp_create_client()
|