Home
last modified time | relevance | path

Searched refs:diode (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/iio/temperature/
H A Dltc2983.c568 struct ltc2983_diode *diode = to_diode(sensor); in ltc2983_diode_assign_chan() local
571 chan_val = LTC2983_DIODE_CFG(diode->sensor_config); in ltc2983_diode_assign_chan()
572 chan_val |= LTC2983_DIODE_EXC_CURRENT(diode->excitation_current); in ltc2983_diode_assign_chan()
573 chan_val |= LTC2983_DIODE_IDEAL_FACTOR(diode->ideal_factor_value); in ltc2983_diode_assign_chan()
1014 struct ltc2983_diode *diode; in ltc2983_diode_new() local
1018 diode = devm_kzalloc(&st->spi->dev, sizeof(*diode), GFP_KERNEL); in ltc2983_diode_new()
1019 if (!diode) in ltc2983_diode_new()
1023 diode->sensor_config = LTC2983_DIODE_SGL(1); in ltc2983_diode_new()
1026 diode in ltc2983_diode_new()
[all...]
/kernel/linux/linux-6.6/drivers/iio/temperature/
H A Dltc2983.c606 struct ltc2983_diode *diode = to_diode(sensor); in ltc2983_diode_assign_chan() local
609 chan_val = LTC2983_DIODE_CFG(diode->sensor_config); in ltc2983_diode_assign_chan()
610 chan_val |= LTC2983_DIODE_EXC_CURRENT(diode->excitation_current); in ltc2983_diode_assign_chan()
611 chan_val |= LTC2983_DIODE_IDEAL_FACTOR(diode->ideal_factor_value); in ltc2983_diode_assign_chan()
1066 struct ltc2983_diode *diode; in ltc2983_diode_new() local
1070 diode = devm_kzalloc(&st->spi->dev, sizeof(*diode), GFP_KERNEL); in ltc2983_diode_new()
1071 if (!diode) in ltc2983_diode_new()
1075 diode->sensor_config = LTC2983_DIODE_SGL(1); in ltc2983_diode_new()
1078 diode in ltc2983_diode_new()
[all...]
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-abx80x.c561 const char *diode; in abx80x_dt_trickle_cfg() local
566 ret = of_property_read_string(np, "abracon,tc-diode", &diode); in abx80x_dt_trickle_cfg()
570 if (!strcmp(diode, "standard")) { in abx80x_dt_trickle_cfg()
572 } else if (!strcmp(diode, "schottky")) { in abx80x_dt_trickle_cfg()
575 dev_dbg(&client->dev, "Invalid tc-diode value: %s\n", diode); in abx80x_dt_trickle_cfg()
H A Drtc-ds1307.c530 static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_ds1339() argument
532 u8 setup = (diode) ? DS1307_TRICKLE_CHARGER_DIODE : in do_trickle_setup_ds1339()
555 static u8 do_trickle_setup_rx8130(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_rx8130() argument
559 if (diode) in do_trickle_setup_rx8130()
1340 bool diode = chip->charge_default; in ds1307_trickle_init() local
1350 * trickle-diode-disable in ds1307_trickle_init()
1356 diode = false; in ds1307_trickle_init()
1359 diode = true; in ds1307_trickle_init()
1367 "trickle-diode-disable")) { in ds1307_trickle_init()
1368 diode in ds1307_trickle_init()
[all...]
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-abx80x.c571 const char *diode; in abx80x_dt_trickle_cfg() local
576 ret = of_property_read_string(np, "abracon,tc-diode", &diode); in abx80x_dt_trickle_cfg()
580 if (!strcmp(diode, "standard")) { in abx80x_dt_trickle_cfg()
582 } else if (!strcmp(diode, "schottky")) { in abx80x_dt_trickle_cfg()
585 dev_dbg(&client->dev, "Invalid tc-diode value: %s\n", diode); in abx80x_dt_trickle_cfg()
H A Drtc-ds1307.c520 static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_ds1339() argument
522 u8 setup = (diode) ? DS1307_TRICKLE_CHARGER_DIODE : in do_trickle_setup_ds1339()
545 static u8 do_trickle_setup_rx8130(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_rx8130() argument
549 if (diode) in do_trickle_setup_rx8130()
1283 bool diode = chip->charge_default; in ds1307_trickle_init() local
1293 * trickle-diode-disable in ds1307_trickle_init()
1299 diode = false; in ds1307_trickle_init()
1302 diode = true; in ds1307_trickle_init()
1310 "trickle-diode-disable")) { in ds1307_trickle_init()
1311 diode in ds1307_trickle_init()
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dw83627ehf.c1223 u8 tmp, diode; in w83627ehf_init_device() local
1253 diode = w83627ehf_read_value(data, W83627EHF_REG_DIODE); in w83627ehf_init_device()
1256 diode = 0x00; in w83627ehf_init_device()
1259 diode = 0x70; in w83627ehf_init_device()
1273 data->temp_type[i] = (diode & (0x10 << i)) ? 1 : 3; in w83627ehf_init_device()
H A Dnct6775.c2406 u8 vbat, diode, vbit, dbit; in store_temp_type() local
2421 diode = nct6775_read_value(data, data->REG_DIODE) & ~dbit; in store_temp_type()
2423 case 1: /* CPU diode (diode, current mode) */ in store_temp_type()
2425 diode |= dbit; in store_temp_type()
2427 case 3: /* diode, voltage mode */ in store_temp_type()
2434 nct6775_write_value(data, data->REG_DIODE, diode); in store_temp_type()
3505 u8 tmp, diode; in nct6775_init_device() local
3531 diode = nct6775_read_value(data, data->REG_DIODE); in nct6775_init_device()
3536 if ((tmp & (data->DIODE_MASK << i))) /* diode */ in nct6775_init_device()
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dw83627ehf.c1221 u8 tmp, diode; in w83627ehf_init_device() local
1251 diode = w83627ehf_read_value(data, W83627EHF_REG_DIODE); in w83627ehf_init_device()
1254 diode = 0x00; in w83627ehf_init_device()
1257 diode = 0x70; in w83627ehf_init_device()
1271 data->temp_type[i] = (diode & (0x10 << i)) ? 1 : 3; in w83627ehf_init_device()
H A Dnct6775-core.c2298 u16 vbat, diode; in store_temp_type() local
2321 err = nct6775_read_value(data, data->REG_DIODE, &diode); in store_temp_type()
2324 diode &= ~dbit; in store_temp_type()
2327 case 1: /* CPU diode (diode, current mode) */ in store_temp_type()
2329 diode |= dbit; in store_temp_type()
2331 case 3: /* diode, voltage mode */ in store_temp_type()
2340 err = nct6775_write_value(data, data->REG_DIODE, diode); in store_temp_type()
3417 u16 tmp, diode; in nct6775_init_device() local
3457 err = nct6775_read_value(data, data->REG_DIODE, &diode); in nct6775_init_device()
[all...]

Completed in 28 milliseconds