Lines Matching full:extcon
2 * drivers/extcon/extcon.c - External Connector (extcon) framework.
35 #include "extcon.h"
201 * @edev: the extcon device
258 /* Find the the index of extcon cable in edev->supported_cable */ in find_cable_index_by_id()
304 /* Check whether a specific extcon id supports the property or not. */ in is_extcon_property_supported()
409 * @edev: the extcon device
492 * @edev: the extcon device
519 * @edev: the extcon device
555 * Initialize the value of extcon property before setting in extcon_set_state()
575 * @edev: the extcon device
611 * @edev: the extcon device
613 * @prop: the property id indicating an extcon property
614 * @prop_val: the pointer which store the value of extcon property
619 * included in the list of supported properties according to extcon type.
665 /* Get the property value according to extcon type */ in extcon_get_property()
692 * @edev: the extcon device
694 * @prop: the property id indicating an extcon property
695 * @prop_val: the pointer including the new value of extcon property
698 * properties according to the extcon type.
732 /* Set the property value according to extcon type */ in extcon_set_property()
759 * @prop_val: the pointer including the new value of extcon property
763 * be included in the list of supported properties according to extcon type.
784 * @edev: the extcon device
786 * @prop: the property id indicating an extcon property
814 * @edev: the extcon device
816 * @prop: the property id indicating an extcon property
870 * extcon_get_extcon_dev() - Get the extcon device instance from the name.
871 * @extcon_name: the extcon name provided with extcon_dev_register()
873 * Return the pointer of extcon device if success or ERR_PTR(err) if fail.
896 * any state changes from the extcon.
897 * @edev: the extcon device
903 * is the pointer of extcon device.
929 * extcon_unregister_notifier() - Unregister a notifier block from the extcon.
930 * @edev: the extcon device
959 * @edev: the extcon device
963 * the state change of all supported external connectors from extcon device.
965 * the current state and the third pameter is the pointer of extcon device.
987 * extcon_unregister_notifier_all() - Unregister a notifier block from extcon.
988 * @edev: the extcon device
1015 ATTRIBUTE_GROUPS(extcon);
1020 extcon_class = class_create(THIS_MODULE, "extcon"); in create_extcon_class()
1039 * extcon_dev_allocate() - Allocate the memory of extcon device.
1043 * Note that this function allocates the memory for extcon device
1044 * and initialize default setting for the extcon device.
1067 * extcon_dev_free() - Free the memory of extcon device.
1068 * @edev: the extcon device
1077 * extcon_dev_register() - Register an new extcon device
1078 * @edev: the extcon device to be registered
1085 * of an extcon device by using the extcon_dev_allocate(). And the extcon
1119 "extcon device name is null\n"); in extcon_dev_register()
1122 dev_set_name(&edev->dev, "extcon%lu", in extcon_dev_register()
1298 * extcon_dev_unregister() - Unregister the extcon device.
1299 * @edev: the extcon device to be unregistered.
1346 * extcon_find_edev_by_node - Find the extcon device from devicetree.
1349 * Return the pointer of extcon device if success or ERR_PTR(err) if fail.
1367 * extcon_get_edev_by_phandle - Get the extcon device from devicetree.
1371 * Return the pointer of extcon device if success or ERR_PTR(err) if fail.
1386 node = of_parse_phandle(dev->of_node, "extcon", index); in extcon_get_edev_by_phandle()
1417 * extcon_get_edev_name() - Get the name of the extcon device.
1418 * @edev: the extcon device
1439 MODULE_DESCRIPTION("External Connector (extcon) framework");