Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/usb/
H A Dpd.h245 #define PDO_BATT_MAX_PWR_SHIFT 0 /* 250mW units */ macro
249 #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT)
322 return ((pdo >> PDO_BATT_MAX_PWR_SHIFT) & PDO_PWR_MASK) * 250; in pdo_max_power()
/openbmc/linux/include/dt-bindings/usb/
H A Dpd.h40 #define PDO_BATT_MAX_PWR_SHIFT 0 /* 250mW units */ macro
44 #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT)