Lines Matching +full:1 +full:ma
7 #define PDO_TYPE_BATT 1
20 #define PDO_FIXED_DUAL_ROLE (1 << 29) /* Power role swap supported */
21 #define PDO_FIXED_SUSPEND (1 << 28) /* USB Suspend supported (Source) */
22 #define PDO_FIXED_HIGHER_CAP (1 << 28) /* Requires more than vSafe5V (Sink) */
23 #define PDO_FIXED_EXTPOWER (1 << 27) /* Externally powered */
24 #define PDO_FIXED_USB_COMM (1 << 26) /* USB communications capable */
25 #define PDO_FIXED_DATA_SWAP (1 << 25) /* Data role swap supported */
27 #define PDO_FIXED_CURR_SHIFT 0 /* 10mA units */
30 #define PDO_FIXED_CURR(ma) ((((ma) / 10) & PDO_CURR_MASK) << PDO_FIXED_CURR_SHIFT) argument
32 #define PDO_FIXED(mv, ma, flags) \ argument
34 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma))
52 #define PDO_VAR_MAX_CURR_SHIFT 0 /* 10mA units */
56 #define PDO_VAR_MAX_CURR(ma) ((((ma) / 10) & PDO_CURR_MASK) << PDO_VAR_MAX_CURR_SHIFT) argument
71 #define PDO_PPS_APDO_MAX_CURR_SHIFT 0 /* 50mA units */
80 #define PDO_PPS_APDO_MAX_CURR(ma) \ argument
81 ((((ma) / 50) & PDO_PPS_APDO_CURR_MASK) << PDO_PPS_APDO_MAX_CURR_SHIFT)