Home
last modified time | relevance | path

Searched refs:to_pdo (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/typec/
H A Dpd.c20 #define to_pdo(o) container_of(o, struct pdo, dev) macro
30 kfree(to_pdo(dev)); in pdo_release()
46 return sysfs_emit(buf, "%u\n", !!(to_pdo(dev)->pdo & PDO_FIXED_SUSPEND)); in usb_suspend_supported_show()
104 return sysfs_emit(buf, "%umV\n", pdo_fixed_voltage(to_pdo(dev)->pdo)); in voltage_show()
111 return sysfs_emit(buf, "%umA\n", pdo_max_current(to_pdo(dev)->pdo)); in current_show()
146 if (to_pdo(kobj_to_dev(kobj))->object_position && in fixed_attr_is_visible()
199 return sysfs_emit(buf, "%umV\n", pdo_max_voltage(to_pdo(dev)->pdo)); in maximum_voltage_show()
206 return sysfs_emit(buf, "%umV\n", pdo_min_voltage(to_pdo(dev)->pdo)); in minimum_voltage_show()
244 return sysfs_emit(buf, "%umW\n", pdo_max_power(to_pdo(dev)->pdo)); in maximum_power_show()
251 return sysfs_emit(buf, "%umW\n", pdo_max_power(to_pdo(dev)->pdo)); in operational_power_show()
[all …]