Lines Matching +full:multi +full:- +full:phase
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers(MP9941)
87 data->vid_resolution = 5; in mp9941_identify_vid_resolution()
89 data->vid_resolution = 10; in mp9941_identify_vid_resolution()
144 static int mp9941_read_word_data(struct i2c_client *client, int page, int phase, in mp9941_read_word_data() argument
154 ret = pmbus_read_word_data(client, page, phase, reg); in mp9941_read_word_data()
162 ret = pmbus_read_word_data(client, page, phase, reg); in mp9941_read_word_data()
170 ret = pmbus_read_word_data(client, page, phase, reg); in mp9941_read_word_data()
178 ret = pmbus_read_word_data(client, page, phase, reg); in mp9941_read_word_data()
193 ret = pmbus_read_word_data(client, page, phase, reg); in mp9941_read_word_data()
197 ret = ret * data->vid_resolution; in mp9941_read_word_data()
206 ret = -ENODATA; in mp9941_read_word_data()
209 ret = -EINVAL; in mp9941_read_word_data()
234 DIV_ROUND_CLOSEST(word, data->vid_resolution)); in mp9941_write_word_data()
239 ret = -ENODATA; in mp9941_write_word_data()
242 ret = -EINVAL; in mp9941_write_word_data()
284 data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); in mp9941_probe()
286 return -ENOMEM; in mp9941_probe()
288 memcpy(&data->info, &mp9941_info, sizeof(mp9941_info)); in mp9941_probe()
290 return pmbus_do_probe(client, &data->info); in mp9941_probe()