Lines Matching full:psu
113 struct max20730_debugfs_data *psu = to_psu(idxp, idx); in max20730_debugfs_read() local
120 info = pmbus_get_driver_info(psu->client); in max20730_debugfs_read()
248 ret = i2c_smbus_read_byte_data(psu->client, PMBUS_OPERATION); in max20730_debugfs_read()
254 ret = i2c_smbus_read_byte_data(psu->client, PMBUS_ON_OFF_CONFIG); in max20730_debugfs_read()
260 ret = i2c_smbus_read_word_data(psu->client, in max20730_debugfs_read()
267 ret = i2c_smbus_read_byte_data(psu->client, PMBUS_VOUT_MODE); in max20730_debugfs_read()
273 ret = i2c_smbus_read_word_data(psu->client, PMBUS_VOUT_COMMAND); in max20730_debugfs_read()
282 ret = i2c_smbus_read_word_data(psu->client, PMBUS_VOUT_MAX); in max20730_debugfs_read()
311 struct max20730_debugfs_data *psu; in max20730_init_debugfs() local
323 psu = devm_kzalloc(&client->dev, sizeof(*psu), GFP_KERNEL); in max20730_init_debugfs()
324 if (!psu) in max20730_init_debugfs()
326 psu->client = client; in max20730_init_debugfs()
335 psu->debugfs_entries[i] = i; in max20730_init_debugfs()
338 &psu->debugfs_entries[MAX20730_DEBUGFS_VOUT_MIN], in max20730_init_debugfs()
341 &psu->debugfs_entries[MAX20730_DEBUGFS_FREQUENCY], in max20730_init_debugfs()
344 &psu->debugfs_entries[MAX20730_DEBUGFS_PG_DELAY], in max20730_init_debugfs()
347 &psu->debugfs_entries[MAX20730_DEBUGFS_INTERNAL_GAIN], in max20730_init_debugfs()
350 &psu->debugfs_entries[MAX20730_DEBUGFS_BOOT_VOLTAGE], in max20730_init_debugfs()
353 &psu->debugfs_entries[MAX20730_DEBUGFS_OUT_V_RAMP_RATE], in max20730_init_debugfs()
356 &psu->debugfs_entries[MAX20730_DEBUGFS_OC_PROTECT_MODE], in max20730_init_debugfs()
359 &psu->debugfs_entries[MAX20730_DEBUGFS_SS_TIMING], in max20730_init_debugfs()
362 &psu->debugfs_entries[MAX20730_DEBUGFS_IMAX], in max20730_init_debugfs()
365 &psu->debugfs_entries[MAX20730_DEBUGFS_OPERATION], in max20730_init_debugfs()
368 &psu->debugfs_entries[MAX20730_DEBUGFS_ON_OFF_CONFIG], in max20730_init_debugfs()
371 &psu->debugfs_entries[MAX20730_DEBUGFS_SMBALERT_MASK], in max20730_init_debugfs()
374 &psu->debugfs_entries[MAX20730_DEBUGFS_VOUT_MODE], in max20730_init_debugfs()
377 &psu->debugfs_entries[MAX20730_DEBUGFS_VOUT_COMMAND], in max20730_init_debugfs()
380 &psu->debugfs_entries[MAX20730_DEBUGFS_VOUT_MAX], in max20730_init_debugfs()