Lines Matching +full:0 +full:x7c00
33 #define LTC2978_MFR_VOUT_PEAK 0xdd
34 #define LTC2978_MFR_VIN_PEAK 0xde
35 #define LTC2978_MFR_TEMPERATURE_PEAK 0xdf
36 #define LTC2978_MFR_SPECIAL_ID 0xe7 /* Undocumented on LTC3882 */
37 #define LTC2978_MFR_COMMON 0xef
40 #define LTC2978_MFR_VOUT_MIN 0xfb
41 #define LTC2978_MFR_VIN_MIN 0xfc
42 #define LTC2978_MFR_TEMPERATURE_MIN 0xfd
45 #define LTC2974_MFR_IOUT_PEAK 0xd7
46 #define LTC2974_MFR_IOUT_MIN 0xd8
49 #define LTC3880_MFR_IOUT_PEAK 0xd7
50 #define LTC3880_MFR_CLEAR_PEAKS 0xe3
51 #define LTC3880_MFR_TEMPERATURE2_PEAK 0xf4
54 #define LTC3883_MFR_IIN_PEAK 0xe1
58 #define LTC2975_MFR_IIN_PEAK 0xc4
59 #define LTC2975_MFR_IIN_MIN 0xc5
60 #define LTC2975_MFR_PIN_PEAK 0xc6
61 #define LTC2975_MFR_PIN_MIN 0xc7
63 #define LTC2978_ID_MASK 0xfff0
65 #define LTC2972_ID 0x0310
66 #define LTC2974_ID 0x0210
67 #define LTC2975_ID 0x0220
68 #define LTC2977_ID 0x0130
69 #define LTC2978_ID_REV1 0x0110 /* Early revision */
70 #define LTC2978_ID_REV2 0x0120
71 #define LTC2979_ID_A 0x8060
72 #define LTC2979_ID_B 0x8070
73 #define LTC2980_ID_A 0x8030 /* A/B for two die IDs */
74 #define LTC2980_ID_B 0x8040
75 #define LTC3880_ID 0x4020
76 #define LTC3882_ID 0x4200
77 #define LTC3882_ID_D1 0x4240 /* Dash 1 */
78 #define LTC3883_ID 0x4300
79 #define LTC3884_ID 0x4C00
80 #define LTC3886_ID 0x4600
81 #define LTC3887_ID 0x4700
82 #define LTM2987_ID_A 0x8010 /* A/B for two die IDs */
83 #define LTM2987_ID_B 0x8020
84 #define LTC3889_ID 0x4900
85 #define LTC7880_ID 0x49E0
86 #define LTM4664_ID 0x4120
87 #define LTM4675_ID 0x47a0
88 #define LTM4676_ID_REV1 0x4400
89 #define LTM4676_ID_REV2 0x4480
90 #define LTM4676A_ID 0x47e0
91 #define LTM4677_ID_REV1 0x47B0
92 #define LTM4677_ID_REV2 0x47D0
93 #define LTM4678_ID_REV1 0x4100
94 #define LTM4678_ID_REV2 0x4110
95 #define LTM4680_ID 0x4140
96 #define LTM4686_ID 0x4770
97 #define LTM4700_ID 0x4130
132 #define FEAT_CLEAR_PEAKS BIT(0)
147 return 0; in ltc_wait_ready()
158 status = pmbus_read_byte_data(client, 0, LTC2978_MFR_COMMON); in ltc_wait_ready()
164 if (status < 0) in ltc_wait_ready()
168 return 0; in ltc_wait_ready()
182 if (ret < 0) in ltc_read_word_data()
185 return pmbus_read_word_data(client, page, 0xff, reg); in ltc_read_word_data()
193 if (ret < 0) in ltc_read_byte_data()
204 if (ret < 0) in ltc_write_byte()
220 return (e < 0 ? m >> -e : m << e); in lin11_to_val()
228 ret = ltc_read_word_data(client, page, 0xff, reg); in ltc_get_max()
229 if (ret >= 0) { in ltc_get_max()
242 ret = ltc_read_word_data(client, page, 0xff, reg); in ltc_get_min()
243 if (ret >= 0) { in ltc_get_min()
264 ret = ltc_read_word_data(client, page, 0xff, in ltc2978_read_word_data_common()
266 if (ret >= 0) { in ltc2978_read_word_data_common()
284 ret = 0; in ltc2978_read_word_data_common()
288 if (ret < 0) in ltc2978_read_word_data_common()
311 if (ret >= 0) { in ltc2978_read_word_data()
360 ret = 0; in ltc2974_read_word_data()
395 ret = 0; in ltc2975_read_word_data()
428 ret = 0; in ltc3880_read_word_data()
450 ret = 0; in ltc3883_read_word_data()
465 ret = ltc_write_byte(client, 0, LTC3880_MFR_CLEAR_PEAKS); in ltc2978_clear_peaks()
481 data->iin_max = 0x7c00; in ltc2978_write_word_data()
482 data->iin_min = 0x7bff; in ltc2978_write_word_data()
483 ret = ltc2978_clear_peaks(data, client, 0); in ltc2978_write_word_data()
486 data->pin_max = 0x7c00; in ltc2978_write_word_data()
487 data->pin_min = 0x7bff; in ltc2978_write_word_data()
488 ret = ltc2978_clear_peaks(data, client, 0); in ltc2978_write_word_data()
491 data->iout_max[page] = 0x7c00; in ltc2978_write_word_data()
492 data->iout_min[page] = 0xfbff; in ltc2978_write_word_data()
496 data->temp2_max = 0x7c00; in ltc2978_write_word_data()
500 data->vout_min[page] = 0xffff; in ltc2978_write_word_data()
501 data->vout_max[page] = 0; in ltc2978_write_word_data()
505 data->vin_min = 0x7bff; in ltc2978_write_word_data()
506 data->vin_max = 0x7c00; in ltc2978_write_word_data()
510 data->temp_min[page] = 0x7bff; in ltc2978_write_word_data()
511 data->temp_max[page] = 0x7c00; in ltc2978_write_word_data()
516 if (ret < 0) in ltc2978_write_word_data()
555 PMBUS_REGULATOR("vout", 0),
571 if (chip_id < 0) { in ltc2978_get_id()
581 if (ret < 0) in ltc2978_get_id()
587 if (ret < 0) in ltc2978_get_id()
589 for (id = <c2978_id[0]; strlen(id->name); id++) { in ltc2978_get_id()
648 dev_err(&client->dev, "Unsupported chip ID 0x%x\n", chip_id); in ltc2978_get_id()
669 if (chip_id < 0) in ltc2978_probe()
687 data->vin_min = 0x7bff; in ltc2978_probe()
688 data->vin_max = 0x7c00; in ltc2978_probe()
689 for (i = 0; i < ARRAY_SIZE(data->vout_min); i++) in ltc2978_probe()
690 data->vout_min[i] = 0xffff; in ltc2978_probe()
691 for (i = 0; i < ARRAY_SIZE(data->iout_min); i++) in ltc2978_probe()
692 data->iout_min[i] = 0xfbff; in ltc2978_probe()
693 for (i = 0; i < ARRAY_SIZE(data->iout_max); i++) in ltc2978_probe()
694 data->iout_max[i] = 0x7c00; in ltc2978_probe()
695 for (i = 0; i < ARRAY_SIZE(data->temp_min); i++) in ltc2978_probe()
696 data->temp_min[i] = 0x7bff; in ltc2978_probe()
697 for (i = 0; i < ARRAY_SIZE(data->temp_max); i++) in ltc2978_probe()
698 data->temp_max[i] = 0x7c00; in ltc2978_probe()
699 data->temp2_max = 0x7c00; in ltc2978_probe()
705 info->func[0] = PMBUS_HAVE_IIN | PMBUS_HAVE_PIN in ltc2978_probe()
708 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
718 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT in ltc2978_probe()
720 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
730 info->func[0] = PMBUS_HAVE_IIN | PMBUS_HAVE_PIN in ltc2978_probe()
733 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
748 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT in ltc2978_probe()
765 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
780 info->func[0] = PMBUS_HAVE_VIN in ltc2978_probe()
795 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
813 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()