/linux-4.1.27/drivers/hwmon/ |
D | lm75.c | 353 static int lm75_detect(struct i2c_client *new_client, in lm75_detect() argument 356 struct i2c_adapter *adapter = new_client->adapter; in lm75_detect() 391 conf = i2c_smbus_read_byte_data(new_client, 1); in lm75_detect() 396 if (i2c_smbus_read_byte_data(new_client, 7) == LM75A_ID) { in lm75_detect() 399 if (i2c_smbus_read_byte_data(new_client, 4) != 0xff in lm75_detect() 400 || i2c_smbus_read_byte_data(new_client, 5) != 0xff in lm75_detect() 401 || i2c_smbus_read_byte_data(new_client, 6) != 0xff) in lm75_detect() 404 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 405 os = i2c_smbus_read_byte_data(new_client, 3); in lm75_detect() 408 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() [all …]
|
D | lm83.c | 288 static int lm83_detect(struct i2c_client *new_client, in lm83_detect() argument 291 struct i2c_adapter *adapter = new_client->adapter; in lm83_detect() 299 if ((i2c_smbus_read_byte_data(new_client, LM83_REG_R_STATUS1) & 0xA8) || in lm83_detect() 300 (i2c_smbus_read_byte_data(new_client, LM83_REG_R_STATUS2) & 0x48) || in lm83_detect() 301 (i2c_smbus_read_byte_data(new_client, LM83_REG_R_CONFIG) & 0x41)) { in lm83_detect() 303 new_client->addr); in lm83_detect() 308 man_id = i2c_smbus_read_byte_data(new_client, LM83_REG_R_MAN_ID); in lm83_detect() 312 chip_id = i2c_smbus_read_byte_data(new_client, LM83_REG_R_CHIP_ID); in lm83_detect() 333 static int lm83_probe(struct i2c_client *new_client, in lm83_probe() argument 339 data = devm_kzalloc(&new_client->dev, sizeof(struct lm83_data), in lm83_probe() [all …]
|
D | lm92.c | 335 static int lm92_detect(struct i2c_client *new_client, in lm92_detect() argument 338 struct i2c_adapter *adapter = new_client->adapter; in lm92_detect() 346 config = i2c_smbus_read_byte_data(new_client, LM92_REG_CONFIG); in lm92_detect() 347 man_id = i2c_smbus_read_word_data(new_client, LM92_REG_MAN_ID); in lm92_detect() 351 else if (max6635_check(new_client)) in lm92_detect() 361 static int lm92_probe(struct i2c_client *new_client, in lm92_probe() argument 367 data = devm_kzalloc(&new_client->dev, sizeof(struct lm92_data), in lm92_probe() 372 data->client = new_client; in lm92_probe() 376 lm92_init_client(new_client); in lm92_probe() 378 hwmon_dev = devm_hwmon_device_register_with_groups(&new_client->dev, in lm92_probe() [all …]
|
D | atxp1.c | 263 static int atxp1_detect(struct i2c_client *new_client, in atxp1_detect() argument 266 struct i2c_adapter *adapter = new_client->adapter; in atxp1_detect() 274 if (!((i2c_smbus_read_byte_data(new_client, 0x3e) == 0) && in atxp1_detect() 275 (i2c_smbus_read_byte_data(new_client, 0x3f) == 0) && in atxp1_detect() 276 (i2c_smbus_read_byte_data(new_client, 0xfe) == 0) && in atxp1_detect() 277 (i2c_smbus_read_byte_data(new_client, 0xff) == 0))) in atxp1_detect() 284 temp = i2c_smbus_read_byte_data(new_client, 0x00); in atxp1_detect() 286 if (!((i2c_smbus_read_byte_data(new_client, 0x10) == temp) && in atxp1_detect() 287 (i2c_smbus_read_byte_data(new_client, 0x11) == temp))) in atxp1_detect()
|
D | lm73.c | 236 static int lm73_detect(struct i2c_client *new_client, in lm73_detect() argument 239 struct i2c_adapter *adapter = new_client->adapter; in lm73_detect() 250 ctrl = i2c_smbus_read_byte_data(new_client, LM73_REG_CTRL); in lm73_detect() 254 conf = i2c_smbus_read_byte_data(new_client, LM73_REG_CONF); in lm73_detect() 258 id = i2c_smbus_read_byte_data(new_client, LM73_REG_ID); in lm73_detect() 263 id = i2c_smbus_read_word_data(new_client, LM73_REG_ID); in lm73_detect()
|
D | max1619.c | 276 static int max1619_probe(struct i2c_client *new_client, in max1619_probe() argument 282 data = devm_kzalloc(&new_client->dev, sizeof(struct max1619_data), in max1619_probe() 287 data->client = new_client; in max1619_probe() 291 max1619_init_client(new_client); in max1619_probe() 293 hwmon_dev = devm_hwmon_device_register_with_groups(&new_client->dev, in max1619_probe() 294 new_client->name, in max1619_probe()
|
D | adm9240.c | 636 static int adm9240_detect(struct i2c_client *new_client, in adm9240_detect() argument 639 struct i2c_adapter *adapter = new_client->adapter; in adm9240_detect() 641 int address = new_client->addr; in adm9240_detect() 648 if (i2c_smbus_read_byte_data(new_client, ADM9240_REG_I2C_ADDR) in adm9240_detect() 656 man_id = i2c_smbus_read_byte_data(new_client, ADM9240_REG_MAN_ID); in adm9240_detect() 670 die_rev = i2c_smbus_read_byte_data(new_client, ADM9240_REG_DIE_REV); in adm9240_detect() 722 static int adm9240_probe(struct i2c_client *new_client, in adm9240_probe() argument 725 struct device *dev = &new_client->dev; in adm9240_probe() 733 i2c_set_clientdata(new_client, data); in adm9240_probe() 734 data->client = new_client; in adm9240_probe() [all …]
|
D | lm95245.c | 423 static int lm95245_detect(struct i2c_client *new_client, in lm95245_detect() argument 426 struct i2c_adapter *adapter = new_client->adapter; in lm95245_detect() 427 int address = new_client->addr; in lm95245_detect() 434 id = i2c_smbus_read_byte_data(new_client, LM95245_REG_R_MAN_ID); in lm95245_detect() 438 rev = i2c_smbus_read_byte_data(new_client, LM95245_REG_R_CHIP_ID); in lm95245_detect()
|
D | lm95241.c | 331 static int lm95241_detect(struct i2c_client *new_client, in lm95241_detect() argument 334 struct i2c_adapter *adapter = new_client->adapter; in lm95241_detect() 341 mfg_id = i2c_smbus_read_byte_data(new_client, LM95241_REG_R_MAN_ID); in lm95241_detect() 345 chip_id = i2c_smbus_read_byte_data(new_client, LM95241_REG_R_CHIP_ID); in lm95241_detect()
|
D | emc2103.c | 657 emc2103_detect(struct i2c_client *new_client, struct i2c_board_info *info) in emc2103_detect() argument 659 struct i2c_adapter *adapter = new_client->adapter; in emc2103_detect() 665 manufacturer = i2c_smbus_read_byte_data(new_client, REG_MFG_ID); in emc2103_detect() 669 product = i2c_smbus_read_byte_data(new_client, REG_PRODUCT_ID); in emc2103_detect()
|
D | w83792d.c | 941 w83792d_detect_subclients(struct i2c_client *new_client) in w83792d_detect_subclients() argument 944 int address = new_client->addr; in w83792d_detect_subclients() 946 struct i2c_adapter *adapter = new_client->adapter; in w83792d_detect_subclients() 947 struct w83792d_data *data = i2c_get_clientdata(new_client); in w83792d_detect_subclients() 954 dev_err(&new_client->dev, in w83792d_detect_subclients() 961 w83792d_write_value(new_client, W83792D_REG_I2C_SUBADDR, in w83792d_detect_subclients() 966 val = w83792d_read_value(new_client, W83792D_REG_I2C_SUBADDR); in w83792d_detect_subclients() 972 dev_err(&new_client->dev, 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() 878 dev_err(&new_client->dev, in w83781d_detect_subclients() 903 dev_err(&new_client->dev, in w83781d_detect_subclients() 914 dev_err(&new_client->dev, in w83781d_detect_subclients()
|
/linux-4.1.27/drivers/gpu/vga/ |
D | vga_switcheroo.c | 319 static int vga_switchto_stage1(struct vga_switcheroo_client *new_client) in vga_switchto_stage1() argument 327 if (new_client->pwr_state == VGA_SWITCHEROO_OFF) in vga_switchto_stage1() 328 vga_switchon(new_client); in vga_switchto_stage1() 330 vga_set_default_device(new_client->pdev); in vga_switchto_stage1() 335 static int vga_switchto_stage2(struct vga_switcheroo_client *new_client) in vga_switchto_stage2() argument 348 if (new_client->fb_info) { in vga_switchto_stage2() 351 event.info = new_client->fb_info; in vga_switchto_stage2() 356 ret = vgasr_priv.handler->switchto(new_client->id); in vga_switchto_stage2() 360 if (new_client->ops->reprobe) in vga_switchto_stage2() 361 new_client->ops->reprobe(new_client->pdev); in vga_switchto_stage2() [all …]
|
/linux-4.1.27/drivers/char/agp/ |
D | frontend.c | 515 struct agp_client *new_client; in agp_create_client() local 517 new_client = kzalloc(sizeof(struct agp_client), GFP_KERNEL); in agp_create_client() 518 if (new_client == NULL) in agp_create_client() 521 new_client->pid = id; in agp_create_client() 522 agp_insert_client(new_client); in agp_create_client() 523 return new_client; in agp_create_client()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_lock.c | 114 int new_client; in ldlm_convert_policy_to_local() local 117 new_client = (exp_connect_flags(exp) & OBD_CONNECT_FULL20) != 0; in ldlm_convert_policy_to_local() 118 if (new_client) in ldlm_convert_policy_to_local()
|