Lines Matching +full:int +full:- +full:property

1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * - linux/include/linux/extcon.h for extcon consumer device driver.
73 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */
74 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */
78 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */
92 * When adding the new extcon property, they *must* have
98 * The naming style of property
99 * : EXTCON_PROP_[type]_[property name]
101 * EXTCON_PROP_USB_[property name] : USB property
102 * EXTCON_PROP_CHG_[property name] : Charger property
103 * EXTCON_PROP_JACK_[property name] : Jack property
104 * EXTCON_PROP_DISP_[property name] : Display property
110 * - EXTCON_PROP_USB_VBUS
114 * - EXTCON_PROP_USB_TYPEC_POLARITY
118 * - EXTCON_PROP_USB_SS (SuperSpeed)
130 #define EXTCON_PROP_USB_CNT (EXTCON_PROP_USB_MAX - EXTCON_PROP_USB_MIN + 1)
135 #define EXTCON_PROP_CHG_CNT (EXTCON_PROP_CHG_MAX - EXTCON_PROP_CHG_MIN + 1)
140 #define EXTCON_PROP_JACK_CNT (EXTCON_PROP_JACK_MAX - EXTCON_PROP_JACK_MIN + 1)
145 * - EXTCON_PROP_DISP_HPD (Hot Plug Detect)
156 #define EXTCON_PROP_DISP_CNT (EXTCON_PROP_DISP_MAX - EXTCON_PROP_DISP_MIN + 1)
159 * Define the type of property's value.
161 * Define the property's value as union type. Because each property
165 int intval; /* type : integer (intval) */
175 int extcon_get_state(struct extcon_dev *edev, unsigned int id);
178 * Following APIs get the property of each external connector.
180 * and the 'prop' indicates the extcon property.
182 * And extcon_get_property_capability() get the capability of the property
184 * property of each external connector based on the id and property.
186 int extcon_get_property(struct extcon_dev *edev, unsigned int id,
187 unsigned int prop,
189 int extcon_get_property_capability(struct extcon_dev *edev,
190 unsigned int id, unsigned int prop);
194 * the change of both state and property value for each external connector.
201 int extcon_register_notifier(struct extcon_dev *edev, unsigned int id,
203 int extcon_unregister_notifier(struct extcon_dev *edev, unsigned int id,
205 int devm_extcon_register_notifier(struct device *dev,
206 struct extcon_dev *edev, unsigned int id,
209 struct extcon_dev *edev, unsigned int id,
212 int extcon_register_notifier_all(struct extcon_dev *edev,
214 int extcon_unregister_notifier_all(struct extcon_dev *edev,
216 int devm_extcon_register_notifier_all(struct device *dev,
229 int index);
235 static inline int extcon_get_state(struct extcon_dev *edev, unsigned int id) in extcon_get_state()
240 static inline int extcon_get_property(struct extcon_dev *edev, unsigned int id, in extcon_get_property()
241 unsigned int prop, in extcon_get_property()
247 static inline int extcon_get_property_capability(struct extcon_dev *edev, in extcon_get_property_capability()
248 unsigned int id, unsigned int prop) in extcon_get_property_capability()
253 static inline int extcon_register_notifier(struct extcon_dev *edev, in extcon_register_notifier()
254 unsigned int id, struct notifier_block *nb) in extcon_register_notifier()
259 static inline int extcon_unregister_notifier(struct extcon_dev *edev, in extcon_unregister_notifier()
260 unsigned int id, struct notifier_block *nb) in extcon_unregister_notifier()
265 static inline int devm_extcon_register_notifier(struct device *dev, in devm_extcon_register_notifier()
266 struct extcon_dev *edev, unsigned int id, in devm_extcon_register_notifier()
269 return -ENOSYS; in devm_extcon_register_notifier()
273 struct extcon_dev *edev, unsigned int id, in devm_extcon_unregister_notifier()
276 static inline int extcon_register_notifier_all(struct extcon_dev *edev, in extcon_register_notifier_all()
282 static inline int extcon_unregister_notifier_all(struct extcon_dev *edev, in extcon_unregister_notifier_all()
288 static inline int devm_extcon_register_notifier_all(struct device *dev, in devm_extcon_register_notifier_all()
306 return ERR_PTR(-ENODEV); in extcon_find_edev_by_node()
310 int index) in extcon_get_edev_by_phandle()
312 return ERR_PTR(-ENODEV); in extcon_get_edev_by_phandle()
327 int cable_index;