Home
last modified time | relevance | path

Searched refs:new_client (Results 1 – 15 of 15) sorted by relevance

/Linux-v4.19/drivers/hwmon/
Dlm75.c525 static int lm75_detect(struct i2c_client *new_client, in lm75_detect() argument
528 struct i2c_adapter *adapter = new_client->adapter; in lm75_detect()
563 conf = i2c_smbus_read_byte_data(new_client, 1); in lm75_detect()
568 if (i2c_smbus_read_byte_data(new_client, 7) == LM75A_ID) { in lm75_detect()
571 if (i2c_smbus_read_byte_data(new_client, 4) != 0xff in lm75_detect()
572 || i2c_smbus_read_byte_data(new_client, 5) != 0xff in lm75_detect()
573 || i2c_smbus_read_byte_data(new_client, 6) != 0xff) in lm75_detect()
576 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
577 os = i2c_smbus_read_byte_data(new_client, 3); in lm75_detect()
580 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
[all …]
Dlm83.c288 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 …]
Dlm92.c280 static int lm92_detect(struct i2c_client *new_client, in lm92_detect() argument
283 struct i2c_adapter *adapter = new_client->adapter; in lm92_detect()
291 config = i2c_smbus_read_byte_data(new_client, LM92_REG_CONFIG); in lm92_detect()
292 man_id = i2c_smbus_read_word_data(new_client, LM92_REG_MAN_ID); in lm92_detect()
304 static int lm92_probe(struct i2c_client *new_client, in lm92_probe() argument
310 data = devm_kzalloc(&new_client->dev, sizeof(struct lm92_data), in lm92_probe()
315 data->client = new_client; in lm92_probe()
319 lm92_init_client(new_client); in lm92_probe()
321 hwmon_dev = devm_hwmon_device_register_with_groups(&new_client->dev, in lm92_probe()
322 new_client->name, in lm92_probe()
Dlm73.c236 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()
Dmax1619.c276 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()
Dadm9240.c639 static int adm9240_detect(struct i2c_client *new_client, in adm9240_detect() argument
642 struct i2c_adapter *adapter = new_client->adapter; in adm9240_detect()
644 int address = new_client->addr; in adm9240_detect()
651 if (i2c_smbus_read_byte_data(new_client, ADM9240_REG_I2C_ADDR) in adm9240_detect()
659 man_id = i2c_smbus_read_byte_data(new_client, ADM9240_REG_MAN_ID); in adm9240_detect()
673 die_rev = i2c_smbus_read_byte_data(new_client, ADM9240_REG_DIE_REV); in adm9240_detect()
725 static int adm9240_probe(struct i2c_client *new_client, in adm9240_probe() argument
728 struct device *dev = &new_client->dev; in adm9240_probe()
736 i2c_set_clientdata(new_client, data); in adm9240_probe()
737 data->client = new_client; in adm9240_probe()
[all …]
Dstts751.c657 static int stts751_detect(struct i2c_client *new_client, in stts751_detect() argument
660 struct i2c_adapter *adapter = new_client->adapter; in stts751_detect()
667 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_MAN_ID); in stts751_detect()
672 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_TEMP_L); in stts751_detect()
676 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_HLIM_L); in stts751_detect()
680 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_LLIM_L); in stts751_detect()
685 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_SMBUS_TO); in stts751_detect()
689 tmp = i2c_smbus_read_byte_data(new_client, STTS751_REG_PROD_ID); in stts751_detect()
701 dev_dbg(&new_client->dev, "Chip %s detected", name); in stts751_detect()
Dlm95245.c457 static int lm95245_detect(struct i2c_client *new_client, in lm95245_detect() argument
460 struct i2c_adapter *adapter = new_client->adapter; in lm95245_detect()
461 int address = new_client->addr; in lm95245_detect()
468 id = i2c_smbus_read_byte_data(new_client, LM95245_REG_R_MAN_ID); in lm95245_detect()
472 rev = i2c_smbus_read_byte_data(new_client, LM95245_REG_R_CHIP_ID); in lm95245_detect()
Dlm95241.c374 static int lm95241_detect(struct i2c_client *new_client, in lm95241_detect() argument
377 struct i2c_adapter *adapter = new_client->adapter; in lm95241_detect()
384 mfg_id = i2c_smbus_read_byte_data(new_client, LM95241_REG_R_MAN_ID); in lm95241_detect()
388 chip_id = i2c_smbus_read_byte_data(new_client, LM95241_REG_R_CHIP_ID); in lm95241_detect()
Demc2103.c657 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()
Dw83792d.c938 w83792d_detect_subclients(struct i2c_client *new_client) in w83792d_detect_subclients() argument
941 int address = new_client->addr; in w83792d_detect_subclients()
943 struct i2c_adapter *adapter = new_client->adapter; in w83792d_detect_subclients()
944 struct w83792d_data *data = i2c_get_clientdata(new_client); in w83792d_detect_subclients()
951 dev_err(&new_client->dev, in w83792d_detect_subclients()
958 w83792d_write_value(new_client, W83792D_REG_I2C_SUBADDR, in w83792d_detect_subclients()
963 val = w83792d_read_value(new_client, W83792D_REG_I2C_SUBADDR); in w83792d_detect_subclients()
969 dev_err(&new_client->dev, in w83792d_detect_subclients()
Dw83781d.c859 w83781d_detect_subclients(struct i2c_client *new_client) in w83781d_detect_subclients() argument
863 int address = new_client->addr; in w83781d_detect_subclients()
865 struct i2c_adapter *adapter = new_client->adapter; in w83781d_detect_subclients()
866 struct w83781d_data *data = i2c_get_clientdata(new_client); in w83781d_detect_subclients()
876 dev_err(&new_client->dev, in w83781d_detect_subclients()
901 dev_err(&new_client->dev, in w83781d_detect_subclients()
912 dev_err(&new_client->dev, in w83781d_detect_subclients()
/Linux-v4.19/drivers/gpu/vga/
Dvga_switcheroo.c705 static int vga_switchto_stage1(struct vga_switcheroo_client *new_client) in vga_switchto_stage1() argument
713 if (vga_switcheroo_pwr_state(new_client) == VGA_SWITCHEROO_OFF) in vga_switchto_stage1()
714 vga_switchon(new_client); in vga_switchto_stage1()
716 vga_set_default_device(new_client->pdev); in vga_switchto_stage1()
721 static int vga_switchto_stage2(struct vga_switcheroo_client *new_client) in vga_switchto_stage2() argument
736 if (new_client->fb_info) { in vga_switchto_stage2()
740 event.info = new_client->fb_info; in vga_switchto_stage2()
746 ret = vgasr_priv.handler->switchto(new_client->id); in vga_switchto_stage2()
751 if (new_client->ops->reprobe) in vga_switchto_stage2()
752 new_client->ops->reprobe(new_client->pdev); in vga_switchto_stage2()
[all …]
/Linux-v4.19/drivers/char/agp/
Dfrontend.c515 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-v4.19/drivers/media/i2c/
Dadv7604.c2852 struct i2c_client *new_client; in adv76xx_dummy_client() local
2855 new_client = i2c_new_dummy(client->adapter, in adv76xx_dummy_client()
2858 new_client = i2c_new_secondary_device(client, in adv76xx_dummy_client()
2862 if (new_client) in adv76xx_dummy_client()
2863 io_write(sd, io_reg, new_client->addr << 1); in adv76xx_dummy_client()
2865 return new_client; in adv76xx_dummy_client()