Lines Matching refs:buck
69 static int max77686_buck_volt2hex(int buck, int uV) in max77686_buck_volt2hex() argument
74 switch (buck) { in max77686_buck_volt2hex()
98 pr_err("Value: %d uV is wrong for BUCK%d", uV, buck); in max77686_buck_volt2hex()
102 static int max77686_buck_hex2volt(int buck, int hex) in max77686_buck_hex2volt() argument
110 switch (buck) { in max77686_buck_hex2volt()
134 pr_err("Value: %#x is wrong for BUCK%d", hex, buck); in max77686_buck_hex2volt()
227 static int max77686_buck_hex2mode(int buck, int hex) in max77686_buck_hex2mode() argument
238 switch (buck) { in max77686_buck_hex2mode()
248 switch (buck) { in max77686_buck_hex2mode()
261 static int max77686_buck_modes(int buck, struct dm_regulator_mode **modesp) in max77686_buck_modes() argument
265 if (buck < 1 || buck > MAX77686_BUCK_NUM) in max77686_buck_modes()
268 switch (buck) { in max77686_buck_modes()
362 int hex, buck, ret; in max77686_buck_val() local
364 buck = dev->driver_data; in max77686_buck_val()
365 if (buck < 1 || buck > MAX77686_BUCK_NUM) { in max77686_buck_val()
366 pr_err("Wrong buck number: %d", buck); in max77686_buck_val()
374 adr = max77686_buck_out[buck]; in max77686_buck_val()
377 switch (buck) { in max77686_buck_val()
394 ret = max77686_buck_hex2volt(buck, val); in max77686_buck_val()
401 hex = max77686_buck_volt2hex(buck, *uV); in max77686_buck_val()
541 int buck, ret; in max77686_buck_mode() local
543 buck = dev->driver_data; in max77686_buck_mode()
544 if (buck < 1 || buck > MAX77686_BUCK_NUM) { in max77686_buck_mode()
545 pr_err("Wrong buck number: %d", buck); in max77686_buck_mode()
549 adr = max77686_buck_ctrl[buck]; in max77686_buck_mode()
552 switch (buck) { in max77686_buck_mode()
571 ret = max77686_buck_hex2mode(buck, val); in max77686_buck_mode()
584 switch (buck) { in max77686_buck_mode()
596 switch (buck) { in max77686_buck_mode()
614 pr_err("Wrong mode: %d for buck: %d\n", *opmode, buck); in max77686_buck_mode()