Home
last modified time | relevance | path

Searched refs:man_id (Results 1 - 25 of 42) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/hwmon/
H A Dadm1021.c327 int reg, conv_rate, status, config, man_id, dev_id; in adm1021_detect() local
346 man_id = i2c_smbus_read_byte_data(client, ADM1021_REG_MAN_ID); in adm1021_detect()
349 if (man_id < 0 || dev_id < 0) in adm1021_detect()
352 if (man_id == 0x4d && dev_id == 0x01) { in adm1021_detect()
364 } else if (man_id == 0x41) { in adm1021_detect()
371 } else if (man_id == 0x49) in adm1021_detect()
373 else if (man_id == 0x23) in adm1021_detect()
375 else if (man_id == 0x54) in adm1021_detect()
413 && man_id == config && dev_id == config in adm1021_detect()
H A Dw83l785ts.c132 u16 man_id; in w83l785ts_detect() local
148 man_id = (w83l785ts_read_value(client, W83L785TS_REG_MAN_ID1, 0) << 8) in w83l785ts_detect()
152 if (man_id != 0x5CA3 /* Winbond */ in w83l785ts_detect()
155 "Unsupported chip (man_id=0x%04X, chip_id=0x%02X)\n", in w83l785ts_detect()
156 man_id, chip_id); in w83l785ts_detect()
H A Dadm9240.c282 u8 man_id, die_rev; in adm9240_detect() local
292 man_id = i2c_smbus_read_byte_data(new_client, ADM9240_REG_MAN_ID); in adm9240_detect()
293 if (man_id == 0x23) in adm9240_detect()
295 else if (man_id == 0xda) in adm9240_detect()
297 else if (man_id == 0x01) in adm9240_detect()
305 man_id == 0x23 ? "ADM9240" : in adm9240_detect()
306 man_id == 0xda ? "DS1780" : "LM81", die_rev); in adm9240_detect()
H A Dmax1619.c218 u8 reg_config, reg_convrate, reg_status, man_id, chip_id; in max1619_detect() local
235 man_id = i2c_smbus_read_byte_data(client, MAX1619_REG_R_MAN_ID); in max1619_detect()
237 if (man_id != 0x4D || chip_id != 0x04) { in max1619_detect()
239 "Unsupported chip (man_id=0x%02X, chip_id=0x%02X).\n", in max1619_detect()
240 man_id, chip_id); in max1619_detect()
H A Dlm83.c372 u8 man_id, chip_id; in lm83_detect() local
387 man_id = i2c_smbus_read_byte_data(client, LM83_REG_R_MAN_ID); in lm83_detect()
388 if (man_id != 0x01) /* National Semiconductor */ in lm83_detect()
410 "Unsupported chip (man_id=0x%02X, chip_id=0x%02X)\n", in lm83_detect()
411 man_id, chip_id); in lm83_detect()
H A Dmax6642.c116 u8 reg_config, reg_status, man_id; in max6642_detect() local
122 man_id = i2c_smbus_read_byte_data(client, MAX6642_REG_R_MAN_ID); in max6642_detect()
123 if (man_id != 0x4D) in max6642_detect()
H A Dadm1029.c299 u8 man_id, chip_id, temp_devices_installed, nb_fan_support; in adm1029_detect() local
311 man_id = i2c_smbus_read_byte_data(client, ADM1029_REG_MAN_ID); in adm1029_detect()
318 if (man_id != 0x41 || (temp_devices_installed & 0xf9) != 0x01 || in adm1029_detect()
H A Dlm92.c276 u16 man_id; in lm92_detect() local
283 man_id = i2c_smbus_read_word_data(new_client, LM92_REG_MAN_ID); in lm92_detect()
285 if ((config & 0xe0) == 0x00 && man_id == 0x0180) in lm92_detect()
H A Dlm90.c1848 * The calling code already checked man_id and chip_id. in lm90_detect_max1617()
2118 int man_id, emerg, emerg2, status2; in lm90_detect_maxim() local
2135 man_id = i2c_smbus_read_byte_data(client, in lm90_detect_maxim()
2141 if (emerg < 0 || man_id < 0 || emerg2 < 0 || status2 < 0) in lm90_detect_maxim()
2164 * should differ from emerg2, and emerg2 should match man_id in lm90_detect_maxim()
2168 emerg2 == man_id && emerg2 != status2) in lm90_detect_maxim()
2212 * read value, which in our case is those of the man_id in lm90_detect_maxim()
2220 * read, so in our case again those of the man_id register. in lm90_detect_maxim()
2451 int man_id, chip_id, config1, convrate, lhigh; in lm90_detect() local
2463 * Get well defined register value for chips with neither man_id no in lm90_detect()
[all...]
H A Dadm1025.c446 u8 man_id, chip_id; in adm1025_detect() local
465 man_id = i2c_smbus_read_byte_data(client, ADM1025_REG_MAN_ID); in adm1025_detect()
466 if (man_id == 0x41) in adm1025_detect()
468 else if (man_id == 0xA1 && client->addr != 0x2E) in adm1025_detect()
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dadm1021.c327 int conv_rate, status, config, man_id, dev_id; in adm1021_detect() local
346 man_id = i2c_smbus_read_byte_data(client, ADM1021_REG_MAN_ID); in adm1021_detect()
349 if (man_id < 0 || dev_id < 0) in adm1021_detect()
352 if (man_id == 0x4d && dev_id == 0x01) in adm1021_detect()
354 else if (man_id == 0x41) { in adm1021_detect()
361 } else if (man_id == 0x49) in adm1021_detect()
363 else if (man_id == 0x23) in adm1021_detect()
365 else if (man_id == 0x54) in adm1021_detect()
H A Dw83l785ts.c132 u16 man_id; in w83l785ts_detect() local
148 man_id = (w83l785ts_read_value(client, W83L785TS_REG_MAN_ID1, 0) << 8) in w83l785ts_detect()
152 if (man_id != 0x5CA3 /* Winbond */ in w83l785ts_detect()
155 "Unsupported chip (man_id=0x%04X, chip_id=0x%02X)\n", in w83l785ts_detect()
156 man_id, chip_id); in w83l785ts_detect()
H A Dlm83.c280 u8 man_id, chip_id; in lm83_detect() local
295 man_id = i2c_smbus_read_byte_data(new_client, LM83_REG_R_MAN_ID); in lm83_detect()
296 if (man_id != 0x01) /* National Semiconductor */ in lm83_detect()
310 "Unsupported chip (man_id=0x%02X, chip_id=0x%02X)\n", in lm83_detect()
311 man_id, chip_id); in lm83_detect()
H A Dmax1619.c218 u8 reg_config, reg_convrate, reg_status, man_id, chip_id; in max1619_detect() local
235 man_id = i2c_smbus_read_byte_data(client, MAX1619_REG_R_MAN_ID); in max1619_detect()
237 if (man_id != 0x4D || chip_id != 0x04) { in max1619_detect()
239 "Unsupported chip (man_id=0x%02X, chip_id=0x%02X).\n", in max1619_detect()
240 man_id, chip_id); in max1619_detect()
H A Dlm90.c1462 int man_id, chip_id, config1, config2, convrate; in lm90_detect() local
1468 man_id = i2c_smbus_read_byte_data(client, LM90_REG_R_MAN_ID); in lm90_detect()
1472 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0) in lm90_detect()
1475 if (man_id == 0x01 || man_id == 0x5C || man_id == 0xA1) { in lm90_detect()
1482 && man_id == 0x01) { /* National Semiconductor */ in lm90_detect()
1507 && man_id == 0x41) { /* Analog Devices */ in lm90_detect()
1531 if (man_id == 0x4D) { /* Maxim */ in lm90_detect()
1542 man_id in lm90_detect()
[all...]
H A Dadm9240.c727 u8 man_id, die_rev; in adm9240_detect() local
741 man_id = i2c_smbus_read_byte_data(new_client, ADM9240_REG_MAN_ID); in adm9240_detect()
742 if (man_id == 0x23) { in adm9240_detect()
744 } else if (man_id == 0xda) { in adm9240_detect()
746 } else if (man_id == 0x01) { in adm9240_detect()
750 man_id); in adm9240_detect()
757 man_id == 0x23 ? "ADM9240" : in adm9240_detect()
758 man_id == 0xda ? "DS1780" : "LM81", die_rev); in adm9240_detect()
H A Dadm1029.c299 u8 man_id, chip_id, temp_devices_installed, nb_fan_support; in adm1029_detect() local
311 man_id = i2c_smbus_read_byte_data(client, ADM1029_REG_MAN_ID); in adm1029_detect()
318 if (man_id != 0x41 || (temp_devices_installed & 0xf9) != 0x01 || in adm1029_detect()
H A Dmax6642.c116 u8 reg_config, reg_status, man_id; in max6642_detect() local
122 man_id = i2c_smbus_read_byte_data(client, MAX6642_REG_R_MAN_ID); in max6642_detect()
123 if (man_id != 0x4D) in max6642_detect()
H A Dlm92.c276 u16 man_id; in lm92_detect() local
283 man_id = i2c_smbus_read_word_data(new_client, LM92_REG_MAN_ID); in lm92_detect()
285 if ((config & 0xe0) == 0x00 && man_id == 0x0180) in lm92_detect()
H A Dadm1025.c446 u8 man_id, chip_id; in adm1025_detect() local
465 man_id = i2c_smbus_read_byte_data(client, ADM1025_REG_MAN_ID); in adm1025_detect()
466 if (man_id == 0x41) in adm1025_detect()
468 else if (man_id == 0xA1 && client->addr != 0x2E) in adm1025_detect()
H A Dadc128d818.c361 int man_id, dev_id; in adc128_detect() local
368 man_id = i2c_smbus_read_byte_data(client, ADC128_REG_MAN_ID); in adc128_detect()
370 if (man_id != 0x01 || dev_id != 0x09) in adc128_detect()
/kernel/linux/linux-5.10/drivers/bluetooth/
H A Dhci_nokia.c111 u8 man_id; member
141 u8 man_id; member
336 if (btdev->man_id == NOKIA_ID_BCM2048) { in nokia_setup_fw()
338 } else if (btdev->man_id == NOKIA_ID_TI1271) { in nokia_setup_fw()
445 if (btdev->man_id == NOKIA_ID_BCM2048) { in nokia_setup()
557 btdev->man_id = evt->man_id; in nokia_recv_negotiation_packet()
561 evt->baud, evt->sys_clk, evt->man_id, evt->ver_id); in nokia_recv_negotiation_packet()
/kernel/linux/linux-6.6/drivers/bluetooth/
H A Dhci_nokia.c111 u8 man_id; member
141 u8 man_id; member
336 if (btdev->man_id == NOKIA_ID_BCM2048) { in nokia_setup_fw()
338 } else if (btdev->man_id == NOKIA_ID_TI1271) { in nokia_setup_fw()
445 if (btdev->man_id == NOKIA_ID_BCM2048) { in nokia_setup()
557 btdev->man_id = evt->man_id; in nokia_recv_negotiation_packet()
561 evt->baud, evt->sys_clk, evt->man_id, evt->ver_id); in nokia_recv_negotiation_packet()
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
H A Dqla_sup.c517 qla24xx_get_flash_manufacturer(struct qla_hw_data *ha, uint8_t *man_id, in qla24xx_get_flash_manufacturer() argument
522 *man_id = *flash_id = 0; in qla24xx_get_flash_manufacturer()
526 *man_id = LSB(ids); in qla24xx_get_flash_manufacturer()
530 /* Check if man_id and flash_id are valid. */ in qla24xx_get_flash_manufacturer()
531 if (ids != 0xDEADDEAD && (*man_id == 0 || *flash_id == 0)) { in qla24xx_get_flash_manufacturer()
540 *man_id = LSB(ids); in qla24xx_get_flash_manufacturer()
955 uint8_t man_id, flash_id; in qla2xxx_get_fdt_info() local
978 mid = le16_to_cpu(fdt->man_id); in qla2xxx_get_fdt_info()
1003 qla24xx_get_flash_manufacturer(ha, &man_id, &flash_id); in qla2xxx_get_fdt_info()
1004 mid = man_id; in qla2xxx_get_fdt_info()
2130 qla2x00_poll_flash(struct qla_hw_data *ha, uint32_t addr, uint8_t poll_data, uint8_t man_id, uint8_t flash_id) qla2x00_poll_flash() argument
2170 qla2x00_program_flash_address(struct qla_hw_data *ha, uint32_t addr, uint8_t data, uint8_t man_id, uint8_t flash_id) qla2x00_program_flash_address() argument
2207 qla2x00_erase_flash(struct qla_hw_data *ha, uint8_t man_id, uint8_t flash_id) qla2x00_erase_flash() argument
2243 qla2x00_erase_flash_sector(struct qla_hw_data *ha, uint32_t addr, uint32_t sec_mask, uint8_t man_id, uint8_t flash_id) qla2x00_erase_flash_sector() argument
2270 qla2x00_get_flash_manufacturer(struct qla_hw_data *ha, uint8_t *man_id, uint8_t *flash_id) qla2x00_get_flash_manufacturer() argument
2390 uint8_t man_id, flash_id, sec_number, *data; qla2x00_write_optrom_data() local
[all...]
/kernel/linux/linux-6.6/drivers/scsi/qla2xxx/
H A Dqla_sup.c517 qla24xx_get_flash_manufacturer(struct qla_hw_data *ha, uint8_t *man_id, in qla24xx_get_flash_manufacturer() argument
522 *man_id = *flash_id = 0; in qla24xx_get_flash_manufacturer()
526 *man_id = LSB(ids); in qla24xx_get_flash_manufacturer()
530 /* Check if man_id and flash_id are valid. */ in qla24xx_get_flash_manufacturer()
531 if (ids != 0xDEADDEAD && (*man_id == 0 || *flash_id == 0)) { in qla24xx_get_flash_manufacturer()
540 *man_id = LSB(ids); in qla24xx_get_flash_manufacturer()
955 uint8_t man_id, flash_id; in qla2xxx_get_fdt_info() local
978 mid = le16_to_cpu(fdt->man_id); in qla2xxx_get_fdt_info()
1003 qla24xx_get_flash_manufacturer(ha, &man_id, &flash_id); in qla2xxx_get_fdt_info()
1004 mid = man_id; in qla2xxx_get_fdt_info()
2130 qla2x00_poll_flash(struct qla_hw_data *ha, uint32_t addr, uint8_t poll_data, uint8_t man_id, uint8_t flash_id) qla2x00_poll_flash() argument
2170 qla2x00_program_flash_address(struct qla_hw_data *ha, uint32_t addr, uint8_t data, uint8_t man_id, uint8_t flash_id) qla2x00_program_flash_address() argument
2207 qla2x00_erase_flash(struct qla_hw_data *ha, uint8_t man_id, uint8_t flash_id) qla2x00_erase_flash() argument
2243 qla2x00_erase_flash_sector(struct qla_hw_data *ha, uint32_t addr, uint32_t sec_mask, uint8_t man_id, uint8_t flash_id) qla2x00_erase_flash_sector() argument
2270 qla2x00_get_flash_manufacturer(struct qla_hw_data *ha, uint8_t *man_id, uint8_t *flash_id) qla2x00_get_flash_manufacturer() argument
2390 uint8_t man_id, flash_id, sec_number, *data; qla2x00_write_optrom_data() local
[all...]

Completed in 26 milliseconds

12