/Linux-v6.6/drivers/hwmon/ |
D | lm75.c | 807 static int lm75_detect(struct i2c_client *new_client, in lm75_detect() argument 810 struct i2c_adapter *adapter = new_client->adapter; in lm75_detect() 845 conf = i2c_smbus_read_byte_data(new_client, 1); in lm75_detect() 850 if (i2c_smbus_read_byte_data(new_client, 7) == LM75A_ID) { in lm75_detect() 855 if (i2c_smbus_read_byte_data(new_client, 4) != 0xff in lm75_detect() 856 || i2c_smbus_read_byte_data(new_client, 5) != 0xff in lm75_detect() 857 || i2c_smbus_read_byte_data(new_client, 6) != 0xff) in lm75_detect() 860 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() 861 os = i2c_smbus_read_byte_data(new_client, 3); in lm75_detect() 864 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect() [all …]
|
D | lm92.c | 271 static int lm92_detect(struct i2c_client *new_client, in lm92_detect() argument 274 struct i2c_adapter *adapter = new_client->adapter; in lm92_detect() 282 config = i2c_smbus_read_byte_data(new_client, LM92_REG_CONFIG); in lm92_detect() 283 man_id = i2c_smbus_read_word_data(new_client, LM92_REG_MAN_ID); in lm92_detect() 295 static int lm92_probe(struct i2c_client *new_client) in lm92_probe() argument 300 data = devm_kzalloc(&new_client->dev, sizeof(struct lm92_data), in lm92_probe() 305 data->client = new_client; in lm92_probe() 309 lm92_init_client(new_client); in lm92_probe() 311 hwmon_dev = devm_hwmon_device_register_with_groups(&new_client->dev, in lm92_probe() 312 new_client->name, in lm92_probe()
|
D | lm73.c | 229 static int lm73_detect(struct i2c_client *new_client, in lm73_detect() argument 232 struct i2c_adapter *adapter = new_client->adapter; in lm73_detect() 243 ctrl = i2c_smbus_read_byte_data(new_client, LM73_REG_CTRL); in lm73_detect() 247 conf = i2c_smbus_read_byte_data(new_client, LM73_REG_CONF); in lm73_detect() 251 id = i2c_smbus_read_byte_data(new_client, LM73_REG_ID); in lm73_detect() 256 id = i2c_smbus_read_word_data(new_client, LM73_REG_ID); in lm73_detect()
|
D | max1619.c | 264 static int max1619_probe(struct i2c_client *new_client) in max1619_probe() argument 269 data = devm_kzalloc(&new_client->dev, sizeof(struct max1619_data), in max1619_probe() 274 data->client = new_client; in max1619_probe() 278 max1619_init_client(new_client); in max1619_probe() 280 hwmon_dev = devm_hwmon_device_register_with_groups(&new_client->dev, in max1619_probe() 281 new_client->name, in max1619_probe()
|
D | stts751.c | 649 static int stts751_detect(struct i2c_client *new_client, in stts751_detect() argument 652 struct i2c_adapter *adapter = new_client->adapter; in stts751_detect() 659 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_MAN_ID); in stts751_detect() 664 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_TEMP_L); in stts751_detect() 668 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_HLIM_L); in stts751_detect() 672 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_LLIM_L); in stts751_detect() 677 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_SMBUS_TO); in stts751_detect() 681 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_PROD_ID); in stts751_detect() 693 dev_dbg(&new_client->dev, "Chip %s detected", name); in stts751_detect()
|
D | lm95245.c | 435 static int lm95245_detect(struct i2c_client *new_client, in lm95245_detect() argument 438 struct i2c_adapter *adapter = new_client->adapter; in lm95245_detect() 439 int address = new_client->addr; in lm95245_detect() 446 id = i2c_smbus_read_byte_data(new_client, LM95245_REG_R_MAN_ID); in lm95245_detect() 450 rev = i2c_smbus_read_byte_data(new_client, LM95245_REG_R_CHIP_ID); in lm95245_detect()
|
D | adm9240.c | 276 static int adm9240_detect(struct i2c_client *new_client, in adm9240_detect() argument 279 struct i2c_adapter *adapter = new_client->adapter; in adm9240_detect() 281 int address = new_client->addr; in adm9240_detect() 288 if (i2c_smbus_read_byte_data(new_client, ADM9240_REG_I2C_ADDR) != address) in adm9240_detect() 292 man_id = i2c_smbus_read_byte_data(new_client, ADM9240_REG_MAN_ID); in adm9240_detect() 303 die_rev = i2c_smbus_read_byte_data(new_client, ADM9240_REG_DIE_REV); in adm9240_detect()
|
D | lm95241.c | 365 static int lm95241_detect(struct i2c_client *new_client, in lm95241_detect() argument 368 struct i2c_adapter *adapter = new_client->adapter; in lm95241_detect() 375 mfg_id = i2c_smbus_read_byte_data(new_client, LM95241_REG_R_MAN_ID); in lm95241_detect() 379 chip_id = i2c_smbus_read_byte_data(new_client, LM95241_REG_R_CHIP_ID); in lm95241_detect()
|
D | emc2103.c | 630 emc2103_detect(struct i2c_client *new_client, struct i2c_board_info *info) in emc2103_detect() argument 632 struct i2c_adapter *adapter = new_client->adapter; in emc2103_detect() 638 manufacturer = i2c_smbus_read_byte_data(new_client, REG_MFG_ID); in emc2103_detect() 642 product = i2c_smbus_read_byte_data(new_client, REG_PRODUCT_ID); in emc2103_detect()
|
D | w83792d.c | 921 w83792d_detect_subclients(struct i2c_client *new_client) in w83792d_detect_subclients() argument 924 int address = new_client->addr; in w83792d_detect_subclients() 926 struct i2c_adapter *adapter = new_client->adapter; in w83792d_detect_subclients() 933 dev_err(&new_client->dev, in w83792d_detect_subclients() 939 w83792d_write_value(new_client, W83792D_REG_I2C_SUBADDR, in w83792d_detect_subclients() 944 val = w83792d_read_value(new_client, W83792D_REG_I2C_SUBADDR); in w83792d_detect_subclients() 947 dev_err(&new_client->dev, in w83792d_detect_subclients() 953 devm_i2c_new_dummy_device(&new_client->dev, adapter, 0x48 + (val & 0x7)); in w83792d_detect_subclients() 956 devm_i2c_new_dummy_device(&new_client->dev, adapter, 0x48 + ((val >> 4) & 0x7)); in w83792d_detect_subclients()
|
D | w83781d.c | 846 w83781d_detect_subclients(struct i2c_client *new_client) in w83781d_detect_subclients() argument 850 int address = new_client->addr; in w83781d_detect_subclients() 852 struct i2c_adapter *adapter = new_client->adapter; in w83781d_detect_subclients() 853 struct w83781d_data *data = i2c_get_clientdata(new_client); in w83781d_detect_subclients() 863 dev_err(&new_client->dev, in w83781d_detect_subclients() 888 dev_err(&new_client->dev, in w83781d_detect_subclients() 899 dev_err(&new_client->dev, in w83781d_detect_subclients()
|
/Linux-v6.6/drivers/gpu/vga/ |
D | vga_switcheroo.c | 707 static int vga_switchto_stage1(struct vga_switcheroo_client *new_client) in vga_switchto_stage1() argument 715 if (vga_switcheroo_pwr_state(new_client) == VGA_SWITCHEROO_OFF) in vga_switchto_stage1() 716 vga_switchon(new_client); in vga_switchto_stage1() 718 vga_set_default_device(new_client->pdev); in vga_switchto_stage1() 723 static int vga_switchto_stage2(struct vga_switcheroo_client *new_client) in vga_switchto_stage2() argument 738 if (new_client->fb_info) in vga_switchto_stage2() 739 fbcon_remap_all(new_client->fb_info); in vga_switchto_stage2() 742 ret = vgasr_priv.handler->switchto(new_client->id); in vga_switchto_stage2() 747 if (new_client->ops->reprobe) in vga_switchto_stage2() 748 new_client->ops->reprobe(new_client->pdev); in vga_switchto_stage2() [all …]
|
/Linux-v6.6/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-v6.6/drivers/media/i2c/ |
D | adv7604.c | 2930 struct i2c_client *new_client; in adv76xx_dummy_client() local 2933 new_client = i2c_new_dummy_device(client->adapter, in adv76xx_dummy_client() 2936 new_client = i2c_new_ancillary_device(client, in adv76xx_dummy_client() 2940 if (!IS_ERR(new_client)) in adv76xx_dummy_client() 2941 io_write(sd, io_reg, new_client->addr << 1); in adv76xx_dummy_client() 2943 return new_client; in adv76xx_dummy_client()
|
/Linux-v6.6/drivers/md/ |
D | dm-bufio.c | 2739 static void __insert_client(struct dm_bufio_client *new_client) in __insert_client() argument 2746 if (time_after_eq(c->oldest_buffer, new_client->oldest_buffer)) in __insert_client() 2751 list_add_tail(&new_client->client_list, h); in __insert_client()
|