Lines Matching refs:chip_id

1905 static const char *lm90_detect_national(struct i2c_client *client, int chip_id,  in lm90_detect_national()  argument
1921 switch (chip_id & 0xf0) { in lm90_detect_national()
1940 static const char *lm90_detect_on(struct i2c_client *client, int chip_id, int config1, in lm90_detect_on() argument
1946 switch (chip_id) { in lm90_detect_on()
1959 int chip_id, int config1, int convrate) in lm90_detect_analog() argument
2007 switch (chip_id) { in lm90_detect_analog()
2116 int chip_id, int config1, int convrate) in lm90_detect_maxim() argument
2122 switch (chip_id) { in lm90_detect_maxim()
2317 static const char *lm90_detect_nuvoton(struct i2c_client *client, int chip_id, in lm90_detect_nuvoton() argument
2328 if (chip_id == 0x01 && convrate <= 0x09) { in lm90_detect_nuvoton()
2331 } else if ((chip_id & 0xfe) == 0x10 && convrate <= 0x08) { in lm90_detect_nuvoton()
2340 int chip_id, int config1, int convrate) in lm90_detect_nxp() argument
2346 switch (chip_id) { in lm90_detect_nxp()
2365 static const char *lm90_detect_gmt(struct i2c_client *client, int chip_id, in lm90_detect_gmt() argument
2389 if ((chip_id == 0x01 || chip_id == 0x03) && in lm90_detect_gmt()
2408 int chip_id, int config1, int convrate) in lm90_detect_ti49() argument
2410 if (common_address && chip_id == 0x00 && !(config1 & 0x3f) && !(convrate & 0xf8)) { in lm90_detect_ti49()
2419 static const char *lm90_detect_ti(struct i2c_client *client, int chip_id, in lm90_detect_ti() argument
2425 if (chip_id == 0x00 && !(config1 & 0x1b) && convrate <= 0x09) { in lm90_detect_ti()
2451 int man_id, chip_id, config1, convrate, lhigh; in lm90_detect() local
2470 chip_id = i2c_smbus_read_byte_data(client, LM90_REG_CHIP_ID); in lm90_detect()
2473 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0 || lhigh < 0) in lm90_detect()
2477 if (lhigh == man_id && lhigh == chip_id && lhigh == config1 && lhigh == convrate) in lm90_detect()
2485 if (man_id == lhigh && chip_id == lhigh) { in lm90_detect()
2488 chip_id = i2c_smbus_read_byte_data(client, LM90_REG_CHIP_ID); in lm90_detect()
2489 if (convrate < 0 || man_id < 0 || chip_id < 0) in lm90_detect()
2491 if (man_id == convrate && chip_id == convrate) in lm90_detect()
2500 name = lm90_detect_national(client, chip_id, config1, convrate); in lm90_detect()
2503 name = lm90_detect_on(client, chip_id, config1, convrate); in lm90_detect()
2510 name = lm90_detect_analog(client, common_address, chip_id, config1, in lm90_detect()
2514 name = lm90_detect_gmt(client, chip_id, config1, convrate); in lm90_detect()
2517 name = lm90_detect_ti49(client, common_address, chip_id, config1, convrate); in lm90_detect()
2520 name = lm90_detect_maxim(client, common_address, chip_id, in lm90_detect()
2528 name = lm90_detect_ti(client, chip_id, config1, convrate); in lm90_detect()
2531 name = lm90_detect_nuvoton(client, chip_id, config1, convrate); in lm90_detect()
2534 name = lm90_detect_nxp(client, common_address, chip_id, config1, convrate); in lm90_detect()
2537 if (common_address && chip_id == 0xff && convrate < 8) in lm90_detect()
2547 client->addr, man_id, chip_id); in lm90_detect()